web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

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

(1) ShareShare
ReportReport
Posted on by 311
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. 
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,305 Super User 2025 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans