TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Reply To: Need help with IMPRINTER

Forums › TWAIN Classic › Need help with IMPRINTER › Reply To: Need help with IMPRINTER

October 15, 2009 at 1:54 pm #25053
jimwatters
Participant
  • Topics - 2
  • Replies - 72
  • Total Posts - 74

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.
**************************************************

Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in