AX 4.0 调用打印设定的功能
PrintJobSettings printJobSettings; PrintJobSettings printJobSettings2; Boolean ok; container packPrintInfo; ; printJobSettings = new printJobSettings(); ok = printJobSettings.printerSettings(formstr(SysPrintForm), null,null,0); //显示打印设定对话框 if( ok) { packPrintInfo = printJobSettings.packPrinterSettings(); printJobSettings2 = new PrintJobSettings( packPrintInfo,true); }
效果如图示