Visio Problem with NetOffice

Jul 7, 2016 at 9:01 AM
I'm using your fantastic DLLs. I'm using NetOffice 1.7.3.
I'm able to open an Excel file and save it, but when I try to do it with a Visio file I get an

My code is:

NetOffice.VisioApi.IVApplication app = new NetOffice.VisioApi.IVApplication();
Visio.IVDocument doc = app.Documents.Add("");

when the second line of code is reached I receive this error:

Data: {System.Collections.ListDictionaryInternal}
HResult: -2147467261
HelpLink: null
InnerException: null
Message: "Object reference not set to an instance of an object."
Source: "NetOffice"
StackTrace: "   in NetOffice.Invoker.PropertyGet(COMObject comObject, String name, Object[] paramsArray) in c:\\Source\\NetOffice\\Invoker.cs:riga 763"
TargetSite: {System.Object PropertyGet(NetOffice.COMObject, System.String, System.Object[])}
I cames on every operation I do on Application object, also trying to open an existing file.
I'm stucked on this problem by days...can you help me please?
Thank you in advance!
Jul 11, 2016 at 3:02 PM
This is something else.
I see no possible reason at this point.(exception for the "" argument which is a dumy for this example i think)
When its possible for you, i want make a short session in skype or ts if you want to pin point the problem.