Hi, I am using proc template to generate a systemtitle with preimage and pretext. This is the header for the complete document. proc template;
define style Styles.Custom_nl;
parent = Styles.Printer;
style Body from Defaults/
topmargin=0.6in
leftmargin=0.6in
rightmargin=0.6in
just = center
;
replace fonts /
'TitleFont' = ("Segoe UI",12pt,Bold) /* Titles from TITLE statements */
'TitleFont2' = ("Segoe UI",10pt,Bold ) /* Proc titles ("The XX Procedure")*/
'headingFont' = ("Segoe UI",10pt,Bold) /* Table column and row headings */
'docFont' = ("Segoe UI",8pt) /* Data in table cells */
'footFont' = ("Segoe UI",8pt) /* Footnotes from FOOTNOTE statements */;
replace color_list /
'bgH' = cx9C1B3A /* row and column header background */
'bgT' = white /* table background */
'bgD' = white /* data cell background */
'fg1' = black /* text color */
'fg2' = white
'bg' = white; /* page background color */
replace Table from Output /
frame = box /* outside borders: void, box, above/below, vsides/hsides, lhs/rhs */
rules = all /* internal borders: none, all, cols, rows, groups */
cellpadding = 4pt /* the space between table cell contents and the cell border */
cellspacing = 0.25pt /* the space between table cells, allows background to show */
borderwidth = 0.25pt /* the width of the borders and rules */
background = color_list('bgT') ;
style header /
background = cx9C1B3A
foreground = white
font = fonts("Headingfont")
font_weight = bold;
Style systemtitle from TitlesAndFooters /
font = fonts("TitleFont")
cellpadding = 0
cellspacing = 0
preimage = "logo.png"
pretext = ' My header '
;
Style PageNo from TitlesAndFooters /
font = fonts("footFont")
cellpadding = 0
cellspacing = 0
pretext = "Page "
just=r
vjust=b;
/* style SystemFooter from SystemFooter /*/
/* font = fonts("footFont");*/
style rowheader from header;
end;
run; When I use the title for my table it get added to the header of the document instead of forming a header in the document. options papersize=A4 nodate orientation=landscape center;
ods rtf file = 'doc.rtf' style= Custom_nl;
title 'Boys';
proc print data=sashelp.class(where=(sex='M'));
run;
title 'Girls';
proc print data=sashelp.class(where=(sex='F'));
run;
ods rtf close; The result is the following. I would like to have the following as the results where my title is not a part of the header of the document. Any help is highly appreciated. Thanks a lot.
... View more