views:

116

answers:

1

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 ?

+12  A: 

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

Sertac Akyuz
+1. Add "Printers" to your uses clause and assign Printer.PrinterIndex prior to calling RichEdit.Print
Cosmin Prund