J
JB
I am developing an app that uses automation to launch Visio and then stores
the saved data in a database. This involves COM, OleCreate, storage files,
etc. Along with saving the complete document data, I also want to save the
preview pictures separately for use in a drawing selection list. Looking at
the Visio object model, I find a reference to the PreviewPicture property of
the document object but this is only available for in-proc processes which is
not the case here. What happens is that if I QI for IDispatch* on the
document and then do a propertyget for "PreviewPicture", I get back a null
interface. How do I go about accessing the preview picture and saving it to
a file?
Even if I manage to get IPictureDisp, that still doesn't solve the problem
of saving to a file because IPictureDisp unlike IPicture does not have the
SaveToFile method.
the saved data in a database. This involves COM, OleCreate, storage files,
etc. Along with saving the complete document data, I also want to save the
preview pictures separately for use in a drawing selection list. Looking at
the Visio object model, I find a reference to the PreviewPicture property of
the document object but this is only available for in-proc processes which is
not the case here. What happens is that if I QI for IDispatch* on the
document and then do a propertyget for "PreviewPicture", I get back a null
interface. How do I go about accessing the preview picture and saving it to
a file?
Even if I manage to get IPictureDisp, that still doesn't solve the problem
of saving to a file because IPictureDisp unlike IPicture does not have the
SaveToFile method.