Creating data links to the shapes
Most of this chapter has dealt with importing data into the Visio document, and very little has been about actually linking the data to the shapes. More will be discussed in Chapter 9, Automating Structured Diagrams, but a few simple methods are introduced here. The beauty of having the
Document.DataRecordsets available in code is that it provides a consistent method for automating any data links to shapes, regardless of the origin of the data.
Linking data to shapes manually
The Visio user interface presents several methods for linking data to shapes. The first is to just drag a row from the External Data window onto an existing shape. This will just add the data to the shape, which is the technique that has been ...