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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to show newly created SSRS report design in PurchPurchaseOrder in Ax 2012 R2

(0) ShareShare
ReportReport
Posted on by 260

Hi All 

ALD/Procurement and sourcing/Common/Purchase orders/All purchase orders

I follow below link to show the new design in  PurchPurchaseOrder report , But is not  working 

https://axmentor.wordpress.com/2014/04/16/show-newssrsreportdesign-printmanagement/

And I  customize PurchPurchaseOrderController main method below  its displaying ,But is not work

public static void main(Args _args)
{
SrsReportRunController formLetterController = PurchPurchaseOrderController::construct();
PurchPurchaseOrderController controller;

if (TradeFormHelper::isCalledFromForm(_args, formStr(VendPurchOrderJournalListPage)))
{
_args.record(VendPurchOrderJour::findRecId(_args.record().RecId));
}

controller = formLetterController;

if(_args.menuItemName() == menuitemOutputStr(PurchorderVatReport))
{

controller.initArgs(_args, ssrsReportStr(PurchPurchaseOrder, VATReport));
}
else
{
controller.initArgs(_args, ssrsReportStr(PurchPurchaseOrder, Report));
}

if (classIdGet(_args.caller()) == classNum(PurchPurchOrderJournalPrint))
{
formLetterController.renderingCompleted += eventhandler(purchPurchOrderJournalPrint::renderingCompleted);
}

formLetterController.startOperation();
}

I want to add new design in purchpurchaseorder report  ,  Please give  idea to solve this issues 

Best Regards

Shiva

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,399 Most Valuable Professional on at

    Hi sivakumar , please pay attention to what you use as tags. Your tag "How to show newly created SSRS report design in PurchPurchaseOrder in Ax 2012 R2" didn't look like a useful category of question.

  • Martin Dráb Profile Picture
    239,399 Most Valuable Professional on at

    Your code doesn't exactly because the reports uses print management, as mentioned in the blog post you linked above. You can't simply ignore the fact.

    You should tell us what exactly you mean when you say "it's not working"; it's never a sufficient description. Maybe you don't know how to configure print management after you make the new design available there.

  • Suggested answer
    JII SAADUDDIN Profile Picture
    1,832 on at

    Helo, sivakumar moorthy ! I didn't get your point actually.

    What do you mean, to Create new design report? or to Customize existing report?

    Your given code that is not the exactly to make it new.

    Find the RDP class

  • Sohaib Cheema Profile Picture
    49,679 Super User 2026 Season 1 on at

    You are not coding at correct place. Please have a look at next blogpost

    community.dynamics.com/.../running-a-different-design-of-a-report-part-1

  • Suggested answer
    Pradeep_Prakash Profile Picture
    717 on at

    Hi,

    Just customizing it the main method of the controller is not sufficient. This report is tied to Printmanagement settings.

    You need to customize the printmanagement classes to populate new report design.

    You can refer the below link as an example for your scenario.

    Regards,

    Pradeep

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans