Use Visio as chart tool in widows app

M

moondaddy

I have a .net windows app where I need to dynamically display flow charts
from data base data. The objects in the flow chart represent other models
where if the user double clicks on an shape, another model opens up thus
allowing for a drill-down effect. Is this possible using Visio in a windows
app, or can someone give a recommendation on what tool to use?

Thanks.
 
C

Chris Roth [ Visio MVP ]

Visio 2003 has an ActiveX control component that lets you integrate Visio as
part of an application. Users of your application would have to have
licensed Visios installed on their machines (think of Office development -
Word, Excel, etc)

Visio has a full automation model that lets you create drawing on the fly,
from data of your choice. You need to interpret the data yourself and tell
Visio where to place shapes. The neat thing about Visio is that you can
design all the shapes first, or use the built-in shapes that ship with
Visio, so your code simply needs to place the shapes, set text and perhaps
data-properties, connect the things, then call "layout". Shazam! You have a
generated diagram.

Here are some links to get your started:

http://msdn.microsoft.com/library/d.../odc_vsprogrammingwithvisioactivexcontrol.asp

and download the Visio 2003 SDK as well:

http://www.microsoft.com/downloads/...bd-b0bb-46e7-936a-b8539898d44d&displaylang=en

It has samples in VB.NET, C#, C++, a code library, and better help files,
among other things.

--

Hope this helps,

Chris Roth
Visio MVP
 

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