472,791 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,791 software developers and data experts.

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 6498
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Lee Newson | last post by:
Hi, I have a Windows Application that utilises the Visio Drawing Control. I have written this app in VB.NET. When i dropped the control onto a form the file AxInterop.VisOcx.dll was created. ...
1
by: Hai Ly Hoang | last post by:
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
0
by: anonymous | last post by:
Hi all, I am using Visio drawing control (Visio automation object model) in my asp.net web page. I have a code which creates a DrawingControlClass object in my server code ...
4
by: jes | last post by:
hi, i have an open & delete btn. onclick of open as visio drawing opens in visio & onclick of delete the drawing gets deleted from the filesystem. The problem is i am unable to perform these...
1
by: Ashley Bryant | last post by:
I have a web application built in ASP 3.0 that uses data from SQL Server 2000 to generate Visio 2002 drawings, save the drawings to a file on the webserver and then send that file to the browser. ...
0
by: bsautner | last post by:
Trying very hard to develop an "activex" - i.e com visible control for use inside a visio drawing. Using VS 2005 Team Suite and i can create a windows user control that can be added to a windows...
0
by: gkelly | last post by:
I looked a looked for an answer to this question and I have not been able to find anything. ------------------------------------------------------------------- using MSVisio =...
14
by: joemo2003 | last post by:
I created a button in excel sheet, and that button need to browse and open a visio drawing. I try two ways to do it, but either way work. can anyone help? First way: Private Sub...
2
by: poonamsharma | last post by:
Hi, I want to open a already exist visio drawing through VB language. I create a form inside Microsoft Access and put a command button over it .I want that while clicking on it ,it opens the visio...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.