This post is part of a series of posts where I explain how to print to different trays in NAV.
In this third part, we’ll see how you can find what are available trays in your printer.
In order to do this, I will explain two solutions.
You can get available trays by executing this command line:
.\FindTrays.exe "MyPrinterName" > .\AvailableTrays.txt
How do you get your printer name? Simple, just go to your printer properties and you’ll find it under the general tab.
The second solution I suggest is base on NAV. The idea is to create a simple report that prints the tray number using:
- PAPERSOURCE function for NAV 2009 R2 Classic Client and older version,
- Properties PaperSourceFirstPage, PaperSourceDefaultPage and PaperSourceLastPage for version with Windows Client / RTC (i.e. NAV 2013 and later).
Sources and examples are available for download here. Enjoy!
In the forth part, we’ll apply what we learned and we’ll discuss some NAV limitations.
This blog is available also on Microsoft Dynamics NAV Community