Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: Errors when build runs on different machines: Microsoft.Office.Interop.Visio.Application application = new Microsoft.Office.Interop.Visio.Application(null, visioProxy)

$
0
0
This can't work on any system because you have to use NetOffice instead of interop.

Replace Interop:
Microsoft.Office.Interop.Visio.Application application = new Microsoft.Office.Interop.Visio.Application(null, visioProxy);
With NetOffice:
NetOffice.VisioApi.Application application = new NetOffice.VisioApi.Application(null, visioProxy);

Moreover you can use a ctor without arguments directly:
NetOffice.VisioApi.Application application = new NetOffice.VisioApi.Application();

Now, NetOffice want fetch the type and create the instance for you.


*Sebastian

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>