To add a field to the report, follow these steps:
- Locate the SalesConfirm report in the Application Explorer.
- Right-click on the report and choose Duplicate in project.
- Rename the report to ConSalesConfirm.
- Open the report in the designer and expand the Datasets and SalesConformHeaderDS nodes. Then, look for the new extension field in the Fields node. If this does not appear, right-click on each data set and choose Restore.
- You can now proceed to design the report as per your requirements.
The next stage is integrating the report so that our new report is used instead of the standard report. To do this, follow these steps:
- We will need to add an event handler to a delegate exposed by Microsoft on the PrintMgmtDocType class ...