Bio-Plugin OCX Control Problem.

zulq
Member Posts: 204
Hi,
Got an M2-Hamster Plus fingerprint scanner with the Bio-plugin from M2SYS. This plugin has OCX which is automatically registered into Navision.
I created a form with a global variable for the OCX. When I go to C/AL Symbol menu and click the ocx global variable I see all the methods.
Based on their documentation the following methods (CaptureFingerData, GetFingerData and SaveAsBimap) should give you the ability to scan and store the image of the fingerprint. However when I run the button the scanning is displayed and the finger can be scan but when I just click the button navision crashes.
If I remove the SaveAsBitmap method Nav dos not crash. Below is my code:
Any ideas anyone has ever implemented such devices within Nav using OCX.
Thanks.
Got an M2-Hamster Plus fingerprint scanner with the Bio-plugin from M2SYS. This plugin has OCX which is automatically registered into Navision.
I created a form with a global variable for the OCX. When I go to C/AL Symbol menu and click the ocx global variable I see all the methods.
Based on their documentation the following methods (CaptureFingerData, GetFingerData and SaveAsBimap) should give you the ability to scan and store the image of the fingerprint. However when I run the button the scanning is displayed and the finger can be scan but when I just click the button navision crashes.
If I remove the SaveAsBitmap method Nav dos not crash. Below is my code:
bioPlugin.SetDefaultFinger(1,1); bioPlugin.CaptureFingerData; bioPlugin.getfingerdata(); bioPlugin.SetImageDisplayMode; bioPlugin.SaveAsBitmap(pathWhereToSaveImage);What I realise also is that even when Nav crashes the bioplugin still runs which to me looks like it's running outside Nav scope even though call within Nav.
Any ideas anyone has ever implemented such devices within Nav using OCX.
Thanks.
Few years ago we were not existing and few years to come we would be in the grave! So what will benefit us in the grave?
0
Comments
-
Do you have access to VB or Visual Studio? I sometimes find that working and testing these external applications is easier in one of those environments (they have better debugging and testing capabilities). Writing some similar code in an environment may help you clarify where the problem is coming from.
Also have you checked that any of the functions return a value or object that must be used?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions