How to: Overwrite Print Management on a SSRS report on Dynamics AX 2012

Today we are going to show you how to overwrite the print management settings on a SSRS report, this can be useful if you make a custom design on a standard report.

First, the print management can be found on almost all the modules of Dynamics AX. For this example we are going to use the “Accounts Payable” module, we can find the print management form for this module on the following route: DAT/Accounts receivable/Area page/Set Up/Form Set Up:

Here we need to click on “Print management” and this will open the following form:

For this example we are going to use the Customer Account Statement report. We saw on the previous image that this has a design configured named CustAccountStatementExt.report. So we created already a custom design for this report and we named it CustAccountStatementExtAux, to use it we are going to edit the class “CustAccountStatementExtController” on the method runPrintMgmt(lines 116 to 121):

So this piece of code will read the formletterreport class and with the PrintMgmtPrintSettingDetail class will create a new set of parameters where we are going to set the new design as we can see on line 7.With this new set of parameter we are going to fill the formLetterrReport class, and that’s it!

We have shown you how to set a custom design on a ssrs report that uses Print management, hope you like it and see you next time.