Subreport-Eventhandler always null in Designer on Preview
Posted: Wed Feb 03, 2021 9:26 am
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.
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.