Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!
Does anyone know a way to programmatically draw in Visio document without Microsoft Visio soft installed on the machine?

The idea might be to generate an xml file visio compliant.

Any example will be really appreciated!
Thanks
Posted
Updated 26-Jun-14 22:10pm
v2
Comments
Sergey Alexandrovich Kryukov 26-Jun-14 14:33pm    
Frankly, whole Visio does not deserve addressing such problems... :-)
—SA

You may be stuck with the limitations of the Visio licence. Could you use another diagramming tool such as Apache OpenOffice Draw?
 
Share this answer
 
Comments
orélle 27-Jun-14 9:30am    
That looks interesting however using Visio is a requirement in my case. My users are used to and they prefer Visio.
Visio licence is not an issue, in fact i access visio trough a virtualized application. Programmatically, i don't know how to access visio on the virtualized application installed on my computer. That's why, i wanna program visio without having its installed then i will be able to open generated visio files trough the virtualized application
It might not be exactly what you are looking for, but the following article should get you started.

Creating VISIO Organigrams using C#

Hope it helps.
 
Share this answer
 
Comments
orélle 26-Jun-14 9:18am    
Thank for your suggestion, but this needs Microsoft Office Visio to be installed on the machine where the c# code is running!
I need to do the same but without Microsoft Visio installed on the server running my code.
hypermellow 26-Jun-14 10:16am    
It does?
I thought using the referenced Interop assemblies (Microsoft.Office.Interop.Visio.Application()) removed the need for the program to be installed.
orélle 26-Jun-14 10:20am    
Have you try to run the code using that reference without Visio Soft installed? If not try, an exception will raise telling roughfully that you need to install visio.
Thanks
hypermellow 26-Jun-14 10:41am    
Yup, your correct ... the projects in the linked article build successfully (once you have the visio sdk installed and interops referenced), but throws an exception when you try to run it.
Apologies for the duff steer!
orélle 16-Sep-14 10:01am    
In my case i have Visio installed on App-v and running on my local machine.
Any idea on how to get the running instance of Visio in my c# code running on my local machine.
On my local machine i see in the list of process visio.exe.

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