Tererik report Rest Api,Visual stdio 2015 .net 4.8 framework

1 Answer 94 Views
Report Parameters
shilpi
Top achievements
Rank 1
shilpi asked on 12 Apr 2022, 01:31 PM

Report Services Are work 

 

[{"name":"PDF","localizedName":"Acrobat (PDF) file"},{"name":"CSV","localizedName":"CSV (comma delimited)"},{"name":"XLS","localizedName":"Excel 97-2003"},{"name":"RTF","localizedName":"Rich Text Format"},{"name":"IMAGE","localizedName":"TIFF file"},{"name":"MHTML","localizedName":"Web Archive"},{"name":"XPS","localizedName":"XPS Document"}]

 

but when we call from react js

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 15 Apr 2022, 07:10 AM

Hello Shilpi,

Thank you for the provided information!

Indeed, since the service successfully returns the formats JSON, it must be working correctly. However, it appears that the service's CORS has not yet been set up. Since you have a react application on another host, you will need to set up the service's CORS policy to accept requests from that host. To do this, you may follow step 9 of the How to Add Telerik Reporting REST Web API to Web Application article.

Regards,
Dimitar
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
Report Parameters
Asked by
shilpi
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or