Page 1 of 1

Globalized Report sample

Posted: Wed Jun 16, 2010 7:22 am
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

Globalized Report sample

Posted: Wed Jun 16, 2010 7:38 am
by Andrew
Hello,

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

also please find the attached archive

Thank you.

Globalized Report sample

Posted: Thu Jun 17, 2010 2:12 am
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

Globalized Report sample

Posted: Thu Jun 17, 2010 2:56 am
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.