Load multiple reports, working for export, not for render on web page
asp.net core 5 mvc project, load multiple reports, when do export to pdf, it is working
but when render in View, it just show last report
thx for any help?
This discussion has been closed.
Comments
Hello!
To resolve this issue, you can combine them into a single WebReport (just as you do for PDFs): load the first report, call `Prepare()`, then load the subsequent ones and call `webReport.Report.Prepare(append: true)`, passing the already prepared WebReport to the View (SingleMode/prepared pages).
Alternatively, you can display several separate WebReports by creating a new instance of `new WebReport()` for each one (each new instance automatically generates a unique read-only ID) and rendering `@await wr1.Render()` and `@await wr2.Render()` in the View.