Managing Visio data in host application

S

Saran

Hi
We are thinking of using Visio Drawing Control (Visio 2003) in a .Net WinForms application. Ideally, we would like to use Visio control for presentation purpose only and have the host application deal with data storage.
The host application would maintain the application specific data in an XML file. We would like to have minimal visio data required to save and restore a drawing as part of this application specific XML file. For eg the application specific XML which contains visio data could look like below

<ApplicationSpecificRoot><Entity Name="Entity1"><ApplicationSpecificEntityData
Lot of Dat
</ApplicationSpecificEntityData><VisioRepresntationOfEntity
Visio data to restore the shape representing the application specific entity. This needs to include the position, geometry information of the shape..
</VisioRepresentationOfEntity></Entity></ApplicationSpecificRoot

Hope I have stated my need clearly.

1. Is it possible to do it? Or should I have application specific data as part of a vsd file
2. Is there any sample application which does something like this?
3. Assume I have a drawing with just 2 shapes (for simplicity take 2 "Process" rectangle shapes of different sizes) connected via a connector. If I have to save it as part of my XML file and later open my XML file to display the drawing, what would be the minimum set of Visio drawing data that I need to save

I am beginer, so any help would be greatly appreaciated.

Thanks
Saran.
 
A

Al Edlund

I'd start by downloading the Office XML schemas from the download center.
They have the current version for Visio

http://www.microsoft.com/downloads/...52-3547-420a-a412-00a2662442d9&DisplayLang=en

The xml reference for visio is also included in the V2003SDK.
Al

Saran said:
Hi,
We are thinking of using Visio Drawing Control (Visio 2003) in a
..Net WinForms application. Ideally, we would like to use Visio control for
presentation purpose only and have the host application deal with data
storage.
The host application would maintain the application specific data
in an XML file. We would like to have minimal visio data required to save
and restore a drawing as part of this application specific XML file. For eg
the application specific XML which contains visio data could look like
below.
<ApplicationSpecificRoot><Entity
Name="Entity1"> said:
Lot of Data
Visio data to restore the shape
representing the application specific entity. This needs to include the
position, geometry information of the shape..
Hope I have stated my need clearly.

1. Is it possible to do it? Or should I have application specific data as part of a vsd file?
2. Is there any sample application which does something like this?
3. Assume I have a drawing with just 2 shapes (for simplicity
take 2 "Process" rectangle shapes of different sizes) connected via a
connector. If I have to save it as part of my XML file and later open my XML
file to display the drawing, what would be the minimum set of Visio drawing
data that I need to save?
 

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