The code in the example is not designed to work with a PrintToDevices call.
The Band.BeforePrint event code checks for (ppReport1.PrinterDevice = nil). Since you are creating your own printer device, this will always return true. Remove this condition.
Comments
There is Report r1 with three pages r1p1,r1p2,r1p3.
Now I wan this reprot to be printed with 1 copy
this results in the pages r1p1,r1p2,r1p3,r1p1c1,r1p2c1,r1p3c3
any page r1p? shall not contain a watermarl
any page r1p?c1 shall contain a watermark
Any ideas?
Carsten Eider hat uns dieses gebracht :
Take another look at the example you mentioned, this is how you will
want to accomplish what you need.
Rather than using the PageStyle.BeforePrint to set the visibility of a
report component, you will either add the watermark drawcommand(s) or not.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik (Digital Metaphors) machte das folgende Beispiel :
From my point of view it does not work!
The code in the example is not designed to work with a PrintToDevices call.
The Band.BeforePrint event code checks for (ppReport1.PrinterDevice =
nil). Since you are creating your own printer device, this will always
return true. Remove this condition.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com