How to set the Printer in code
Hi,
I did create a Text Editor, using WPTools and RBuilder...
The user have the "printer dialog" to select the Printer, Page Intervals,
and so on.. (I use the WPTools dialog)
Once the user can change the Printer (if it has more than one installed), I
need to change the Printer where RBuilder will print too, via code.
Something like:
MyPPReport.PrinterIndex := ThePrinterIndex;
I can determine the PrinterIndex from a WPTools class (WPPrinter), that
inherits from TPrinter.. using the PrinterIndex property, but I couldn?t
find an equivalent property on RBuilder.
Doest it have it ?
Thanks
Alessandro
--
Alessandro Fragnani de Morais
Analista de Sistemas
Softplan/Poligraph
Sistema da Qualidade Certificado ISO9001-BVQI/INMETRO
Fone/Fax: 0xx(48) 3027-8000
http://www.softplan.com.br
I did create a Text Editor, using WPTools and RBuilder...
The user have the "printer dialog" to select the Printer, Page Intervals,
and so on.. (I use the WPTools dialog)
Once the user can change the Printer (if it has more than one installed), I
need to change the Printer where RBuilder will print too, via code.
Something like:
MyPPReport.PrinterIndex := ThePrinterIndex;
I can determine the PrinterIndex from a WPTools class (WPPrinter), that
inherits from TPrinter.. using the PrinterIndex property, but I couldn?t
find an equivalent property on RBuilder.
Doest it have it ?
Thanks
Alessandro
--
Alessandro Fragnani de Morais
Analista de Sistemas
Softplan/Poligraph
Sistema da Qualidade Certificado ISO9001-BVQI/INMETRO
Fone/Fax: 0xx(48) 3027-8000
http://www.softplan.com.br
This discussion has been closed.
Comments
ppRpt.PrinterSetup.PrinterName := gPrinterName;
Jon
Alessandro
--
Alessandro Fragnani de Morais
Analista de Sistemas
Softplan/Poligraph
Sistema da Qualidade Certificado ISO9001-BVQI/INMETRO
Fone/Fax: 0xx(48) 3027-8000
http://www.softplan.com.br