Hi Akansha,
There was a similar question before. And as Tim's answer, You can try your file save as HTML and copy-paste that into a Mendix HTML widget. I leave a link u can also check that. Maybe it helps you!
https://forum.mendix.com/link/questions/104982
Kind regards,
Halil
Hi Akansha,
Use the below widget to view the file documents,
https://marketplace.mendix.com/link/component/116935