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 4:11 pm #25054
ScannerProgrammer
Participant
  • Topics - 7
  • Replies - 9
  • Total Posts - 16

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

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

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • 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