WIA and scanner RRS feed

  • Question

  • Hi all, and hope you doing well

    I try to get images from ADF scanner  using WIA and search for couple day and find some solution like this one

    Dim CD As New WIA.CommonDialog  
    Dim f As WIA.ImageFile = CD.ShowAcquireImage(WIA.WiaDeviceType.ScannerDeviceType, WiaImageIntent.ColorIntent, WiaImageBias.MinimizeSize, FormatID.wiaFormatJPEG, False, False)
    f.SaveFile(path + ".jpg")

    Which allow me to scanning one image, and can do loop for it and scan numbers of image but I need to conform the common dialog every image, so how can i pass this ?

    the second solution i found was:

        Dim CD As New WIA.CommonDialog
        Dim dev As Device
    dev = CD.ShowSelectDevice(WiaDeviceType.ScannerDeviceType, False)
    Dim img As WIA.ImageFile = CD.ShowAcquisitionWizard(dev)

    Which allow all WIA wizard function, so how i can set the scan option and file location so the user don't need to check it every time?

    I hope my question is clear and sorry for my bad English language


    • Moved by Mark Liu-lxf Wednesday, September 19, 2012 2:42 AM (From:Visual Basic General)
    Tuesday, September 18, 2012 1:42 AM


All replies