BookmarkSubscribeRSS Feed
qiaohao
Calcite | Level 5

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.

 

2 REPLIES 2
Reeza
Super User

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.

 


 

qiaohao
Calcite | Level 5

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!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 2578 views
  • 0 likes
  • 2 in conversation