CodePlexProject Hosting for Open Source Software
' taken from Tutorial08.vbproj
' Any object in NetOffice implements a special method too see at runtime a specified property or method is available' This is 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
Dim application As New Excel.Application()
' check for support at runtime
Dim enableLivePreviewSupport As Boolean = application.EntityIsAvailable("EnableLivePreview")
Dim openDatabaseSupport As Boolean = application.Workbooks.EntityIsAvailable("OpenDatabase")
Dim result As String = "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:55 PM by SebastianDotNet, version 4
This product is simply amazing. Sebastian has picked up where Microsoft left off many years ago by creating a product that facilitat... (more)
This project is simply awesome!!!
I was able to convert an Outlook Add-in from VSTO to NetOffice within 1 day using Visual Studio 20... (more)
Sign in to join this project.