Issue with opening PDF file from FilePro
Boaz Bezborodko
boaz at mirrotek.com
Wed May 27 13:29:16 PDT 2009
Nancy Palmquist wrote:
> Boaz Bezborodko wrote:
>> I'm running FP from Windows and I want to open a PDF file from within
>> FP that was first generated by FP and then sent to Bob's PrintWizard
>> to convert into a PDF. The thing is that I can't figure out how to
>> tell if the PDF file is ready from withing FP.
>>
>> I don't want to use a long SLEEP command as some files are ready
>> within a second or two. But if I open the file too early then Adobe
>> complains about the file being damaged.
>>
>> Any suggestions?
>>
>> Boaz
>> _______________________________________________
>> Filepro-list mailing list
>> Filepro-list at lists.celestial.com
>> http://mailman.celestial.com/mailman/listinfo/filepro-list
>>
>>
> Boaz,
>
> Trick is to write to file1, at end of PDF conversion rename the file
> to file2.
>
> In filePro, check for exists(file2) eq "1"
>
> When it exists the file is ready to open.
>
> Nancy
>
OK, this seemed to work OK, except that I still had to add about a
2-second delay in order to avoid the errors on some of the computers.
I would think that if FP sees the new file as "exists" after a rename
then it should also open properly. But I still have to stick in a wait
a period. I wonder what could be holding it up?
Boaz
More information about the Filepro-list
mailing list