Finding printer color capability in TppReport.OnEndPage
I need to know whether the target printer is color or monochrome & I need
this in an OnEndPage handler.
I've tried this:
if GetDeviceCaps(ppReport.Printer.PrinterHandle, BITSPIXEL) > 1 then
but GetDeviceCaps always returns 0, even though PrinterHandle is non-zero.
Any ideas?
Dave Riley
this in an OnEndPage handler.
I've tried this:
if GetDeviceCaps(ppReport.Printer.PrinterHandle, BITSPIXEL) > 1 then
but GetDeviceCaps always returns 0, even though PrinterHandle is non-zero.
Any ideas?
Dave Riley
This discussion has been closed.
Comments
AFAIK, you have to pass a device context handle instead the printer handle.
HTH,
Chris Ueberall;
Any idea how I convert a printer handle into a DC handle ?
Or, is there any other way I can get the printer DC handle (which is what
the Handle property of the Delphi 'Printer' function returns) from the
ppReport object ?
Dave.
On 5 Feb 2003 05:21:57 -0600, Ueberall@NOSPAM.osd.de (Chris Ueberall
works now. Thanks for the pointer.
Dave.
On Wed, 5 Feb 2003 21:26 +0000 (GMT Standard Time), adr@cix.co.uk (Dave