problema con informe para factura
Hola a todos, he creado un informe para imprimir una factura. En el tengo un pagefooter con los totales de la factura. Le he indicado en el dise?±ador de informes
que este pagefooter se imprima solo en la ultima hoja, pero no lo hace. He desmarcado la casilla de imprimir en primera hoja. Esta marcado imprimir solo en la
ultima hoja. pero se imprime en todas las paginas menos en la primera. Solo quiero que se impriman los totales en la ultima hoja y que sea en el pie de hoja.
Alguien que pueda ayudarme. Muchas gracias.
que este pagefooter se imprima solo en la ultima hoja, pero no lo hace. He desmarcado la casilla de imprimir en primera hoja. Esta marcado imprimir solo en la
ultima hoja. pero se imprime en todas las paginas menos en la primera. Solo quiero que se impriman los totales en la ultima hoja y que sea en el pie de hoja.
Alguien que pueda ayudarme. Muchas gracias.
Comments
Hi all, I created a report to print an invoice. I have a PageFooter with totals in the invoice. I have indicated in the report designer
This PageFooter printed only in the last page, but it does not. I have unchecked the box in first page print. This marked only in print
last leaf. but it is printed on all pages except the first. I just want the totals are printed on the last page and is at the foot of sheet.
Someone who can help me. Thank you very much. And sorry for my bad English
only use the page footer for things like page number or total pages that you want printed on every page.
ie
header
masterdata
detail header
detail
detail footer
master footer
the above footerbxnds can be driven down to the bottom of the page
by writing code in their onbefore print event to check the engine free space and set the engine cury property to suit.
btw you english is pretty good
See here for more info: http://www.fast-report.com/en/forum/?p=/discussion/12374
ReportSummary1OnAfterCalcHeight procedure (Sender: TfrxComponent);
begin
Engine.CurY: -reportsummary1.height Engine.PageHeight -pagefooter1.Height = - 1;
end;
But I get error below in the code editor in the report designer FR with a red line indicating "Begin expected"
The code works is this:
ReportSummary1OnBeforePrint procedure (Sender: TfrxComponent);
begin
If Engine.CurY> engine.PageHeight-ReportSummary1.Height-50 Then Engine.Newpage;
Engine.CurY: = engine.PageHeight-ReportSummary1.Height-50;
end;
begin
end.
The code works is this:
ReportSummary1OnBeforePrint procedure (Sender: TfrxComponent);
begin
If Engine.CurY> engine.PageHeight-ReportSummary1.Height-50 Then Engine.Newpage;
Engine.CurY: = engine.PageHeight-ReportSummary1.Height-50;
end;
begin
end.