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

Duplex Printing ...

edited May 2007 in General
Hi All,

I have a specific requirement from my client. I have created the a report
which works very well and to there requirements.

Now they are asking, "if we have a colour laser printer with a duplexer, can
we print on both sides".

What they currently have is a brochure designed on the front, now they want
to put an image on the back, like a floor plan for example. This will be
just an image.

I guess what im asking is ... is it possible for example to insert a second
page in a report and only print the second page if something is on it (not
blank).

Regards,



Trevor

Comments

  • edited May 2007
    Hi Trevor,

    One option would be to create a main report with a detail band only. Then
    place two section style subreports inside the detail band. The first
    subreport will represent the front page and the second will represent the
    back page. Then you can toggle the visibility of the second subreport based
    on the printer the user is printing to or if the second subreport contains
    data.

    --
    Regards,

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

    Best Regards,

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

    I tried the subreport option but everytime i ran the report the page counter
    started counting up to a 1000 pages or so.

    How do i link the subreport ad print it if its not blank?

    Regards,



    Trevor


  • edited May 2007
    Hi Trevor,

    For some reason your are getting infinite pages. Take a look at the
    following article for troubleshooting tips.

    ------------------------------------------------------
    Article: TroubleShooting: Report Prints Endless Pages
    ------------------------------------------------------

    Occasionally, we have customers state that their reports are in some
    infinite state where page after empty page prints forever.

    There are a few items to check when this occurs.

    The TppReport.AutoStop property is the first thing to check. If this is
    false when the DataPipeline property is unassigned, the endless report
    will be the result. AutoStop is automatically set to True when
    DataPipeline is set to nil, but it is possible to set it back to False.
    Check for instances in your code where you might have created this
    condition.

    Another thing to check is that all subreports in your report have their
    DataPipeline set. When a subreport does not have its pipeline set, you
    will sometimes see a condition where the first detail record prints and
    then you get blank pages.

    Another, non-data related cause can sometimes be your margin settings.
    If you have stretching bands that need to overflow to the next page, if
    your margins are too tight, sometimes the report engine will endlessly
    overflow to the next page trying to fit the overflow material.

    Still another cause might be having a statically positioned control, set
    to ReprintOnOverFlow, in the same band with a stretching control. For
    instance, if you have a memo set to stretch and in that same band, a
    label control set to ReprintOnOverFlow, then on every page after the
    first, the memo will begin to print after the label control. If the
    label is placed low enough that the memo has no room to print, the
    report will forever be trying to print the overflowing memo on the next
    page.

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