Blogger :
John R. Durants WebLog
All posts :
All posts by John R. Durants WebLog
Category :
XML
Blogged date : 2005 Aug 29
I recently saw a post on the microsoft.public.office.xml news group wherein was asked:
--------
When I save a word document as XML, it seems that
o:DocumentProperties/o:Pages always comes out as 1. I have tried doing
"update fields" and saving in page layout mode to no avail.
Is this property broken any other way to determine the number of pages by
looking at the XML
--------
No one responded, so I was intrigued. Well, I figured it out. It actually is "by design" even though it may seem a little misleading. The element is "an estimate of the number of pages in the document." (see the Word XML SDK for more info). The tip-off was that it is an estimate. So, I did a series of tests and found out that if you do either of the following two things and save the doc, you will see the correct page count in the .
- View the document properties: File | Properties | Statistics
- View the word count: ALT + t + w
If you don`t do this, Word has not done the full calculation. Have you noticed that when you open the document at the very bottom Word will give the "approximate" word count It`s there. Watch closely. Anyway. If no one else is fascinated by this, I know I have helped at least one other person besides myself!
Rock Thought for the Day: Neil Young`s album, Prairie Wind will be coming out in late September. Make sure you get the special edition CD that has a companion DVD containing a film detailing the recording sessions. Emmy Lou Harris lends her voice on this record along with other greats. It`s shaping up to be a legend-making release.
Rock On