Invalid Parameter returned

Discussions about Automatic Document Recognition in GdPicture.NET.
Post Reply
User avatar
fantasio
Posts: 3
Joined: Fri Mar 19, 2010 12:12 pm
Location: France

Invalid Parameter returned

Post by fantasio » Fri Mar 19, 2010 12:32 pm

Hello Support,

I'm trying to evaluate ADR and I have some problems

With this sample code, partially issued from this forum, ADRAddGdPictureImageToTemplate always returns 2 (InvalidParameter)

Dim ImageID As Integer = Imaging1.CreateGdPictureImageFromFile("")
Dim TemplateID As Integer = Imaging1.ADRCreateTemplateEmpty()
MsgBox("TemplateID = " & TemplateID & " - ImageID = " & ImageID)
MsgBox(Imaging1.ADRAddGdPictureImageToTemplate(TemplateID, ImageID))
MsgBox(Imaging1.ADRGetCloserTemplateForGdPictureImage(ImageID))
MsgBox(Imaging1.ADRGetLastConfidence())

GDPicture.NET version 6.6.0.5 - Trial License number received yesterday
Visual Basic 2008 Express SP1

Where is my mistake ?

Thank you for your help.

User avatar
Loïc
Site Admin
Posts: 5584
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Invalid Parameter returned

Post by Loïc » Mon Mar 22, 2010 9:41 am

Hi,

Your code is working fine for me.
I suspect you to try to open a PDF document using the GdPictureImaging class: It is not yest possible. You have to open the PDF using a GdViewer object, then render PDF pages to GdPicture Image.

Let me know if you need more assistance.

With best regards,

Loïc Carrère

User avatar
fantasio
Posts: 3
Joined: Fri Mar 19, 2010 12:12 pm
Location: France

Re: Invalid Parameter returned

Post by fantasio » Mon Mar 22, 2010 1:24 pm

Thanks Loïc,

I found my mistake.

The reference to GdPicture.NET.dll that I have added to my project was not the right one.

It works fine now.

Best regards

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest