14
Views
7
Comments
Cannot open the  file content for link with attached file
Application Type
Traditional Web

Hello,

I implemented the link and bind it to Word format  attached file. It created Open File link in the bottom of the screen. When I tried to open a link, I started having a message "Word found unreadable contents in the file. Do you want to recover the content?" and when click "Yes" the message come up "Word experience an error trying to open the file"

Screenshot202101051.png

mvp_badge
MVP
Rank: #78

Hi Inna,

Sorry! I'm not able to understand "Word attached file"?

Is it that you are referring a word document Binary content (via an hidden link) from database table or referring the Word file from some server location?

See this sample app (I'm referring the word document imported in the Data Tab/Resource Directory of the application module)

URL Syntax:

"http://docs.google.com/gview?url=http://YOUR_FILE_PATH&embedded=true"
"http://docs.google.com/gview?url=" + "https://personal-zm7txfa3.outsystemscloud.com/TWA_Lab/Sample.docx" + "&embedded=true"


If this is not what you are looking for, could you please elaborate more about your use-case. So that we can help you better :)


Hope this helps you!


Kind regards,

Benjith Sam

Rank: #42889

Hello Benjith,

Thanks a bunch for your response!

Looks like this is exactly what we wants. We need to open attachment in the Word format.

Will use this sample to see how it works in our environment.

Again, thanks a lot for help!

Regards,

Inna



Rank: #42889

Hello Benjith, 

I followed your advise and I am able to download the file, the only problem I am not able to read it.

There are  file with four extensions in my application: ".pdf", ".doc",".docx",".xls" ".txt"

I would be really appreciated if you give me advise how to read the contents of these files .

Thank you so much in advance.

Regards,

Inna

mvp_badge
MVP
Rank: #78

Hi Inna,

You can find/reference the BinaryDataToText function from the BinaryData Extension module as shown below.

What kind/type of file you are trying to read from the local machine? 

Hope this helps you!


Kind regards,

Benjith Sam