Click here to Skip to main content
15,885,936 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

I Need Excel,Pdf,Word Document View in Single Viewer on my aspx page.If it is possible give me a suggestion.
Thank you.
Posted
Updated 13-May-19 21:43pm
v2
Comments
Sergey Alexandrovich Kryukov 30-May-14 18:12pm    
Etc..? :-) Than it's a bad idea. They are not part of Web standards, so why messing with it? And it's better to rely on client's support for PDF...
—SA
[no name] 30-May-14 18:25pm    
I would suggest that you do some research and write some code.
Nelek 1-Jun-14 17:08pm    
Be careful with which links you post, spire is a "not so loved" library and it can be considered spam
Ahmed Bensaid 1-Jun-14 18:14pm    
What's going wrong with this library ?
"Spam" ?! I'm not working for them, I just suggest a probable solution ...
Nelek 2-Jun-14 3:55am    
A probable solution with a commercial product. I just told you my opinion. You can make whatever you think is right.

1 solution

You could use Google Doc Viewer through an iframe and specify the DOC, XLS or PDF file you want to display. This is the code you should add:

HTML
<iframe src="http://docs.google.com/gview?url=YOUR_ABSOLUTE_URL_TO_THE_FILE_HERE&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>


Then you just need to set up your own document file to the "url" query string param and that's it!
 
Share this answer
 

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