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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Answered

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

    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

    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans