How to define the language “pt-BR” in “Win Forms”?

Stimulsoft Reports.NET discussion
Post Reply
JohnJohnJuvenal
Posts: 3
Joined: Thu Sep 28, 2006 10:22 am
Location: Brazil

How to define the language “pt-BR” in “Win Forms”?

Post by JohnJohnJuvenal »

Working with “StimulReport.Net” in “Windows Forms”, I have problems, would like to always fix the language pt-BR (Portuguese Brazil), but in some computers texts in EN are shown (English).


in:
...
Stimulsoft.Report.StiReport report
...
report.GlobalizationManager.Culture = new System.Globalization.CultureInfo("pt-BR");
report.RegData(ds);

stiPreview.Report = report;
report.Render();
...

this codigo does not function. the texts of the buttons always are in English

:brick:


*erro from brazil.... lol
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

How to define the language “pt-BR” in “Win Forms”?

Post by Vital »

Hello!

First way:

Copy to your application dirrectory folder "Localization". In this folder place file br.xml.

Second way:

At start of your program place this code:

StiConfig.LoadLocalization("br.xml");

(This code requre latest prerelease build).

Thank you.
Post Reply