Subreport-Eventhandler always null in Designer on Preview

Stimulsoft Reports.WEB discussion
Post Reply
chu
Posts: 2
Joined: Wed Jan 27, 2021 8:09 am

Subreport-Eventhandler always null in Designer on Preview

Post by chu »

Hello.
We use SubReports and use the StiReport.GetSubReport delegate to register a Handler for Loading the Subreports.
Works perfectly fine when using report.Render();

However, when we use the designer (started via report.Design()) and show the Preview,
inspecting "StiReport.OnGetSubReport" shows that this.GetSubReport is always null. Somehow the assigned StiGetSubReportEventHandler is lost when starting the Designer. The SubReports are therefore not loaded and the preview shows empty pages.
I hear from my colleagues that this used to work sometime in earlier versions.

Thank you and greetings.
Lech Kulikowski
Posts: 7334
Joined: Tue Mar 20, 2018 5:34 am

Re: Subreport-Eventhandler always null in Designer on Preview

Post by Lech Kulikowski »

Hello,

Please send us a sample that reproduces the issue for analysis.

Thank you.
Post Reply