This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, March 30, 2012 8:31:13 AM(UTC)
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
#2
Posted
:
Wednesday, April 25, 2012 7:30:16 AM(UTC)
Groups: Registered
Posts: 6
I am using EnumerationCapability.
#3
Posted
:
Thursday, April 26, 2012 4:03:49 AM(UTC)
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.
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.