How to Call a Visio Macro From C# Application

S

Shashi_1975

Hi,

Can anybody let me know how to call a visio macro from C# windows
application.
I wrote a macro in visio and i want to call the macro on button click from
C# application.
Code snippet would be appreciated.

Thanks,
Shashi
 
M

Mai-lan [MS]

You could use the Visio 2003 ActiveX control. You'll have to redo your macro
in your C# application code but that should be fairly straight-forward.
Embed it in your winform, and on the button click, call into the Visio
automation model. There is a sample in the Visio 2003 SDK that demonstrates
how to use the control in a C# winform.

Thanks,
Mai-lan
Microsoft Corp.
 

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