CodePlexProject Hosting for Open Source Software
' taken from Tutorial07.vbproj
' The static class LateBindingApi.Core.Invoker is the low level interface from ' NetOffice to access a COM Server.
' This example shows you an example how to use it.
' See reference chapter4 in technical documentation for further info.
Private Sub Tutorial07Main()
'Initialize Api COMObject Support
' start application
Dim application As New Excel.Application()
application.DisplayAlerts = False
' create new Workbook
Dim book As Excel.Workbook = application.Workbooks.Add()
Dim sheet As Excel.Worksheet = application.Workbooks(1).Worksheets(1)
Dim sampleRange As Excel.Range = sheet.Cells(1, 1)
' we set the COMVariant ColorIndex from Font of ouer sample range with ' the invoker class
Invoker.PropertySet(sampleRange.Font, "ColorIndex", 1)
' creates a native unmanaged ComProxy with the invoker
Dim comProxy As Object = Invoker.PropertyGet(application, "Workbooks")
MessageBox.Show(Me, "Done!", Me.Text, MessageBoxButtons.OK, MessageBoxIcon.Information)
Last edited Jan 5, 2012 at 11:24 AM by SebastianDotNet, version 6
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.