GdPicture14 Status FileNotFound in line TwainAcquireToFile
Posted: Fri Feb 22, 2019 2:55 am
Good After.
Please your support.
I have an application development in C#.net and I has use GdPicture14 for digitalize with a scanner Fujitsu fi-60F.
My application had connect the scanner and open the source correctly but in the moment of digitalize a sheet in this line "_oGdPictureImaging.TwainAcquireToFile(@"C:\TEMP\IMAGEN_" + _indicePagina + ".jpg",parHandle);" the object of the class GdPictureStatus return a type code 10 - FileNotFound and not generate the image acquired of the scanner.
This Status is not always, sometimes return status OK. I review the phisycal memory and Hard Disk but the level of consumer is normal.
Please of your support for this case or any idea for resolve this problem.
Add a fragment of code.
_oGdPictureImaging.TwainSetAutoFeed(true);
_oGdPictureImaging.TwainSetAutoScan(true);
_oGdPictureImaging.TwainSetResolution(300);
_oGdPictureImaging.TwainEnableDuplex(false);
_oGdPictureImaging.TwainSetHideUI(true);
_oGdPictureImaging.TwainSetPaperSize(TwainPaperSize.NONE);
_oGdPictureImaging.TwainSetAutomaticRotation(true);
_oGdPictureImaging.TwainSetIndicators(false);
_oGdPictureImaging.TwainSetAutomaticBorderDetection(true);
_oGdPictureImaging.TwainSetAutomaticDiscardBlankPages(true);
_oGdPictureImaging.TwainSetCompression(TwainCompression.TWCP_GROUP4);
_oGdPictureImaging.TwainSetPixelType(TwainPixelType.TWPT_RGB);
GdPictureStatus objStatus = _oGdPictureImaging.TwainAcquireToFile(@"C:\TEMP\IMAGEN_" + _indicePagina + ".jpg",parHandle);
if (GdPictureStatus.OK == objStatus)
{
MessageBox.Show("Image true");
}
else
{
MessageBox.Show("Image false");
}
Please of your support.
Thanks
Please your support.
I have an application development in C#.net and I has use GdPicture14 for digitalize with a scanner Fujitsu fi-60F.
My application had connect the scanner and open the source correctly but in the moment of digitalize a sheet in this line "_oGdPictureImaging.TwainAcquireToFile(@"C:\TEMP\IMAGEN_" + _indicePagina + ".jpg",parHandle);" the object of the class GdPictureStatus return a type code 10 - FileNotFound and not generate the image acquired of the scanner.
This Status is not always, sometimes return status OK. I review the phisycal memory and Hard Disk but the level of consumer is normal.
Please of your support for this case or any idea for resolve this problem.
Add a fragment of code.
_oGdPictureImaging.TwainSetAutoFeed(true);
_oGdPictureImaging.TwainSetAutoScan(true);
_oGdPictureImaging.TwainSetResolution(300);
_oGdPictureImaging.TwainEnableDuplex(false);
_oGdPictureImaging.TwainSetHideUI(true);
_oGdPictureImaging.TwainSetPaperSize(TwainPaperSize.NONE);
_oGdPictureImaging.TwainSetAutomaticRotation(true);
_oGdPictureImaging.TwainSetIndicators(false);
_oGdPictureImaging.TwainSetAutomaticBorderDetection(true);
_oGdPictureImaging.TwainSetAutomaticDiscardBlankPages(true);
_oGdPictureImaging.TwainSetCompression(TwainCompression.TWCP_GROUP4);
_oGdPictureImaging.TwainSetPixelType(TwainPixelType.TWPT_RGB);
GdPictureStatus objStatus = _oGdPictureImaging.TwainAcquireToFile(@"C:\TEMP\IMAGEN_" + _indicePagina + ".jpg",parHandle);
if (GdPictureStatus.OK == objStatus)
{
MessageBox.Show("Image true");
}
else
{
MessageBox.Show("Image false");
}
Please of your support.
Thanks