This is a migrated thread and some comments may be shown as answers.

Trying to localise the ReportViewer

1 Answer 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 14 Mar 2013, 01:02 PM
I have the following ReportViewer at the bottom of one of my pages.  I wish for it to display in French for French users.
<div style="text-align: center; min-height: 300px; margin-top:5px;">
    <telerik:ReportViewer ID="ReportViewer" runat="server" Width="100%" Height="850"  />
</div>
      
Here's code-behind
If currentReport IsNot Nothing Then
 
    Dim instanceReportSource As New Telerik.Reporting.InstanceReportSource()
    instanceReportSource.ReportDocument = currentReport
 
    ReportViewer.ReportSource = instanceReportSource
 
End If

Here's my Report Code-Behind
public partial class RiskDashboard : Telerik.Reporting.Report
   {
public RiskDashboard()
       {
           // Required for telerik Reporting designer support
           //
 
           System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-CA");
           System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-CA");
           InitializeComponent();
 
           }
 
       }

Any ideas what i'm missing?



1 Answer, 1 is accepted

Sort by
0
Hadib Ahmabi
Top achievements
Rank 1
answered on 18 Mar 2013, 03:10 PM
Do you have the localized resources file (*.resx)?
You can find thorough instructions here: http://www.telerik.com/help/reporting/report-viewer-localization3.html
Tags
General Discussions
Asked by
Tim
Top achievements
Rank 1
Answers by
Hadib Ahmabi
Top achievements
Rank 1
Share this question
or