Follow the instructions in Chapter 8, Publishing Validation Rules and Diagrams, to add a title block, select a theme, and insert the page name field into the title shape in the background page. Then save your document as a template to DFMD_M.vstm
, if it is metric units, or DFMD_U.vstm
, if it is US units.
Test your template by creating a new document from it, and then resize the first page to a square.
Then arrange some of the DFD shapes on the page, as this page will be used as the preview image...
In Visual Studio 2012, create a new Installed | Templates | WiX Toolset | WiX Setup Project for Visio, called, say, DataFlowModelDiagramTemplate
.
Add your new template to the Application Folder. Then follow the instructions in Chapter 8, Publishing Validation Rules and Diagrams, for enhancing the properties of the deployment package.
Note that I also updated the Product.Name, Manufacturer, and so on to suit my requirements as shown in the following code snippet:
Your company may not allow you to enable VBA macros from untrusted publishers because you might have a more strict policy in force. The Visio Trust Center provides the option to disable all macros except those from trusted publishers.
If this is the case, then you can invest in a digital signature that you can apply to your VBA project.
If you do apply a digital certificate, and the publisher has not yet been trusted, then you will be prompted again; however, this time the message is different and you have the option to Trust all from publisher.