Velvet
March 8th, 2005, 08:02 AM
Hi
I'm trying to use WIA for the scanning of an application i'm working on at the moment, however i don't want the UI it gives you and woud like to be able to define the properties such as the scanning area, res etc in a template kind of way so the user could select a template and then click a button to scan the image.
I found a good article on the Code project about WIA and have played with the code so it scans without the default UI, however i'm having trouble trying to set the properties of the scan.
I did notice in the same article a comment about being able to set the properties using 'GetPropById' however i can't seem to be able to work out how to use this to give that effect.
Has anyone ever used this before or have links to sample code etc.
http://www.codeproject.com/dotnet/wiascriptingdotnet.asp
I'm trying to use WIA for the scanning of an application i'm working on at the moment, however i don't want the UI it gives you and woud like to be able to define the properties such as the scanning area, res etc in a template kind of way so the user could select a template and then click a button to scan the image.
I found a good article on the Code project about WIA and have played with the code so it scans without the default UI, however i'm having trouble trying to set the properties of the scan.
I did notice in the same article a comment about being able to set the properties using 'GetPropById' however i can't seem to be able to work out how to use this to give that effect.
Has anyone ever used this before or have links to sample code etc.
http://www.codeproject.com/dotnet/wiascriptingdotnet.asp