>Would 12 seconds be better? A faster printer? I was going to try it on a faster machine. Now, I don't think that will help.
>
>How do I know when printing is finished?
>
>I have to resolve this problem. What do you think?
>
>
As I suggested, add a do while loop right after shellexecute testing empty(sys(2000,'myfileName'))
once it's not empty, it means file is created. Alternatively you can try to open this file with fopen and see if the handle > 0.
Though I see that you're trying to print directly, not to create a file - this is a bit trickier.
If it's not broken, fix it until it is.
My Blog