Word hangs on printing document with {numpages} field

M

manualmaster

Hi,

In Word 2002 as well as 2003 we have a problem with the printing of a
document in case the {numpages} field is used in the header or footer.
In Word 2000 the problem does not occur.
The document is printed from visual basic with the
activedocument.printout command.
We found out that the problem does not occur when the {sectionpages}
field is used instead of the {numpages}.
We have installed all patches and fixes for both Word as well as
Windows.

What we do (all from vb):
open the document
print the document
close the document (word remains open)

once again open the document
print the document
-> word stops responding. However we are still able to use the Word
menu's.

Any ideas?
 
C

Cindy M -WordMVP-

Hi Manualmaster,
In Word 2002 as well as 2003 we have a problem with the printing of a
document in case the {numpages} field is used in the header or footer.
In Word 2000 the problem does not occur.
The document is printed from visual basic with the
activedocument.printout command.
We found out that the problem does not occur when the {sectionpages}
field is used instead of the {numpages}.
We have installed all patches and fixes for both Word as well as
Windows.

What we do (all from vb):
open the document
print the document
close the document (word remains open)

once again open the document
print the document
-> word stops responding. However we are still able to use the Word
menu's.
Word doesn't "stop responding" if you can still use the menus...

Do you see this problem at all if you open, print, close, etc. the
document in the user interface? Is it any document, or just a particular
one (or ones)?

There's also a chance that your code is not releasing objects correctly,
so that the automation is getting "confused". hard to say without seeing
the code involved, though...

And the last (or maybe first) possibility to check would be the printer
driver.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top