Chapter 27, Programming Visio with Visual Basic

Chapter 27, Programming Visio with Visual Basic

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Earlier chapters in Developing Microsoft Visio Solutions focus on writing programs in the Microsoft® Visual Basic® for Applications (VBA) development environment within Microsoft® Visio®. This chapter focuses on specific issues related to writing external programs to control Visio using the Microsoft® Visual Basic® development environment.

For details about the Visio object model, which represents the objects, properties, and methods that the Visio engine exposes through Automation, see Chapter 14, Automation and the Visio Object Model.

In this chapter…

Getting a Visio Instance

Creating a Visio Document

Handling Errors in Visual Basic

Interpreting the Command String Visio Sends to Your Program

Using the Visio Type Library in Visual Basic Projects