sas ods - Is it possible to import a PNG file into SAS to include in RTF output? -


i have png files created outside of sas include in rtf file output sas using ods. possible use sas this? internet searches turning lot of irrelevant results.

ods rtf: basics , beyond, relevant. here's example of doing in body text not using title.

ods rtf file="c:\temp\test.rtf" startpage=never; ods escapechar='^'; proc print data=sashelp.class; run; ods text='^s={preimage="c:\temp\sgplot.jpeg" just=c}'; proc print data=sashelp.class; run; ods rtf close; 

that's using random sgplot had laying around, of course can use whatever prefer. added startpage=never have put things on same page - of course that's optional (otherwise it'll put image on own page in example).

the important thing ods text (which puts text, normally), ods escapechar (which sets ^ escape character), , ^s={ } how insert styles , similar things in rtf (and other destinations). use preimage means put image before next bit (the text, blank here). have put in title statement, rather ods text, if that's want image.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -