I think this is not the right forum for such questions. [Note: this is xml related forum, you should go to http://forums.asp.net]
The answer is:
1. The simplest way: put the word documents under one directory in your website somewhere... e.g lets say your site virtual dir name is "YourSite", and under that "docs" folder which contains your all documents then http://<yourdomainurl-YourSite>/docs/YourDocument.doc If you access this URL then it will open the word document in Webbrowser (embedded)
2. Create a webpage which reads the word document file using IO APIs and then write the bytes on response stream, it will show the word document in that webpage.
| |
Response.ContentType = "application/msword"; FileStream fs = new
byte[] b = new byte[(int)fs.Length]; fs.Read(b,0, (int)fs.Length); fs.Close(); Response.Clear(); Response.BinaryWrite(b); Response.End();
|
The above code will write your word file into the browser.
HTH,
|