RT Viewer

Stimulsoft Reports.UWP discussion
Locked
aline
Posts: 26
Joined: Tue Feb 25, 2014 2:26 pm

RT Viewer

Post by aline »

Hi!

I can't seem to get the viewer look shown in documentation:
Viewer on documentation
Viewer on documentation
Viewer on doc.PNG (114.25 KiB) Viewed 6043 times
I can only see this one:
Viewer on application
Viewer on application
viewer on app.png (13.2 KiB) Viewed 6043 times
Is it because I'm using the trial version? (I'm experimenting to determine if my company will buy it).



Another issue: is there a way to localize the viewer button labels?
If not, can I hide the button labels?
or, alternatively, can I hide the entire top bar ?

Thanks,

Aline
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: RT Viewer

Post by Alex K. »

Hello,
aline wrote:Is it because I'm using the trial version? (I'm experimenting to determine if my company will buy it).
Thank you for the information. We will update our documentation.
aline wrote:Another issue: is there a way to localize the viewer button labels?
If not, can I hide the button labels?
We have about 30 localization languages which it can use. They can be easily connected and used. What specific buttons and in what language they need to localize? Please describe in details and we could prepare a simple example.
aline wrote:or, alternatively, can I hide the entire top bar ?
You can use the StiOptions.Viewer.Elements class which need sets before viewer initialization.

Thank you.
aline
Posts: 26
Joined: Tue Feb 25, 2014 2:26 pm

Re: RT Viewer

Post by aline »

Hi!

Thank you for your quick answer.

The languages I would need would be, PT, ES, FR, FI (finnish) and of course EN .
Aleksey wrote:You can use the StiOptions.Viewer.Elements class which need sets before viewer initialization.
I've tried using the options you referred, but I still get a blank panel. I wanted to simply "delete" it, ie, it wouldn't show al all.

Thanks

Aline
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: RT Viewer

Post by Alex K. »

Hello,

You can use the following code for load localization from code:

Code: Select all

var storageFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync(StiLocalizationHelper.LocalizationsPath + "pt.xml");
await StiLocalizationHelper.LoadLocalizationAsync(storageFile);
I've tried using the options you referred, but I still get a blank panel. I wanted to simply "delete" it, ie, it wouldn't show al all.
Please check the following code:

Code: Select all

StiOptions.Viewer.Elements.MainToolBarVisibility = Visibility.Collapsed;
Thank you.
aline
Posts: 26
Joined: Tue Feb 25, 2014 2:26 pm

Re: RT Viewer

Post by aline »

Hi!

The code for the xml didn't work at first, it raised the error "File not found".
I've managed to get the file from your app installation and copied it to my app folder and loaded it from there. Worked :)

As for hiding the toolbar, the code

Code: Select all

StiOptions.Viewer.Elements.MainToolBarVisibility = Visibility.Collapsed;
only works at first. As soon as I right click anywhere on the screen, it shows again.

Thank you,

Aline
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: RT Viewer

Post by Alex K. »

Hello,

We couldn't reproduce this bug.
Can you please send us a sample project which reproduce the issue for anlalysis.

Thank you.
aline
Posts: 26
Joined: Tue Feb 25, 2014 2:26 pm

Re: RT Viewer

Post by aline »

Hello!

I send you a small sample.

You will see that the toolbar appears, once you right click.

Is shows empty, but it shouldn't appear at all.

Thank you

Aline
Attachments
STReportsToolbar.zip
(10.82 MiB) Downloaded 326 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: RT Viewer

Post by HighAley »

Hello, Aline.

You should set this option before Initialization.

Code: Select all

        public MainPage()
        {
            StiOptions.Viewer.Elements.MainToolBarVisibility = Visibility.Collapsed;
            this.InitializeComponent();
Thank you.
aline
Posts: 26
Joined: Tue Feb 25, 2014 2:26 pm

Re: RT Viewer

Post by aline »

Hello!

It worked just fine, thank you!

Aline
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: RT Viewer

Post by Andrew »

Hello,

Thank you for letting us know about this.

Have a nice day!
Locked