如何仅更改标题列的内部边框颜色?

时间:2019-04-09 10:19:30

标签: templates sas rtf ods

我想将一个表输出到RTF中,该表内部没有行,但标头单元格中有内部边框。另外,标题栏是彩色的。我知道如何更改所有单元格的边框颜色,但我不知道如何仅更改页眉的颜色。我需要用proc模板来做。现在我得到这张桌子:

enter image description here

但是我需要这样:

enter image description here

代码是:

proc template;
define style styles.new;
parent = Styles.Printer;

replace color_list /
'link' = blue 
'bgH' = cxFF8200 
'bgT' = white 
'bgD' = white 
'fg' = black
'bg' = white; 

replace Table from Output /
frame = hsides 
rules = groups 
cellpadding = 2pt 
cellspacing = 0.25pt 
borderwidth = 0.75pt 
background = color_list('bgt') ;

end;
run;
ods listing style=new;

有人可以告诉我如何更改代码以获取正确的输出吗? 谢谢!

1 个答案:

答案 0 :(得分:0)

您看到的白色柱头分隔线实际上并未绘制。

更改为cellspacing=1in,您会发现“线”实际上是间距的伪像,并且与整个背景相对应。我认为没有一种简单的方法可以使标头单元格边框不同于数据单元格边框。

相关问题