Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,405 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 2,464 people online right now. Registration is fast and FREE... Join Now!




WIA scanner

 
Reply to this topicStart new topic

WIA scanner, WIA scanner DPI Problem

jayawant.karale@gmail.com
20 Aug, 2008 - 02:37 AM
Post #1

New D.I.C Head
*

Joined: 18 Jun, 2008
Posts: 6

Hello,
I'm trying to select only scanner and want to set the DPI to 100 and automatically scan without showing the scan dialog.
Any idea?
User is offlineProfile CardPM
+Quote Post

djkitt
RE: WIA Scanner
20 Aug, 2008 - 08:45 AM
Post #2

D.I.C Head
**

Joined: 22 May, 2008
Posts: 128



Thanked: 13 times
My Contributions
QUOTE(jayawant.karale@gmail.com @ 20 Aug, 2008 - 05:37 AM) *

Hello,
I'm trying to select only scanner and want to set the DPI to 100 and automatically scan without showing the scan dialog.
Any idea?


So, you can set the *AlwaysSelectDevice* parameter to false like so...
CODE

            WIA.CommonDialog dlg = new WIA.CommonDialog();
            WIA.Device scanner = dlg.ShowSelectDevice(WIA.WiaDeviceType.ScannerDeviceType, false, false);



Then it will only show the dialog if you have more than one scanner connected.


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 11:55AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month