Page 1 of 1

Using Hyperlink to call API endpoint that provide file content

Posted: Wed Jul 03, 2019 1:44 pm
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.

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

Posted: Wed Jul 03, 2019 3:25 pm
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.

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

Posted: Wed Jul 03, 2019 4:00 pm
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.

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

Posted: Thu Jul 04, 2019 8:44 pm
by Lech Kulikowski
Hello

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

Thank you.