Hello, We are using the proc report in our application with the proc template to customize the RTF outputs We manage the breek pages with _page_ variable We need that the line under the table will be displayed in the bottom of each page But when the rows of the same _page_ cannot be included in the same page the line in the bottom of page is not displayed The example below illustrate the issue, so When you run it , in the first page the line is not displayed because for _page_ =1 , there are 60 rows but only 44 rows can be contained in the page Thank you for helping us to resolve this issue ods path(prepend) work.templat(update);
proc template;
define style Styles.Custom;
parent=styles.rtf;
style fonts / 'TitleFont'=("Times New Roman",9pt,normal)
'TitleFont2'=("Times New Roman",9pt,normal)
'StrongFont'=("Times New Roman",9pt,normal)
'EmphasisFont'=("Times New Roman",9pt,normal)
'headingEmphasisFont'=("Times New Roman",9pt,normal)
'headingFont'=("Times New Roman",9pt,bold)
'docFont'=("Times New Roman",9pt,normal)
'footFont'=("Times New Roman",9pt,normal)
'FixedEmphasisFont'=("Times New Roman",9pt,normal)
'FixedStrongFont'=("Times New Roman",9pt,normal)
'FixedHeadingFont'=("Times New Roman",9pt,normal)
'BatchFixedFont'=("Times New Roman",9pt,normal)
'FixedFont'=("Times New Roman",9pt,normal);
style color_list / 'link'=blue 'bgH'= grayBB 'fg'= black 'bg' = white;
style Body from Document / topmargin=3.2cm bottommargin=3.8cm leftmargin=2.8cm rightmargin=1.5cm;
style Table from Table / frame=hsides rules=group cellpadding=1pt cellspacing=.15pt borderwidth=.15pt;
end;
data test;
length a $128;
do _page_=1 to 4;
nb=(4 - _page_)*20;
do n = 1 to nb;
a = 'Data Test -- line : ' !! strip(put(n,best.));
output;
end;
end;
run;
ods rtf file='~/test.rtf' bodytitle style=Custom startpage=yes;
title 'title1';
footnote 'Footnote 1';
proc report data=test style(header)= [background=white
borderbottomcolor=black borderbottomwidth=0.1pt just=center vjust=top] contents="";;
col _page_ a;
define _page_ / order noprint;
define a / "Avar";
break before _page_ / page contents='';
run;
ods rtf close;
... View more