Hi All I'm try to get the ImageEnMView1.MIO.TWainParams.XResolution.CurrentValue and/or ImageEnMView1.MIO.TWainParams.StandardSize.CurrentValue during the OnAcquireBitmap event.
I tried using ImageEnMView1.MIO.TwainParams.GetFromScanner and ImageEnMView1.MIO.TwainParams.Update but the values I get are the defaults I set before the users sees twain interface dialog. I need to get the users adjusted twain interface dialog values.
Its seems that only after the twain interface dialog is closed am I able to get the uses selected values. Please advise.
That I understand. I tried using ImageEnMView1.MIO.TwainParams.GetFromScanner and ImageEnMView1.MIO.TwainParams.Update during the OnAcquireBitmap but it has no effected. Is there a working around?
We need to know the DPI and or the page size to calculate the DPI from the scanned bitmap.
Have you confirmed whether your Twain device ever sets these properties? I.e. is ImageEn failing to fill the values when you expect (OnAcquireBitmap event), or are the values never filled?
Yes, I can set these all the twain properties before the twain dialog is shown but if the user adjust these values like resolution ImageEnMView1.MIO.TwainParams.GetFromScanner and ImageEnMView1.MIO.TwainParams.Update do not update ImageEnMView1.MIO.TWainParams.XResolution.CurrentValue properties during the OnAcquireBitmap event.
Yes, but it sounds like your Twain device/driver does not update these values. ImageEn is only returning the values that have been set by the Twain driver. If it does not set them, then you will only see the default (what you have set).