Home › Forums › TWAIN Classic › Twain Set Settings on CanoScan8800F (ScanGear)
- This topic has 1 reply, 2 voices, and was last updated 9 years, 11 months ago by spike.
- AuthorPosts
Hi, i need some help here. how can i set Output Size to “A4” when i used acquiry() call and how can i clear the previous preview page when i call acquire().
Using Framework 2.0
i’m using CanoScan 8800F Flatbed scanner
twain call the “ScanGear” source to let me do all the scanning.I want the Output Size select “A4” once i call acquiry() and i can move the crop properly.
Similar as “this._twain.SetPixelType(TwPixelType.Gray);” after i call acquiry() its auto selected “Document(Grayscale)”i thinking of select Output Size is “this._twain.SetUnitOfMeasure(TwUnits.Pixels);” but i dunno how to select the specify option i want.
Hi piaking – “Using Framework 2.0” is not very clear, we don’t all work in .NET.
If you mean .NET Framework 2.0, then, OK – but I’m sure you are using something else for your TWAIN calls, because there is no TWAIN support in .NET Framework, in any version.
So what is that _twain object?To select A4, you probably want to set the paper size.
I see you have tried using this, inside a bunch of other code:
this._twain.SetCap(TwCap.SupportedSizes, (ushort)TwSS.A4);
That is the correct approach. Get rid of all the code around it, the IsCapSupported(TwCap.SupportedSizes); and so on.
I’m sure your CanoScan supports ICAP_SUPPORTEDSIZES, you don’t need to check that.
And you don’t need to check to see if A4 is supported, or whether it can be set – A4 is supported, and it can be set.
Just set it and see what the error return code is.About clearing the preview image: There is no way to do this with standard TWAIN. TWAIN does not define any such command or operation. Why do you want to do that?
- AuthorPosts