¿How I can change the viewer language?

Stimulsoft Reports.WEB discussion
Post Reply
rbermudez
Posts: 5
Joined: Tue Jan 03, 2012 5:33 am
Location: A Coruña

¿How I can change the viewer language?

Post by rbermudez »

I have a web application to launch a viewer. I need change the viewer menu language to spanish. I'm trying with the StiLocalization.Load but don't work, the menu interface is in english.

Code: Select all

protected void Page_Load(object sender, EventArgs e)
        {

...
            // Para evitar diversos problemas se abre el reporte como array de bytes
            StiReport report = new StiReport();
            StiLocalization.Load(@"C:\Program Files\Stimulsoft Reports.Web 2011.2\Bin\Localization\es.xml");
            report.Load(Server.MapPath("reports/"+lr.reporteFilename));
            byte[] temp = report.SaveToByteArray();
            report = new StiReport();
            report.Load(temp);

            report.Compile();
            report.Render();
            StiWebViewer1.Report = report;
...
        }
Can you help me? thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

¿How I can change the viewer language?

Post by Alex K. »

Hello,

You can set the GlobalizationFile property for StiWebViewer component.
GlobalizationFile="Localization/es.xml"

Thank you.
rbermudez
Posts: 5
Joined: Tue Jan 03, 2012 5:33 am
Location: A Coruña

¿How I can change the viewer language?

Post by rbermudez »

It's works for me, but only with relative paths.

This is not a problem to me, thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

¿How I can change the viewer language?

Post by Alex K. »

Hello,

Ok.
Let us know if you need any additional help.

Thank you.
Post Reply