Click here to Skip to main content
15,921,179 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to code in ASP.NET with VB.NET. I am having some word documents on my server. I want to make a webpage with the table showing the name of the Document and the links, Download and View.

When the User clicks download, the user should get a option to save the document on the local computer.
But when the User clicks the View link, I wish to open the word document in the Browser itself. (as we have seen for many pdf documents available online).But this does not seem to happen.

Can anyone guide me on how to open the word document in the browser itself.

Regards,

[edit]Subject only - OriginalGriff[/edit]
Posted
Updated 27-Sep-10 20:48pm
v2
Comments
Hiren solanki 28-Sep-10 2:26am    
opening a word in browser is I think unsupported.
Hiren solanki 28-Sep-10 2:42am    
put the subject line regarding to your question the subject 'hello friends' will not be able to help user to identify actual question.

1 solution

you have two choices..

either read Stream of word and write it on your response object.. if word is installed on client machine.. it will automatically load it in browser.. BUT if no word is installed .. it will prompt them to save file.

Second option is to use some RichTextBox like FreeTextBox and show your document contents in that.

Hope it helps
 
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