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...
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.