473,320 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Twain scanner.

I have a need to use a twain scanner to get images for my application. I
found a good sample for C#.NET, but I'm having a hard time adapting it to
VB.NET. Does anyone know of a good place to look for sample code?
Oct 29 '07 #1
3 4295
On Oct 28, 6:27 pm, "Shawn" <shawn.cam...@ccci.orgwrote:
I have a need to use a twain scanner to get images for my application. I
found a good sample for C#.NET, but I'm having a hard time adapting it to
VB.NET. Does anyone know of a good place to look for sample code?
What part of adapting the C# code are you having trouble with? Can
you post a link to the C# sample.

--
Tom Shelton

Oct 29 '07 #2
Well, I am having several issues. I am able to get it to compile without
errors, but the events are not raised properly even if I try to add the
handlers plus I just don't work with C# very often, and my whole app is VB,
so I would really like to find a sample in VB to start with.

"Tom Shelton" <to*********@comcast.netwrote in message
news:11**********************@57g2000hsv.googlegro ups.com...
On Oct 28, 6:27 pm, "Shawn" <shawn.cam...@ccci.orgwrote:
>I have a need to use a twain scanner to get images for my application. I
found a good sample for C#.NET, but I'm having a hard time adapting it to
VB.NET. Does anyone know of a good place to look for sample code?

What part of adapting the C# code are you having trouble with? Can
you post a link to the C# sample.

--
Tom Shelton

Oct 29 '07 #3
"Shawn" <sh**********@ccci.orgwrote in message
news:Ol*************@TK2MSFTNGP02.phx.gbl...
Well, I am having several issues. I am able to get it to compile without
errors, but the events are not raised properly even if I try to add the
handlers plus I just don't work with C# very often, and my whole app is
VB, so I would really like to find a sample in VB to start with.
You're FAR better off learning how to translate it to VB or learning how to
work in C#. If you work in C# you can compile it to a dll. Going from VB.net
to C# is very easy. The events are the only bit that is difficult. The
majority of the samples you'll find on the net will be in C#.

Michael
Oct 29 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tomas Christiansen | last post by:
Anyone having experience with Kevin Gill's TWAIN module (from www.sourceforge.org)? Seems that a user MUST be logged in on the computer (Windows 2000) to be able to scan on a TWAIN-scanner?...
0
by: Neil Benn | last post by:
Hello, Has anyone had any success with python twain? I've downloaded it and run the module however, I'm getting a python core crash when calling to SourceManager.OpenSource. Needless to say,...
0
by: Mikael Olofsson | last post by:
Hi all! Sorry for this rather lengthy post. It's a long preamble followed by a few questions based on that. Here's my situation: I am trying to write a specialized scanner utility for my own...
2
by: samuabreu | last post by:
I'm currently developing an API of Twain for Java. As Twain is implemented in C (and in fact Im writing and calling C methods from the app) I couldn't find a better group to search for twain...
3
by: Mateusz [PEYN] Adamus | last post by:
Hi First of all please let me know if there is some other, more suitable group for this news - TIA :-) Now, my problem. I'm writing an C# application in which I'm using some functions from...
3
by: Carlos | last post by:
Dear All, I wanna ask whether there is a method to communicate with scanner in C#. Thank, Carlos
4
by: Dustin Davis | last post by:
I'm hoping there is a TWAIN expert lurking here somewhere :) I'm writing a very customized application. The software will be set up in multiple location and will always have two types of scanners...
3
by: =?Utf-8?B?UmljYXJkbyBGdXJ0YWRv?= | last post by:
I'm facing what i consider to be a serious problem, because i can't find the solution!!! I've made possible, for the software i'm developing, to aquire images from a scanner using WIA. The problem...
1
by: =?Utf-8?B?UmljYXJkbyBGdXJ0YWRv?= | last post by:
I'm facing what i consider to be a serious problem, because i can't find the solution!!! I've made possible, for the software i'm developing, to aquire images from a scanner using WIA. The problem...
0
by: jade9032 | last post by:
Hi, I am using the standard twain calling functions from twain.org and everything works correctly. The error happens when I try to press the cancel button on the scanner to cancel the print...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.