does anyone use CDocProp?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
69290654
Junior Member
Junior Member
Posts: 7
Joined: 2008-11-05, 14:47 UTC

does anyone use CDocProp?

Post by *69290654 »

I want use CDocProp to view the Page count of my Word 2003 doc. But why it always said the document only has one page? And the word count and char count is not same as the statistic in Office Word. Why? This plusin can not work now?
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved to the Plugins forum.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

Hello 69290654,

this problem has been discussed on totalcmd.net three years ago. User comments are not allowed anymore on totalcmd.net due to massive spam attacks, and unfortunately all existing user comments has been removed. Perhaps someone here remembers the recommended solution, if there was one? Unfortunately I don't...

CDocProp gets the Page Count, Word Count and Char Count information from the Document Properties, which are stored in the SummaryInformation stream or the DocumentSummaryInformation stream, respectively (these streams does not concern NTFS streams, in fact they are parts of the file itself).

As you will notice, the shell properties dialog (context menu "Properties" or <Alt><Enter>) will show the same (wrong) values. It's not a bug of the CDocProp plugin, but a bug of MS Word. This bug is confirmed by Microsoft at least for Word2000 documents. I'm not sure, but it could concern Word2003 too: I've installed Word2003 and found many documents with wrong page/word/char count info... but possibly these documents were created with an older Word version.

In order to revise the wrong information for a document, you need to update the required document properties. Microsoft suggests to force a repagination by calling the .Repaginate method (macro or VBA module), but in my experience this will not fix the problem in all cases. I didn't find a reliable way to update the embedded document properties so far without changing the document content. If you find one, let us know, please...
User avatar
Flint
Power Member
Power Member
Posts: 3506
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

van Dusen wrote:Perhaps someone here remembers the recommended solution, if there was one? Unfortunately I don't...
Well, there was, and it was posted by you. :) Here is the copy of your post from those comments:
van Dusen wrote:It isn't a problem of CDocProp but of Word itself. To solve this problem, switch *off* the MS Word option "Allow save in background" and re-save your documents. You get the right page count even with "Save in background" *on*, if you recalculate all fields within a Word document before savin it (but it's more save to deactivate the mentioned save option).

If you speak german, look here, too:
http://ms-office-forum.net/forum/showthread.php?t=151420
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
Post Reply