Reading page count of *broken* .doc (Word 97-2003) file.

Jan 20 2012 8:37 AM
I have a 4-pages .doc file, which I can successfully open in Word 97-2010 and modify/save. When I try to identify page count for this file, it shows 0 as well as word or paragraph count. Also, when I use dso.SummaryProperties.PageCount - it is also 0.

If I open the doc in Word and add space symbol in the end and then save, then I see correct document information in file properties and can get the same via dso. Following this, I've tried to write some in the end of the file using StreamWriter, but it didn't add anything (possibly because of file is broken?).

How else can I determine the page count in this file?