Hi, Don:
We showed destination-specific syntax similar to this in the ODS: The Basics and Beyond book:
[pre]
ods html path='.'(url=none)
file='kermitrocks2.html' style=sasweb;
ods rtf file='bigbirdrocks2.rtf';
title '^{DEST [HTML] ^{style
Kermit the Frog Rocks }}'
'^{DEST [RTF] ^{style[fontsize=20pt]Big Bird Rocks }}';
proc print data=sashelp.class(obs=3);
run;
ods _all_ close;
[/pre]
And, when you run this...the HTML file title has Kermit rocking in purple and the RTF file has Big Bird rocking in 20pt.
But, when I try this
[pre]
ods html path='.'(url=none)
file='kermitrocks3.html' style=sasweb;
ods tagsets.rtf file='bigbirdrocks3_new.rtf';
ods rtf file='bigbirdrocks3_orig.rtf';
title '^{DEST [HTML] ^{style[preimage="kermit2.jpg"] Kermit the Frog Rocks }}'
'^{DEST [RTF] ^{style[preimage="c:\temp\bigbird.jpg"] Big Bird Rocks }}';
proc print data=sashelp.class(obs=3);
run;
ods _all_ close;
[/pre]
I only get Kermit's picture in the HTML file. The image for Big Bird is not showing up in the "original" RTF file. However, in 9.2, I do get Big Bird's picture showing in the TAGSETS.RTF output file.
So you (sort of) have a solution for HTML and RTF if you use TAGSETS.RTF.
I ran out of Sesame Street characters to test with... but the new style syntax did not work for me for PDF, although the old style syntax did work for PDF.
[pre]
ods pdf file='bigbirdrocks_oldstyle.pdf';
title '^S={preimage="c:\temp\bigbird.jpg"} Big Bird Rocks';
proc print data=sashelp.class(obs=3);
run;
ods _all_ close;
[/pre]
I think that's because I remember something about {DEST} only working for markup destinations (like RTF and HTML). Even though this note:
http://support.sas.com/kb/37/077.html implies that the capability will work for PDF, the example they show in the full code tab only shows HTML and RTF.
You might want to check with Tech Support on this. I'm wondering whether there's a CSS way to specify the image or some other workaround. I suppose that having 3 separate invocations with 3 separate TITLE statements isn't going to work for your program design???
cynthia