Home › Forums › TWAIN Classic › Need help with IMPRINTER › Reply To: Need help with IMPRINTER
@jimwatters wrote:
I am not familiar with the Marshal method you are using to allocate and fill the capability. But it looks to me that you are not allocating enough memory.
There is an example in the spec in section 2-19 for STR32 that should be easy to change to STR255.
Marshal.WriteInt32(pv, 2, Convert.ToInt32(value));
If Value is a STR255 then you probably want to use a method similar to
Marshal.WriteString(pv, 255, value);You might also want to do a MSG_GET on CAP_PRINTERSTRING and see what is supported. There might be some predefined strings in the enumeration.
Regards,
Jim Watters**************************************************
JFL Peripheral Solutions Inc.
http://www.jflinc.com/
Your Expert Source of Custom Software and Services
for TWAIN Applications, Data Sources,
Peripheral Drivers and Support Software.
**************************************************
The marshal method just writes the handle into memory. My issue is I just need to see how someone (who has set an imprinter through code) did theirs.
Parts of this twain spec are greek to me. Some others are easy to understand. This is the greek part.