Is any possibility to access selected printer in report page ? I need to display the Printer Description just below the Printer Name , and also it need to update when changing printers
Can you not save yourself a lot of hassle and simply update the printer ID to give enough info for the users?
Also it is only 1 click to see the full desc - It might be better to manage the users expectations than add in a developent for this small change - if that is possible!
It's possible. As mentioned, You can do this with the OnAfterGetPrinterName event in ReportManagement to capture the selected printer. You can retrieve the printer name and then use it as a trigger to pull additional details.
You can customize the report layout to display the printer description just below the printer name. This can be done by adding a custom field for the printer description that dynamically updates based on the selected printer. To dynamically update the printer description, you may need to create a mapping in the code where the printer name corresponds to its description. You can store these details either in a setup table or hard-code them, depending on the complexity of your requirement.
However, Ensure that whenever the printer is changed, the report page is refreshed, and the description is updated. You can handle this by calling the refresh logic within the event that listens for printer changes. By combining the OnAfterGetPrinterName event with a bit of layout customization, you should be able to display the printer description as required.
As far I know there we can add option below options in provided snapshot .
And if you want to get the name you can use the following event -> OnAfterGetPrinterName From ReportManagement
You can apply some more customisation as per requirement.
If you found answer please mark it answered.
Thank you,
Kamal Khakhkhar
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.