How do I pause processing in VB6
Posted on 2010-01-11
I am writing multiple reports out to a PDF-XChange printer using the printer.print statements. I use the printer.EndDoc to close the report currently being written to and then immediately start printing to the next report. The PDF-Xchange printer is confiured to write the files out using the date, time and the username as a part of the filename, but what is happening is that the files are being written out with very little time in between each report, so the output files are having the same name, leading to the files overwriting each other. I want to be able to insert a wait or a pause between closing a report and starting on the next report so that the files don't get the same name and overwrite each other.
How can I insert a wait in VB6?