473,386 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 6543
> 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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.