Wednesday 26 June 2013

Read .doc Document In Asp.net?

How can I read .doc document in ASP.Net?

You can read from a text file like this.

private void Button12_Click(object sender, System.EventArgs e)
{

string path="C:Inetpub ew1.txt";
using(StreamReader reader=new StreamReader(path))
{
string line;
while ((line=reader.ReadLine())!=null)
{
Label2.Text+="<br>"+line;
}
}
}
from .doc file try yourself


EmoticonEmoticon