hi!
 
 
   Thanks! for ur kind information.I am using binaryreader method.but the browser dispaly following error msg:- Unable to read the end of stream.I am unable to understand that error pls give some solution
 
 
thanks!
 
Regards,
Surez_t


 

Microsoft word is a binary file, you will need to use binary reader. Also, you need to understand the format of a word document, research and google.

 

Kind Regards,

http://www.rahsoftware.com – Software Development and Web Design

http://www.lightninghosts.net – Cheap Web Hosting and ASP.NET Support

 


From: [email protected] [mailto:[email protected]] On Behalf Of surez_t
Sent: 25 June 2005 14:50
To: [email protected]
Subject: [Microsofts_C_Sharp] how to open word document in browser using c# coding

 

hi!

i want to open/edit/save word document in my browser.i am using
following code,but i am not able get word dcoument content in my
browser.

FileStream fs=File.OpenRead(Server.MapPath("test.doc"));
StreamReader sr=new StreamReader(fs);
while(sr.peek()>-1)
{
Response.write(sr.ReadToEnd());
sr.Close();
fs.Close();




Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com

YAHOO! GROUPS LINKS




Reply via email to