Click here to Skip to main content
15,911,306 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi..could u please help me in displaying the word document as a pop up box when i click a button..i dont know what to do..reply me as soosn as possible.thanku..
Posted
Comments
Stephen Hewison 24-Jan-14 9:44am    
I don't think you can "pop up a word document" from a web page. All you can do is serve the response for the document. What the browser does with that depends on how the browser is configured and what plug ins it has available. You do have a little control as the MIME type set for doc/docx on the server but this is fairly limited. When we need to pop up a formatted document we use the ReportViewer, this can export to Word but also renders a pixel perfect report on the page.
Member 10478580 24-Jan-14 9:46am    
ok.but can u please send me the sample code..and also tel me where it could be pasted
Stephen Hewison 24-Jan-14 9:53am    
In short, no. But here's a link to the MSDN article for the report viewer, it will be a good start, http://msdn.microsoft.com/en-us/library/ms251671.aspx. There are 100s of tutorials on ReportViewer and it's designer. Try googling the terms provided in the answers you get and you will learn much more than copying someone else snippet of code into your project.
Member 10478580 24-Jan-14 10:05am    
thanks for ur advice.i already googling..i get the result as opening or save the word file format.thats y am posting my question..

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