Scan using WIA?

Hey,

I have searched the forum a bit about WIA, but really didn't get any useful answers.

What I want to do, is scan an image from my old HP OfficeJet G85 scanner. I'm not sure it supports WIA, and TWAIN really seems like a pain in the neck. Can anyone provide some really simple VB code to use WIA I already got:

Dim Item As WIA.Item

Dim Dialog As New WIA.CommonDialog

Dim Device As WIA.Device = Dialog.ShowAcquireImage(WIA.WiaDeviceType.ScannerDeviceType, WIA.WiaImageIntent.ColorIntent, WIA.WiaImageBias.MaximizeQuality)

And that's about all. I just want to show the scanned picture in a PictureBox, and maybe save it. I'm really lost right now, since I don't know where to go from here.

Thanks in advance,

Dan

P.S. Sorry for my bad english, my native is danish, and I'm only 15, so not finished with groundschool yet :)



Answer this question

Scan using WIA?

  • Scan using WIA?