This project has moved. For the latest updates, please go here.

Visio Support in 1.5.1.2

Oct 24, 2012 at 1:18 PM

Hi, 

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

Coordinator
Oct 25, 2012 at 11:08 AM

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();
to:
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...)

Sebastian

Oct 25, 2012 at 11:21 AM

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 :)

Greetings,
Daniel