* * *

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

k1attila1

  • Jr. Member
  • **
  • Posts: 63
[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: 130
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

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

It is perfect solution.
Attila

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus