Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Unanswered

Access selected Printer in Report page

Posted on by 2
Hi 
 
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 
 
  • Suggested answer
    Andy Wingate Profile Picture
    Andy Wingate 201 on at
    Access selected Printer in Report page
    Hello 
     
    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!
     
     
    Cheers
    Andy
  • PhillipsB Profile Picture
    PhillipsB 27 on at
    Access selected Printer in Report page
    Hi,
     
    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.
     
    Hope it will help
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    Kamal Khakhkhar 267 on at
    Access selected Printer in Report page
    Hii there ,
     
    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.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans