How to create or get visio instance (visio is installed on app-v)?

0

I have Visio installed on app-v, the Microsoft tools for application virtualization. I run visio on my local machine, it works pretty well. But when writing a c# code on my local machine to get or create a Visio application like below :

Microsoft.Office.Interop.Visio.Application application = (Microsoft.Office.Interop.Visio.Application)Marshal.GetActiveObject("Visio.Application");  

I got the error:

Operation not available (Exception de HRESULT : 0x800401E3 (MK_E_UNAVAILABLE))

I first lunch Visio, then my c# code so i'm sure that Visio is in running. Of course i understand the error but how can i get or create Visio in such scenario?

c#
visio
appv
asked on Stack Overflow Sep 16, 2014 by user3611385 • edited Sep 16, 2014 by D Stanley

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0