Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello all!
On my local computer i have Microsoft technology for virtualizing application(App-v).
On App-v, the virtualization platform, i have Microsoft Office suite including Visio installed. I run Visio as all others Office apllications on my local machine without any issue.
I wrote a c# application to automate some Visio drawings. My application is running on my local machine and use the reference: Microsoft.Interop.Office.visio.
I got an error at this stage: " Microsoft.Office.Interop.Visio.Application application = (Microsoft.Office.Interop.Visio.Application)Marshal.GetActiveObject("Visio.Application");"
saying "operation not available".
I'm aware that visio is not installed on my local machine but it runs on my local machine(and there is process call visio.exe in the task manager list of running processes) . How to make it runs while using the above string in quote?
Anyone have an idea on how to correct this error please?
Thanks all for your contributions.
Posted
Updated 14-Sep-14 22:34pm
v4

1 solution

It does not matter at all if that Access database is installed on a virtual machine or a real machine. You can access it like any Access database installed somewhere in the network.
Adjust the connection string accordingly. It could be necessary to create a share for the folder the database file is located in.
 
Share this answer
 
Comments
orélle 11-Sep-14 18:01pm    
Nobody has any suggestion about this please!! :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900