Welcome! Log In Create A New Profile

Advanced

[WD24] Send a specific report to specific printer tray

Posted by ccc2 
Hi,

I need to print a report to a specific printer tray . How do I do this ? I can't find tray in iparameter()
Re: [WD24] Send a specific report to specific printer tray
May 15, 2019 11:51AM
Hi,

you need iPaperSource for that

And you can let the user pick a papertray with this code

// initialize the printer parameter window with the requested printer but don't make it permanent
iConfigure(COMBO_Printer..DisplayedValue,True)
// preset the window with the values choosen before
iParameter(iPaperSource,EDT_PaperSource)
iParameter(iPaperSize,EDT_PaperSize)
// show the parameter window
IF iConfigureReport(RPT_RouteLijst) THEN
// save the new paper source
EDT_PaperSource = iParameter(iPaperSource)
EDT_PaperSize = iParameter(iPaperSize)
END

Arie
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: