A
Ahmad Jalil Qarshi
hi!
i am working in VC7. I want to add a custom object (Image+Data) into the MS
Word Document. The Data will be something related to the image i.e name of
the image, format details etc and will be linked to the image shown on the
word document. Further more the data will be hidden. i.e. not visible to the
viewer of the document.
i have added the image into the Word document using the following code.
VARIANT var1; VariantInit(&var1);
VARIANT var2; VariantInit(&var2);
var1.vt = VT_BOOL; var1.boolVal = true; //SaveWithDocument
var2.vt = VT_BOOL; var2.boolVal = false; //LinkToFile
spSelect->InlineShapes->AddPicture("C:\\Documents and
Settings\\ahmadjalil\\My Documents\\My Pictures\\Sample.jpg",&var2,&var1);
VariantClear(&var1); VariantClear(&var2);
where spSelect is smart pointer of type Selection Object.
if some one knows about that. Please help me.
Thanks in advance.
Ahmad Jalil Qarshi
i am working in VC7. I want to add a custom object (Image+Data) into the MS
Word Document. The Data will be something related to the image i.e name of
the image, format details etc and will be linked to the image shown on the
word document. Further more the data will be hidden. i.e. not visible to the
viewer of the document.
i have added the image into the Word document using the following code.
VARIANT var1; VariantInit(&var1);
VARIANT var2; VariantInit(&var2);
var1.vt = VT_BOOL; var1.boolVal = true; //SaveWithDocument
var2.vt = VT_BOOL; var2.boolVal = false; //LinkToFile
spSelect->InlineShapes->AddPicture("C:\\Documents and
Settings\\ahmadjalil\\My Documents\\My Pictures\\Sample.jpg",&var2,&var1);
VariantClear(&var1); VariantClear(&var2);
where spSelect is smart pointer of type Selection Object.
if some one knows about that. Please help me.
Thanks in advance.
Ahmad Jalil Qarshi