Click here to Skip to main content
15,896,382 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello Friends

I am trying to featch the data from Databse SqlServer using Finger scanner
but data is not matching or finger print is not matching .
I am trying to match finger but finger print is not matching.
Here my code so please help me.



VB
Private Sub VerCtrl_OnVerify(ByVal LiveFinger As Boolean)
'On Error Resume Next
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim finData As New FingerData
Dim fda As New FingerData
cn.Open "Provider=MSDASQL;DSN=PMSClient"
rs.Open "Fingers", cn, adOpenStatic, adLockReadOnly, adCmdTable
If rs.RecordCount <= 0 Then
 Exit Sub
End If
rs.MoveFirst
Dim arr() As Byte
Do While Not rs.EOF
    ReDim arr(CLng(rs("FSize")) - 1) As Byte
    'retreiving the finger print from database one by one and matching with the currently scanned live finger
    arr = rs("Finger").GetChunk(CLng(rs("FSize")) - 1)
    finData.SetData arr
   
    ''finData.SetData (arr)
    'loading the finger print to the fx2000 device for verification
    VerCtrl.LoadFingerToMatch finData
    If VerCtrl.Match > 0.5 Then
        ' showing the message with whom live finger print matches
        gPIDNo = rs("PID_No")
        Exit Do
    Else
        gPIDNo = 0
    End If
    rs.MoveNext
Loop
Set finData = Nothing
rs.Close
cn.Close
Unload Me
End Sub




In this Code finData is matching a Finger print but finData is Image is false or or len is 0
and after
If VerCtrl.Match > 0.5 Then jump in gPIDNo = 0( in Else part )

so please Help me for this Solution
my mail ID: - [REMOVED]
mob: 9755377510
Thanks in Advance
Posted
Updated 18-Apr-13 4:39am
v6
Comments
SoMad 18-Apr-13 10:38am    
I removed your email from this question. You should never put your email address in a public forum like this.

You will automatically get an email notification when someone replies to your question.

Soren Madsen
Maciej Los 19-Apr-13 11:38am    
What is here: VerCtrl.LoadFingerToMatch finData?

1 solution

Hi VerCtrl is CommandButton name and loadfingerToMatch is method
finData is a variable as a fingerdata
so in this FinData is null, there in findata null so thats why finger is not matching
Please help me
 
Share this answer
 
Comments
Richard C Bishop 19-Apr-13 16:25pm    
Be carefule not to post questions or comments as solutions to your thread.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900