469,283 Members | 2,297 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,283 developers. It's quick & easy.

Open a visio drawing file and in C# ?

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
Jul 21 '05 #1
2 6295
> 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
Jul 21 '05 #2
"Hai Ly Hoang" <No*****@Mail.com> wrote in message
news:el*************@TK2MSFTNGP10.phx.gbl...
Hi, Hello.
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 ?
Break this problem into two pieces.

1. Do what you want using COM. Visio can be exquisitely
controlled via its object model, exposed as COM interfaces.
You can use VBScript or JScript (EcmaScript?) to do so,
with a steady eye on the help for Visio's VBA programmers.

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.
Thank your very much ! You're welcome.
Hai

--
--Larry Brasfield
email: do***********************@hotmail.com
Above views may belong only to me.
Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Lee Newson | last post: by
1 post views Thread by Hai Ly Hoang | last post: by
reply views Thread by anonymous | last post: by
4 posts views Thread by jes | last post: by
reply views Thread by bsautner | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.