VB6 Word Automation Printing Problem Vista Op system

A

AWIcurrent

We have code that works great with prior op systems to Vista.

It works great up to the point of printing in Vista with Word 2002, but then
fails on printing. Word then hangs and gives the following error messages:

Apphang XprocB1 WinWord.exe
ApVersion 10.0.2627.0
Time stamp 3a9cdde7
Hang Signature da7d
Hang type 32
Waiting on Application SynTpenh.exe
working on version 9.0.1.3
OSversion 6.0.6000.2.0.0.768.2
Local ID = 1033
Additional Hang Signature 1 8587b7f81573386cf647caf99ca5062
Signature 2 6e25
signature 3 1103dde0f71578f9e76a161eee793227
Signature 4 da7d
Signature 5 same as signature 1
Signature 6 6e25
signature 7 same as signature 3



The printer is a network printer on an ip address that works fine with Word.
The automation was working. Maybe the issue is caused by laptop time outs,
I do not know what to make of this.

HELP
 
J

Jonathan West

AWIcurrent said:
We have code that works great with prior op systems to Vista.

It works great up to the point of printing in Vista with Word 2002, but
then
fails on printing. Word then hangs and gives the following error
messages:

Apphang XprocB1 WinWord.exe
ApVersion 10.0.2627.0
Time stamp 3a9cdde7
Hang Signature da7d
Hang type 32
Waiting on Application SynTpenh.exe
working on version 9.0.1.3
OSversion 6.0.6000.2.0.0.768.2
Local ID = 1033
Additional Hang Signature 1 8587b7f81573386cf647caf99ca5062
Signature 2 6e25
signature 3 1103dde0f71578f9e76a161eee793227
Signature 4 da7d
Signature 5 same as signature 1
Signature 6 6e25
signature 7 same as signature 3



The printer is a network printer on an ip address that works fine with
Word.
The automation was working. Maybe the issue is caused by laptop time
outs,
I do not know what to make of this.

Without knowing more about your code, it is almost impossible to diagnose
the problem. Since it appears to occur only on a specific configuration,
even if we know about the code it will be almost impossible to reproduce the
problem on a different system.

As far as I can see, all you can do is produce a debug version of your VB6
program that spits out log messages at regular intervals, and see if you can
identify where exactly the problem lies. Then it will probably be a matter
of inserting a pause or two so that Vista can catch up with itself.

By the way, when you use the PrintOut method, do you set the Background
parameter to False? If you don't, I would strongly recommend that you do, so
that each print job is fully sent to the print spooler before you start on
the next. otherwise, Word can find itself attempting simultaneously to print
multiple documents, and eventually expires from exhaustion at the effort.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
A

AWIcurrent

I will certainly look at the setting you recommend for Printout method to
false.

If the machine is totally rebooted, it prints fine. It appears that if the
system is left alone and it time outs, that is when the problem shows up.

So I wonder if there is a command to insure the network connection is not in
a sleep mode of some sort?

The printer is connected via a wireless router and maybe the time out of the
computer(Laptop) is the real cause of the problem.....That is why I am
wondering about a wake up call to use to the net from VB6.

Thank you for your help.
 

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