gw_logo_08.gif (1982 bytes) 
Last edit: 05-03-17 Graham Wideman

Visio + Delphi

Code Structure: Basic Controller Functions
Article created: 99-02-02

In A Nutshell...

The diagram below summarizes the structure of "Your Application" and the provided GWVisio_Controller unit, with respect to the basic functions needed to control Visio.

DelphiVisio_01.gif (7671 bytes)

1. Your Application initializes by calling the Visio_Controller.Connect function, which retrieves (via the Windows OLE mechanism) a reference to a Visio IVApplication object.   This can be an already running instance of Visio, or you can have Connect launch Visio if it's not running.

2. At this stage, Visio_Controller.Application has been set to point to Visio, making all Visio's objects reachable.

3. So, Your Application can now access Visio's objects and their properties and methods.

4. To clean up, call Disconnect.

Note that Your Application is able to refer to Visio's objects etc by virtue of including the Visio_TLB.pas unit.  See the Installation page for details on the simple steps for creating this.


Go to:  gw_logo_08.gif (1982 bytes) Up to: [Visio]  [GWVisio Demo for Delphi]