Support on 19 Dec, 2019 09:38 AM
Thank you for contacting us.
You need capture the setup for the tray first and then restore that setup before printing. If you only select the printer without restore a setup, you will print using the default tray.
Please have a look at the capture/restore example file to see how the capture/restore method is used.
Support on 20 Dec, 2019 08:17 AM
In the capture and restore example file, you capture the specific printer settings first and they get stored in the database. The specific printer setup is a string of text that gets stored in a field or global that you can use later on.
When you press the print button, the settings are loaded from that field or global before you print, so you print with the right settings that you choose earlier.
If you only choose a printer by name, then you select printer, but you don't set any specific printer settings such as the tray. So it's important to capture the printer setup in your own application and then restore that setup when the users need to print.
You can import our scripts in your application, but if you just use the necessary script steps in your own scripts, it will also work. But it's important that you understand how our example script works. I suggest you to go through the example script with the script debugger on and analyse what happens in the scripts.