blog

Home / DeveloperSection / Blogs / Read Word Document line by line Using Asp.net C# (Windows Application)

Read Word Document line by line Using Asp.net C# (Windows Application)

Ramadurai Jayaraman10088 01-Apr-2013

Hi All,

I have done word document comparison tool (windows application) using ASP.NET. I have used Microsoft word object library to read word document. It is working fine. When I started to do the  project client wanted to compare documents text only I mean need not to compare formats, Header and footer. So I easily did that using document.text  property.  Now client wants to compare even header and footers.  I am unable to read header and footer in sequential manner. Anybody could help me in this regard.

Note.

I want to read document in following manner

  1. Read Header if document contain header
  2. Read paragraph contain text
  3. Read Footer

Each page have to be read in above mentioned manner.

I can easily read Header, footer and document contains text alone. As I need to compare source document and destination document line by line and expose mismatched record in report format, I need to read the word document line by line. Please help me

Thanks and Regards

Ramadurai Jayaraman


Updated 18-Sep-2014

Leave Comment

Comments

Liked By