Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word - Automation Error

Status
Not open for further replies.

sflau

Programmer
Oct 18, 2001
87
HK
I am using WinME, with 512MB RAM, P4 1.7G CPU, 10G HardDisk (5G left).

I am using a VB 6.0 Program to control Word2000 to insert many pictures (Around 16 pictures x 250 pages = 4000 pictures), and then, need to refresh before printing: So that I use the following code to "Select All content in the document", and then press "F9" to refresh:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
wordApp.ActiveDocument.Application.Selection.WholeStory
wordApp.Selection.Fields.Update
- - - - - - - - - - - - - - - - - - - - - - - - - - -

For the first line, it is OK, but for the second line, sometimes Automation error occurs as :Automation error -2147417851.

Can anyone help me, please? I am not sure whether 4000 pictures are too much for Word 2000.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top