Hi,
I need to print some pages from a report to different trays of a printer on Nav 2013.
I have tried to set CurrReport.PAPERSOURCE(Number). It always print to the same tray.
I have created the function GetPaperTrayForReport on codeunit 1. It always print to the same tray.
See the printer settings attached.
Do you guys have any ideas how to sort this out?
Cheers
0
Comments
According to documentation:
"In the Report - Properties window, in the PaperSourceFirstPage field, choose the paper source. The list contains 13 standard trays and 16 printer-specific trays. It is based on information in the fin.stx file."
So if it's correct it may work as a numeric sequence of numbers so you would have to set the page from 1 to 29.
And keep this in mind:
"If the printer that is used for this report does not support the specified paper source, then the printer uses the default tray that is specified by the printer driver."
Gathering all this I think you should make some testes with the default page value you are using to see if that might be the problem.
Hope that this information might help you.
Have you tried installing the driver for the printer twice, then setting the properties on the second one to default to the second tray?
Cheers
Chris
"God and developers are in a constant battle. Developments to make their applications more idiot-proof, and God to produce bigger idiots!"
PaperSourceFirstPage
PaperSourceDefaultPage
PaperSourceLastPage
I have installed a second printer and defaulted the tray to tray 2 - It prints everything on Tray 2
Whichever tray I set as default on printer properties It prints from the default tray.