Custom Validation -Move Next Document

Custom Validation -Move Next Document

Postby eperry » Wed Aug 01, 2012 2:35 pm

Trying to move to next document after indexing is complete in Custom Panel. Followed example in KC9 API guide but can't compile because of error:
"can't implicitly convert type "Kofax.AscentCaptureAPI. AscentCaptureModule.KfxApiValidationMenuItems" to "int" "

API documentation states that the "SelectMenuItem" function wants an integer value for the menu item.

Code (C#):
Boolean bSendImmediate = false;
m_panelApplication.SelectMenuItem(KfxApiValidationMenuItems.KfxValidationMenuDocumentNext, bSendImmediate);

What am I missing?
Thanks in advance,
Ed
---------------------
Edward Perry
Imaging Consultant
eperry
Participant
 
Posts: 6
Joined: Tue Jan 12, 2010 8:27 am

Re: Custom Validation -Move Next Document

Postby dkekesi » Thu Aug 02, 2012 12:13 am

What happens if you explicitly cast the value to int before calling the SelectMenuItem function?
Best Regards,

Daniel Kekesi
DocSoft Hungary
Image
dkekesi
Participant
 
Posts: 2569
Joined: Thu Dec 08, 2005 12:56 am
Location: Budapest, Hungary

Re: Custom Validation -Move Next Document

Postby eperry » Mon Aug 06, 2012 5:32 am

That was it, thanks Daniel. Sorry, it was a long day/night of coding..and first time working with C# so it wasn't intuitive. But should have thought of that. This is why the Forum is great, a second (or thirs/fourth/fitfth/etc) set of eyes...

Appreciate the fast response.

Ed
---------------------
Edward Perry
Imaging Consultant
eperry
Participant
 
Posts: 6
Joined: Tue Jan 12, 2010 8:27 am


Return to Custom Modules General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron