The printer HP 1522 cannot set bounds of area of scanning. The document turns out in the size 8,5 on 14 inches.
In error string it is written that property PageSize is not supported and not worked.
The codes of additional possibilities supported by the scanner (found programming):
VSTwain.PageSize property can be used only if the ICAP_SUPPORTEDSIZES capability (0x1122 = 4386) is supported by the scanner.
This capability is not supported by your scanner as you can see in the list. I think you are using WIA driver, not TWAIN driver - try to use TWAIN driver. Also you can try to use the VSTwain.SetImageLayout method instead of the VSTwain.PageSize property.
Hello, Alex!
Thank you for answer. But I use TWAIN driver (not WIA). Really. And method SetImageLayout worked uncorrect. If I set values 0, 0, 8.3, 11.7 (standart A4) - it not work. If I some cutting edges, example, 0.1, 0.1, 8.2, 11.6 - it's workly. But I need full page, with borders.
Any ideas? Alex, you can try scan over scanner and check this bug?
Hallo! I'am sorry for involuntary silence. Can we proceed on the topic?
I generated 2 logs - first from ADF (in which margins is incorrect) and second one is from flatbed.
When I use "SetImageLayout", scanned image have incorrect margins too.
I have posted logs and images on http://ul.to/b1vhmb , because it seems you didn't get my email.
Best regards, Evgeniy Berezhnoy.
I think scanner has "bad" driver. Please download Twacker (http://www.twain.org/docs/Twack_32.msi), acquire images from your scanner using this application and let me know results.