Re: VB6 Word Automation Printing Problem Vista Op system



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.

"Jonathan West" wrote:


"AWIcurrent" <AWIcurrent@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9285B04D-3B83-4052-8FEE-FAE0C0686931@xxxxxxxxxxxxxxxx
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


.



Relevant Pages

  • Re: Signature in custom Outlook form
    ... I have the same problem as Geert, but I'm using Outlook 2002 SP3. ... following the steps you recommend does not work for me. ... I was sent an OFT template by another designer who had his signature ...
    (microsoft.public.outlook.program_forms)
  • Re: Tkinter: how; newbie
    ... It doesn't accept the coordinates as separate parameters because every ... event binding uses that same signature, ... I recommend you look over the ...
    (comp.lang.python)
  • Re: directory+Single sign-on
    ... I recommend taking a look at my book (see link in signature). ... It provides a lot of good programmer information on developing apps against AD using LDAP. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Unicode in Visual .NET 2003 and C#
    ... Unicode file will normall have a signature for little endian or big ... I recommend to always use the signature. ...
    (microsoft.public.dotnet.csharp.general)