Is there a way of getting hold of the preview picture of a Visio
I've looked at one or two ways, there is a PreviewPicture property of
a Visio.document which is a stdole.IPictureDisp type. I didn't seem to
be able to use this though.
A long-winded way would be to convert a VSD file into a VDX file and
then extract the PreviewPicture element. The resulting Hex would then
have to be converted to binary and then saved as a .gif file. But
surely this laborious process would be unnecessary if the
PreviewPicture property could be made to work?
The reason for this question, is that on the project I'm working on we
are displaying pictures of Visio Documents. These previews are
currently .gif files where we have exported the VSD into .gif format
and then constrained the image within a PictureBox on a VB.NET form.
Whilst this works it would be interesting to see if we could use the
PreviewPicture and it should have a nice knock-on effect of being much
smaller in size.
Advice and ideas more than welcome.