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

help

edited September 2004 in End User
Hi all,
I upgrade my software from delphi 5 to delphi 7 and also upgrade
reportbuilder from version 4 to 7.
but when i try to print my any documents... its continuesly print pages to
infinity.
where is the problem?

please help.
Regards
Arif Sheikh
arifone@gmail.com

Comments

  • edited September 2004
    Hi Arif,

    ------------------------------------------------------
    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
  • edited September 2004
    My Code is.

    dmReports.tVoucher.close;
    dmReports.tVoucher.Open;
    dmReports.tVoucher.Filtered := False;
    if dmReports = nil then
    Application.CreateForm(TdmReports, dmReports);
    dmReports.tVoucher.Filter := 'TrVoucherNo = '+eVoucherNo.Text+' AND
    TrType = '''+VT+'''';
    dmReports.tVoucher.Filtered := True;
    if Sender = nil then
    begin
    dmReports.RBVoucher.DeviceType := 'Printer';
    dmReports.RBVoucher.showprintdialog := false;
    end
    else
    begin
    dmReports.RBVoucher.DeviceType := 'Screen';
    dmReports.RBVoucher.showprintdialog := true;
    end;
    dmReports.RBVoucher.Print;
    Loading := True;
    dmReports.tvOUCHER.Filtered := False;

    can you tell in which part i should set the autostop property. by default
    autostop property is to false;



  • edited September 2004
    Arif,

    If your report and subreports are successfully connected to their specific
    datapipelines, the AutoStop property is probably not your problem. If you
    would like to set it, you will need to do so before printing the report
    (i.e. either inside the Report.BeforePrint, or before you call
    Report.Print).

    You need to check that you do not have things like the same datapipeline
    connected to the master report and subreports. Also check that you are able
    to fit all your report components inside the defined margins.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2004
    hi,
    actually i am new to report builder. can you help me to follow all the
    steps which you told me step by step like how to check same datapipeline
    connected
    and how can i check that i am inside defined margins
    thanks




  • edited September 2004
    Hi Arif,

    Welcome to ReportBuilder :).

    You can check what datasource (datapipline) each report/subreport is
    connected to by selecting the Report | Data... main menu option from the
    report designer window. If the AutoStop property is set to False and your
    report does not have a pipeline assigned, you will get the endless pages
    effect. The AutoStop property is published so it is available in the Delphi
    Object Inspector when you click on the report object.

    Check your margin settings by going to the File | Page Setup in the main
    menu. Then be sure none of your report objects exist beyond these margins.
    If they do, the report engine will try to break to a new page thinking that
    the current object will not fit on the current page. Unfortunately this
    will happen on every page there after causeing endless pages.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2004
    thanks for your reply....
    i follow the steps which you mention, but sorry to say problem is still
    there....

    Now?

  • edited October 2004
    Hi Arif,

    Please send an example of this behavior to support@digital-metaphors.com in
    .zip format and I'll take a look at it for you.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2004

  • edited October 2004
    Arif,

    For future reference, please do not attach binary files to your newsgroup
    posts. Please send all attachments to support@digital-metaphors.com. I'm
    going to need a little more background information on the example you sent
    me. You have somewhere around 17 report objects on your data module. Which
    report is giving you the error? Have you considered using Report Templates
    rather than all the report objects? This would allow you to keep all your
    reports and data access information in separate compact files while only
    using one report object. See our web site or consult the ReportBuilder
    Developer's guide for "ReportBuilder Pro" for more information on this.

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