CodePlexProject Hosting for Open Source Software
/* taken from Tutorial07.csproj
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 void Tutorial07Main()
// Initialize Api COMObject Support
Excel.Application application = new Excel.Application();
application.DisplayAlerts = false;
Excel.Worksheet sheet = (Excel.Worksheet)application.Workbooks.Worksheets;
Excel.Range sampleRange = 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
object comProxy = Invoker.PropertyGet(application, "Workbooks");
MessageBox.Show(this, "Done!", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
Last edited Jan 5, 2012 at 9:48 AM by SebastianDotNet, version 5
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.