11-21-2016 03:46 PM
I would like to use proc sgplot to create a chart, and then embed the resulting graphic into a microsoft word document. Is there code that will automate this process (i.e., so I don't have to manually open up Microsoft word to enter the chart?).
Thanks for your help!
11-21-2016 03:50 PM
ods rtf file='c:/path/yourdocumentname.rtf' ;
<your sgplot goes here, actually any other procedure output you want>
ods rtf close;
creates RTF that Word can open.
You may need to specify a style on the ODS RTF statement as the default for RTF may be gray scale, something like style=HTMLBlue or whatever.