Giter VIP home page Giter VIP logo

csharp-scanner-wia's Introduction

csharp-scanner-wia

This repository contains a really simple scanner application that implements WIA (Windows Image Acquisition).

How to use

Simply clone the repository:

git clone https://github.com/ourcodeworld/csharp-scanner-wia.git

And then open the project with Visual Studio and start the application. Enjoy it !

Read the official article in Our Code World here.

csharp-scanner-wia's People

Contributors

genesisfr avatar sdkcarlos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csharp-scanner-wia's Issues

HP deskjet F300 series system exception problem

I can not activate scanning process. I see my scanner model detected inside scanners list, I choose it and after pressing Scan button, Visual studio report The following exception.
¨
System.ArgumentException
HResult=0x80070057
Message=Values is out of expected range
Source=Interop.WIA
StackTrace:
in WIA.PropertyClass.set_Value(Object& pvResult)
in ScannerDemo.Scanner.SetWIAProperty(IProperties properties, Object propName, Object propValue) v souboru C:\ourcodeworld-csharp-scanner-wia-f072d40\ScannerDemo\Scanner.cs: řádek 228
in ScannerDemo.Scanner.AdjustScannerSettings(IItem scannnerItem, Int32 scanResolutionDPI, Int32 scanStartLeftPixel, Int32 scanStartTopPixel, Int32 scanWidthPixels, Int32 scanHeightPixels, Int32 brightnessPercents, Int32 contrastPercents, Int32 colorMode) v souboru C:\ourcodeworld-csharp-scanner-wia-f072d40\ScannerDemo\Scanner.cs: řádek 208
in ScannerDemo.Scanner.ScanTIFF() v souboru C:\ourcodeworld-csharp-scanner-wia-f072d40\ScannerDemo\Scanner.cs: řádek 148
in ScannerDemo.Form1.<>c__DisplayClass5_0.b__1() v souboru C:\ourcodeworld-csharp-scanner-wia-f072d40\ScannerDemo\Form1.cs: řádek 107
in System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
in System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
in System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
in System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
in System.Windows.Forms.Control.InvokeMarshaledCallbacks()
My scanner is correctly working with Microsoft Fax and scanner app and with other apps which are supporting WIA scanner interface. Is it possible to get supported values by A scanner so code would send usable value? I would like to scan A4 page, 300 DPi resolution and grayscale. I do not see at all and app which I loved so much, Microsoft document Scanning, which is The part of Microsoft Office 2003 Standard for students and Teachers do not work after I have applied all updates for Microsoft Office when running it on Windows 10. Very strange fact is, that Microsoft Document Scanning work perfectly, when I do not apply Microsoft Office 2003 updates. Some dlls problems, but as A visually impaired, I Am helpless to use Process Monitor from Sysinternals, because there are so many dynamically changed items, that screen reader totally froze so I can not track The cause. So I AM finding some free solution for scanning multiple pages. I had A dream to make simple Autohotkey script, which would be able to scan without display WIA scanner dialog to speed up scanning process, but It was not so easy as I could think. One VBA Macro could do that, but I had issues how to set other values than for photograph, which have been predefined by macro Thank you very much for yours help. I Am sending detailed scanner properties in The next comment.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.