This project has moved and is read-only. For the latest updates, please go here.

Visio Support in

Oct 24, 2012 at 2:18 PM


Is Visio in this Version actually supported? 
I've successfuly implemented Word, Excel, Powerpoint and Outlook Support, but i can't get Visio to run. 

I'm trying to implement a Solution using the Interface:

Visio.IVApplication app = new Visio.IVApplication();
Visio.IVDocument doc = app.Documents.Open(filepath);

Leads to:

System.Runtime.InteropServices.COMException(0x80004005): See inner exception(s) for details.
----> System.NullReferenceException: Object reference not set to an instance of an object. At NetOffice.Invoker.PropertyGet(COMObject comObject, String name, Object[] paramsArray) ... 


Cheers, Daniel

Oct 25, 2012 at 12:08 PM

hey daniel,

yes, the visio support in NetOffice can be better(i dont use visio all the time)
i do a test and find a keytoken bug in NetOffice.dll
the bug is fixed in latest source state!

please change:
Visio.IVApplication app = new Visio.IVApplication();
Visio.IVApplication app = new Visio.Application();

because IVApplication is a dispatch interface. its impossible to create them directly regardless from the API(NetOffice, VBA, VSTO...)


Oct 25, 2012 at 12:21 PM

Hi Sebastian

Great, thanks for your Answer! I will test your Change and let you know if i come across any other Bugs in Visio :)