Page 1 of 1

¿How I can change the viewer language?

Posted: Thu Mar 01, 2012 5:02 am
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!

¿How I can change the viewer language?

Posted: Thu Mar 01, 2012 9:35 am
by Alex K.
Hello,

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

Thank you.

¿How I can change the viewer language?

Posted: Fri Mar 02, 2012 8:25 am
by rbermudez
It's works for me, but only with relative paths.

This is not a problem to me, thanks!

¿How I can change the viewer language?

Posted: Mon Mar 05, 2012 2:07 am
by Alex K.
Hello,

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

Thank you.