Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, March 30, 2012 8:31:13 AM(UTC)

tobywu  
tobywu

Groups: Registered
Posts: 1


Anyone knows how to make PrinterString to work? The code below did not work.

string endorsement = "print Endorsement String!";

TwainCapability twnCap = new TwainCapability();
twnCap.Information.Type = TwainCapabilityType.PrinterString;
twnCap.Information.ContainerType = TwainContainerType.Array;
twnCap.ArrayCapability.ItemType = TwainItemType.Str255;
twnCap.ArrayCapability.Count = 1;
twnCap.ArrayCapability.SetValue(0, endorsement);
_twainSession.SetCapability(twnCap, TwainSetCapabilityMode.Set);

Please help!
Thanks
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, April 25, 2012 7:30:16 AM(UTC)
vkandasamy

Groups: Registered
Posts: 6


I am using EnumerationCapability.


 
#3 Posted : Thursday, April 26, 2012 4:03:49 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


Hello,

1) You should verify that you can set the capability using Twacker tool. If you try to set the value of this capability using TWACKER then get it back?
Does it work successfully?

2) The following code was tested and it worked. Please try it at your end.
===========================
TwainCapability twnCap = new TwainCapability();
twnCap.Information.Type = TwainCapabilityType.PrinterString;
twnCap.Information.ContainerType = TwainContainerType.OneValue ;
twnCap.OneValueCapability.ItemType = TwainItemType.Str255;
twnCap.OneValueCapability.Value = "My Ls100 is printing Endorsement String!!!";
_session.SetCapability(twnCap, TwainSetCapabilityMode.Set);
===========================

For more information about TWACKER and how to obtain it, please see attachment.
File Attachment(s):
Twacker.txt (1kb) downloaded 35 time(s).
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.071 seconds.