Cann't control PrintOnLastPage (print invoice)
Hi.
I have some problem to control report. I want to print Invoice. And bottom
of invoice show total of invoice. if invoice have many items. It cann't
print on one page. I want to control total of invoice show on last page.
OK I select PrintOnLastPage (with in RB not codeing on delphi). If invoice
have only one page total of invoice not show. It will show only invoice have
more than one page. If I select PrintOnFirstPage too. Total of invoice will
show on every page.
Please introduce how should I do that. I want to control only in RB don't
want to control in delphi.
thank.
I have some problem to control report. I want to print Invoice. And bottom
of invoice show total of invoice. if invoice have many items. It cann't
print on one page. I want to control total of invoice show on last page.
OK I select PrintOnLastPage (with in RB not codeing on delphi). If invoice
have only one page total of invoice not show. It will show only invoice have
more than one page. If I select PrintOnFirstPage too. Total of invoice will
show on every page.
Please introduce how should I do that. I want to control only in RB don't
want to control in delphi.
thank.
This discussion has been closed.
Comments
Which version of ReportBuilder are you using? In my testing with RB 9.03
setting the PrintOnFirstPage property to True and the PrintOnLastPage
Property to False allowed the footer to print if there was only one page and
hid the footer on the last page if there were more than one page.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I use RB 9.03 too. If I set by your recommended. It print same you resault.
If you set PrintOnFirstPage to False & PrintOnLastPage to True. And Invoice
had only one page. Why does footer not print? Please try it again.
prayut is right.
If the report has ONLY ONE page, and you have setted the footer with
"PrintOnFirstPage=false" and "PrintOnLastPage=True", it will not print the
footer on the ONLY page, because it "thinks" that first page is not the last
one.
"prayut tetanonsakul" escribi? en el mensaje
In this case ReportBuilder gives the PrintOnFirstPage property precidence.
The solution is to create a TwoPass report and check the Report.PageCount
before the second pass begins. If the report only contains one page you
will need to manually set the PrintOnFirstPage property to True.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com