108
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
2021-03-18 21-03-15
Benjith Sam
 
MVP

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

UserImage.jpg
Inna Gindina

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



2021-03-18 21-03-15
Benjith Sam
 
MVP

You're welcome, Inna.

Glad to help you :)


Kind regards,

Benjith Sam

UserImage.jpg
Inna Gindina

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

2021-03-18 21-03-15
Benjith Sam
 
MVP

Hi Inna,

Sorry for the late response. I observed that you have got the required solution in your other post regarding the same query.


Kind regards,

Benjith Sam

UserImage.jpg
Inna Gindina

Thanks for response Benjit, I am new on this forum, may be placed my query in many places.

I am looking for solution how to read file which I was able to download to hard drive.

I was  looking for User Function BinaryDataToText but I cannot find it.

Is there some way to get this function? 

Thanks in advance!

Regards,

Inna


2021-03-18 21-03-15
Benjith Sam
 
MVP

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.