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
Intercept Error
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?
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?