Quantcast
Channel: Saraff.Twain.NET
Viewing all 419 articles
Browse latest View live

New Post: Access violation opening data source

$
0
0
Hello,
I've already applied this attribute, but nothing changed. In particular I'm curious about Unserviced Message 113 message.
Thank you.

New Post: Access violation opening data source

$
0
0
Hello, mbukovitz.
Try acquire image with Saraff.Twain.Sample2 application.

New Post: Access violation opening data source

$
0
0
Hello Saraff,
I tried, but it crashes.
Il giorno 31/ago/2016, alle ore 21:22, SARAFF <[email removed]> ha scritto:

From: SARAFF

Hello, mbukovitz.
Try acquire image with Saraff.Twain.Sample2 application.

Read thefull discussion online.

To add a post to this discussion, reply to this email ([email removed])

To start a new discussion for this project, email[email removed]

You are receiving this email because you subscribed to this discussion on CodePlex. You canunsubscribeon CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online atCodePlex.com


New Post: Access violation opening data source

$
0
0
Hello, mbukovitz.
Which a programs work well?

Reviewed: Saraff.Twain.NET 1.0.21.533 Release (Sep 03, 2016)

$
0
0
Rated 5 Stars (out of 5) - My program, written with an older release of SARAFF.TWAIN works perfect also with the new release. Saraff ZTwain is excellent, and so is the support.

Reviewed: Saraff.Twain.NET 1.0.21.533 Release (Sep 03, 2016)

$
0
0
Rated 5 Stars (out of 5) - My program, written with an older release of SARAFF.TWAIN works perfect also with the new release. Saraff Twain is excellent, and so is the support.

New Post: GetImage problem

$
0
0
Hello Saraff!

I use your twain dll in my .net scan project. I tested it on hp, canon scanners, but when I work with opticbook 3600 scanner, i can't get scanned images with twain32.GetImage() (the list is empty), but all other functions (set brightness, contrast, colormode) work well.
what could be the problem?

Source code checked in, #cb979f924570c501cfbed0efd10e17ed39b0a3f0

$
0
0
Ревизия: 544 Автор: SARAFF Дата: 8 сентября 2016 г. 13:23:09 Сообщение: Исправлен код метода обратного вызова, выполняющего обработку сообщений от источника данных. Fixed Application Callback Function. ---- Изменённые : /C#/Saraff.Twain/Saraff.Twain/Twain32.cs Изменённые : /C#/Saraff.Twain/Saraff.Twain/TwainDefs.cs Ревизия: 540 Автор: SARAFF Дата: 29 июля 2016 г. 21:46:15 Сообщение: Исправлены xml-коментарии. ---- Изменённые : /C#/Saraff.Twain/Saraff.Twain/Twain32.cs

New Post: GetImage problem

$
0
0
Hello, stefi83.
Try use a Twain32.EndXfer event instead a Twain32.GetImage() method.

New Post: SVCHOST32 STOP WORKING AFTER SUCCEED SCAN

$
0
0
Hello,

