The SAS Output Delivery System and reporting techniques

Inline CELLHEIGHT useage for RTF?

Reply
Contributor NWV
Contributor
Posts: 29

Inline CELLHEIGHT useage for RTF?

Hello,

I have a simple ods rtf output statement:

ods rtf file="temp.rtf" style=seasideprinter SASDATE ;
proc print data=d1 noobs ;
var ID TestDate ;
Title "Data Listing";
run;
ods rtf close;

In the output RTF file, I want the row heighth to be taller than the standard row height for the template (the person I'm giving it to needs room to make notes in the cells). I would prefer not to go through proc template to make this happen. I've tried inline ods with escape characters and the CELLHEIGHT ods style keyword, etc. with no luck. I thought I would ask if it is even possible to do this in an inline fashion, or if I will have to go through proc template.

Thank you,

Nicole
Super Contributor
Posts: 273

Re: Inline CELLHEIGHT useage for RTF?

Nicole,
Did you really try this already?
[pre]
ods rtf file="d:\tabsas\lero.rtf";
proc print data=a.classe style(obs)={cellpadding=0 fontsize=6pt};
var datef/style(column)={cellpadding=0 fontsize=6pt};
run;
ods rtf close;
[/pre]

Andre
SAS Super FREQ
Posts: 8,868

Re: Inline CELLHEIGHT useage for RTF?

And in addition to increasing cellpadding, just using the CELLHEIGHT attribute works for me.

cynthia
[pre]
ods rtf file="c:\temp\cellheight.rtf" style=seasideprinter SASDATE ;
proc print data=sashelp.class(obs=3) noobs
style(data)={cellheight=2in};
var name age height weight ;
Title "Data Listing";
run;
ods rtf close;
[/pre]
Contributor NWV
Contributor
Posts: 29

Re: Inline CELLHEIGHT useage for RTF?

Thank you both for your answers. Cynthis--yours is what I was looking for--just couldn't get the syntax right. It seemed like there should be a way to make that simple change without going through proc template--and there is. It worked for me. Thank you!
Nicole
Ask a Question
Discussion stats
  • 3 replies
  • 199 views
  • 0 likes
  • 3 in conversation