Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 40579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:02:45+00:00 2026-05-10T15:02:45+00:00

I want to implement a paperless filing system and was looking to use WIA

  • 0

I want to implement a paperless filing system and was looking to use WIA with C# for the image acquisition. There are quite a few sample projects on CodeProject, etc. However, after downloading every one of them that I can find, I have run into a problem.

In each and every one of them, the reference to WIALib is broken. When I go to add ‘Microsoft Windows Image Acquisition’ as a reference, the only version available on my development workstation (also the machine that will run this) is 2.0.

Unfortunately, every one of these sample projects appear to have been coded against 1.x. The reference goes in as ‘WIA’ instead of ‘WIALib’. I took a shot, just changing the namespace import, but clearly the API is drastically different.

Is there any information on either implementing v2.0 or on upgrading one of these existing sample projects out there?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T15:02:45+00:00Added an answer on May 10, 2026 at 3:02 pm

    To access WIA, you’ll need to add a reference to the COM library, ‘Microsoft Windows Image Acquisition Library v2.0’ (wiaaut.dll). add a ‘using WIA;’

    const string wiaFormatJPEG = '{B96B3CAE-0728-11D3-9D7B-0000F81EF32E}'; CommonDialogClass wiaDiag = new CommonDialogClass(); WIA.ImageFile wiaImage = null;  wiaImage = wiaDiag.ShowAcquireImage(         WiaDeviceType.UnspecifiedDeviceType,          WiaImageIntent.GrayscaleIntent,          WiaImageBias.MaximizeQuality,          wiaFormatJPEG, true, true, false);  WIA.Vector vector = wiaImage.FileData; 

    (System.Drawing)

    Image i = Image.FromStream(new MemoryStream((byte[])vector.get_BinaryData())); i.Save(filename) 

    Thats a basic way, works with my flatbed/doc feeder. If you need more than one document/page at a time though, there is probably a better way to do it (from what I could see, this only handles one image at a time, although I’m not entirely sure). While it is a WIA v1 doc, Scott Hanselman’s Coding4Fun article on WIA does contain some more info on how to do it for multiple pages, I think (I’m yet to go further than that myself)

    If its for a paperless office system, you might want also check out MODI (Office Document Imaging) to do all the OCR for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to implement a contact us page where there are few phone numbers,
I want to implement charting in SWT and I want to use GC.transform to
I want to implement a cache system for our application, we've started integrating with
I want to implement a simple command line based image editor. The program will
I want to implement an image uplad with Lift. Started with this . I'm
I Want Implement a Software by C#.net.I want Use a DataBase Manager Software like
I want to implement a message system using mysql for storage. This is the
I want to implement highcharts in ruby on rails. But there's some runtime problem
I want to implement Mandarin language translation feature in my iPad app, is there
I want to implement a two-pass cache system: The first pass generates a PHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.