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

Twain Barcode

Forums › TWAIN Classic › Twain Barcode

  • This topic has 9 replies, 9 voices, and was last updated 1 month ago by Boscohto.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • March 16, 2011 at 1:42 am #22669 Reply
    jiangziang
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Greeting, everyone.

    I am new to TWAIN,
    Now, I am try to develop a app which can recognize the barcode, but every time, the return value of barcode is null. I don’t now where is wrong, can anyone help to check it or can anyone provide some codes about this function?

    jiangziang2000@yahoo.com.cn

    Really appreciate for your time.

    My environment:
    VB.net + TWAIN2.1 + Kodak i1220 Plus Scanner

    Code Logic:
    (1) Open DSM
    (2) Open DS
    (3) Enable DS
    (4) Scan Document
    (5) Get Barcode from Extra Image Info
    (6) Disable DS
    (7) Close DS
    (8) Close DSM

    Here are some codes:
    ‘Step 1 Open DSM
    ‘ Open DSM
    rc = TwainLib.OpenDSM(pOrigin, _
    IntPtr.Zero, _
    TwainEnum.DataGroup.Control, _
    TwainEnum.DataArgumentTypes.Parent, _
    TwainEnum.Message.OpenDsm, _
    Me.Handle)
    ‘Step 2 Select DataSource
    ‘ Popup dialog
    rc = TwainLib.OpenDSSelectionDialog(pOrigin, _
    IntPtr.Zero, _
    TwainEnum.DataGroup.Control, _
    TwainEnum.DataArgumentTypes.Identity, _
    TwainEnum.Message.UserSelect, _
    pSeletedSource)
    ‘Step 3 Open DS
    rc = TwainLib.OpenDS(pOrigin, _
    IntPtr.Zero, _
    TwainEnum.DataGroup.Control, _
    TwainEnum.DataArgumentTypes.Identity, _
    TwainEnum.Message.OpenDs, _
    pSeletedSource)
    ‘Step 4 Request data from data source
    rc = TwainLib.ShowDeviceInterface(pOrigin, _
    pSeletedSource, _
    TwainEnum.DataGroup.Control, _
    TwainEnum.DataArgumentTypes.UserInterface, _
    TwainEnum.Message.EnableDsTransfer, _
    userInterface)

    ‘Step 5 Get image info
    rc = TwainLib.ImageTransfer(pOrigin, _
    pSeletedSource, _
    TwainEnum.DataGroup.Image, _
    TwainEnum.DataArgumentTypes.ImageNativeXfer, _
    TwainEnum.Message.Get, _
    hbitmap)

    ‘Step 6 When transfer done, get extra image infomation (BarCode)
    Select Case ImageTransfer(hbitmap)
    Case TwainEnum.ReturnCode.XferDone
    Rc = TwainLib.GetExtImageInfo(pOrigin, _
    pSeletedSource, _
    TwainEnum.DataGroup.Image, _
    TwainEnum.DataArgumentTypes.ExtImageInfo, _
    TwainEnum.Message.Get, _
    pExtImageInfo)
    End Select

    😀 😀

    March 19, 2011 at 1:49 pm #25402 Reply
    jiangziang
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Can anyone give me any suggestion?? Thanks

    March 20, 2011 at 10:19 pm #25403 Reply
    june5
    Participant
    • Topics - 0
    • Replies - 17
    • Total Posts - 17

    please check if you set ICAP_BARCODEDETECTIONENABLED or not.

    February 25, 2013 at 6:32 am #25404 Reply
    Thomassunshine
    Participant
    • Topics - 0
    • Replies - 3
    • Total Posts - 3

    I am using Barcode Generator for ASP.NET to create barcode.
    And i am a little confused about your question.
    You mean you have trouble about the application or something else?
    May be you can try which i used barcode application.

    April 12, 2013 at 8:42 am #25405 Reply
    carolinenew
    Participant
    • Topics - 0
    • Replies - 3
    • Total Posts - 3

    if you are looking for code. Here is a detailed sample for generating and embedding a barcode into image, or both way.

    April 15, 2013 at 7:31 am #25406 Reply
    Frederick
    Participant
    • Topics - 0
    • Replies - 2
    • Total Posts - 2

    I guess what you said “recognize the barcode” means a barcode sanner which can read your barcode info. in my view, before you work out you own program, you can learn some info from some professinal barcode image scanner site.

    May 6, 2013 at 2:52 am #25407 Reply
    petersf
    Participant
    • Topics - 0
    • Replies - 1
    • Total Posts - 1

    I was also wondering about your question. Is your problem related to barcode creation or barcode reading? If you have barcode reading problem, you can read much info on Google about barcode reading and find a good barcode reader to have a try. If you have barcode generation problem, do the same and find a suitable barcode generator to have a try. Now I am creating barcode in ASP.NET using VB.NET. I suggest you take a look at this site. It’s good. It provides many detailed barcode guide, such as VB.NET barcode data encoding guide, etc. Very useful. It may give you some enlightment.

    August 8, 2013 at 1:54 am #25408 Reply
    mymore
    Participant
    • Topics - 0
    • Replies - 1
    • Total Posts - 1

    i think his problem is about barcode reading,you can find some scripts here with tutorial. pulling barcode value quickly and conveniently. for barcode generatingi prefer c# as well.it is know by most people. so you can give a try.

    August 12, 2013 at 6:39 am #25409 Reply
    cindy313
    Participant
    • Topics - 0
    • Replies - 7
    • Total Posts - 7

    well,many people are wondering your question between barcode reader and barcode generator. ok, if sth.related, you can refer to both barcode readerand barcode generator to help yourself out…Good luck!

    October 24, 2013 at 8:52 am #25410 Reply
    jane313
    Participant
    • Topics - 0
    • Replies - 7
    • Total Posts - 7

    @mymore wrote:

    i think his problem is about barcode reading,you can find some scripts here with tutorial. pulling barcode value quickly and conveniently. for barcode generatingi prefer c# as well.it is know by most people. so you can give a try.

    can the barcode reader app be used on phone ?

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Twain Barcode
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

  • could not open the twain source. Make sure there is a valid source for your sca
  • Changing TWAIN driver defaults
  • Scanner starts transfer when console gets closed (CITRIX)
  • Kodak RFS 3600
  • Didn’t save enough file scan
  • 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.