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

Printout misses one record? RB7.03

edited February 2006 in General
Hi,

I'm working on a report which only has data in its detail band. Data comes
from a local TClientDataSet. In the DetailBeforePrint event procedure, I'm
assigning all values to static TppLabel components, and in the
DetailAfterPrint, I'm writing a log entry and then I'm deleting the record
from the dataset.

Even if I see all records as pages in the preview, and even if all records
are logged in the DetailAfterPrint (and deleted afterwards), the printer
doesn't print all recs when I'm clicking on the print symbol on the left,
but only ONE record. It is always the first record of the dataset.

I guess I'm doing something wrong here. Could please someone shed a little
light onto me?

TIA,
Michael

Comments

  • edited February 2006
    Sorry all... after I wrote this, I found the solution. I didn't recognize
    that I'm using a two-pass report. All recs were deleted in the first pass,
    so there was nothing more to print :(

    Thanks anyway...


This discussion has been closed.