Mega Code Archive

 
Categories / Delphi / ADO Database
 

Printing to another printer than the default one

Question: How do I print to a printer different than the Windows default printer? Answer: Set QuickRep.PrinterSettings.PrinterIndex to a value corresponding to the printer you want to print to. This value is the same as for the Delphi TPrinter.PrinterIndex. Set to -1 to print to the default printer again.