Share via


SrsReportRdlDataContract.parmLanguageId Method [AX 2012]

Gets or sets the LanguageId parameter that specifies the language that the report is rendered in.

Syntax

public LanguageId parmLanguageId([LanguageId _languageId])

Run On

Called

Parameters

Return Value

Type: LanguageId Extended Data Type
The value of the LanguageId parameter.

Remarks

The following code illustrates how to change the language that the report is rendered in to “FR”.

static void Job1(Args _args)
{
    SrsReportRunController controller;
    SRSPrintDestinationSettings printSettings;
    SRSReportFileFormat format;
    SrsReportDataContract reportDataContract;
    SrsReportRdlDataContract rdlContract;
    
    controller = new SrsReportRunController();
    controller.parmReportName("Report1.AutoDesign1");
        
    reportDataContract = controller.parmReportContract();
    rdlContract = reportDataContract.parmRdlContract();
    rdlContract.parmLanguageId("FR");
    
    printSettings = controller.ParmReportContract().ParmPrintSettings();
    printSettings.printMediumType(SRSPrintMediumType::File);
    printSettings.fileFormat(SRSReportFileFormat::PDF);
    printSettings.fileName("C:\\Report1.PDF");
    printSettings.overwriteFile(true);
            
    controller.run();
}

See Also

Reference

SrsReportRdlDataContract Class