Globalized Report sample

Stimulsoft Reports.WEB discussion
Post Reply
kulwinder
Posts: 8
Joined: Mon May 31, 2010 6:24 am
Location: India

Globalized Report sample

Post by kulwinder »

I have not found "Globalized Report sample " in my installion.

Could you please le me know from where I can download this sample. I need this for implement localization.


Thanks,
Kulwinder
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Globalized Report sample

Post by Andrew »

Hello,

Please download it at http://stimulsoft.com/Private/GlobalizedReport.zip

also please find the attached archive

Thank you.
Attachments
457.GlobalizedReportWeb.zip
(879.4 KiB) Downloaded 860 times
kulwinder
Posts: 8
Joined: Mon May 31, 2010 6:24 am
Location: India

Globalized Report sample

Post by kulwinder »

Thanks Andrew

But this code is not useful for me. My problem is that I am using Report's class file instead of ".mrt" file.

My Below code is not working
StiReport report = new StiReports.Report(); // Report is genrated cs class
report.GlobalizationManager = new GlobalizationManager(new CultureInfo(cultureName));
report.RegData(data);
stiwebviewerfx1.Report = report;


Working Code
StiReport report = new StiReport();
report.GlobalizationManager = new GlobalizationManager(new CultureInfo(cultureName));
report.RegData(data);
report.Load(appPath + "\\Data\\SimpleList.mrt");
stiwebviewerfx1.Report = report;


And also there is no "GlobalizationFile" property in stiwebviewerfx1. I tried "Localization" but this is only working if I set it in markup language.

Please suggest.

Thanks
Kulwinder
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Globalized Report sample

Post by Vladimir »

Hello,

Please use the GetDataSet event to set the report globalization parameters:

Code: Select all

protected void StiWebViewerFx1_GetDataSet(object sender, Stimulsoft.Report.WebFx.StiWebViewerFx.StiGetDataSetEventArgs e)
{
    e.DataSet = data;

    e.Report.GlobalizationManager = new GlobalizationManager(new CultureInfo(cultureName));
    e.Report.Compile();
}
Thank you.
Post Reply