i am developuing a jobportal using ASP.NEt2.0 with C#.in this i uploading user's resume in a folder of my root dir, it is saving properlly. but when i open it for update in a text_area control it is showing but some other char like (,>>..;[] {{ []???/\=\\===) also showing with my document, my file in word documet ,
my code is
else if (File_Name != "") { string Resume_txt = Server.MapPath(Request.ApplicationPath + "\\" + File_Name); StreamReader sr = new StreamReader(Resume_txt); sr.BaseStream.Seek(0, SeekOrigin.Current); while (sr.Peek() > 0) { lbl_Saved_Resume.Text = "Uploaded Resume"; txt_Uploaded_Resume.Visible = true; txt_Uploaded_Resume.Value = sr.ReadToEnd(); } }
pls give me sol for removing these char.
|
| Author: Pankaj Mishra 06 Mar 2007 | Member Level: Diamond | Rating: Points: 2 |
Hi , do not use StreamReader to read word document you can use Word API.
this link will help you in coding http://www.eggheadcafe.com/community/aspnet/17/10001360/read-a-word-document.aspx
Regards Pankaj
|