I developed an app that scan documents.. but every time that i try to do a scan .. after the process of scanning it shows a message like this: [https://www.dropbox.com/s/7zl0arefknzr8j4/svhosterror.JPG?dl=0] (ERROR MESSAGE)

Here is my code:

[https://www.dropbox.com/s/96lapuo9abtz2j3/main.JPG?dl=0] (MAIN)
[https://www.dropbox.com/s/lp35as4zj747ruc/class_scanner.JPG?dl=0] (Scanner Class)
[https://www.dropbox.com/s/02q026defobo1sp/initscan_method.JPG?dl=0] (initScan Method)

There are something that i can do to solve this ? One time that your examples work's perfectly ?

Thank you for your patience and cooperation,

New Post: Problems using TWAINDSM.dll

$
0
0
Hello everyone! I have a problem with the Twaindsm.dll (Twain2).

First of all: sorry for the very long post :(

I have a x64 windows 10 machine, visual studio 2015 professional.

I am using Sample2.

I need Twain2 enabled to access ExtImageInfos.

TWAINDSM.dll files are both present on %windows%\system32 and \syswow64 dirs and are the correct versions (x86, x64).

_Platform.Load() returns a IntPtr.Zero :(

Can't use x64 code (for various reasons), so recompiled the library in x86 mode (AnyCPU may fail?).

_Platform.Load() returns a IntPtr.Zero :(

Have forced c:\windows\system32\twaindsm.dll to be sure (on OpenDSM).

_Platform.Load() returns a IntPtr.Zero :(

If I point to a copy of the twaindsm.dll (and TWAINDSM32.msm on the same dir) files copied elsewhere (also tried with a fresh new downloaded from the sourceforge page) the _Platform.Load() works.

Selected the DS from the dropdown menu, clicked the scan button but nothing happens.

Enabled driver UI, click scan on the Sample2 UI, click scan on the driver UI, opens scan progress but keep going forever.

Enabled TWAINDSM logging, got this:

[150804741 dsm.cpp 2368 0 000022B8] PaperStream IP fi-6130ZLAdj -> Saraff.Twain
[150804741 dsm.cpp 2377 0 000022B8] DG_CONTROL/DAT_NULL/MSG_XFERREADY
[150804741 dsm.cpp 2368 0 000022B8] DSM -> Saraff.Twain
[150804741 dsm.cpp 2377 0 000022B8] DG_CONTROL/DAT_NULL/MSG_XFERREADY
[150804741 dsm.cpp 2432 0 000022B8] TWRC_FAILURE
[150804741 dsm.cpp 2432 0 000022B8] TWRC_FAILURE

Tried setting _twain32.Twain2Enabled to false, everyting works (but not the ExtImageInfos I need, of course).

Debugged _twain32.Acquire():

Pass this.OpenDSM(), pass this.OpenDataSource(), pass this._EnableDataSource() but on the OS switch, it do nothing.

IsTwain2Supported is true.

_srcds is:
{PaperStream IP fi-6130ZLAdj}, Version = {1.30.110.5431 Mar 18 2016}
Id: 3
Manufacturer: "FUJITSU"
ProductFamily: "PaperStream IP"
ProductName: "PaperStream IP fi-6130ZLAdj"
ProtocolMajor: 2
ProtocolMinor: 2
SupportedGroups: Control | Image | DS2
Version: {1.30.110.5431 Mar 18 2016}
Application.MessageLoop is true.

The Twain 32bit sample app works good (of course only if I copy on the same directory twaindsm.dll and TWAINDSM32.msm files).

Any hint?

New Post: Problems using TWAINDSM.dll

New Post: SVCHOST32 STOP WORKING AFTER SUCCEED SCAN

$
0
0
Hello, pogs17.
I do not understand the question about the examples.
Looking at your code, I can say that the application will not work. See Saraff.Twain.Sample2.

New Post: GetImage problem

$
0
0
Hello Saraff! I tried your tip with opticbook, it doesn't work. The EndXfer event doesn't run. When I used older version, the getimage() worked, but the scanned picture was wrong. The picture is cut off in the middle, and replaced the right and left side,

And I have a new problem. There is a Ricoh papercopier machine in my workplace. If I use it. the new function of set colormode (_twain32.Capabilities.PixelType.Set(TwPixelType.BW);) throws an exception, If I use other devices, there is no such error

New Post: Problems using TWAINDSM.dll

$
0
0
Hello and thanks for the quick reply :)

I've download the latest source from GIT.

Right after _Platform.LoadLibrary(fileName) (fileName=C:\Windows\system32\TWAINDSM.dll) i got 1008 (0x000003F0) from Marshal.GetLastWin32Error() and -2147023888 from Marshal.GetHRForLastWin32Error().

1008 is ERROR_NO_TOKEN, don't know what this mean :|

Added SetLastError =true to the LoadLibrary dllimport, error is the same.

Thanks,
S.

New Post: Problems using TWAINDSM.dll

$
0
0
Hello, sebamix.
In this case, I can help only follow link:
http://stackoverflow.com/questions/16565429/c-sharp-loadlibrary-error-no-token/16566182#16566182

New Post: GetImage problem

$
0
0
Hello, stefi83.
Try download latest source code.
Check value of a XferMech capability.

Probably, your scanner does not support the type of pixels BW. Try invoke a _twain32.Capabilities.PixelType.Get() to get supported values.

New Post: Modal Mode

$
0
0
hello saraff

I want to popup scan preview-form by modal mode.
please tell me how to do it.

test os: windows 10

New Post: Modal Mode

$
0
0
Hello, basechina..
See Saraff.Twain.Sample1.

Reviewed: Saraff.Twain.NET Web Samples (сен 27, 2016)

$
0
0
Rated 5 Stars (out of 5) - 1234567890
Viewing all 419 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>