DanielKSmith
Programmer
Hello,
I am trying to capture the Preview Picture of a Visio file to use as a thumbnail. I am using VB.NET to start and manipulate Visio 2002. So far I've discovered the following but I don't have the experience (brains!) to put it all together.
(Data from this Url, use all of it, link may be truncated,
The code that I've tried using is:
Which doesn't work because IPictureDisp is an interface not an object. Therefore it seems to I need to create an object that implements the IPictureDisp interface in order to then use the PreviewPicture property of the document object.
If anyone has any advice or tips connected this problem I'd be extremely grateful.
Thanks in advance,
Daniel Smith
I am trying to capture the Preview Picture of a Visio file to use as a thumbnail. I am using VB.NET to start and manipulate Visio 2002. So far I've discovered the following but I don't have the experience (brains!) to put it all together.
Code:
objRet = object.PreviewPicture
object.PreviewPicture = objExpression
objRet - An IPictureDisp object that represents current preview picture.
object - Required. An expression that returns a Document object.
objExpression - Required. An IPictureDisp object that represents the new preview picture.
The code that I've tried using is:
Code:
Dim prwObj As stdole.IPictureDisp
prwObj = docObj.PreviewPicture
If anyone has any advice or tips connected this problem I'd be extremely grateful.
Thanks in advance,
Daniel Smith