Quantcast
Channel: Microsoft Dynamics AX
Viewing all articles
Browse latest Browse all 101540

Forum Post: Batch printing to file writes inomplete files (it stops at 1st page)

$
0
0
Hi, i'm using a class to print a (not standard) report for each customer on Ax 2009. The class is executed on batch and with these lines of codes it writes the report on file (i commented the parameters to the report section, since it's not part of the issue): report = new ReportRun(new Args(ReportStr(MyCustReport))); report.printJobSettings().setTarget(PrintMedium::File); report.printJobSettings().format(PrintFormat::PDF); report.printJobSettings().fileName(fileName); //parameters to the report report.run(); Everything works fine, but at a certain (i think random) point, it starts generating PDFs file with only one page, even when the report file should be two or three pages. So I've got files with missing data. First files are ok, but after a bit it starts generating these incomplete reports.... What could be this caused by? Any suggestion? Thank you in advance

Viewing all articles
Browse latest Browse all 101540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>