Possibilities for printer selection/assignment

mroepermroeper Member Posts: 2
edited 2008-04-11 in Dynamics AX
Hello AX community,

what possibilities exist in AX (3.0) to classify, what report is printed on what printer if user xy is triggering the print job?

Is there a "printer selection" where one can enter the needed combination/s (user/report/printer) and/or is programming necessary?

Best Regards,

Matthias

Comments

  • burdee64burdee64 Member Posts: 20
    Hello Mattias,

    The only way I can think of is by coding:
                   _args = new args();
                    _args.record(myTableRecord);
                    _args.name(reportStr(myReport));
    
                    report  = new ReportRun(_args);
    
                    _PrintJobSettings = report.printJobSettings();
                    _PrintJobSettings.setTarget(PrintMedium::Printer);
                    _PrintJobSettings.deviceName(@"myPrintername", ClassRunMode::Server);
                    report.printJobSettings(_PrintJobSettings.packPrintJobSettings());
    
    
    
                    report.run();
    

    Hope this helps you out a bit...

    Regards,
    Bert van Dijk
    Rotor BV
Sign In or Register to comment.