Loading...

Paper size issue with scanner application

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Paper size issue with scanner application

Postby VBCoder68 » Fri Apr 30, 2010 5:00 pm

I'm using the GD Picture Pro 5 product to create an app to let the user scan images into a database. I'm very new to the product. Can someone tell me how to display the scanner properties to the user? I'm having an issue where the scanner is using the wrong paper size by default and I want the user to be able to select it before he runs the scan.

Thanks in advance.
VBCoder68
 
Posts: 1
Joined: Fri Apr 30, 2010 4:53 pm

Re: Paper size issue with scanner application

Postby Loïc » Mon May 03, 2010 2:21 pm

Hi,

To get information about available features of a TWAIN device you can use method TwainIs[FEATURE]Available.

IE for automatic plank page discard:

Code: Select all
Dim bAvailable as Boolean = Object.TwainIsAutomaticDeskewAvailable()


For your paper size issue, you should have a look on following methods:

TwainGetAvailablePaperSizeCount -> Returns the number of supported page size of the TWAIN device
TwainGetAvailablePaperSizeNo -> Returns a supported page size
TwainSetPaperSize -> Select a std page size. (should be a value returned by the TwainGetAvailablePaperSizeNo method).

Hope this helps !

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest

cron