Report Preview Close Button

Stimulsoft Reports.NET discussion
Post Reply
vorauler
Posts: 71
Joined: Wed Jul 15, 2009 1:20 am

Report Preview Close Button

Post 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
Attachments
ReportPreview.png
ReportPreview.png (14.64 KiB) Viewed 4052 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Report Preview Close Button

Post by HighAley »

Hello.

This button is disabled by default.
Please, set next static option:

Code: Select all

StiOptions.Viewer.Windows.ShowCloseButton = True;
Thank you.
vorauler
Posts: 71
Joined: Wed Jul 15, 2009 1:20 am

Re: Report Preview Close Button

Post 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
ViewerControl.png (26.55 KiB) Viewed 4047 times
TIA
Ralf
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Report Preview Close Button

Post 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.
vorauler
Posts: 71
Joined: Wed Jul 15, 2009 1:20 am

Re: Report Preview Close Button

Post 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
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Report Preview Close Button

Post 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.
vorauler
Posts: 71
Joined: Wed Jul 15, 2009 1:20 am

Re: Report Preview Close Button

Post by vorauler »

Hi

It work's now.

Ralf
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Report Preview Close Button

Post by HighAley »

Hello, Ralf.

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

Thank you.
Post Reply