473,405 Members | 2,287 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,405 software developers and data experts.

Initialize Twain Driver in C# Window Service

I have used Twain Driver for Scanning the documents its working through Window User Control UI.

I have initialize Twain Driver in User Control as follows :

tw.Init(this.Handle);

It has Handle property so working fine.

Same thing I have to do in Window Service but there is no handle property then how can i initialize Twain Driver.

tw.Init(.......);

What should i pass here so that scanning work properly.

Thanks
Nitin
Jul 24 '07 #1
1 3184
declare a temporary form object and pass the form handle it it.
Oct 25 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: ren | last post by:
Hello all, I'm looking for a method, to program TWAIN directly via API calls... Because the Twain OCX under Windows from Kodak is very slow... When I scan via software or the OCX, the TWAIN...
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: 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...
3
by: Konrad | last post by:
Hi Can you point me articles concerning using of twain drivers for grabbing image from camera. Thanks Konrad
0
by: DynamSoft Corp. | last post by:
We provide FREE coding service for you! Dynamic TWAIN is very powerful and easy to use. It is compatible with TWAIN specification V1.9. and has built-in JPEG encoder and decoder. It supports all...
0
by: Leonardo Spina | last post by:
How should I set the "XResolution" and "YResolution" capabilities of a twain driver? In docs I found on twain.org I read they "should be linked by "XYResolutionLinked" capability, but I didn't...
0
by: Leonardo Spina | last post by:
How should I set the "XResolution" and "YResolution" capabilities of a twain driver? In docs I found on twain.org I read they "should be linked by "XYResolutionLinked" capability, but I didn't...
0
by: vsbsubramanian | last post by:
I am running Windows XP Pro (not SP 2) on my PIV 2.50 GHzs system with 256 MB RAM. While installing Cannon Twain 5 Driver for my Cannon Scanner Perfection 1250 model I get a message that ''An error...
0
by: Mark D Powell | last post by:
I have a 64 bit SQL Server 2005 SP2 on a Windows 2003 x64. The developer said that he needed to use OLE to talk to Oracle so I went to Oracle and downloaded the 64 bit OraOLDDB driver as...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.