Issue with opening PDF file from FilePro
Kenneth Brody
kenbrody at spamcop.net
Thu May 28 08:12:47 PDT 2009
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".
--
Kenneth Brody
More information about the Filepro-list
mailing list