Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pdf checker
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
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:
01592069
Views:
66
One thing that comes into my mind would be to try opening the PDF file in a webbrowser control and see if you can get the contents or a error message on the browser.

It's a little bit tricky because the browser control must be embedded on a form class, and when calling the navigate() method it makes the form visible, but there are probably some workarounds for that.

>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
Christian Isberner
Software Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform