Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Monday, October 15, 2007 7:26:04 AM(UTC)

Groups: Registered
Posts: 2

I'm using RasterIO.GetFileInfo to retrieve the dimensions of readable images (using unknown files without file extensions). I do not want to read PDF's this way, but occasionally a PDF is encountered. I get an error dialog for error 20729.

How can I trap this error in VB6 to prevent the dialog box appearing and for me to know an error has been detected. I'm sure it should be simple but I cant find the relevant info in the API guide.


Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, October 15, 2007 9:04:20 AM(UTC)


Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Have you added error handling to your application? If not you will need to add some kind of error handling to the application.

Here is a crude error handling mechanism (within the image loading procedure):

On Error Resume Next

'do stuff

load image
if Err.Number = 20729
'handle pdf load error

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.042 seconds.