Recent

Author Topic: [SOLVED ]fortesreport  (Read 3355 times)

k1attila1

  • Full Member
  • ***
  • Posts: 105
[SOLVED ]fortesreport
« on: March 01, 2017, 06:01:06 pm »
Hi colleagues

I would like to print with FortesReport to a non default printer.
Do you have any idea how can i change FortesReport printer settings from program code.

thank you again
Attila
« Last Edit: March 02, 2017, 05:02:26 am by k1attila1 »

patyi

  • Full Member
  • ***
  • Posts: 168
Re: fortesreport
« Reply #1 on: March 01, 2017, 07:46:35 pm »
Szevasz Attila ! (That's is Hi Attila)

add to uses section RLPrinters unit, in code :

 // by printer idex
    RLPrinter.PrinterIndex := 1;
// or by printer name name
   RLPrinter.PrinterName := 'HP LaserJet BlaBlaBla';
// you can define copies
   RLPrinter.Copies := 2;
// etc.

k1attila1

  • Full Member
  • ***
  • Posts: 105
Re: fortesreport
« Reply #2 on: March 02, 2017, 05:02:01 am »
Thank you (Kössz)

It is perfect solution.
Attila

 

TinyPortal © 2005-2018