اذهب الي المحتوي
أوفيسنا

تعديل كود


zoed2

الردود الموصى بها

السلام عليكم ممكن تعديل هذا الكود بحيث يمكن اخذ اسكنر بدون المرور مباشرتا بدون المرور بهذه الصفحة 

image.png.84dc91288f4bf5ceeb22af8fed849690.png

 

 

وهذا هو الكود 

 


Private Sub cmdScan1_Click()
Dim ons As String
Dim intPages As Integer
  Dim x   As String
       Dim scandiag As Object
       On Error GoTo errorhandle
       Dim Image As Object
       If IsNull([emp_name]) Or IsNull([emp_name]) Then
     MsgBox "åäÇß ÍÞá ÝÇÑÛ "
       Exit Sub
       MsgBox Err.Description
    Else
   
    
    
        x = mypathofdb() & "\images_company" & "\ÇáæÇÑÏÉ" & "\" & Me.emp_name & ".jpg"
        Set scandiag = CreateObject("wia.commondialog")
        Set Image = scandiag.ShowAcquireImage()
        
        Image.SaveFile x
        Me![AA1] = x
        Me![Image].Picture = Me![AA1]
        Me.Refresh
       
        MsgBox "Êã ÇáäÓÎ"
      End If
      Me.btnSave.Enabled = True
errorhandleexit:
        Exit Sub
errorhandle:
        MsgBox Err.Description
        Resume errorhandleexit
      
End Sub

 

 

 

رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information