Use of sc_pdf_header and sc_pdf_footer Macros?

Hi Diogo,

i would like to print header / footer on my reports. But how use the macros?

Re: Use of sc_pdf_header and sc_pdf_footer Macros?

Hello,

no help, no idea?

Re: Use of sc_pdf_header and sc_pdf_footer Macros?

Hello sir,

In your PDF Report, open the app, theres an option called, “Type”, change it to “Records Per Line” instead of “Records per Page”
then diplay the Header and Footer to “yes”.

Regards,

Re: Use of sc_pdf_header and sc_pdf_footer Macros?

Hello Max,

that’s correct, but what is the exact difference between “Records per Page” and “Records per Line”?

Can you explain this?

Thank you!

Re: Use of sc_pdf_header and sc_pdf_footer Macros?

i had the same problem…
i cant show the footer…

i tried to set the type in per-line and do code in event > footer but nothings happen…

Re: Use of sc_pdf_header and sc_pdf_footer Macros?

i use sc_pdf_text(‘x’,‘y’,‘text’); to show the text/footer in the Code part…

In
for ex: for A4 size
for left side:
sc_pdf_line(5,276,205,276);

sc_pdf_text(‘7’,‘280’,‘company name’);
sc_pdf_text(‘7’,‘284’,‘Address’);
sc_pdf_text(‘7’,‘288’,‘postal code’);

for right:

sc_pdf_text(‘170’,‘280’,‘info’);
sc_pdf_text(‘170’,‘284’,‘info’);
sc_pdf_text(‘170’,‘288’,‘info’);

…but have to write it in each page i.e after each sc_pdf_add_page();

if the pdf has subselect,
i put the sc_pdf_text thing inside the subselect in code at the end…

for eg:
foreach ({subselect} as $NM_ind => $Dados)
{
sc_pdf_print_sub_sel($cell_blahblah[$NM_ind]);

sc_pdf_line(5,276,205,276);

sc_pdf_text(‘7’,‘280’,‘company name’);
sc_pdf_text(‘7’,‘284’,‘Address’);
sc_pdf_text(‘7’,‘288’,‘postal code’);

sc_pdf_text(‘170’,‘280’,‘info’);
sc_pdf_text(‘170’,‘284’,‘info’);
sc_pdf_text(‘170’,‘288’,‘info’);
}

Re: Use of sc_pdf_header and sc_pdf_footer Macros?

thank YOU ishwor.
I’ll try this.

regards,
Ghulma