Skip to main content

Notifications

Small and medium business | Business Central, N...
Unanswered

Access selected Printer in Report page

(1) ShareShare
ReportReport
Posted on by 6
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 320 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 49 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 303 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans