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

Print only in the odd pages

edited January 2007 in General
?Hi,

I use version 9.03 of the Report Builder with Delphi 7.0. As I make to
print the heading of the report only in the odd pages. I use many texts
in my reports, and need this situation


Thanks

--
Louder Mendes

Louder Mendes
Brazil

--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited January 2007
    Hi Louder,

    From the Print dialog you can change the "print" combobox option near the
    bottom to only print odd pages. Likewise in code you can use the
    PrinterDevice.PageRange to define which pages you would like printed.
    Example...

    uses
    ppTypes;

    ---

    if ppReport1.PrinterDevice <> nil then
    ppReport1.PrinterDevice.PageRange := prOddPages;

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2007
    Nico,

    debtor for the aid, but in such a way as you suggested it to me prints
    the page all, I wants that only the band heading is printed in the odd
    pages. debtor


    Louder



    the
    texts

    Louder Mendes
    Brazil

    --- posted by geoForum on http://delphi.newswhat.com
  • edited January 2007
    Hi Louder,

    In my testing with RB 10.05, setting the Print option in the print dialog to
    "odd pages" only printed the odd pages. Likewise, using the code I posted
    below in the BeforePrint event gave the same result.

    --
    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.