Forum Replies Created
- AuthorPosts
.
@MarkM wrote:
Normally, a call to DG_IMAGE / DAT_IMAGENATIVEXFER /MSG_GET transfers just one side of a sheet of paper.
If the scanner is simplex, then just one call is needed per sheet of paper.
If the scanner is duplex, then two calls are needed per sheet of paper (one for the front and one for the rear).
Version 2.1 of the TWAIN Specification introduced ICAP_IMAGEMERGE, which allows an application to request a single merged image from the front and rear data. If the TWAIN driver supports this feature, then it is possible for the application to transfer both the front and rear images with a single call to DAT_IMAGENATIVEXFER.
HI,MarkM, You said that the TWAIN2.1 supports the ICAP_IMAGEMERGE property, then set this property to APP will be a hybrid image is split into two images saved? DS is also required transmission support TWAIN2.1 before two times to achieve double scan?
你好,MarkM,你说的TWAIN2.1支持ICAP_IMAGEMERGE属性,设置这个属性之后APP会将一张混合图像拆分为两张图像保存吗?DS还需要支持TWAIN2.1之前的传输两次来实现双面扫描吗?Thank you, solve the problem, the original XnView and twain example APP in local mode transmission, and Photoshop is the memory mode transmission, local transmission of DIB is required, will I data into BGR, but memory transmission mode is directly transmitted without data format.
谢谢您们,问题解决了,原来xnview和twain的例子APP是用本地方式传输,而photoshop是用内存方式传输,本地方式传输是传DIB,需将我的数据变为BGR,而内存传输方式是直接传无格式数据。My problem is solved, the original equipment is open closed position right equipment statement, thank you! ~
我的问题解决了,原来是打开设备关闭设备语句放的位置不对,谢谢!~@spike wrote:
Hi pamxy – Well, Google has a few things to learn about your native language!
What is your native language, by the way?Anyway, now I think I understand your question.
Your C# application, can it see any other TWAIN drivers?
First thing to check: Is your C# application compiled with Platform target = x86?
In Visual Studio 2008, find the application project in the Solution Explorer window.
Right-click on that and choose Properties.
Choose the ‘Build’ tab on the left.
Look at ‘Platform target’. It must be ‘x86’.
Otherwise on x64 system, C# generates 64-bit code, which calls 64-bit TWAIN, which only talks to 64-bit drivers. I guess your driver is not 64-bit?Another thing to try: What TWAIN library is loaded by the C# application? You can see the DLL being loaded, it is listed in the Output window.
Is your DS loaded? When the C# application lists the available drivers, or tries to open your DS, you will see all the drivers being loaded, in the Output window.
If it does not list your DS, then it is not being loaded.Does your DS use .NET? What programming language is your DS in?
The C# application can be seen in other DS, and even can control the scanner canon, also can see my DS and Twain program examples of DS platform, C# application program goal is to “Any CPU”, I also test the next x86, debugging breakpoints but also can not enter the Twain program examples DS, my DS is written using C++
那个C#应用程序是可以看到其他DS的,甚至可以控制佳能的扫描仪扫描,也可以看到我的DS和Twain的程序例子的DS,C#应用程序的编译平台的目标是“Any CPU”,我也测试了下x86的,但也是不能进入Twain程序例子的DS的调试断点里,我的DS是使用C++写的@spike wrote:
Hello pamxy!
Many apologies, but we can’t understand your question.Suggestions:
1. Use shorter sentences.
2. Use Google Translate.
Translate from your language to English.
Then translate that back to your language.
Change what you write until it goes into English and comes back with the same meaning.
3. Describe what you are trying to do. For example, are you writing a TWAIN driver?
4. Describe what went wrong: What you tried to do, and what happened.
5. Be precise and specific: Which C# App? Which Twain company?-spike _/_
Hello spike, I use is Google translation, sorry, my English bad ah, I do the data source of DS development, the DS can now be opened in Photoshop or Twack_32, can control the scanner to scan the image, but when I open my DS by using C# to write a APP, it no drive to my equipment, so I want to use VS2008 debugging, Twain official DS examples in debug mode using the C# APP open, but found that the image button in the I clicked, did not enter my set debug points is not running, I DS function, so I want to ask, do with C# APP there is a generation gap and do with C++ DS? Can understand? Spike! ~
@Robby Jackson wrote:
Which OS are you using? If you are using Windows 2008/Vista/7, please try right-clicking Twack and choose “Run as administrator” and see if you get the same problem. If you get the same problem, please try re-installing the driver for your scanner.
And if I put my data source extension from “.Ds” to “.Dll” why app is not recognized?
I guess you’ve already named the extension back to .ds as suggested by Kaij. Please double check.
Found the problem, and should not be put in some DLL DS with Microsoft.VC90.CRT.manifest or Qt put together, is in the twain folder before a file, will now DS with a number of DLL and Microsoft.VC90.CRT.manifest and app together on the C drive Twain folder, can find my DS, but the antivirus software will actually false positive virus —— ——,To make a long story short, thank you! ~
@Robby Jackson wrote:
Which OS are you using? If you are using Windows 2008/Vista/7, please try right-clicking Twack and choose “Run as administrator” and see if you get the same problem. If you get the same problem, please try re-installing the driver for your scanner.
And if I put my data source extension from “.Ds” to “.Dll” why app is not recognized?
I guess you’ve already named the extension back to .ds as suggested by Kaij. Please double check.
I use Windows XP and I did not change the extension “.Dll”, at first I thought would need to “.Ds”, instead of “.Dll” that good, I just know do not change, so I did not change the extension!~ —— ——
@Robby Jackson wrote:
It would be helpful if you could provide more information about “cannot find the data source”.
1. After you install the scanner driver, have you tried to use Twack? And is Twack able to find the driver?
2. If the answer for Question 1 is No, please first check whether the driver is fully TWAIN compatible (you can check out the documentation or ask the vendor to get the details). If it is TWAIN compatible, please also check whether you have the permission to access the source. You can try to run the app as administrator to verify that.
3. If the answer for Question 1 is positive, you need to check out your app and it’s TWAIN compatibility.
1, is a useful Twack, Twack could not find the driver; 2 the driver should be compatible with Twain, because I am on my machine and in other visual studio2008 machine is capable of running DS, is not in the absence of the environment of the machine; the permissions are administrator privileges — —
I found there is a problem, I will DS to move to the new machine environment, scanner driver is installed, but can’t find my DS. Help!~Help!~Help!~
The first problem seems to be solved, probably because of QWidget than QApplication the earliest, but second problems for solution.
- AuthorPosts