Change field value between first and second copy
Hi!
I'm using RBuilder 10 Pro and Delphi 7 Pro
I need to print the word 'COPY' when 'Copies' value is 2, 3, etc...
I can't add a TppLabel because I want my customers to put it on theirs
desired position, so I'm thinking about using a TppDBText.
When printing first copy, the table field value is empty. When printing the
second copy, I want to modify the field value to show the word 'COPY', so it
will print it on second copies.
Is it possible? Which report event should I use to change the field value?
Thanks!
I'm using RBuilder 10 Pro and Delphi 7 Pro
I need to print the word 'COPY' when 'Copies' value is 2, 3, etc...
I can't add a TppLabel because I want my customers to put it on theirs
desired position, so I'm thinking about using a TppDBText.
When printing first copy, the table field value is empty. When printing the
second copy, I want to modify the field value to show the word 'COPY', so it
will print it on second copies.
Is it possible? Which report event should I use to change the field value?
Thanks!
This discussion has been closed.
Comments
Once the report has begun generating, it is not a good idea to begin
altering the data. This would most likely force you to close the dataset
which may cause problems with the datapipeline and engine on where it is
located.
Another possible solution would be to place the DBText on your report and
simply toggle it's visibility based on which copy is being printed. You can
use the PageStart event to determine this much like the following example.
http://www.digital-metaphors.com/tips/UniqueCaptionForEachCopy.zip
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com