> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Peter G Jones
> Sent: Tuesday, 2 November 1999 01:06
> To: Multiple recipients of list delphi
> Subject: [DUG]: Delphi sux - changing printers
>
>
> A Delphi 4 printer question.
>
> Using the global Tprinter returned by Printer() there is a
> property called
> PrinterIndex.  Setting this to -1 selects the windows default printer and
> calls a private method SetToDefaultPrinter.  This method sets up some
> TPrinter properties based on the default printer.
>
> Now the problem.  When settiing the PrinterIndex to something
> other than the
> default, there is no call to any methods to change the TPrinter
> properties
> for the new printer.  So, values from the original call to
> SetToDefaultPrinter still persist in the TPrinter properties and we get
> screwy results.
>
> What's the solution?

The TPrintSet component from onedomain used to be a nice solution to this
type of problem. Unfortunately onedomain appear to have stopped supporting
their stuff.

We would all be interested I am sure in a replacement component for the same
purpose.

============================================
Patrick Dunford, Christchurch, NZ
http://patrick.dunford.com/

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to