Hello everyone,
I have a very simple WPF application which uses a StiWpfViewerControl to load a report in a xaml screen:
I want to be able to get the report file from an API like it's made for an Angular application:
What's the object and the method I'd have to use instead of StiAngularView.GetReportResult?
Thank you in advance
Get report from dotnet API
Re: Get report from dotnet API
Hello again,
Finally, I have found a solution for the question in this thread. In the API you have to return the report like this:
in the WPF application you have to retrieve the report like this:
"result" is the Content value from the httpClient call response (HttpContent type)
Thanks anywhere.
Finally, I have found a solution for the question in this thread. In the API you have to return the report like this:
Code: Select all
return report.SaveToString();
Code: Select all
report.LoadFromString(await result.ReadAsStringAsync());
Thanks anywhere.
-
- Posts: 7332
- Joined: Tue Mar 20, 2018 5:34 am
Re: Get report from dotnet API
Hello,
Thank you for the information.
Thank you for the information.