ODS RTF: The Basics And Beyond, is certainly relevant. Here's an example of doing this in body text not using the title.
ods rtf file="c:empest.rtf" startpage=never;
ods escapechar='^';
proc print data=sashelp.class;
run;
ods text='^S={preimage="C:empSGPlot.jpeg" just=c}';
proc print data=sashelp.class;
run;
ods rtf close;
That's using a random SGPLOT I had laying around, but of course you can use whatever you prefer. I added startpage=never
to have it put things on the same page - but of course that's optional (otherwise it'll put the image on its own page in my example).
The important thing is the ods text
(which puts some text, normally), the ods escapechar
(which sets ^
to be the escape character), and then ^S={ }
which is how you insert styles and similar things in RTF (and other destinations). Then we just use preimage
which means put an image before the next bit (the text, which is blank here). You could just as easily have put this in the title
statement, rather than ods text
, if that's where you want the image.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…