G
Gordon Bentley-Mix
Word 2003
Windows Vista Business
I'm trying to determine programmatically the number of pages in one document
for use in another document. I've worked out that:
NumberOfPagesInOtherDoc = OtherDoc.ActiveWindow.Panes(1).Pages.Count
gets me what I want, and it is probably robust enough for my current needs.
However, I'm wondering if there isn't a more efficient way.
I recognise that the concept of "the number of pages in a document" is a
somewhat fluid thing - influenced by stuff like the printer driver, etc. -
but I somehow expected there to be a more direct method for finding this
information. It appears that the Pages collection (and the related Count
property) can only be accessed through the Pane object. This seems a bit...
clunky. Any other suggestions?
Windows Vista Business
I'm trying to determine programmatically the number of pages in one document
for use in another document. I've worked out that:
NumberOfPagesInOtherDoc = OtherDoc.ActiveWindow.Panes(1).Pages.Count
gets me what I want, and it is probably robust enough for my current needs.
However, I'm wondering if there isn't a more efficient way.
I recognise that the concept of "the number of pages in a document" is a
somewhat fluid thing - influenced by stuff like the printer driver, etc. -
but I somehow expected there to be a more direct method for finding this
information. It appears that the Pages collection (and the related Count
property) can only be accessed through the Pane object. This seems a bit...
clunky. Any other suggestions?