Completed
Last Updated: 19 Sep 2018 12:31 by Marvin
Marvin
Created on: 04 Jul 2018 14:53
Type: Feature Request
0
Support relative URLs in hyperlinks
I understand that for most users, relative URLs don't make a lot of sense in reports.
However, we want export our report to PDF and link to other PDF files *in the same directory*.
As everything will be distributed as a ZIP file, we cannot know the absolute file path.
It should be easy to support this as this is supported by PDF out of the box.
Apparently, somewhere in the Reporting code, you remove URLs if they are not absolute. Just remove that check, let us put whatever we like in the hyperlinks.
Thanks.
4 comments
Marvin
Posted on: 19 Sep 2018 12:31
Thank you. What about the "Open a file" vs. "Open a web link" action? Any chance we can influence that?
ADMIN
Milen | Product Manager @DX
Posted on: 18 Sep 2018 07:25
Hi. The fix will be available for preview in eventual internal build and will be officially available in the 2018 R3 SP1 release due in mid-October.
Marvin
Posted on: 14 Sep 2018 11:37
Hi Milen,
Thank you very much for looking into this, that sounds great.
So far we have had to build a workaround by creating a "fake" absolute url (http://REMOVETHIS/document.pdf) and then remove the first part of the link in the generated PDF. It would also be great if you could not only support links (Acrobat displays their action as "Open a web link"), but also "Open a file" actions, as these don't generate a warning in the PDF reader.
I have illustrated the issue in the attached screenshot. Of course we only want to have one action per link, this is just an illustration. At the moment we also have to modify the action using a low-level PDF library.
Thank you!
Attached Files:
ADMIN
Milen | Product Manager @DX
Posted on: 14 Sep 2018 11:20
Hi, thanks for your input. We will implement the request. Keep in mind that in a report viewer preview these relative paths will not make sense as the target resource will not be reachable. You will be able to take advantage of the https://docs.telerik.com/reporting/expressions-global-objects#renderingformat expression context object to limit the action only for the desired (pdf for example) rendering format