T
Tony Jollans
Hi Jonathan,
Can you explain the purpose of the loop? What does doing DoEvents 20 times
do that doing it once doesn't do. Are there some events queued by the
printer action which themselves queue further events? Or is the purpose
purely a delay because the processing of the event queue fires off a
separate task and you want to wait for it to finish - and the 20 is just a
random number of iterations which seems to work? And, if that's the case
(which seems plausible in the circumstances) then shouldn't you really
explicitly wait for the printer task to post that it has finished (applying
IBM mainframe logic to this I'm afraid - I don't know enough about how
Windows works).
Can you explain the purpose of the loop? What does doing DoEvents 20 times
do that doing it once doesn't do. Are there some events queued by the
printer action which themselves queue further events? Or is the purpose
purely a delay because the processing of the event queue fires off a
separate task and you want to wait for it to finish - and the 20 is just a
random number of iterations which seems to work? And, if that's the case
(which seems plausible in the circumstances) then shouldn't you really
explicitly wait for the printer task to post that it has finished (applying
IBM mainframe logic to this I'm afraid - I don't know enough about how
Windows works).