Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How to set the Printer in code

edited March 2003 in General
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

Comments

  • edited March 2003
    Perhaps the following is what you're looking for?

    ppRpt.PrinterSetup.PrinterName := gPrinterName;


    Jon


  • edited March 2003
    Yes.. 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.