Page 1 of 1

ReportOpenVisibility

Posted: Wed Apr 14, 2021 8:40 am
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

Re: ReportOpenVisibility

Posted: Wed Apr 14, 2021 10:49 am
by Lech Kulikowski
Hello,

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

Thank you.

Re: ReportOpenVisibility

Posted: Wed Apr 14, 2021 10:59 am
by werner_tom
omg so easy :)
Thanks a lot

Re: ReportOpenVisibility

Posted: Wed Apr 14, 2021 11:31 am
by Lech Kulikowski
Hello,

You are welcome!