The SAS Output Delivery System and reporting techniques

ODS Layout different border lines

Reply
New Contributor
Posts: 2

ODS Layout different border lines

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.

 

Super User
Posts: 23,937

Re: ODS Layout different border lines

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.

 


 

New Contributor
Posts: 2

Re: ODS Layout different border lines

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!

Ask a Question
Discussion stats
  • 2 replies
  • 207 views
  • 0 likes
  • 2 in conversation