PDA

View Full Version : MS WORD object model (page number)


ladson4
05-03-2009, 05:07 AM
I am using jscript to inspect several word documents using the MS WORD object model. In one case I wish to retrieve the PAGE and LINE number associated with a given hyperlink, using the following statement:

page_no = e.item().Range.Information(GwdActiveEndPageNumber);

This works fine for small documents (less that 30,000 characters), but fails with "out of memory" error for larger documents.

(note, "e" is an enumerator for all the hyperlinks in the document)

I have plenty of RAM in my computer, so why is memory filled for such a small document?