Issue with opening PDF file from FilePro

Boaz Bezborodko boaz at mirrotek.com
Fri May 29 13:28:37 PDT 2009


> Message: 1
> Date: Thu, 28 May 2009 11:12:47 -0400
> From: Kenneth Brody <kenbrody at spamcop.net>
> Subject: Re: Issue with opening PDF file from FilePro
> To: Bob Rasmussen <ras at anzio.com>
> Cc: filePro Mailing List <filepro-list at lists.celestial.com>
> Message-ID: <4A1EA9EF.5080308 at spamcop.net>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Bob Rasmussen wrote:
> [...]
>   
>>> 2.  How do I check if a file can be opened in R/W mode in FP?
>>>       
>> I don't know this one.
>>     
>
> As someone else answered, use OPEN(filename,"rw") and check for success or 
> failure.
>
> Might I suggest a "better" solution, which requires a change to PrintWizard? 
>   I have seen numerous cases where the program generating the file uses a 
> temporary filename while the job is running, and then renames it to the 
> final name once it is complete.
>
> For example, PrintWizard creates "~~PW####.tmp" (where "####" is some unique 
> number), and writes the PDF output there.  Once you have a complete PDF file 
> generated, you close the file and rename it "whatever.pdf".
>
>   
While I'm trying to nail this down I will probably try something a 
little different.  I'll send two jobs to PW about a second apart and 
look for the second one.  When it appears then the first must have been 
completed already so it is good to go.

Boaz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20090529/aba85683/attachment.html 


More information about the Filepro-list mailing list