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

PrinterSetup.Copies

edited May 2002 in General
Hi,

I have a report with two nested levels of subreports. All levels are
connected by datapipelines to the corresponding records in the database. Is
it possible to repeat the printing of a single level by setting the
printersetup.copies property? Do you know another solution?

Example (all pages are Labels to print on a label printer):

Tabel A - MainReport
Table B - SubReport Level 1 <== We need this label 3 to 5 times, but
there is only 1 record in the database!
Table C - SubReport Level 2
Table C - SubReport Level 2
Table C - SubReport Level 2
Table C - SubReport Level 2
Table B - SubReport Level 1
Table C - SubReport Level 2
Table C - SubReport Level 2

The whole printjob must be printed in one task to prevent mixing pages
between two concurrent users.

Thanks

Robbi

Comments

  • edited May 2002
    The easiest way to accomplish, though maybe not the most desirable, is to
    actually add more records into the database when running the report (and
    deleting them when the report is finished.) Another way is to nest the
    subreport in another subreport so that the nested subreport is the only
    component in the other subreport's detail band. Then set the BandsPerRecord
    property of the outer subreport to 3-5. The trick here is that this outer
    subreport needs a datapipeline to traverse. One way to do this is to create
    a dummy table with only one record and assign the subreport to it.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited May 2002
    Hi Alexander,

    I understand your suggestion, that's the way I also could imagine but it
    includes a lot of work.
    There is no way to just repeat a page by the copies property of the
    subreport?

    Robbi

    "Alexander Kramnik (Digital Metaphors)" schrieb
  • edited May 2002
    Unfortunately there is no simple property to reprint components. If you
    would like to send your report layout to support@digital-metaphors.com we
    could see if a better solution is available.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited May 2002

    Alexander,

    sorry for the delay in responding and thanks for your suggestion!

    This 3 level report is connected by 3 datapipelines to IBObject queries.
    I've built a very complex interbase db with lots of foreing keys.
    I cannot send you the database because a) its size is some GB b) it contains
    restricted data from our customer. The report itself can be sent to you, but
    without its infrastructure....??
    So what do you need at minimum?

    Robbi

    P.S. I'm using D6 Enterprise and RB 6.xx Enterprise



    "Alexander Kramnik (Digital Metaphors)" schrieb
  • edited May 2002
    We would be happy to take a look at the report layout itself to see if we
    can come up with a solution.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.