Jump to content
  • 0

Preview File in a Tabular Report


QueenB

Question

4 answers to this question

Recommended Posts

  • 0

Hi @QueenB,

 

Yes, it is possible to open a file instead of downloading it automatically.

 

The documents must be saved also under the Files tab on All Assets and enable the FileStor CDN.

For more information about FileStor please refer to this link: https://howto.caspio.com/files-and-images/filestor-cdn/

On your DataPage, enable Hyperlink for the download and Custom Hyperlink text. Please insert this on the field:
<a href="[@field:Docu/]" target="_blank">[@field:Docu]</a>

Please change the field to the corresponding field name on your table. 

 

image.png.a06e04ba71deb2d9c63efe7324a47e82.png

 

Hope this helps.

 

-kristina

Link to comment
Share on other sites

  • 0

I discovered another solution to preview or open attached files in the DataPage instead of downloading them, and without enabling FileStor CDN. It is by using Google Document Viewer.

In an HTML Block, just paste this code:

<a href="https://docs.google.com/viewerng/viewer?url=[@field:Doc/]" target="_blank">[@field:Doc]</a>

 

You just need to change the field name to your corresponding field in the Table [@field:Doc]

 

Hope this helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...