Ross Levis wrote:
Thanks Steven.  My own IsColorPrinter function is working well.

I was wondering why this appears (sometimes twice) in all the functions listed there...

Printer.PrinterIndex := Printer.PrinterIndex;

Surely the PrinterIndex property is already set correctly when the global Printer object is created? I tested without it and it works.

Setting PrinterIndex to itself is not a no-op. It clears any information the TPrinter object might have cached about the printer, which is especially important if the default printer has been set to something else in the meantime, but really if any changes have been made to printer settings without going through TPrinter.

--
Rob

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to