visDeleteNoContainerMembers=4 – do not delete unselected members of containers or visDeleteNoAssociatedCallouts=8 – do not delete unselected callouts that are associated with shapes
Visio 2007: More on Customizing Data Graphic Items: Icon Sets Shows constructing and icon set including what is required in the ShapeSheet. Building Custom Data Graphics for Visio 2007 A very good article by Mark Nelson on creating and customizing data graphics. Several good examples and specific how to do it! Customizing Data Graphics Provides good insight on why trying to apply formats to data graphics through the user interface gives unexpected results. The author also tells you how to solve the problem. Custom Formulas in Data Graphics Nice example of creating a custom formula in a data graphic About Displaying Data Graphically
The second time the Add method is used the DataConnection object previously created is passed as the parameter to the Add method. This creates another DataRecordset from the same data in ORGDATA.xls. Set vsoDataRecordsetTwo = ActiveDocument.DataRecordsets.Add( _ vsoDataRecordset.DataConnection.ID, _ strCommand, 0, "Org Data") Tip: DataRecordsets.AddFromConnectionFile Creating a DataRecordset from an Office Database Connection file (.odc) is done with the AddFromConnectionFile method of the DataRecordsets object. If an .odc file exists pass the path of the .odc file in the parameter of the method similar to the code presented below. Public Sub AddFromConnectionFile_Example() 'Create a DataRecordset from an .odc file using the 'AddFromConnectionFile method Dim strFile As String Dim strName As String Dim vsoDataRecordset As Visio.DataRecordset strFile = "C:\Documents and Settings\System Admin\My Documents\" & _ "My Data Sources\Northwind Employees.odc"
Lesson 1: / Overview The Microsoft® Office Visio® 2010 Software Development Kit (SDK) contains the latest documentation, samples, header files, libraries, and tools that you need to develop custom solutions for Microsoft Office Visio 2010. Visio SDK 2010 Contents To open the Visio 2010 SDK, click Start > All Programs > 2010 Microsoft Office Developer Resources > Microsoft Office Visio 2010 SDK. The 2010 SDK includes: Microsoft Office Visio Code Samples Library. A database of Visio code samples. In the Code Samples Library, you can select a code item from the tree-view Explorer window, or you can search and select the desired code item from the Search Results tab. You can use the Code Samples Library to view and copy many reusable classes, functions, and procedures. To open the Code Samples Library, the Start button, point to Microsoft Office 2010 Developer Resources, then point to Microsoft Office Visio 2010 SDK, and then click Microsoft Office Visio Code Samples Library. Sample applications. The provided sample applications can be used to experiment and to become acquainted with features. These sample applications are written both to demonstrate aspects of developing on the Visio platform and to be used as a starting point for your custom applications. Tools. Customization and extensibility tools are provided to increase your productivity and reduce development time. These tools include the Persistent Events, Print ShapeSheet, Solution Publishing, and Event Monitor tools.