Home Subreports

4 part printing (was printing 3 copies + 1)

edited August 2007 in Subreports
Hi Nico

Due to a change of requirement the solution to the previous question wont
work. That assumed for example that when printing three copies of a 2 page
(d1) and a 1 page (d2) document the customer wanted the following page order
d1 p1, d1 p2, T&Cs,
d1 p1, d1 p2, T&Cs,
d1 p1, d1 p2, T&Cs,
d2 p1, T&Cs,
d2 p1, T&Cs,
d2 p1, T&Cs

In turns out that what they want is effectively 4 part printing ie
d1 p1, d1 p1, d1 p1, T&Cs,
d1 p2, d1 p2, d1 p2, T&Cs,
d2 p1, d2 p1, d2 p1, T&Cs

Without the T&Cs its easy - just set collate false and copies 3.
I tried putting the T&Cs into a section subreport in the footer but it
doesnt print.
How can I do this?

Regards
Paul

Comments

  • edited August 2007
    Hi Paul,

    This unfortunately is not something that can be automatically done in
    ReportBuilder. I believe as a starting point you will need to find a way to
    separate document 1 into 2 separate documents. As you mentioned, the Terms
    and Conditions page is the issue. Once you split each document page into
    its own section subreport, you may be able to add a section subreport to the
    bottom of each one containing the T&C's.

    If none of this works, we may have to re-visit the possibility of creating
    separate reports and piecing the print jobs together in code to give you the
    report you are after.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2007
    Hi Nico

    to

    Separating documents is easy

    split each document page into
    the

    I cant imagine how to split the document into pages - the data has to be
    rendered to the printer canvas before the page break is determined?

    the

    Again page breaks are the issue.

    Is there any way I can force a section subreport print in the footer or be
    triggered after the footer?

    Paul

    wont
  • edited August 2007
    Below is an example of what I mean by splitting the document into multiple
    print jobs. After further research, this is the only way to get the
    behavior you are after.

    http://www.digital-metaphors.com/tips/SeparatePagesIntoPrintJobs.zip

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2007
    Nico

    Thanks for your demo. How can I turn potentially multi-page reports into
    multiiple single page reports in order to do what you suggest?

    Regards
    Paul


  • edited August 2007
    Hi Paul,

    If these reports are dynamically sized, this could be tricky. I would
    suggest perhaps generating the report beforehand to find out how many pages
    each document is, then using this information, try logically splitting the
    document into more than one report. This can be done in a number of ways
    including changing the search criteria of the dataset.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2007
    Hi Nico

    This is not possible because each data line can be a different height. Is
    there any way or rendering it to a canvas and then accessing that -eg
    produce a preview then manually control printing it page by page?

    Regards
    Paul


  • edited August 2007
    Hi Paul,

    If you are able to print each page in the report, you could possibly try
    something like demo 124 in the \RBuilder\Demos\1. Reports\... directory by
    rearranging the page list to meet your needs. You can also try printing
    your report to memory then rearranging the pages before they are printed
    like in the following example. If you are unable to get any of these
    working the way you need, you will need to re-visit my first example of
    separating your reports into separate pages. As I mentioned, this will be
    tricky and you may need to rethink the way you are retrieving data for each
    report.

    http://www.digital-metaphors.com/tips/SpreadSheetStyle.zip


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