Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pdf checker
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Pdf checker
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01591849
Message ID:
01591849
Views:
94
Hi
I am using XFRX to create PDF's and then email them
Very intermittently, unreadble PDF's are being created, but if I try again subsequently, with same documents etc , it creates the PDF fine.
If there was a utility available to 'Check' if a Pdf could be opened, I could wrap this in a loop, and perhaps the second time it might be ok....maybe its a timimg thing or something else going on in the environment.

Anybody know of a simple PdfChecker whcih would just return a True or false. I donmt want to waste time 'actually' opening the Pdf
My Loop would read
Do while i lt 5
Create Pdf
If Valid(MyPdf)
Exit
Endif
If reached Here
Wait window 'Still an error afert 5 attempts'
Enddo

Many thanks in advance
Regards,
Gerard
Next
Reply
Map
View

Click here to load this message in the networking platform