Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

to inicializar I number it of pagina

edited October 2004 in General
How I make so that my report is initiated in page 10? e when I to ask
PageCount, it more return the amount from pages printed 10?
Thanks

Ueliton

Comments

  • edited October 2004
    Hi Ueliton,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2004
    would you like your report to simply start on page 10



  • edited October 2004
    i like your report to simply start on page 10


  • edited October 2004
    Hi Ueliton,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2004
    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


  • edited October 2004
    Hi 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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.