The simple way to add a new report or new design of an existing report in Print management
Step-1 Create new class RAM_PurchPurchaseOrderReport
Step-2 Find class PrintMgmtDocType in Application Explore and
open in designer
Step-3 find the delegate
in PrintMgmtDocType class Delegate name is getDefaultReportFormatDelegate
Step-4 Subscribe to the event
of the above-highlighted event in the newly created class
Step-5 Now add your report design in the RAM_EventHandlerResult_PrintManagement
[SubscribesTo(classStr(PrintMgmtDocType),
delegateStr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
public static void
PrintMgmtDocType_getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType,
EventHandlerResult _result)
{
if(PrintMgmtDocumentType::PurchPurchaseOrderConfirmation ==_docType)
{
_result.result(ssrsReportStr(RAM_PurchPuchaseOrder,Report));
}
}
Step-6 Perform build and sync and verify on D365FO
Keep Daxing :)