Hi,
I produce reports from vb 6 into MS Word 2k.
I wrote a loop that inserts the data in the word document :
The more it loops, the more its getting slow.
Initally, this loop is executed twice / sec... and in the end (looped about 200 times), it takes 11 seconds to do it once !!!
In this loop, I'm sure that it's always the same statements that are executed.
If i have a look at my MS Task Manager while my loop is being executed, I can see that CPU usage is always at 100%.
Any idea ?
Could it be linked to the growing size of the word document ?
Or the 100% CPU usage ?
If someone feels like he/she can help but needs further information, I can post my code.
Thanx
Lemox
I produce reports from vb 6 into MS Word 2k.
I wrote a loop that inserts the data in the word document :
The more it loops, the more its getting slow.
Initally, this loop is executed twice / sec... and in the end (looped about 200 times), it takes 11 seconds to do it once !!!
In this loop, I'm sure that it's always the same statements that are executed.
If i have a look at my MS Task Manager while my loop is being executed, I can see that CPU usage is always at 100%.
Any idea ?
Could it be linked to the growing size of the word document ?
Or the 100% CPU usage ?
If someone feels like he/she can help but needs further information, I can post my code.
Thanx
Lemox