Use Visio api

Aug 12, 2013 at 12:27 PM

how can I work with the visio dll? I tried it the same why like word/excel/powerPoint but I'll get an error.

I add the dll references and tried to load like this:
object visioProxy = System.Runtime.InteropServices.Marshal.GetActiveObject("Visio.Application");
Visio.Application visioApplication = new Visio.Application(null, visioProxy);
But get an error :" Interop typ 'NetOffice.VisioApi.Apllication' cannot be embedded. Use the applicable interface instead".

Which Interface should I use?

I hope u can help me, THX.
Aug 12, 2013 at 12:37 PM
you have to set the reference property 'embed interop types' to false for all NetOffice assemblies.

Aug 12, 2013 at 12:40 PM
oh ok it's working. THX