We have purchased license for GdTwain Pro SDk,
but i have not found the way for implement the object activex with gdtwain Pro, do you have an example about this?
i found an example with gdpicture but my license number does not work
thanks
i'm trying with code in javascript like this
Code: Select all
function TwainScan(calidad, color, dpi , redcalidad, duplex, ho, cu, pu, pt, key) {
imagesCounter = 1;
var nImageId = 0;
var rt = “imgs/”;
MyImaging.SetLicenseNumber("XXXXXXXXXXXXXXXXXXXXXXXX");
MyImaging.TwainSelectSource();
MyImaging.TwainOpenDefaultSource();
MyImaging.TwainSetCurrentPixelType(color);
MyImaging.TwainSetHideUI(true);
MyImaging.TwainSetCurrentCompression(redcalidad);
MyImaging.TwainSetCurrentResolution(dpi);
MyImaging.TwainSetAutoFeed(true);
MyImaging.TwainEnableDuplex(false);
do {
var archivo = rt + "_" + imagesCounter;
nImageId = MyImaging.CreateImageFromTwain();
MyImaging.SaveAsJPEG("c:\\file.jpg");
MyImaging.UploadFileToFTP("c:\\file.jpg", ho, archivo + ".jpg", cu, pu, pt);
imagesCounter++;
} while (MyImaging.CreateImageFromTwain(0) != 0)
MyImaging.TwainCloseSource();
}
Code: Select all
<object id="MyImaging" type="application/x-oleobject" classid="CLSID:1E9EFC03-BF47-4479-8374-7F5D610FF60D" codebase="../bin/gdTwain2.cab#Version=2,7,6,0">
<param name="LicenseKey" value="XXXXXXXXXXXXXXXXXXXXXXXXX">
</object>