ReportOpenVisibility

Stimulsoft Reports.WPF discussion
Post Reply
werner_tom
Posts: 3
Joined: Wed Apr 14, 2021 8:31 am

ReportOpenVisibility

Post by werner_tom »

Hi,

i use the StiWpfViewerControl like this:

Code: Select all

 <wpfViewer:StiWpfViewerControl Grid.Row="1" Report="{Binding StiReport}"  ReportOpenVisibility="Collapsed"/>
on Button click i create the report in my viewmodel

Code: Select all

 var stiReport = (StiReport)_auftragManager.GetReport(SelectedReport.ReportDefinitionId, auftragPositionIds);
           await stiReport.RenderAsync();
           StiReport = stiReport;
after this, the "Open Button" in the StiWpfViewerControl is visible again. but why?

thanks
Thomas
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: ReportOpenVisibility

Post by Lech Kulikowski »

Hello,

This is an intermediate property. If you want to hide the button, you should set ShowReportOpen="false" option.

Thank you.
werner_tom
Posts: 3
Joined: Wed Apr 14, 2021 8:31 am

Re: ReportOpenVisibility

Post by werner_tom »

omg so easy :)
Thanks a lot
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: ReportOpenVisibility

Post by Lech Kulikowski »

Hello,

You are welcome!
Post Reply