Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Print settings on SSRS report

Posted on by Microsoft Employee

I'm using a controller class to run a report. If I create a menu item and set the object type to SSRS report and bypass the controller, the print destination settings appear on the parameters form. However, I need the controller class to do some processing. If I create a menu item and set the object type to Class and run my controller, those print parameters disappear.


I've looked at the project CustVendInvoiceRegisterReport which has similar structure, and I don't see any explicit calls to make the print parameters appear in the UI in the code.


How can I get the printer parameters to appear while still using the controller class?

Additional details:

Controller extends SrsReportRunController

UIBuilder extends SrsReportDataContractUIBuilder

Menu item (Display):

ObjectType Class

LinkedPermissionsType SSRSReport

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Print settings on SSRS report

    I apologize, let me reiterate. I have a menu item calling my controller class, and it has my report parameters but not the printer settings. If I change the menu item to call the SSRS report directly, the printer settings show up alongside my parameters. I need to have the menu item call the controller and also have the printer settings populate alongside my parameters.

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Print settings on SSRS report

    Till yet I am unable to get your exact question or direction of question. It seems going up and down. 

    Anyway, Standard AX reports show you Printer or print setting because of the fact “User may want to take report output in different formats and at different destination”. Use may print it directly on a printer or user may just view it on screen. Or user may save it in any format.

    Apparently AX reports may not call any code, but it is calling. Infect when you click an output menu item, a lot of thing happen behind the scene at reporting framework. An example of that can be “Reading Print Destination settings” or retrieving Last values and setting ranges for quires etc. etc.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Print settings on SSRS report

    Thanks, that might be the answer. I'm still wondering why that base AX report has the printer settings on it when it does not explicitly call any code.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Print settings on SSRS report

    Hi

    You can override the dialog method in the controller class and update the printersettings through it. It's doable

    refer this post dannyax.blogspot.co.uk/.../ax-2012-pass-printer-settings-from.html

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,104 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans