I need to implement reporting in my SPA application, so I want to use REST Api and existing C# Reports.
I'm trying to implement custom Telerik Report resolver based on IReportSourceResolver
. I'm not able to find any useful information how Resolve
method works and how to use it.
I need to pass some metadata to resolver to be able select proper version of report instance and pass data to it. But how?
Found one post in Telerik forum that says, Resolve is called multiple times.
https://www.telerik.com/forums/report-created-multiple-times#-K8zJT1k40eGRN4QBpvtQg
That's right, but what can I do in every stage? How and when to decide what instance of report to create and pass parameters to load data source?
Input parameter report
in Resolve
method can be id, or anything to specify report. Ok, I can send there some id or name then switch to different Report
instances. Then I need to load and assign some TelerikReportData
and return some InstanceReportSource
.
But when Resolve
is called multiple times, all this is called multiple times too.I found no info how to use OperationOrigin
and create multiple step code.
So anyone knows where to look for examples how to create custom resolver with advanced functionality?
question from:
https://stackoverflow.com/questions/65831695/proper-way-to-implement-custom-ireportsourceresolver 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…