Using Hyperlink to call API endpoint that provide file content

Stimulsoft Reports.JS discussion
Post Reply
pobber1
Posts: 19
Joined: Fri Jun 28, 2019 8:39 am

Using Hyperlink to call API endpoint that provide file content

Post by pobber1 »

Hi,

I'm trying to call an API function that returns an file and then have the browser download this file.

Can Stimulsoft facilitate this using the Hyperlink option?

Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Using Hyperlink to call API endpoint that provide file content

Post by HighAley »

Hello.

You could try to do it in the Hyperlink property in the curly brackets.

Also, there is the GetHyperlink event of the text component that you could use.

What kind of function do you need to call?

Thank you.
pobber1
Posts: 19
Joined: Fri Jun 28, 2019 8:39 am

Re: Using Hyperlink to call API endpoint that provide file content

Post by pobber1 »

Basically in my report I want to have a link "Document 1" that the user can click, this calls an url "http://site/api/getdocument/1" and the document downloads.

I will try your suggestions.

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

Re: Using Hyperlink to call API endpoint that provide file content

Post by Lech Kulikowski »

Hello

Ok.
Please let us know if you need any additional help.

Thank you.
Post Reply