Charles Faiga
Charles Faiga

Reputation: 11763

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 ?

Upvotes: 9

Views: 1789

Answers (1)

Sertac Akyuz
Sertac Akyuz

Reputation: 54832

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

Upvotes: 13

Related Questions