C# app automates Visio (CSAutomateVisio)

The CSAutomateVisio example demonstrates how to write C# code to create a Microsoft Visio instance

C# (49.0 KB)
 
 
 
 
 
(0)
9,861 times
Add to favorites
4/5/2011
E-mail Twitter del.icio.us Digg Facebook
========================================================================
    OFFICE Automation : CSAutomateVisio Project Overview
========================================================================

/////////////////////////////////////////////////////////////////////////////
Use:

The CSAutomateVisio provides the examples on how to automate Office 
Visio 2007 via Visio Object Model.


/////////////////////////////////////////////////////////////////////////////
Creation:

1. Add Reference to Microsoft Visio 12.0 Type Library

2. Get Visio Application object via Marshal.GetActiveObject or by creating
   a new Visio application instance.

3. Add a new document and insert some drawing into it.

4. Save new added document according to user's input.

5. Release the COM objects.

/////////////////////////////////////////////////////////////////////////////
References:

Visio Object Model Overveiw
http://msdn.microsoft.com/en-us/library/cc160740.aspx

/////////////////////////////////////////////////////////////////////////////