Hi
I want the table that is printed to be in the middle of the page. How do I do that?
proc template;
define style formel1;
parent = styles.printer;
class body / backgroundimage = "\\blabla.jpg";
style fit/
fontsize = 4
fontfamily = impact;
STYLE SystemTitle /
FONT_FACE = "Times New Roman, Times "
FONT_SIZE = 6
FONT_WEIGHT = bold
FONT_STYLE = italic;
STYLE SystemFooter /
FONT_FACE = "Times New Roman, Times "
FONT_SIZE = 6
FONT_WEIGHT = bold
FONT_STYLE = italic
;
end;
run;
GOPTIONS device=ACTXIMG;
/*Lager Pdf og macro i mail teksten*/
ods listing close;
options orientation=landscape topmargin="0.5cm" ;
options pdfsecurity=none
pdfpassword=(open="SCB");
ods pdf file="\\blablaba_&Periode..pdf" style=formel1 STARTPAGE=NEVER;
/* STARTER MED RESULTATENE */
Title "apps";
proc print data=work.paidoutratio_m NOOBS ;
run;
;
ods pdf startpage=now;
ods _all_ close;
ods listing close;
options orientation=landscape topmargin="0.5cm" center ;
Perhaps I was a bit unclear
I want the table to be in the middle of page, making it just as long from the top of the page to the bottom
Hi:
For ODS PDF, you would need to adjust your top and bottom margins for the placement you want. Or, investigate ODS LAYOUT to see if vertical alignment is possible. If your table always has the exact same number of rows, then the ABSOLUTE Layout should let you adjust the vertical placment. The CENTER system option is for horizontal alignment within the boundaries set by the right/left margins.
cynthia
I have tried this but since I also have a background picture this picture is being moved downwards as well...
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.
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.