SAS Office Analytics, SAS Add-In for Microsoft Office, and other integrations

Writing to Word 2007 using DDE

Reply
N/A
Posts: 0

Writing to Word 2007 using DDE

I have a SAS Macro that sends commands to Word that reads a SAS output file, Formats, Prints and Saves it.

It uses DDE to link to Word using the following statement:
filename wordcmd dde "winword|system";

This worked fine when our environment was Word 2003.

We recently installed Word 2007 and now I'm getting the following message:
ERROR: Physical file does not exist, winword|system

Can anyone help me modify the statement so that it works in Word 2007?
N/A
Posts: 0

Re: Writing to Word 2007 using DDE

I am also facing the same issue. SAS suggested a hot fix, but that too didnt work.

240 filename testit dde 'winword|"c:\temp\testing.doc"
241 !MARK' notab;
242
243 data _null_;
244 file testit;
245 put 'This is a test.';
246 run;

ERROR: Physical file does not exist, winword|"c:\temp\testing.doc" !MARK.
Ask a Question
Discussion stats
  • 1 reply
  • 301 views
  • 0 likes
  • 1 in conversation