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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.