How to set window title of report viewer?

Stimulsoft Ultimate discussion
Post Reply
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

How to set window title of report viewer?

Post by tpontow »

Is it possible somehow to set the window title of the report preview window in code?

See red circle in attached image.
Attachments
Title part of the viewer i need to set to my own text.
Title part of the viewer i need to set to my own text.
StimulsoftPreviewWindow.png (24.3 KiB) Viewed 3237 times
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to set window title of report viewer?

Post by Alex K. »

Hello,

You can use the following code:

Code: Select all

StiOptions.Viewer.ViewerTitleText = "YourTitle";
Thank you.
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Re: How to set window title of report viewer?

Post by tpontow »

Thanks, works for Forms- and Wpf-Viewer!

Unfortunately it does not work in Silverlight :-) Any suggestions?
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to set window title of report viewer?

Post by Alex K. »

Hello,

We made some improvements in that direction.
Please check the last prerelease build when it will be available on next week.

Thank you.
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Re: How to set window title of report viewer?

Post by tpontow »

Thanks,

it now works in Silverlight too!
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: How to set window title of report viewer?

Post by Andrew »

Hello,

Thank you for letting us know about this.
Post Reply