Insert a picture into word using DDE (Dynamic Data Exchange)
I'm working with a template document and using DDE in SAS. I have created filename for the bookmark of the picture, that is a textbox where I can insert the picture in. However I can't insert the picture and neither SAS nor Word giving me an error. Could some one help me out? Here are the SAS codes. I also input some data into other bookmarks of the document and it worked. Any help would be appreciated.
filename pic dde 'winword|C:\Users\survey.doc!pic' ;
data _null_;
put '[EndOfDocument]';
put '[InsertPara]';
put '[InsertPicture.Name="C:\Users\picture.jpg"]';
put '[CharLeft 1,1]';
put '[FormatPicture.ScaleX="100%",.ScaleY="100%"]';
put '[CharRight 1,0]';
put '[InsertPara]';
run;
|