I have simple batch code to read printer name from printer settings:
public void run() { LabelPrinterSettings sett; PrintJobSettings pjs; ;
select firstonly sett where sett.RecId == 5637155076;
pjs = new PrintJobSettings(sett.PrintJobSettingsPacked); info(pjs.deviceName()); }
It works if I run it on client, but it doesn't work when use batch processing - I see /Microsoft Print to PDF/ instead of real printer name which is stored in those settings.
Could somebody please advice what should I do to make it work in batch processing?
EDIT: this also doesn't work properly - SysPrintOptions::newPrintJobSettingsOnServer
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.