Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to show any document file content in web browser using mvc

doc ,txt, pdf like..

help please !..
Posted
Updated 8-Dec-14 3:50am
v2
Comments
ZurdoDev 8-Dec-14 7:33am    
Where are you stuck?
Nathan Minier 8-Dec-14 7:44am    
Also, what type of file are you trying to push to the browser?

1 solution

The ability of browsers to display file that are not HTML is depends on plugin or external application...
For instance Chrome displays PDF files using its own plugin, but opens Word documents using the installed Office package...
So, by definition you can not open any document as it may be dependent on the installed applications on the client's machine.
Also client can configure browsers to open documents externally even in case browser has the proper plugin (like disabling Chrome's built-in PDF)...
So what you asking for is impossible...
 
Share this answer
 
Comments
rameshrajak 9-Dec-14 0:39am    
thanks..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900