Тема: Axapta report
Показать сообщение отдельно
Старый 30.07.2009, 14:02   #1  
Tat is offline
Tat
Участник
 
9 / 10 (1) +
Регистрация: 19.12.2008
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();