Home Subreports

Forcing Sub report to print without starting on a new page

edited January 2005 in Subreports
This is a multi-part message in MIME format.

Comments

  • edited January 2005

    A page header by definition, prints at the top of each page.

    A Group that has ReprintOnSubsequentPage set to True, will print its group
    header at the top of each page. You might try setting
    ReprintOnSubsequentPage to False and setting KeepTogether to False for each
    of your groups.

    A subreport with PrintBehavior of pbChild will print on the parent's page
    space - like a memo. A subreport with PrintBehavior of pbSection will
    start/end on a new page and will print on its own page space - it will not
    share the main report's page header.

    Each report/childreport should only be connected to a single datapipeline.
    This should not be assigned prior to calling Report.Print and should not
    change.



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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited January 2005
    This is all good information but I probably didn't explain the problem very
    well. The subreport will not print on the first page if the subreport hits
    a certain length.
    The report will start on a new page and print normal from there. It acts as
    if the subreport will not go to the printer until it is done processing and
    if it is too big then it will start a new page. It will not start printing
    and continue on the next page.
    All groups are set to
    Keep Together = False
    SubReport2 is pbChild but starts on the second page. (Setting it to
    pbSection Starts a new page like you mentioned and pb fixed prints only one
    record.)

    Here's how it prints
    Page 1
    Header (data)
    Group1 (data)
    Footer (system Variable)

    Page 2
    Header (data)
    Group1 (data)
    DetailBand (SupReport1 - dynamic)
    Footer (system Variable)

    Page 3
    Header (data)
    Group1 (data)
    DetailBand continued (SupReport1 - dynamic)
    Group2 (SubReport2 - dynamic)
    Group1 (data and SubReport3 - dynamic)
    Footer (system Variable)

    I'd like to print::
    Page 1
    Header (data)
    Group1 (data)
    DetailBand (SupReport1 - dynamic)
    Footer (system Variable)Footer (system Variable)

    Page 2
    Header (data)
    Group1 (data)
    DetailBand continued (SupReport1 - dynamic)
    Group2 (SubReport2 - dynamic)
    Group1 (data and SubReport3 - dynamic)
    Footer (system Variable)

    Setting the page limit on hte subreport does not do anything to help force
    printing the subreport on the first page.
    The assignment of the pipeline does not affect the way the report works.
    (Tested using only one pipeline. No effect. same results)


  • edited January 2005

    The subreport will not print on the first page if the subreport hits

    This sounds like KeepTogether is set somewhere. Check that
    Subreport.KeepTogether and Group.KeepTogether are all set to False.




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



    Best regards,

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