So, you've created a stencil and template for Visio and now you've also got it installed in Visio by creating an installer (.msi) for it. The problem is that the template just shows in Visio as a blank sheet. How do you get the images that appear with Microsoft's built-in templates?
|You want something like this ...
||but all you get is this ...
Right, the first thing you need to do is start Visio, go to the Options -> Advanced dialog, and ensure that
"Ensure all settings put in Windows registry" is set, close Visio,
start the registry editor, and go to:
where xx is the current version of Visio,
and change both values
ThumbnailDetailMaxSize = 5000000
ThumbnailDraftMaxSize = 5000000
These values affect the quality of the image stored within the template.
Next you need to determine what image you want to add to the template, I've chosen:
Whether this is an image or part of another Visio diagram is unimportant, as long as you know how to copy/paste it or insert it into a diagram. The image I'm using is part of a Visio document that I can select/copy/paste.
Start Visio, then menu File -> Open, navigate to where the template (.vst or .vtx) is stored, select the file, and click Open.
Now find the document from where you want to paste your image, select and copy it. Now paste or insert it into the
open template and set its size and position. If you are working with templates for US and metric then its best to be comsistent with the
size and position.
Open the Document shapesheet (menu View -> Drawing Explorer Window, then right-click on the drawing name), set PreviewQuality=1 and PreviewScope=0 then save the document.
Now set LockPreview=TRUE, then close the shapesheet editor.
Select the image/shapes that you added and delete it/them. Now open the Document Stencil and delete all the surplus shapes added previously.
Save and close the template.
Now rebuild and run your installer, you should end up with this:
|In the gallery section you will see something like this ...
||and on the right-hand side you get this ...
Job done. Sweet!
P.S. These instructions are for Visio 2003/2007. If you have a later version of Visio using the ribbon the menu options will be different.
Best viewed in any web browser.
Copyright © 2002-2019 Paul Herber. All rights reserved.