C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




read word Doc


Posted Date: 06 Mar 2007      Total Responses: 1

Posted By: Suman       Member Level: Gold     Points: 2


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.





Responses

Author: Pankaj Mishra    06 Mar 2007Member Level: DiamondRating:     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


Post Reply
You must Sign In to post a response.
Next : Crystal Report
Previous : File
Return to Discussion Forum
Post New Message
Category: Visual Studio

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

conference call

Contact Us    Privacy Policy    Terms Of Use