I'm sorry, but I'm a bit unclear about what you would like to accomplish. Are you trying to limit the number of pages printed or would you like your report to simply start on page 10? Is the PrintCount property not functioning correctly?
If you are looking to print starting from page 10, you can either adjust the page range in the printer dialog or send a specific page list to the printer like in demo 124 located in the \RBuilder\Demos\1. Reports\... directory (dm0124.pas).
If you would like your report to start on page 10 when showing the report on screen, you can use the GotoPage procedure of the TppScreenDevice to do so in the BeforePrint event of the report. Something like the following.
uses ppViewr;
procedure TForm1.ppReport1BeforePrint(Sender: TObject); begin TppViewer(ppReport1.PreviewForm.Viewer).ScreenDevice.GotoPage(10);
Not, I want that in a report of 3 pages instead of the number of the page to be 1 in the first page it is 10 and that reportbuilder understands this generating page 10 of 12, 11 of 12, 12 of 12. When it asks pagecount returns me 12. Ueliton
Unfortunately there is no built-in way to do this with ReportBuilder. If you are printing to a printer, you can use the Page Range to get this effect. However the screen device works very differently from the other devices and it is not possible to view only a certain number of pages in a report. One option might be to print the page range you desire to an archive file and then view it using the ArchiveReader. This would easily give you the effect you are after.
Comments
I'm sorry, but I'm a bit unclear about what you would like to accomplish.
Are you trying to limit the number of pages printed or would you like your
report to simply start on page 10? Is the PrintCount property not
functioning correctly?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
If you are looking to print starting from page 10, you can either adjust the
page range in the printer dialog or send a specific page list to the printer
like in demo 124 located in the \RBuilder\Demos\1. Reports\... directory
(dm0124.pas).
If you would like your report to start on page 10 when showing the report on
screen, you can use the GotoPage procedure of the TppScreenDevice to do so
in the BeforePrint event of the report. Something like the following.
uses
ppViewr;
procedure TForm1.ppReport1BeforePrint(Sender: TObject);
begin
TppViewer(ppReport1.PreviewForm.Viewer).ScreenDevice.GotoPage(10);
end;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
be 1 in the first page it is 10 and that reportbuilder understands this
generating page 10 of 12, 11 of 12, 12 of 12. When it asks pagecount returns
me 12.
Ueliton
Unfortunately there is no built-in way to do this with ReportBuilder. If
you are printing to a printer, you can use the Page Range to get this
effect. However the screen device works very differently from the other
devices and it is not possible to view only a certain number of pages in a
report. One option might be to print the page range you desire to an
archive file and then view it using the ArchiveReader. This would easily
give you the effect you are after.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com