Home › Forums › TWAIN Classic › Need help with IMPRINTER › Reply To: Need help with IMPRINTER
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.
**************************************************