CodePlexProject Hosting for Open Source Software
/* taken from Tutorial08.csproj
Any object in NetOffice implements a special method too see at runtime a specified property or method is available This very important because not any property or method is available in any office version
bool EntityIsAvailable(string name);
bool EntityIsAvailable(string name, SupportEntityType searchType);
This example shows you how to use.
See chapter8 in technical documentation for further info.
// Initialize NetOffices
// create new instance
Excel.Application application = new Excel.Application();
// check for support at runtime
bool enableLivePreviewSupport = application.EntityIsAvailable("EnableLivePreview");
bool openDatabaseSupport = application.Workbooks.EntityIsAvailable("OpenDatabase");
string result = "Excel Runtime Check: " + Environment.NewLine;
result += "Support EnableLivePreview: " + enableLivePreviewSupport.ToString() + Environment.NewLine;
result += "Support OpenDatabase: " + openDatabaseSupport.ToString() + Environment.NewLine;
richTextBoxResult.Text = result;
// quit and dispose
Last edited Nov 13, 2011 at 11:54 PM by SebastianDotNet, version 8
This product is simply amazing. Sebastian has picked up where Microsoft left off many years ago by creating a product that facilitat... (more)
It's an excellent toolkit. It's very simple to create an Office Add-in and the support is very good.
Sign in to join this project.