I need to show some documents in my app, can it be done with ms word or google docs?
please guide
This method may help:
https://puravidaapps.com/snippets.php#2pdf
The use of the google viewer may show other formats as well
Use the first method to open the docx file in device browser.
Get you docx files onto your sdcard, not in assets.
You will need this mimetype for docx files:
application/vnd.openxmlformats-officedocument.wordprocessingml.document
OK, let us start again.
Where are you intending the docx files to be for your users to view them? On the device, online somewhere? Somewhere else ?
As far as I understand, you cannot access files in assets to view them in the method above once the app is compiled.
I want it to be viewed online...
Can you be more precise?
On your own server? On google drive? on another server somewhere ?
Do you have urls for these files?
Google drive
In which case get the shared link for a docx file.
Use a webviewer component
Set the gotoUrl to the shared link
This should simply just open the document for viewing
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.