Hi
I am pretty new Stimulsoft. I was wondering how to use the StiWpfViewerControl in XAML. I tried following, but it doesn't seem to work (could not find StiWpfViewerControl' error).
xmlns:sti="clr-namespace:Stimulsoft.Report.Viewer;assembly=Stimulsoft.Report"
<sti:StiWpfViewerControl x:Name="viewerControl"/>
Could someone please guide me ?
Thanks
Anu
StiWpfViewerControl in Xaml
Re: StiWpfViewerControl in Xaml
Managed to figure it myself. But am still getting the Report empty.
This is what i am doing currently
<wpfViewer:StiWpfViewerControl Report="{Binding CurrentReport}" x:Name="viewerControl"/>
private Stimulsoft.Report.StiReport _CurrentReport;
public Stimulsoft.Report.StiReport CurrentReport
{
get { return _CurrentReport; }
set
{
_CurrentReport = value;
NotifyOfPropertyChange(nameof(CurrentReport));
}
}
this.CurrentReport = _Report;
this.CurrentReport.RenderWithWpf();
This is what i am doing currently
<wpfViewer:StiWpfViewerControl Report="{Binding CurrentReport}" x:Name="viewerControl"/>
private Stimulsoft.Report.StiReport _CurrentReport;
public Stimulsoft.Report.StiReport CurrentReport
{
get { return _CurrentReport; }
set
{
_CurrentReport = value;
NotifyOfPropertyChange(nameof(CurrentReport));
}
}
this.CurrentReport = _Report;
this.CurrentReport.RenderWithWpf();
Re: StiWpfViewerControl in Xaml
Hello,
Please check samples at the following link:
https://github.com/stimulsoft/Samples-WPF-CSharp
Thank you.
Please check samples at the following link:
https://github.com/stimulsoft/Samples-WPF-CSharp
Thank you.