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

Dynamic Reports

edited August 2003 in Subreports
Sorry of my bad english...

Hi

how i cun print a few reports as one report ?

for example, i have report "City" and i will to print City a, city b, city c
as one report
how i cun do this

Thanks

Comments

  • edited August 2003
    You can create a main report which has subreports in its detail band. The
    main report will be Report.DataPipeline := nil. Then each subreport will get
    one chance to print. Set each Subreport.PrintBehavior := pbSection. See the
    main reports demo # 51 and 52 for an example. You can also load the report
    templates at runtime into a subreport be calling
    Subreport.Report.Template.LoadFromFile.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited August 2003

    1. all of my Subreports using the sum Query,
    but every SubReports need to Change SQL Parameter value (For example
    Query.Parameters[City] := 'NY')
    when i can set the parameter Value for each SubReport

    2. how i can Prepare Large report before Preview ? (ike QReport.Prepare)

    Thanks


  • edited August 2003
    When each subreport gets a chance to print the Subreport.OnPrint event
    fires. You cold try that event. Then there is the embedded Subreport.Report
    events. Click on the greyed out report icon between the two rulers in the
    layout workspace to select this report object in the subreport to view those
    events in the object inspector.

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.