Pages

Men

rh

7/31/2013

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

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;
        }
     }
}

No comments :

Post a Comment