O$ - 4.3.1 - Print to PDF & Email
Dr Caroline Wilkins
caroline at ib2bsystems.com
Sat Apr 20 18:34:11 EDT 2013
Dear Jeffrey,
Sorry - I said I would dig this out and send it ages ago...
The printer has finished when the pdf file exists, so we can use the
existance of the file to determine when it is ready to send as an email
attachment.
Between 1) printing to PDF (using Bullzip) and 2) firing the email with
attachment, I use this code:
********************************************************************
Do FileOps.$doesfileexist(iAttachmentPath) Returns lStatus
If lStatus<>1
Open window instance wEmailWaitForAttachment (iAttachmentPath)
While lStatus<>1
Do FileOps.$doesfileexist(iAttachmentPath) Returns lStatus
End While
Close window instance wEmailWaitForAttachment
End If
********************************************************************
where wEmailWaitForAttachment is a little window that just says "Please
wait while PDF is created" (or whatever!)
Hope this helps!
Caroline
On 19/04/2013 14:39, Jeffrey Jones wrote:
> Hi All,
>
> Studio 4.3.1 - Windows
>
> I'm using the Bullzip PDF Writer to create PDF files in the background, moving them to a specific client folder and emailing them as an attachment.
>
> The process is working, but I've had to put in some loops to create delays, because I need to wait for the PDF Writer to finish printing before moving and then emailing the file.
>
> Does anyone know a way to determine when the printer is actually finished?
>
> -Jeff
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
>
More information about the omnisdev-en
mailing list