The SAS Output Delivery System and reporting techniques

Different formats in one line: ods pdf text

Reply
Contributor
Posts: 47

Different formats in one line: ods pdf text

Hi,

I have the following piece of code.

ods pdf text="~S={just=left cellwidth=1.6in background=CX4D7EBF foreground=black} ~mName:
~S={background=white foreground=black} Sachin";


I want to have a blue box around the "Name" part and no background on the "Sachin" part. I also need this to be in one line.

How would you go about doing this.

Thanks in advance,
Sachin
Super Contributor
Posts: 273

Re: Different formats in one line: ods pdf text

Posted in reply to SachinRuk
Sachin,
It seems that the ods pdf destination did not accept those specification
which is more adapted to html and by extension to rtf

Andre
Play further with

[pre]
ods escapechar="~";
ods listing close;
ods html file="d:\temp\encadre.htm";
ods rtf file="d:\temp\encadre.rtf";
ods pdf file="d:\temp\encadre.pdf";
proc print data=sashelp.class;run;
*ods pdf text="~S={just=left cellwidth=1.6in background=CX4D7EBF foreground=black} ~mName:
~S={background=white foreground=black} Sachin" ;
ods text="~S={bordercolor=black borderwidth=0.1in just=left cellwidth=1.6in cellheight=0.5in foreground=black} Name:
~S={bordercolor=black} Sachin"; run;
ods text="~{style[bordercolor=black frame=box rules=all borderwidth=0.3in just=left cellwidth=1.6in foreground=black] Name:}
~{style[bordercolor=black background=gray foreground=black] Sachin}";
run;
quit;
ods _all_ close;
ods listing;
[/pre]
Ask a Question
Discussion stats
  • 1 reply
  • 217 views
  • 0 likes
  • 2 in conversation