14 - Automation and the Visio Object Model

3 4

Automation is the mechanism that enables you to extend the functionality of Microsoft Visio or to include the Visio engine as a graphics engine for your own program. With Automation, you can use the Visio engine to create or update drawings based on data from an external source, to read drawings and gather information from them, or simply to extend the behavior of a drawing with a Microsoft Visual Basic for Applications (VBA) macro.

This chapter describes Automation and the Visio object model—the objects that the Visio engine exposes through Automation. It shows how to access these objects from a program and briefly covers the VBA syntax for using Visio objects, properties, and methods, and includes some sample code.

For details about handling events in your program, see Chapter 21, Handling Visio Events.

For details about creating an external Microsoft Visual Basic program, see Chapter 27, Programming Visio with Visual Basic. For comparable information about C++ syntax, see Chapter 28, Programming Visio with C++.



Developing Microsoft Visio Solutions 2001
Developing Microsoft Visio Solutions (Pro-Documentation)
ISBN: 0735613532
EAN: 2147483647
Year: 2004
Pages: 180

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net