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.
I want to read document in following manner
- Read Header if document contain header
- Read paragraph contain text
- 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