Using API Gateway

Stimulsoft Dashboards.WEB discussion
Post Reply
senli
Posts: 3
Joined: Tue Sep 21, 2021 9:55 am

Using API Gateway

Post by senli »

Hi,

We are using Stimulsoft Web MVC version as a micro-service.
Wish to know is it possible to Export Reports, but to go through an API Gateway ?

example when press Export button, it will open a new tab with the url
http://reports/...

instead we would like it to use gateway like below
http://gateway/reports/...

Thanks
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Using API Gateway

Post by Lech Kulikowski »

Hello,

You can use the following code:
Report.Render(false);
Report.ExportDocument(StiExportFormat.Pdf, stream);

and then use stream as you need

Thank you.
Post Reply