Hi,
I am not able to create the underline under the 'Characteristics" header in the below Image. Can some body please tell me what I am doing wrong using the code '^R/RTF'\brdrb\brdrs' or is there another alternative to create these underlines. Thank you.
options orientation = landscape errors = 2 missing = ' ' nofmterr ls = 175 validvarname = upcase
ods escapechar = '^';
ods results on;
ods _all_ close;
ods rtf file = "xx.rtf" style = trtf_style;
proc report data =SAShelp.class ls = 145 ps = 55 split = "?" headline center missing formchar(2) = '_'
style(header)=[asis=on just=c /*fontweight=bold*/] style=[borderwidth=.2pt cellspacing=0.1pt cellpadding=0pt];
** titles **;
** report **;
COLUMN ("^R/RTF'\brdrb\brdrs '" Name
("characterstics ^R/RTF'\brdrb\brdrs '" age height));
define name / order = internal style(header) = [just=l] style(column) = [just=l cellwidth=45.0% asis=on] id"name" ;
define age / order = internal style(header) = [just=c] style(column) = [just=c cellwidth=7.0% asis=on] "age" ;
define height / order = internal style(header) = [just=c] style(column) = [just=c cellwidth=8.5% asis=on] "height" ;
ods rtf close;
ods listing close;
ods _all_ close;
I runed your code and get no problem .
Alternative way is using STYLE statement.
COLUMN ( Name ("^S={borderbottomcolor=black borderbottomwidth=2} characterstics " age height));
I runed your code and get no problem .
Alternative way is using STYLE statement.
COLUMN ( Name ("^S={borderbottomcolor=black borderbottomwidth=2} characterstics " age height));
Thanks. Your code worked for some reason my word file not showing underline when I used the 'RTF..." code. Thanks again.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.