VB app automates Visio (VBAutomateVisio)

The VBAutomateWord example demonstrates how to write VB code to create a Microsoft Visio instance

VB.NET (50.4 KB)
 
 
 
 
 
3 Star
(1)
9,183 times
Add to favorites
4/5/2011
E-mail Twitter del.icio.us Digg Facebook
========================================================================
    OFFICE Automation : VBAutomateVisio Project Overview
========================================================================

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

The VBAutomateVisio 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

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