> Now I need to know is it possible to do stuff from within 
> a Band but only if the report is being >printed (either 
> directly or from the Preview screen) and not if the report 
> is just being viewed.

> Is this possible? or does QR not know, at the time the band 
> is being processed, whether it is going >to be sent to the printer?


For reasons I've never understood, QR regenerates the whole 
report for the printer so I think you actually do have a shot at 
detecting that you are "preparing to print" vs "preparing to 
preview".

I haven't actually played with it - but there is an event
   TQuickRep.QRPrinter.OnGenerateToPrinter   
that fires before the preparation that is destined to go to 
the printer.

Not sure - but a reasonable attack might be to supply
your own handler in this event to set a flag that your
band/field events could examine to determine if you're 
destined for the printer.

-ns



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to