Chapter 20, Integrating Data with a Visio Solution

Chapter 20, Integrating Data with a Visio Solution

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.

If you're developing a solution that combines Microsoft® Visio® drawings with another source of data, such as a database, you'll be interested in the ways you can associate data with shapes and pages. Using custom properties and user-defined ShapeSheet® cells, you can associate data with a shape; using a unique ID provides a way to establish a persistent link between a shape and external data associated with it. In addition, you can store data for documents, pages, masters, shortcuts, shapes, and text using a variety of different Visio properties.

This chapter also provides two code samples for extracting data from a drawing and creating a drawing from external data, two of the most common ways solution developers work with Visio and data from other applications. The two samples introduce some general approaches for integrating data with a Visio solution and are intended to give you a sense of the range of possible solutions you might create.

In this chapter…

Associating Data with Shapes Using Automation

Visio Properties for Storing and Retrieving Data

Storing and Retrieving XML Data in Your Solutions

Writing Code to Extract Data from a Visio Drawing

Writing Code to Create a Visio Drawing from Data

Integrating a Visio Solution with a Database