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

Trouble with report containing subreports

edited December 2004 in Subreports
I have a report that has 3 sub-reports.
It views fine, and prints fine as long as you only print 1 copy.
If you print 2 or more copys, the main page only prints once, and the sub
reports print the correct number of times.

Any suggestions would be appreciated
Thanks

Comments

  • edited December 2004

    This is not a known issue.

    As a test you can try commenting out the event-handler code associated with
    the report. Make sure that you do not have code that manipulates the dataset
    in any manner while the report is generating.

    If you still have an issue, please create a simple example using standard
    Delphi components, ReportBuilder and the DBDemos data. Email in zip format
    to support@digital-metaphors.com and we can check it out here.




    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2004


    There is no data manipulation nor is there any event-handlers.
    The only thing I noticed was the PrintBehavior was set to pbChild on the
    ChildReports and the
    PrintHeight for the sub-report detail bands was set to static. The Report's
    Detail band was set to dynamic.


    We are testing now. We'll see what happens.
    Here is the reports Before print:
    begin
    ppreport1.previewform.Caption := 'My Report';
    ppreport1.previewform.FormStyle := fsMDIChild;
    ppreport1.previewform.width := scw - 30;
    ppreport1.previewform.height := sch - 130;
    ppreport1.previewform.left := 0;
    ppreport1.previewform.top := 0;
    TppViewer(ppReport1.PreviewForm.Viewer).ZoomSetting := zs100Percent;
    end;

    And here is the OnClose:
    begin
    ppreport1.CloseDataPipelines;
    close;
    end;
  • edited December 2004

    Ok, if you can find time to create an example that we can run, we can check
    it out here...

    --

    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.