web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by 211

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

*This post is locked for comments

I have the same question (0)
  • Kempeth Profile Picture
    211 on at
    RE: New Report cannot be rendered on screen when posted to journal (aka not proforma)

    I don't understand what you mean.

    There is a document management system attached in the background which can operate in Batch or Interactive mode. The base reports (Sales Order Confirmation) is handled in batch mode and works with onscreen rendering or printing. My new report can be set either way and only works with printing.

  • Verified answer
    Kempeth Profile Picture
    211 on at
    RE: New Report cannot be rendered on screen when posted to journal (aka not proforma)

    In order to solve an entirely different problem I've changed the report dataprovider to Pre-Processing. I'm not 100% sure what else I might have changed in the meantime. But it works now.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans