How to create thumbnail of .vsd file

B

Bony Baba

Hi

is there any VISIO API by which we create thumbnail of a Visio drawing (.vsd
file) , just like as the window explorer show s.
 
J

John Goldsmith

Hello Bony,

If you're talking about the file's icon then you need to look at the
Document PreviewPicture property and CopyPreviewPicture method. David
Parker has some code for this in his book:
http://www.visualizinginformation.com/

If you just want to create a thumbnail for some other general purpose then
try the Export methods of the Page or Selection objects or, of course, Save
As... / .jpg which does basically the same thing.

Hope that helps.

Best regards

John


John Goldsmith
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
 
B

Bony Baba

Hi john

Actually i want to save the thumbnail as a picture, after that ia can show
it in the picture box in the form.
By using PreviewPicture , i am unable to save as a picture.
 
C

Chris Roth [MVP]

Hi Guys,

A quick note about previews in Visio: there's a comment in the help files
about IPictDisp being used by the preview methods. If you are running
in-process with Visio (ie: a COM Add-in *I think*) you can directly get
these images without exporting files. But the IPictDisp can't be marshalled,
say, to .EXEs.

So if you're running in-process, you might be able directly get the
images...

--
Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top