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

Force report to print duplex

edited January 2009 in General
I have a simple report that has a header & footer containing customer data
from the tables. The form has a dbrichedit showing the data from the Notes
field. If the data is larger than the area I get the page printed loads of
times. I need to be trap this and print the overflow onto the duplex side of
the paper without the header and footer if possible.

Comments

  • edited January 2009
    Hi Steve,

    Duplexing is usually handled by the printer driver itself so it may be
    difficult to dynamically control certain sections of a report without
    creating multiple print jobs.

    The simplest solution would be to create a loop that prints each customer
    separately (by dynamically changing the search criteria). Then you can set
    the report to always print in duplex mode and not have to worry about
    certian customers ending up of the back page of the previous one. You can
    also hide the header and footer bands if the page number (PageNo) is equal
    to 2.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2009
    If the data exceeds the size of the dbrichedit I get a loop producing 100's
    of copies. How do I say ' continue on new page & switch of headers.

    Cheers

    Stevew
  • edited January 2009
    Hi Steve,

    Try setting the ReprintOnOverflow property of the DBRichEdit to True. This
    will ensure that it prints to the next page. Also be sure the control or
    band is not larger than the actual paper size itself so you don't get
    endless pages.

    Try using the PageStart event to check which page is printing and toggle the
    visibility of the header and footer band accordingly.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2009
    I set ReprintOnOverflow to true. I now only get one page printed and nothing
    on the next page.
  • edited February 2009
    Hi Steve,

    In my quick testing with the biolife table in the DBDEMOS database, I was
    able to get a DBRichText component to successfully overflow to a new page if
    it didn't fit. Are you able to recreate this behavior using something
    simple like this?

    Another option you might explore is creating a group around each customer
    and setting the group to start on Odd Pages. This will ensure that each
    customer starts on an actual page rather than a duplexed one.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2009
    I set the stretch property to true and that worked.

    Cheers


  • edited February 2009
    I have :

    If ppReport3.PageNo > 1 then
    begin

    ppHeaderBand15.Visible := false;

    ppDBRichText7.top := 25;

    end;

    When printing on the duplex side the text starts at the very top of the
    page. How do I drop this down please?
  • edited February 2009
    Hi Steve,

    By default, when you remove the header band, the detail information will
    snap to the top. One option would be to place all the header band
    information inside a TppRegion and toggle the visibility of that rather than
    the header band itself. This will leave an empty header band on the second
    page "pushing" the overflowed detail information down.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2009
    Cheers . Got that working.
This discussion has been closed.