TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

How to develop a twain driver using C#?

Forums › TWAIN Classic › How to develop a twain driver using C#?

  • This topic has 5 replies, 4 voices, and was last updated 4 years, 1 month ago by SARAFF.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • May 21, 2015 at 10:42 pm #23011 Reply
    julioc
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Hello

    One of our customers want us to develop a twain driver for a I2s CopyBook scanner. Unfortunately, none of us have any experience doing this kind of job. I took a look at the Twain specification v2.3, however, it seems, it is too much to understand in a couple of hours.

    Our team is comfortable writing C# code and the scanner manufacturer (I2s) provides a C# dll. They also provide a TWAIN driver, however, it is pretty basic and our customer wants more control over the scanning process.

    Is it possible to use the TWAIN for C-Sharp project in order to develop a new TWAIN driver for the scanner?
    Considering our lack of experience, do you think is possible to do it in a couple of weeks?

    I know this is a very open question, however, I am just looking for some general guidance about the correct direction to follow and your opinion about the possibility of finishing this project successfully.

    I will really appreciate any help, comments or suggestions.

    Regards

    May 28, 2015 at 8:04 am #26275 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    C# can be used for driver, but an ANSI-C entry point called DS_Entry() must be exposed by the .ds file so that the data source manager can connect and communication with the driver.

    http://sourceforge.net/projects/twain-samples/
    This is a code written in C++, which includes a sample application and data source. Building off of this code will reduce your development time.

    TWAIN on C# is meant for applications, but the TWAINH.CS and possibly the TWAIN.CS modules could be used to help with or to better understand how to develop a TWAIN driver.

    May 28, 2015 at 3:46 pm #26276 Reply
    julioc
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Thank you so much for your time.

    Kind regards

    September 27, 2016 at 7:18 pm #26277 Reply
    SARAFF
    Participant
    • Topics - 0
    • Replies - 3
    • Total Posts - 3

    Try use Saraff.Twain.DS (https://twainds.codeplex.com/).
    Saraff.Twain.DS is the skillful class library which allows you to design drivers (a Data Source) of flatbed scanner, web and digital camera and any other TWAIN device from .NET environment. You can use this library in your programs written in any programming languages compatible with .NET technology.

    November 25, 2016 at 1:56 am #26279 Reply
    Deskew
    Participant
    • Topics - 0
    • Replies - 1
    • Total Posts - 1

    @SARAFF wrote:

    Try use Saraff.Twain.DS (https://twainds.codeplex.com/).
    Saraff.Twain.DS is the skillful class library which allows you to design drivers (a Data Source) of flatbed scanner, web and digital camera and any other TWAIN device from .NET environment. You can use this library in your programs written in any programming languages compatible with .NET technology.

    Hi! Can I design a driver of high speed scanner(with ADF(Automatic Documents Feeder)) by using Saraff.Twain.DS?

    November 25, 2016 at 8:21 pm #26280 Reply
    SARAFF
    Participant
    • Topics - 0
    • Replies - 3
    • Total Posts - 3

    Hello, Deskew.
    Certainly possible.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: How to develop a twain driver using C#?
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

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.