Microsoft Dynamics 365 Blog

Recently we were able to solve an issue with the print medium on certain reports. It is not changed immediately in a report print dialog option when it is generated from a class that extends RunBaseReportDialog.
This works fine when printing a standard report without extending from the RunBaseReportDialog class, (i.e, menu item object type is report).

The problem was caused by the following code line in method Classes/RunBaseReportDialog/main().
The prompt is called from the reportRun object instead of the reportDialog object .

res = reportRun.prompt();

To solve the problem we therefore had to change the code line like this:

res = reportDialog.prompt();

 

author: Sendil Kumar
editor: Daniel Durrer
date: 20/Dec/2010

We're always looking for feedback and would like to hear from you. Please head to the Dynamics 365 Community to start a discussion, ask questions, and tell us what you think!