Axapta report
Я создала метов репорта на печать в Акзапте. Потом я вызвала этот метод из .Net. Репорт не печатается. Что может быть не так? В чем ошибка? Я протес тировала этот метод в Акзапте и репорт должен идти на печать. Вот код метода из Акзапты :
RunbaseReportStd runbaseReportStd;
ReportRun reportRun;
Args args;
;
args = new Args();
args.name(reportstr(Plan));
reportRun = classFactory.reportRunClass(args);
runbaseReportStd = RunbaseReportStd::construct();
runbaseReportStd.initReportRun(reportRun);
runbaseReportStd.makeQueryRun();
runbaseReportStd.queryRun().interactive(false);
runbaseReportStd.queryRun().query().dataSourceNo(1).addRange(fieldnum(PlanTable, PlanId)).value(SysQuery::value('PL000049'));
runbaseReportStd.makePrintJobSettings();
runbaseReportStd.reportRun().report().interactive(false);
runbaseReportStd.reportRun().query().interactive(false);
runbaseReportStd.printJobSettings().setTarget(PrintMedium::Printer);
runbaseReportStd.printJobSettings().deviceName(@'Canon LBP2900');
runbaseReportStd.printJobSettings().copies(1);
runbaseReportStd.run();
|