اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

مساعدة في كشف عن خطأ في المعادلة


ahmedhossin
إذهب إلى أفضل إجابة Solved by د.كاف يار,

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

اخي الكريم

تفضل هذا الكود البسيط لجلب الصورة من الماسح الضوئي

Dim fdialog As Office.FileDialog
Dim filepath As String
Dim sdialog As New WIA.CommonDialog
Dim imagefile As WIA.imagefile
On Error GoTo errorhandle
Set fdialog = Application.FileDialog(msoFileDialogSaveAs)
filepath = CurrentProject.Path & "\" & "SCAN" & "-" & Format(Now, "dd-mm-yyyy" & "-" & "hh:mm") & ".jpg"
            Set imagefile = sdialog.ShowAcquireImage()
            imagefile.SaveFile filepath
            [اسم مربع عنصر التحكم لوضع لتخزين المسار] = filepath
errorhandleexit:
        Exit Sub
errorhandle:
        MsgBox Err.Description
        Resume errorhandleexit

 

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

  • أفضل إجابة

تفضل هذا المثال وضعت لك مثالين لسحب الصورة من الماسح الضوئي و جلب صورة من الكمبيوتر

Database12222.mdb

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

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