Increase a counter only after print and not after preview
I need to increase a field with the number of printings ( printing 1, 2 ....
n). If the user asks to print the report, it must be printed in 2 copies
(for instance, printing 1 and 2, 3 and 4 etc)
if the report is only seeing in a preview form, the counter could not be
increased.
I tryed to set after printing events to increase the counter, and in this
case it icreases the counter in preview mode.
If I use the onprintingcomplete, it increases only at the end of printing
and I will print two copies with the same number.
Someone has any sugestion about it?
thank you
Edison
n). If the user asks to print the report, it must be printed in 2 copies
(for instance, printing 1 and 2, 3 and 4 etc)
if the report is only seeing in a preview form, the counter could not be
increased.
I tryed to set after printing events to increase the counter, and in this
case it icreases the counter in preview mode.
If I use the onprintingcomplete, it increases only at the end of printing
and I will print two copies with the same number.
Someone has any sugestion about it?
thank you
Edison
This discussion has been closed.
Comments
ReportBuilder 11 inlcudes the ability to print the copy number to each copy
automatically. This can be done by placing a system variable on your report
and setting its VarType property to vtCopyNo or vtCopyNoDesc.
Otherwise you will need to do something 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
it doesn?t work. First, I have some documents with more then 1 page. And
second, if I made a preview + print + print
in the second print it jumps 1 number in the copy ( 1 2 --> 4 5)
http://www.digital-metaphors.com/tips/UniqueCaptionForEachCopy.zip
Edison
Perhaps I am unclear about what you are trying to accomplish. Are your
printing multiple copies of the same report using the copies field in the
print dialog or are you individually calling Report.Print over and over
again? In my testing the UniqueCaptionForEachCopy works correctly.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com