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?

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to