After returning from .oPrintFile(), the file is no longer in use by the class or by the Print Queue Manager, so it can be deleted. This is why I suggested that it is still been used by the process that created it. You can verify this, by trying to open the file for read/write access, before it is passed to .oPrintFile()
>Well, I verify that the file is finished writing before I queue it. These can be very large plot files - is it possible it is not finished queueing before I try to delete it?
>
>You suggestion about attempting to open it before deleting will work, I'm sure. Would it be worth your while modifying the class to provide a property to indicate whether qeuing is complete?
>
>IAC - thanks for the workaround - and the class!!!!
>
Just an opinion... Not a fact.