Document viewer

0
I have implemented document viewer in Mendix v6.10.3. I can view the pdf files properly. But getting "Invalid or corrupted PDF file." error for .xlsx files. Any clues to overcome this?
asked
3 answers
1

Soumya,

 

Not sure  how to fix the  issue with the widget. I would try a couple different excel formats to see if that worked. Alternatively, you can create a microflow that downloads the file.

Add an action button to the list or dataview that contains the excel file. Pass the excel file as a parameter. Use the download file activity on the excel file object. 

answered
1

Soumya,

I don't think the File Document Viewer is able to display Excel files, rather, it will download them.

The error may be caused by setting Yes on the following tab for the File Document Viewer

Hope that helps,

Mike

answered
0

There is an open source library you can base on to create widget to read xlsx:

https://github.com/sheetjs/js-xlsx

 

 

answered