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

Duplex print with multiple section and certain subreports

edited December 2003 in Subreports
Hi,

i have the following problem:

in a report i generate for each customer two letters.
Each header of the letter has to print on top. When the last page on the
first letter is reached and it is 1, 3, 5 an so on, an empty page covered in
a subreport is displayed using the visible property.
i identify the end of each letter by catching the summaryBeforeGenerate
event and set a boolean variable to true
In the ReportOnStartPage event i ask for variable and set the Subreport
(with empty page) visibility to true (or false if Report.PageNo is 2, 4, 6
and so on).
It works till the last Subreport in Letter 1 spans only over 1 page. If it
is longer, no empty Page of the Subreport neither the second letter is
displayed. Only infinite Empty Pages occures under this circumstances.
Should i change my strategy? i have no idea

It would be nice to get a solution

regards Ulf Ohms

Comments

  • edited December 2003

    Check out the Pagination thread of the Tech Tips newsgroups. There are a
    couple of techniques listed there that you could try.

    If you would like to create a simple example project using the DBDemos data
    that demonstrates what you are trying to do, you can e-mail it in zip format
    to support@digital-metaphors.com and we can check it out here. Please use
    only standard Delphi components, RB, and DBDemos.


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

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