To remove the grid lines from within a table in the RTF destination, specify the style attribute RULES=NONE along with BACKGROUND=_undef_. Use the style attribute FRAME=VOID within the style element Table to remove the borders surrounding the table.
To remove the shading from the column headers and row headers, add the BACKGROUND=_undef_ attribute in the style elements Header and Rowheader, respectively.
proc template;
define style styles.test;
parent=styles.rtf;
class Table /
background=_undef_
Rules=none
Frame=void;
class header , rowheader /
background=_undef_;
end;
run;
ods rtf body='noshading_nogridlines.rtf' style=styles.test;
ods noptitle;
proc freq data=sashelp.class;
title 'Remove gridlines and row/header shading from RTF tables';
run;
ods rtf close;
Output