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