Upgraded reports no longer print sub reports

0 Answers 93 Views
Binding SubReport Upgrade
Eric
Top achievements
Rank 2
Eric asked on 23 Dec 2021, 02:16 AM

I have recently upgraded from v10 to v13 successful with no apparerent issues.  I moved to version 14 and 15 and the same reports no longer print their sub reports.  We bind the subreports data on creation of the subreport instance in the constructor and set an instance report source to the newly created report object inside if the detail section binding event.  Then none of the binding events raise on the subreport and it never prints.

Did somethinf change between 13 and 14 that would cause this?

Thanks in advance, Eric

Dimitar
Telerik team
commented on 27 Dec 2021, 12:20 PM

Yes, there have been changes made to the report events as of R3 2016, please see the Changes on items in report events are not applied KB article for more information on that. The issue is most likely related to those changes so please check the article and apply the necessary settings to the code/configuration. 

Also, please note that report events are considered a legacy approach and we do not recommend using events in newer versions. Telerik Reporting provides different declarative means that replace the need for events and provide the needed flexibility to handle most tasks: Using ExpressionsConditional FormattingBindings, and User Functions. These tools are typically the most productive way to build declarative reports and should be favored over using events.

Eric
Top achievements
Rank 2
commented on 28 Dec 2021, 05:27 PM

So  I looked through the links you sent and I was able to get this working again the way we had it using the configuration option

<processing cacheDefinitionProperties="false" />

Do you have any idea for how long that will work?  We have a lot of reports and reworking these is going to take a serious time commitment from management so I am guessing that is the next question they will ask me.

Thanks,

Eric

Dimitar
Telerik team
commented on 29 Dec 2021, 09:37 AM

We do not have plans for removing this option in the near future because there are still a lot of users in similar situations such as yours, with a lot of reports using report events. However, I would recommend not to use report events in any future reports that you create and instead use the tools mentioned above.

No answers yet. Maybe you can help?

Tags
Binding SubReport Upgrade
Asked by
Eric
Top achievements
Rank 2
Share this question
or