Search results
PDF

Localization of Bold Reports ASP.NET Web Forms Report Viewer

Localization of ASP.NET Web Forms Report Viewer allows you to localize the static text such as tooltip, parameter block, and dialog text based on a specific culture. To render the static text with specific culture, refer to the following corresponding culture script files and set culture name to the locale property of the Report Viewer.

* `ej.localetexts.fr-FR.min.js`
* `ej.culture.fr-FR.min.js`

Refer this CDN links for Localization and Culture to get the Localization and Culture scripts for available Culture Code.

  1. Install BoldReports.Global Nuget package in your ASP.NET application.

  2. Refer to this ej.localetexts.fr-FR.min.js script file from the Scripts folder of your application.

    <script src="Scripts/bold-reports/l10n/reportdesigner/ej.localetexts.fr-FR.min.js"></script>
  3. Refer to this ej.culture.fr-FR.min.js script file from the Scripts folder of your application.

    <script src="Scripts/bold-reports/i18n/ej.culture.fr-FR.min.js"></script>
  4. To render the localization Report Viewer, use the following code snippet in your application.

    <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <link href="Content/material/bold.reports.all.min.css" rel="stylesheet" />
    <script src="Scripts/jquery-1.10.2.min.js"></script>
    <script src="Scripts/common/bold.reports.common.min.js"></script>
    <script src="Scripts/common/bold.reports.widgets.min.js"></script>
    <script src="Scripts/data-visualization/ej.chart.min.js"></script>
    <script src="Scripts/bold.report-viewer.min.js"></script>
    <script src="Scripts/l10n/ej.localetexts.fr-FR.min.js"></script>
    <script src="Scripts/i18n/ej.culture.fr-FR.min.js"></script>
    
    <div style="height: 600px; width: 100%; min-height: 404px;">
        <Bold:ReportViewer runat="server" ID="viewer"
            ReportServiceUrl="/api/ReportViewer"
            ReportPath="~/Resources/sales-order-detail.rdl"
            locale="fr-FR">
        </Bold:ReportViewer>
    </div>
    </asp:Content>