Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

New Report cannot be rendered on screen when posted to journal (aka not proforma)

$
0
0

I've written a new Report that's is generated in tandem with the Sales Confirmation Report.

When I run the Sales Confirmation report and the new report as Proforma then I can set whether I want them to be displayed onscreen or sent to a printer. Both options work.

When I run the reports normally (with posting to the journal) then my report can only be sucessfully sent to a printer. When I select on screen I get the following exception:

Cannot render the report to the screen when running in non-client mode (for example, in batch or in IL). Change the print destination to a location other than the screen. For example, a printer, file, or email.

The way my report is integrated is as follows:

  1. In SalesConfirmController.outputReport() I check if the report needs to be printed
  2. If so a method printMyReport in SalesConfirmJournalPrint is called
  3. This method creates a MyReportController and passes the necessary root record and print settings to it

Viewing all articles
Browse latest Browse all 72043

Trending Articles



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