Re: VB6 Word Automation Printing Problem Vista Op system

Tech-Archive recommends: Fix windows errors by optimizing your registry




"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: Well, I finally went to outlook express...
    ... news. ... Oh, hang on... ... Tim ... This is not my signature. ...
    (sci.astro.amateur)
  • Re: Removing Signature Before Printing
    ... This invariably results in my printing 1000s of pages each year ... I have been trying to find a way to remove my signature from my ... Just thinking out loud here....save messages as text with script. ... Entourage Many to Word ...
    (microsoft.public.mac.office.entourage)
  • Re: Ann: Cheap Impostor 2.5 (PDF Imposition)
    ... A signature is a "press form". ... The press we print on is not physically capapble of printing a 128 page ... In a 64 page sig on ... it looks like a useful program for club newsletters ...
    (comp.sys.mac.graphics)
  • Re: How do I obtain a digital signature for my application?
    ... Microsoft Access Runtime 2002. ... It also runs fine under Vista, ... this application does not have a valid signature. ... abylon SELFCERT to create your own certificates. ...
    (microsoft.public.access.devtoolkits)
  • Re: Password Problem
    ... fix for thei obviously common proble, ... 2002, 2003, xp vista no matter, this thing just WONT REMEMBER PASSWORD, we ... your signature was omitted from my reply. ... signature since Microsoft has never honored many Usenet standards. ...
    (microsoft.public.outlook)