ntwain | A TWAIN lib for dotnet | DevOps library
kandi X-RAY | ntwain Summary
kandi X-RAY | ntwain Summary
A TWAIN lib for dotnet.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ntwain
ntwain Key Features
ntwain Examples and Code Snippets
#!c#
// can use the utility method to create appId or make one yourself
var appId = TWIdentity.CreateFromAssembly(DataGroups.Image, Assembly.GetExecutingAssembly());
// new it up and handle events
var session = new TwainSession(appId);
session.Tran
#!c#
// go back to using twain_32.dll under windows,
// do this once at app startup.
NTwain.PlatformInfo.Current.PreferNewDSM = false;
#!c#
// set this while in a UI thread
session.SynchronizationContext = SynchronizationContext.Current;
Community Discussions
Trending Discussions on ntwain
QUESTION
I'm using NTwain to interface with an Epson scanner programmatically and it works well for enabling and transferring images, as well as setting some scan settings.
However, I want to be able to set different "profiles" using Epson Scan
in Professional Mode, then recall them programmatically in my application. I can browse the registry and find where all these settings live, but I don't know how to get the scanner to use them without starting the scan from the Epson Scan
application. Is this even possible? Or is there a way to map the settings to twain settings? I noticed epson lists a CAP_CUSTOMDSDATA capability but this is unfortunately not supported with my scanner.
ANSWER
Answered 2020-Apr-19 at 19:09After discussing with Epson Scan technical support, it seems like this is not possible without custom firmware. The only way to implement some of the settings provided by Epson Scan is by using the application itself.
The workaround for me was to set the appropriate registry values (located at SOFTWARE\Epson\EPSON Scan\ES00FE\Professional
) and then opening epson scan (via _twain.CurrentSource.Enable(SourceEnableMode.ShowUI)
) and clicking the scan button through the application. A bit hacky but it works.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ntwain
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page