Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi - How I tell the system what printer to use?

To print the contents of a TRichEdit I use

   RichEdit.Print('My Document Name'); 

Some times I need to print it on "printer1" other times I need to print it on "printer2"

Question:

How I tell the system what printer to use ?

like image 459
Charles Faiga Avatar asked Sep 24 '10 10:09

Charles Faiga


1 Answers

You set the Printer.PrinterIndex. As documented, setting '-1' sets to the default printer, and the Printers property contains a list of installed printers.

like image 176
Sertac Akyuz Avatar answered Sep 21 '22 03:09

Sertac Akyuz