Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adobe Acrobat Reader using a file
Message
From
02/11/2003 08:01:06
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00845413
Message ID:
00845415
Views:
10
>Hi All,
>
>Is there a simple way of determining if a PDF file is currently open in Acrobat Reader? My users create PDF files of reports using XFRX and often forget to close them or rename them before re-running the program to generate them. Of course, the program crashes due to the file being unavailable.
>
>Regards...Rex

Rex,

This seems to work (open anywhere)
fd=fopen('\tmp\a.pdf',1)

if( fd < 0 )
    ? 'Cannot open file, already open or does not exist'

else && was not open

    =fClose(fd)
endif
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform