To open a particular report in a specific language in D365FO, you will need to create the labels for that language. The labels contain the translated text for different elements of the report, such as field labels, column headers, and other user interface elements.
By parameterizing the language ID and maintaining it in the report contract, you can dynamically set the language at runtime and generate the report in the desired language without hardcoding the value.
In my case it is Hardcoded.
Write below code in controller class Main method.
public static void main(Args _args)
{
LanguageSpecificContract contract;
LanguagespecificController controller;
controller = new LanguagespecificController();
controller.parmReportName(ssrsReportStr(LanguageSpecificReport, Report));
controller.parmReportContract().parmRdlContract().parmLabelLanguageId("fr-FR");// To open a report in specific language.
contract = controller.parmReportContract().parmRdpContract() as LanguageSpecificContract;
controller.parmArgs(_args);
controller.parmShowDialog(false);
controller.startOperation();
}
Keep Learning!!
No comments:
Post a Comment