Hi,
In Ods Layout and Ods Region, we can specify the border style using style={borderstyle=solid, bordercolor=blue}. This will produce the same solid blue border lines. But I want to have different border lines, for example, I only need the top border line, but not the left/right/bottom border lines. I tried using borderTopStyle/borderTopColor, but it does not work. It seems that the Top/Bottom/Left/Right style specification only works on a cell, but not on layout and region.
Is there any way to specify different border lines for layout and region area?
ps, my output will be in PDF file.
I tried using borderTopStyle/borderTopColor, but it does not work. I would expect that to work, basically set the other styles to white to have 'invisible' borders.
Please show what you've tried.
@qiaohao wrote:
Hi,
In Ods Layout and Ods Region, we can specify the border style using style={borderstyle=solid, bordercolor=blue}. This will produce the same solid blue border lines. But I want to have different border lines, for example, I only need the top border line, but not the left/right/bottom border lines. I tried using borderTopStyle/borderTopColor, but it does not work. It seems that the Top/Bottom/Left/Right style specification only works on a cell, but not on layout and region.
Is there any way to specify different border lines for layout and region area?
ps, my output will be in PDF file.
Here is what I tried:
ods _all_ close;
ods pdf file="test_borders.pdf";
ods layout start style={bordercolor=red borderstyle=solid borderwidth=1pt};
ods region x=1pct y=2pct;
proc print data=sashelp.cars(obs=10);
run;
ods layout end;
ods pdf close;
ods pdf file="test_borders2.pdf";
ods layout start style={borderleftcolor=red borderleftstyle=solid borderleftwidth=1pt};
ods region x=1pct y=2pct;
proc print data=sashelp.cars(obs=10);
run;
ods layout end;
ods pdf close;
The first output has red colored borders, but the second output does not have the intended left border.
Thanks!
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.