Retrieving text from Headers in MS WORD - Stuck in Word 2003
Posted on 2011-03-07
The code works perfectly in Word 2007. However when I run the same code in Word 2003 then it slows down drastically. I tried the code in Word 2007 in a document with 674 pages and it took approx 30 mins to finish. In word 2003 It just hung. I put a counter in the loop to check and realized that in Word 2003, it starts of pretty fast but then slows down and then after few minutes, it traverses 1 line per second to 1 line in 2 secs and as times goes, it increases to 1 line in 2 secs to 1 line in 3 or 4 seconds.
What seems to be the problem?