Page 1 of 1

Cannot load localization

Posted: Wed Feb 22, 2017 8:08 pm
by msglobal
My Stimuls Designer is set to run in English because it's easier to work in English. However, my WPF application needs to open the StiWpfRibbonViewerControl in Portuguese.

I tried the following

C#

Code: Select all


byte[] array = Encoding.UTF8.GetBytes(Resources.pt_BR); // this is the XML file string
var stream = new MemoryStream(array);
StiOptions.Localization.Load(stream);
reportViewer.Report = GetMyReport();

XAML:

Code: Select all

<wpfViewer:StiWpfRibbonViewerControl x:Name="reportViewer"/>

It's not working though. Please can somebody help me?

Re: Cannot load localization

Posted: Thu Feb 23, 2017 9:39 am
by HighAley
Hello.

Please, try to use this code before the initialization of the Viewer.

Thank you.

Re: Cannot load localization

Posted: Thu Feb 23, 2017 11:26 am
by msglobal
Thank you! That worked. I put my code before the InitializeComponent() method of the window.

Re: Cannot load localization

Posted: Fri Feb 24, 2017 3:27 pm
by HighAley
Hello.

We are always glad to help you.
Let us know if you need our help.

Thank you.