Hi Everyone,
In this article we will see how we can run Customized report in place of standard Report using Report Management Codeunit.
As we all know that sometimes we get the basic requirements from Client to do some minor changes in Standard Report. Accordingly, will see how we can do changes in standard report or Create custom report and then Run the custom report in place of standard Report.
Step-(1) First we have to configure the new Report to replace it with Standard Report:
As in this case i have already Customized Purchase Order (Report ID - 50100) Report as show below:
Step-(2) Now create a procedure & subscribe it to the OnAfterSubstituteReport event, i.e, basically it will just replace the report specified by the ReportId with the newly created report as NewReportID parameter:
Step-(3) Now, publish the code and whenever you try to Run Standard Purchase - Order (1322) this will run our customized report as shown here:
NOTE - Report should be Compatible and based on accurate DataItems to replace it to avoid run time errors.
Hope this will Help You :)
Thanks for Reading!!!
Comments
Post a Comment