Forums › TWAIN Classic › Set X / YResolution returned TWRC_CHECKSTATUS! Fujitsu C# › Reply To: Set X / YResolution returned TWRC_CHECKSTATUS! Fujitsu C#
- Topics - 9
- Replies - 583
- Total Posts - 592
so it sounds like your scanner will take the value,
good (thank you twacker)
if you’re unable to send a fix32 to your twCap it sounds like you need to work over your twain library a bit, which brings up a question – how are you talking to twain from c#? are you using a library you write or the library you found on codeproject by netMaster?
to get the values for the cap you send get instead of set in the op and then read the values it puts in the container that you sent in (mostly)
a condition code is like a return code except is describes (in most cases) why you recieved the preious return code – I typically only check the cc when the previous call produced an rc != success. read through the twain spec for more on that… hell read through the twain spec regardless. then read though it again.
do I have code for setting the xresolution… yes and no. I don’t take the setting caps one-by-one approach (I believe it is a flawed design for working with twain), but I can probably find some code to approximate what you’re doing. first, lets talk about your library and then how you defined you twCap class. I have something of an example for the twCap class if you’re using the 2.0 framework and either read vb.net or have a decent converter (sharpdevelop 2.1 comes to mind if you want to convert it to c#) the code is over at http://www.codeplex.com/opentwain. you won’t find xresolution setting in the class but you can compare the twCap class.