BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Dave25
Quartz | Level 8

any suggestions how I put a frame/border around the entire page, in an ods pdf output?

(I've got a number of layout pieces, and would like them all enclosed in a single frame - what the boss wants)

thanks,

Dave

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
HB
Barite | Level 11 HB
Barite | Level 11

I would have guessed BORDER or FRAME rather than ANNOTATE.

 

 

proc gslide border
    cframe="black"
    wframe=4;

 

http://documentation.sas.com/?docsetId=graphref&docsetVersion=9.4&docsetTarget=n15s6i8fnays79n1u46q5...

 

"The BORDER option draws a box around the entire graphics output area."

View solution in original post

4 REPLIES 4
HB
Barite | Level 11 HB
Barite | Level 11

It looks to me like you would create a region that was the whole page and then have your layout pieces inside that.

 

This :

 

http://www2.sas.com/proceedings/sugi31/159-31.pdf

 

shows a page background with blue and parts inside it.

 

Where it has

ods region
x=0 pct
y=0 pct
height=100 pct
width =100 pct;
goptions cback=cyan;

you may be able to figure out how to set a border instead of a background color.

 

HTH.

 

Dave25
Quartz | Level 8

thanks for the reply. I had seen the paper you referred to, but was hoping to avoid gslide.  I did try, but am not getting the hoped-for results:


options nodate nonumber;

title;

 
ods pdf file = "C:\a\test.pdf" NOGTITLE ;

%ANNOMAC

data anno;
%bar(0,0,100,100,cyan,e,1);
XSYS='3';
YSYS='3';
output;
run;

 

ods layout start;
ods region
x=0 pct
y=0 pct
height=100 pct
width =100 pct;
proc gslide anno=anno;
run; quit;
ods layout end;
ods pdf close;

HB
Barite | Level 11 HB
Barite | Level 11

I would have guessed BORDER or FRAME rather than ANNOTATE.

 

 

proc gslide border
    cframe="black"
    wframe=4;

 

http://documentation.sas.com/?docsetId=graphref&docsetVersion=9.4&docsetTarget=n15s6i8fnays79n1u46q5...

 

"The BORDER option draws a box around the entire graphics output area."

Dave25
Quartz | Level 8

that works - 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
  • 4 replies
  • 1896 views
  • 0 likes
  • 2 in conversation