Some of the document prints in the Dynamics Finance and Operations application have been configured as a part of the Print management framework.
The print management framework makes it possible that the design of a document print is configurable. However, this also restricts the configuration to be picked from the set of reports that are configured to be a part of the framework.
Hence, if a new design is being prepared for a document that needs to be configured in the document print management framework, then the following steps should be followed to register the new layout in the system.
Find the PrintMgmtDocType class and create a subscriber to the getDefaultReportFormatDelegate method.
class AFZPrintMgmtDocType_EventHandler { [SubscribesTo(classstr(PrintMgmtDocType), delegatestr(PrintMgmtDocType, getDefaultReportFormatDelegate))] public static void getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType, EventHandlerResult _result) { switch (_docType) { case PrintMgmtDocumentType::SalesFreeTextInvoice: _result.result(ssrsReportStr(AFZFreeTextInvoice, Report)); break; case PrintMgmtDocumentType::SalesOrderInvoice: _result.result(ssrsReportStr(AFZSalesInvoice, Report)); break; } } }
No comments:
Post a Comment