Page 1 of 1
Report Preview Close Button
Posted: Wed Aug 16, 2017 2:28 pm
by vorauler
Hi
After the upgrade to version 2017.1.10 the close button in the preview dialog is not visible anymore.
Is this a known problem?
Code: Select all
StiReport report = new StiReport();
report.Load("OpenAnyReportFile.mrt");
report.ShowWithRibbonGUI();
TIA
Ralf
Re: Report Preview Close Button
Posted: Thu Aug 17, 2017 5:24 pm
by HighAley
Hello.
This button is disabled by default.
Please, set next static option:
Code: Select all
StiOptions.Viewer.Windows.ShowCloseButton = True;
Thank you.
Re: Report Preview Close Button
Posted: Fri Aug 18, 2017 8:45 am
by vorauler
Hi
Sorry I haven't clearly described my Problem.
Code: Select all
StiOptions.Viewer.Windows.ShowCloseButton = true;
This option works if I show the Report with the Default Viewer.
But I have put the StiRibbonViewerControl on a WindowsForms and there the Close button isn't showing anymore after the upgrade (see attachment).
And the button isn't showing with the above option either.
Do you have more hints?

- ViewerControl.png (26.55 KiB) Viewed 4464 times
TIA
Ralf
Re: Report Preview Close Button
Posted: Wed Aug 23, 2017 9:35 am
by HighAley
Hello.
By default, this button is hidden.
Please, use next option to enable it:
Code: Select all
StiOptions.Viewer.Windows.ShowCloseButton = true;
Thank you.
Re: Report Preview Close Button
Posted: Thu Sep 07, 2017 10:19 am
by vorauler
Hi
As I have written bevor this Option didn't work.
I have created a little sample that you will find here (Project CloseButtonBug).
https://www.dropbox.com/s/q782imzezsilt ... s.zip?dl=0
Ralf
Re: Report Preview Close Button
Posted: Fri Sep 08, 2017 9:49 am
by HighAley
Hello, Ralf.
You should set the static option before the initialization of the Viewer.
Please, move this line up.
Code: Select all
StiOptions.Viewer.Windows.ShowCloseButton = true;
InitializeComponent();
Thank you.
Re: Report Preview Close Button
Posted: Fri Sep 08, 2017 10:36 am
by vorauler
Hi
It work's now.
Ralf
Re: Report Preview Close Button
Posted: Fri Sep 08, 2017 2:35 pm
by HighAley
Hello, Ralf.
We are always glad to help you.
Let us know if you need our help.
Thank you.