Print to Different Trays in NAV – Part 3: How to List Available Printer Trays
This post is part of a series on printing to different trays in Dynamics NAV
- Print to Different Trays in NAV – Part 1
- Print to Different Trays in NAV – Part 2
- Print to Different Trays in NAV – Part 3
- Print to Different Trays in NAV – Part 4
In this third part, we’ll see how you can find out which trays are available in your printer—an essential step before configuring tray selection in NAV.
To do this, I will explain two solutions.
Solution 1: Use the FindTrays Tool
This solution is based on a simple tool called FindTrays, kindly shared by Timo Lässer from the German NAV community msdynamics.de. You can download FindTrays here: FindTrays.exe.
To list available trays for your printer, run this command in the folder with FindTrays.exe:
./FindTrays.exe "MyPrinterName" > ./AvailableTrays.txt
Replace MyPrinterName with the exact name of your printer (see its properties in Windows).
Solution 2: Use a Custom NAV Report Alternatively, you can create a simple NAV report to print the tray number using:
The PAPERSOURCE function for NAV 2009 R2 Classic Client and older The properties PaperSourceFirstPage, PaperSourceDefaultPage, and PaperSourceLastPage for NAV 2013 and later (Windows Client/RTC) You can download sample sources and examples here: NAV Tray Report Example.
In the fourth part, we’ll apply what we learned, and we’ll discuss some NAV limitations.
This blog is also available on the Microsoft Dynamics NAV Community.
Have questions or suggestions? Reach out via LinkedIn or Twitter.