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!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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