I'm evaluating the 1d Barcode reader plug in. on most workstations it works great, however on one workstation i'm getting an error stating
"OLE IDispatch exception code 0 from GdPicturePro5: Overflow..."
I'm using the latest GDPicture Pro ActiveX control v18.104.22.168
The code i'm running is very simple to just test out the functionality:
Code: Select all
oimg = CREATEOBJECT("gdPicturePro5.imaging") oimg.SetLicenseNumber("NNNN") oimg.SetLicenseNumber1DBarcodeRecognition("NNNN") oVwr = CREATEOBJECT("gdPicturePro5.GdViewer") oVwr.SetLicenseNumber("NNNN") oVwr.PdfDPIRendering = 250 oVwr.LockControl = .T. oVwr.PDFEnablePageCash = .F. lcImageFile = "C:\temp\test.pdf" oVwr.DisplayFromPdfFile(lcImageFile) oVwr.DisplayFrame(i) lnImageId = oVwr.GetNativeImage lnImageId2 = oImg.CreateClonedImageArea(m.lnImageId, 30, 30, 800, 1000) oImg.SetNativeImage(lnImageId2) oImg.Barcode1DReaderDoScan(0) oImg.Barcode1DReaderGetBarcodeCount()
This particular workstation has been running my application which uses the gdpicture control for over a year without a problem. I've tried multiple pdf files and get the same result every time. the same pdf files work on every other workstation.
I know this is a tough one and i'm not giving you a lot to go on, but any help you can provide would be greatly appreciated as i'd really like to start using the barcode reader.