Hi,
I am trying to insert a text into the table of a word document using SAS and DDE.say, one of the cell in the table has text "version:". I have a bookmark right after the : and truing to insert some text here. But, it is not working. It is working if I am trying to insert text at bookmarks outside the table.
Does any one know the easiest method to insert text into cells of a table.Here is the code that I am using.
options noxwait noxsync;
x 'c:\msoffice\winword\winword.exe';
filename ws dde 'winword|system';
filename name dde 'winword|C:\Documents and Settings\......\t.doc!name';
filename location dde 'winword|C:\Documents and Settings\......\t.doc!address';
filename prod dde 'winword|C:\Documents and Settings\......\t.doc!tab';
data _null_;
x=sleep(10);
file ws;
put '[FileOpen .Name = "C:\Documents and Settings\.....\t.doc"]';
stop;
run;
data _null_;
/*file name notab;
put 'Alice';
file location notab;
put 'Wonderland';*/
file prod notab;
put "ente";
stop;
run;
data _null_;
file ws;
put '[FilePrint]';
put '[FileSave]';
put '[FileExit 2]';
stop;
run;
Thanks,
Eguva
I am trying to insert a text into the table of a word document using SAS and DDE.say, one of the cell in the table has text "version:". I have a bookmark right after the : and truing to insert some text here. But, it is not working. It is working if I am trying to insert text at bookmarks outside the table.
Does any one know the easiest method to insert text into cells of a table.Here is the code that I am using.
options noxwait noxsync;
x 'c:\msoffice\winword\winword.exe';
filename ws dde 'winword|system';
filename name dde 'winword|C:\Documents and Settings\......\t.doc!name';
filename location dde 'winword|C:\Documents and Settings\......\t.doc!address';
filename prod dde 'winword|C:\Documents and Settings\......\t.doc!tab';
data _null_;
x=sleep(10);
file ws;
put '[FileOpen .Name = "C:\Documents and Settings\.....\t.doc"]';
stop;
run;
data _null_;
/*file name notab;
put 'Alice';
file location notab;
put 'Wonderland';*/
file prod notab;
put "ente";
stop;
run;
data _null_;
file ws;
put '[FilePrint]';
put '[FileSave]';
put '[FileExit 2]';
stop;
run;
Thanks,
Eguva