Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

AX2009 - PrintJobSettings doesn't work properly in batch

Posted on by 55
Hi, 
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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,914 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,549 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans