RenderAsync does not fetch data from OData datasource
RenderAsync does not fetch data from OData datasource
I have a report template (an mrt file) using an OData datasource and I am trying to render and export it to pdf in Asp.NET Core. The pdf is generated but without data, only headers, labels and other design elements. I noticed that the OData is never called during RenderAsync method call. Because maybe there are an error in my code, I tried an example you provide for rendering and exporting from a C# console program and I had the same result. Could you give me a valid example for this use case? Thanks.
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am
Re: RenderAsync does not fetch data from OData datasource
Hello,
We couldn't reproduce the issue.
Please send us a sample project that reproduces the issue for analysis.
Thank you.
We couldn't reproduce the issue.
Please send us a sample project that reproduces the issue for analysis.
Thank you.
- Attachments
-
- Screenshot 2021-08-24 232344.png (302.18 KiB) Viewed 1647 times
Re: RenderAsync does not fetch data from OData datasource
Thanks for your soon response. The image you shared was very useful. My error was put an slash ("/") at the end of the url to the OData API. Rendering fails with "https://localhost:44393/odata/" and works fine with "https://localhost:44393/odata". Method StiReport.Render (or StiReport.RenderAsync) fails when fetching data if the url has not the expected format without throwing and exception or writing a message in a log output. Is there any way to enable log messages in case of this kind of errors? Thanks. I tried what you suggest here "viewtopic.php?t=58576" but it only writes this in the log file, even when rendering fails:
2021:08:26, 09:49: StiReport: Loading report
2021:08:26, 09:49: StiReport: Rendering report
2021:08:26, 09:49: StiReport: Exporting rendered report
2021:08:26, 09:49: StiPdfExportService: Export report to Pdf format
2021:08:26, 09:49: StiReport: Loading report
2021:08:26, 09:49: StiReport: Rendering report
2021:08:26, 09:49: StiReport: Exporting rendered report
2021:08:26, 09:49: StiPdfExportService: Export report to Pdf format
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am
Re: RenderAsync does not fetch data from OData datasource
Hello,
Unfortunately, there is no possibility to log in the JS version. You can check it only in the debugging.
Thank you.
Unfortunately, there is no possibility to log in the JS version. You can check it only in the debugging.
Thank you.
Re: RenderAsync does not fetch data from OData datasource
Hello,
My question is about .NET version, not JS version. I can't see errors (like the one I commented) in any way (debugger window, console, log file, exceptions, anything). Is there a way to see errors?
My question is about .NET version, not JS version. I can't see errors (like the one I commented) in any way (debugger window, console, log file, exceptions, anything). Is there a way to see errors?
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am
Re: RenderAsync does not fetch data from OData datasource
Hello,
Please send us a sample project that reproduces the issue for analysis.
Thank you.
Please send us a sample project that reproduces the issue for analysis.
Thank you.
Re: RenderAsync does not fetch data from OData datasource
Hello,
Yours is clearly an automatic reply. I have not an issue. We have paying a very expensive license with you and need clear feedback. Please, give us a proper response to the question.
Thanks.
Yours is clearly an automatic reply. I have not an issue. We have paying a very expensive license with you and need clear feedback. Please, give us a proper response to the question.
Thanks.
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am