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

Endless Printing Problem

edited June 2004 in End User
Using the Report Explore to create user defined reports. There are no
datapipelines defined in the report. When the report is printed it will
print an endless number of pages. Any ideas on how to limit the number of
pages? or Have print only one page?

Regards,



Hiram Falcon

Lady Lynn Development, Inc.

5532 Woodruff Avenue #109

Lakewood, CA 90713

Phone: 562-497-1767

Fax: 562-938-9182

Comments

  • edited July 2004
    Hi Hiram,

    Check out the following article for information on endless pages.

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


    --
    Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
    Delphi Informant Readers Choice awards!

    http://www.delphizine.com/ballot2004/

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2004
    Big help... thanks.

    Is there a way for the end user to toggle the AutoStop property within the
    report designer?

    Regards,



    Hiram Falcon

    Lady Lynn Development, Inc.

    5532 Woodruff Avenue #109

    Lakewood, CA 90713

    Phone: 562-497-1767

    Fax: 562-938-9182



  • edited July 2004
    Hi Hiram,

    By default if you set the Report | Data |... main menu option to
    instead of a datapipeline, AutoStop will be set to True. This should be the
    only time this property should be set to True. If you would however like to
    add it as an option to the designer, you can access the main menu of the
    designer and add this feature by using the TppDesigner.Menu property.

    --
    Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
    Delphi Informant Readers Choice awards!

    http://www.delphizine.com/ballot2004/

    Best Regards,

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