Open a visio drawing file and in C# ?

H

Hai Ly Hoang

Hi,

I want to open a visio drawing file (.vsd) from hardisk and get the list of
all shape in that file ? How to do that ?

Thank your very much !

Hai
 
M

Markus Breugst

2. If you want to do the same from C#, you will make the
same calls, just in slightly different form. There are plenty of
application notes on using COM objects from C#, so this is
not the place to explain that.

However, this could be right place to give some concrete references:

Microsoft provides the complete documentation of the Visio API. Have a look
here:
http://www.msdn.microsoft.com/library/
Inside the menu tree, go to
- Office Solutions Development
- Microsoft Office 2003 (or XP)
- Visio 2003 (or 2002)
- SDK Documentation
Somewhere below you will find the Automation Reference with a description of
the complete programming interface of Visio.

Example: The method "OpenEx" opens an existing Visio file.

Most examples are provided in VBA, but it should not be too difficult to
translate them to C#.

Best regards,
Markus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top