Hi,
Just like Rob said, you can't just read the file as if it were binary thinking it would be as easy as a text file. Do you think Microsoft would make it this easy to allow people to edit Word documents from a browser?  Why not just have them open up their version of Word and have them do what they need to do from there?
 
 
On 6/28/05, suresh suresh <[EMAIL PROTECTED]> wrote:
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






YAHOO! GROUPS LINKS




Reply via email to