Skip to main content

Notifications

Announcements

No record found.

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

Reportextension printing report in the language of the "Language Code" field on customer

Posted on by 225
Hello!
 
I have a few custom reports we have made, and I want to extend these with a reportextension that adds this line from the documentation:
CurrReport.Language := LanguageMgmt.GetLanguageIdOrDefault(/Language Code/);
 
I want to add this because I need the reports to print in the language connected to the customer, so english customers get english reports, chinese get chinese ones, and so on.
 
I just don't know how to add that line to the reportextension.
The reason why I need to do it in a reportextension, is because I can't actually get the code from the custom report in .alpackages and reuse it like I normally would with the standard ones. 
Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,647 Super User 2024 Season 2 on at
    Reportextension printing report in the language of the "Language Code" field on customer
    Hi, the standard is placed in the OnAfterGetRecord() trigger of the root dataitem. You can try it.
     
    For example,
     
    Hope this helps.
    Thanks.
    ZHU

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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans