Access Reporting Rest API From a windows application and print a report silently?
It is possible to do that?
3 Answers, 1 is accepted
0
Stef
Telerik team
answered on 05 Feb 2014, 10:25 AM
Hi Paulo,
You can use the REST API and perform all requests to get the document.
These operations are asynchronous, and the result report processed on the server will have to be printed from the machine on which is running the application. Thus our suggestion is to leave the report generation on the client and if needed just to serve data via data services. In case you need to transfer a report from remote location to the desktop client, you can use again data services to transfer an XML report definition, which will be deserialized or wrapped in a report source(XmlReportSource, UriReportSource, InstanceReportSource).
Let us know more details about your scenario, so we can provide you more accurate suggestions.
Regards,
Stef
Telerik
New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.
In the mean time, I managed to get it working using rest api to generate de report a the server and exporting the report to XPS, after the client send the xps directly to the printer.
What are the disadvantages of the method i-m using now?
0
Stef
Telerik team
answered on 10 Feb 2014, 01:19 PM
Hi Paulo,
I am glad to hear you resolve the issue.
The only considerations I meant were related to the multiple requests to the server and that you can leave the report generation on the desktop client. The approach you will use depends on your architecture and requirements.
Regards,
Stef
Telerik
New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.