Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Get the logs from fingerprint device

Get the logs from fingerprint device

Scheduled Pinned Locked Moved .NET (Core and Framework)
performancehelp
4 Posts 4 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Meax
    wrote on last edited by
    #1

    hi, i am trying to download data from fingerprint device. below is the code provided by them in their demo application(vb). with the code provided by them i can connect to device successfully but i am not getting correct data.

    Private Sub btnGetGeneralLogData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetGeneralLogData.Click
    If bIsConnected = False Then
    MsgBox("Please connect the device first", MsgBoxStyle.Exclamation, "Error")
    Return
    End If

        Dim idwTMachineNumber As Integer
        Dim idwEnrollNumber As Integer
        Dim idwEMachineNumber As Integer
        Dim idwVerifyMode As Integer
        Dim idwInOutMode As Integer
        Dim idwYear As Integer
        Dim idwMonth As Integer
        Dim idwDay As Integer
        Dim idwHour As Integer
        Dim idwMinute As Integer
    
        Dim idwErrorCode As Integer
        Dim iGLCount = 0
        Dim lvItem As New ListViewItem("Items", 0)
    
        Cursor = Cursors.WaitCursor
        lvLogs.Items.Clear()
        AxCZKEM1.EnableDevice(iMachineNumber, False) 'disable the device
        If AxCZKEM1.ReadGeneralLogData(iMachineNumber) Then 'read all the attendance records to the memory
            'get records from the memory
            While AxCZKEM1.GetGeneralLogData(iMachineNumber, idwTMachineNumber, idwEnrollNumber, idwEMachineNumber, idwVerifyMode, idwInOutMode, idwYear, idwMonth, idwDay, idwHour, idwMinute)
                iGLCount += 1
                lvItem = lvLogs.Items.Add(iGLCount.ToString())
                lvItem.SubItems.Add(idwEnrollNumber.ToString())
                lvItem.SubItems.Add(idwVerifyMode.ToString())
                lvItem.SubItems.Add(idwInOutMode.ToString())
                lvItem.SubItems.Add(idwYear.ToString() & "-" + idwMonth.ToString() & "-" & idwDay.ToString() & " " & idwHour.ToString() & ":" & idwMinute.ToString())
            End While
        Else
            Cursor = Cursors.Default
            AxCZKEM1.GetLastError(idwErrorCode)
            If idwErrorCode <> 0 Then
                MsgBox("Reading data from terminal failed,ErrorCode: " & idwErrorCode, MsgBoxStyle.Exclamation, "Error")
            Else
                MsgBox("No data from terminal returns!", MsgBoxStyle.Exclamation, "Error")
            End If
        End If
    
        AxCZKEM1.EnableDevice(iMachineNumber, True) 'enable the device
        Cursor = Cursors.Default
    End Sub
    
    L P J 3 Replies Last reply
    0
    • M Meax

      hi, i am trying to download data from fingerprint device. below is the code provided by them in their demo application(vb). with the code provided by them i can connect to device successfully but i am not getting correct data.

      Private Sub btnGetGeneralLogData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetGeneralLogData.Click
      If bIsConnected = False Then
      MsgBox("Please connect the device first", MsgBoxStyle.Exclamation, "Error")
      Return
      End If

          Dim idwTMachineNumber As Integer
          Dim idwEnrollNumber As Integer
          Dim idwEMachineNumber As Integer
          Dim idwVerifyMode As Integer
          Dim idwInOutMode As Integer
          Dim idwYear As Integer
          Dim idwMonth As Integer
          Dim idwDay As Integer
          Dim idwHour As Integer
          Dim idwMinute As Integer
      
          Dim idwErrorCode As Integer
          Dim iGLCount = 0
          Dim lvItem As New ListViewItem("Items", 0)
      
          Cursor = Cursors.WaitCursor
          lvLogs.Items.Clear()
          AxCZKEM1.EnableDevice(iMachineNumber, False) 'disable the device
          If AxCZKEM1.ReadGeneralLogData(iMachineNumber) Then 'read all the attendance records to the memory
              'get records from the memory
              While AxCZKEM1.GetGeneralLogData(iMachineNumber, idwTMachineNumber, idwEnrollNumber, idwEMachineNumber, idwVerifyMode, idwInOutMode, idwYear, idwMonth, idwDay, idwHour, idwMinute)
                  iGLCount += 1
                  lvItem = lvLogs.Items.Add(iGLCount.ToString())
                  lvItem.SubItems.Add(idwEnrollNumber.ToString())
                  lvItem.SubItems.Add(idwVerifyMode.ToString())
                  lvItem.SubItems.Add(idwInOutMode.ToString())
                  lvItem.SubItems.Add(idwYear.ToString() & "-" + idwMonth.ToString() & "-" & idwDay.ToString() & " " & idwHour.ToString() & ":" & idwMinute.ToString())
              End While
          Else
              Cursor = Cursors.Default
              AxCZKEM1.GetLastError(idwErrorCode)
              If idwErrorCode <> 0 Then
                  MsgBox("Reading data from terminal failed,ErrorCode: " & idwErrorCode, MsgBoxStyle.Exclamation, "Error")
              Else
                  MsgBox("No data from terminal returns!", MsgBoxStyle.Exclamation, "Error")
              End If
          End If
      
          AxCZKEM1.EnableDevice(iMachineNumber, True) 'enable the device
          Cursor = Cursors.Default
      End Sub
      
      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You really need to talk to the people who provided the device and the sample program.

      1 Reply Last reply
      0
      • M Meax

        hi, i am trying to download data from fingerprint device. below is the code provided by them in their demo application(vb). with the code provided by them i can connect to device successfully but i am not getting correct data.

        Private Sub btnGetGeneralLogData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetGeneralLogData.Click
        If bIsConnected = False Then
        MsgBox("Please connect the device first", MsgBoxStyle.Exclamation, "Error")
        Return
        End If

            Dim idwTMachineNumber As Integer
            Dim idwEnrollNumber As Integer
            Dim idwEMachineNumber As Integer
            Dim idwVerifyMode As Integer
            Dim idwInOutMode As Integer
            Dim idwYear As Integer
            Dim idwMonth As Integer
            Dim idwDay As Integer
            Dim idwHour As Integer
            Dim idwMinute As Integer
        
            Dim idwErrorCode As Integer
            Dim iGLCount = 0
            Dim lvItem As New ListViewItem("Items", 0)
        
            Cursor = Cursors.WaitCursor
            lvLogs.Items.Clear()
            AxCZKEM1.EnableDevice(iMachineNumber, False) 'disable the device
            If AxCZKEM1.ReadGeneralLogData(iMachineNumber) Then 'read all the attendance records to the memory
                'get records from the memory
                While AxCZKEM1.GetGeneralLogData(iMachineNumber, idwTMachineNumber, idwEnrollNumber, idwEMachineNumber, idwVerifyMode, idwInOutMode, idwYear, idwMonth, idwDay, idwHour, idwMinute)
                    iGLCount += 1
                    lvItem = lvLogs.Items.Add(iGLCount.ToString())
                    lvItem.SubItems.Add(idwEnrollNumber.ToString())
                    lvItem.SubItems.Add(idwVerifyMode.ToString())
                    lvItem.SubItems.Add(idwInOutMode.ToString())
                    lvItem.SubItems.Add(idwYear.ToString() & "-" + idwMonth.ToString() & "-" & idwDay.ToString() & " " & idwHour.ToString() & ":" & idwMinute.ToString())
                End While
            Else
                Cursor = Cursors.Default
                AxCZKEM1.GetLastError(idwErrorCode)
                If idwErrorCode <> 0 Then
                    MsgBox("Reading data from terminal failed,ErrorCode: " & idwErrorCode, MsgBoxStyle.Exclamation, "Error")
                Else
                    MsgBox("No data from terminal returns!", MsgBoxStyle.Exclamation, "Error")
                End If
            End If
        
            AxCZKEM1.EnableDevice(iMachineNumber, True) 'enable the device
            Cursor = Cursors.Default
        End Sub
        
        P Offline
        P Offline
        Patrice T
        wrote on last edited by
        #3

        If someone knows how it works, it is the maker's people. Why don't you ask them ? Note that you sis not even gave the brand and model.

        Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein

        1 Reply Last reply
        0
        • M Meax

          hi, i am trying to download data from fingerprint device. below is the code provided by them in their demo application(vb). with the code provided by them i can connect to device successfully but i am not getting correct data.

          Private Sub btnGetGeneralLogData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetGeneralLogData.Click
          If bIsConnected = False Then
          MsgBox("Please connect the device first", MsgBoxStyle.Exclamation, "Error")
          Return
          End If

              Dim idwTMachineNumber As Integer
              Dim idwEnrollNumber As Integer
              Dim idwEMachineNumber As Integer
              Dim idwVerifyMode As Integer
              Dim idwInOutMode As Integer
              Dim idwYear As Integer
              Dim idwMonth As Integer
              Dim idwDay As Integer
              Dim idwHour As Integer
              Dim idwMinute As Integer
          
              Dim idwErrorCode As Integer
              Dim iGLCount = 0
              Dim lvItem As New ListViewItem("Items", 0)
          
              Cursor = Cursors.WaitCursor
              lvLogs.Items.Clear()
              AxCZKEM1.EnableDevice(iMachineNumber, False) 'disable the device
              If AxCZKEM1.ReadGeneralLogData(iMachineNumber) Then 'read all the attendance records to the memory
                  'get records from the memory
                  While AxCZKEM1.GetGeneralLogData(iMachineNumber, idwTMachineNumber, idwEnrollNumber, idwEMachineNumber, idwVerifyMode, idwInOutMode, idwYear, idwMonth, idwDay, idwHour, idwMinute)
                      iGLCount += 1
                      lvItem = lvLogs.Items.Add(iGLCount.ToString())
                      lvItem.SubItems.Add(idwEnrollNumber.ToString())
                      lvItem.SubItems.Add(idwVerifyMode.ToString())
                      lvItem.SubItems.Add(idwInOutMode.ToString())
                      lvItem.SubItems.Add(idwYear.ToString() & "-" + idwMonth.ToString() & "-" & idwDay.ToString() & " " & idwHour.ToString() & ":" & idwMinute.ToString())
                  End While
              Else
                  Cursor = Cursors.Default
                  AxCZKEM1.GetLastError(idwErrorCode)
                  If idwErrorCode <> 0 Then
                      MsgBox("Reading data from terminal failed,ErrorCode: " & idwErrorCode, MsgBoxStyle.Exclamation, "Error")
                  Else
                      MsgBox("No data from terminal returns!", MsgBoxStyle.Exclamation, "Error")
                  End If
              End If
          
              AxCZKEM1.EnableDevice(iMachineNumber, True) 'enable the device
              Cursor = Cursors.Default
          End Sub
          
          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          Meax wrote:

          but i am not getting correct data.

          How did you determine that is not correct? Why is it not correct?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups