Intercept Error

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
riccardo76
Posts: 2
Joined: Tue Jul 13 2004

Intercept Error

Post by riccardo76 »

I've problem to intercept error with vb because the pdfCreator don't return me any code error any exception.
how to intercept error? example in the append method?
i've another problem if i've a .txt document i rename the file in .pdf, when i open file don't return me an error of invalid format?why?
thanks in advance riccardo
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

Hello,

Typically you would verify of the Open() function was successful before continuing the process. I have included a code snippet which illustrates this.
With PDF1
bResult = .Open("C:\watermark.pdf", "")

If (bResult) Then
.....
End If

End With

In case where the method does return a value, you should trap any error on an OnError function.

Hope this helps?
Post Reply