Question Problem with Word Automation

andyww14

New member
Joined
Oct 10, 2010
Messages
2
Programming Experience
Beginner
Hi,

I have been working on a program that can extract comments / tracked changes from a word document.

Its coming along okay except for trying to extract the page numbers. The properties of Revision can be extracted very quickly:
e.g.

VB.NET:
oRevision.Author
oRevision.Date

However the only way I have found to get the page number that the comment / tracked change exists on is to use this:

VB.NET:
oRevision.Range.Information(WdInformation.wdActiveEndPageNumber)
oRevision.Range.Information(WdInformation.wdFirstCharacterLineNumber)

From what I understand that returns the position of the cursor and although the results it produces are accurate it slows the program to such an extent that it becomes unusable.

Can anybody suggest any alternatives on getting the page number that would be quicker?

Many Thanks.

Andy.
 
Back
Top