On Jul 23, 6:29 am, Dean Richardson <advertis...@deanrichardson.com>
wrote:
> Hello,
>
[quoted text clipped - 23 lines]
> Many Thanks in Advance,
> Dean
I don't think Threading will solve the problem, as the thread will not
know when printing has finished - which is what the problem seems to
be. It might be possible to start a new thread to do the work, set
IsBackground = False and give it a much larger Sleep timeout that will
always account for the document being spooled before the thread exits.
Also, I not sure if the Office PIA's available from Microsoft have the
capabilities to better monitor print capabilities in Word or not - but
it may be worth checking out.
Thanks,
Seth Rowe
Dean Richardson - 24 Jul 2007 17:25 GMT
> On Jul 23, 6:29 am, Dean Richardson <advertis...@deanrichardson.com>
> wrote:
[quoted text clipped - 42 lines]
>
> - Show quoted text -
Thanks for that. I ended up having a sleep method setup so that it
waits for 5000 milliseconds before running any further and its done
the job.
Thanks again,
Dean
mapi-user - 25 Jul 2007 23:16 GMT
Would this not work for you?
Do While myWordApp.BackgroundPrintingStatus
System.Windows.Forms.Application.DoEvents()
Loop
> > On Jul 23, 6:29 am, Dean Richardson <advertis...@deanrichardson.com>
> > wrote:
[quoted text clipped - 49 lines]
> Thanks again,
> Dean