I want to open user's uploaded .doc,.docx,.txt or .pdf as html (open in browser)
I can open pdf without doing any extra coding. but i can't open other formates.
I want to open files when user click on the link "Show File" at that time file will be open in browser.(same as attachment can view in browser in gmail using view as html option)
Please help me to sort out this problem.
Thanks in advance. :)
I haven't found a way to open a Word doc from your program and consistently retain all of the formatting:
You can open PDF, Powerpoint and TIFF files using an embedded Google Docs Viewer
There are a number of ways to open spreadsheet files.
There are a couple of utilities that will extract text from your Word document but this isn't that same as a reader to display the original document.
Thanks for reply.
yes i know about google docs but my files formate is .txt also.
and you are right that we can't display the .doc file with formating.
but if its possible without formatting then I want to show it without formating
same as gmail attachment .doc and .txt opens
if you have any idea related to that. then please guide me to solve this problem.
This may be as good as it gets even though it is fairly basic:
It probably won't handle docx files.
thanks for the link.but its not work for me.
so i got another solution for the same. :)
Can you please post how you have solved this issue?
Yes. I used Scribd api for convert docs into html like version.
I hope this helps you. :)
Thank You. I will try to do the same.