Printout misses one record? RB7.03
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
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
This discussion has been closed.
Comments
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...