<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote
cite="mid:mailman.43.1243568426.4684.filepro-list@lists.celestial.com"
type="cite">
<pre wrap="">Message: 1
Date: Thu, 28 May 2009 11:12:47 -0400
From: Kenneth Brody <a class="moz-txt-link-rfc2396E" href="mailto:kenbrody@spamcop.net"><kenbrody@spamcop.net></a>
Subject: Re: Issue with opening PDF file from FilePro
To: Bob Rasmussen <a class="moz-txt-link-rfc2396E" href="mailto:ras@anzio.com"><ras@anzio.com></a>
Cc: filePro Mailing List <a class="moz-txt-link-rfc2396E" href="mailto:filepro-list@lists.celestial.com"><filepro-list@lists.celestial.com></a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:4A1EA9EF.5080308@spamcop.net"><4A1EA9EF.5080308@spamcop.net></a>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Bob Rasmussen wrote:
[...]
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">2. How do I check if a file can be opened in R/W mode in FP?
</pre>
</blockquote>
<pre wrap="">I don't know this one.
</pre>
</blockquote>
<pre wrap=""><!---->
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".
</pre>
</blockquote>
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.<br>
<br>
Boaz<br>
</body>
</html>