![]() |
Visio 2003 Developer's Survival Pack Tools and Samples |
Chapter 32: Document Preview (C#) | |
![]() ![]() |
Folder | Description |
DocPreview\bin\Debug\DocPreview.exe | Program which can display the preview picture of a Visio document. |
PreviewPicTest.vsd | Sample Visio document with a nice preview picture |
DocPreview.sln | Main solution file for this sample. Double-click on this to load solution (and its one project) into Visual Studio.NET |
Other files | The many files pertaining to a VS.NET solution. |
This particular application requires the references below. If you need to create references to COM dlls or type libraries from scratch, use Solution Explorer > References > right-click > Add Reference. This should not be necessary for the sample application as prepared.
Requirement | Description |
VisShe.dll | A dll supplied with Visio that provides a service to other apps for reading the preview picture from a Visio document. This dll is installed with Visio, and is needed both at design time and runtime. Effectively this means that the Visio preview picture can only be viewed if Visio is installed. |
Type library for interfaces: IPersistFile, IExtractImage
|
One way to fulfill this requirement is to obtain the "OLE
Automation" (stdole.tlb) type library created by Eduardo Morcillo, and
available here: Edanmo's VB Page
> Type Libraries. To install, use command: |
VB version of this sample.
Article Created: 2003-09-01 Last edit: Last edit:
03-10-14 Graham
Wideman
Go to:
DiagramAntics.com