set target printer tray from code

Hello,
1. I am doing little research for my company where we have multiple tray printers and I wish to set different tray to print on from inside the code. How can I do this?
2. Also I would like to know what are IfrxPrintOptions.PrintOnSheet corresponding values (e.g. 1 = A4, 2 = A3, ect.) I tried to find right enum for it, I was looking in manuals and searched this forum but no success in that case. Thank you in advance.

Comments

  • edited 3:52AM
    kisiel365 wrote: »
    Hello,
    1. I am doing little research for my company where we have multiple tray printers and I wish to set different tray to print on from inside the code. How can I do this?
    2. Also I would like to know what are IfrxPrintOptions.PrintOnSheet corresponding values (e.g. 1 = A4, 2 = A3, ect.) I tried to find right enum for it, I was looking in manuals and searched this forum but no success in that case. Thank you in advance.
    Can I expect any anwser?
  • gpigpi
    edited 3:52AM
    1. TfrxReportPage(frxReport1.FindObject('Page1'))).Bin
    2. uses frxPrinter;
    frxPrinters.Printer.PaperNameToNumber()

Leave a Comment