Forum > Windows CE
Problem with manage scan params in SymScan
(1/1)
mmelwin:
I am trying to use symscanapi.pp this way, but unfortunately no effect :( As if it did not react at all.
I am asking for any hint.
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---var handle1:THandle; decoderparams:DECODER_PARAMS; decoderList:DECODER_LIST; res:integer;begin // this returns the correct resultSCAN_Open('SCN1:',@handle1);SCAN_Enable(handle1); // this returns the ERROR resultres:=SCAN_GetDecoderParams(handle1,DECODER_I2OF5,@DecoderParams);ShowMessage(inttostr(res));decoderparams.dwMinLength:=1;decoderparams.dwMaxLength:=40;res:=SCAN_SetDecoderParams(handle1,DECODER_I2OF5,@DecoderParams);ShowMessage(inttostr(res)); // this returns the correct result but but does not change the settingsSCAN_GetEnabledDecoders(handle1,@decoderList);decoderList.Decoders.dwDecoderCount:=1;decoderList.Decoders.byList[0]:=57;SCAN_SetEnabledDecoders(handle1,@decoderList); // this returns the correct resultSCAN_Disable(handle1);SCAN_Close(handle1); end;
arnoldb:
Hi.
It's been many years since I contributed this library, and for more than 10 of those years I've not even worked with / had access to Symbol scanners, so my memory is a bit rusty ;)
You didn't mention the model of your scanner you're trying to use...
IIRC - the barcode symbologies the scanners can use depend on the models, and sometimes have to be explicitly enabled on the devices through their configurations.
From what I can remember, the Interleaved 2 of 5 (I2OF5) symbology was not enabled by default on the MC9000 (and possible MC5000) range of scanners - it had to be enabled via the device configurations. This might be the reason you're getting the error, so check to see if your scanner supports I2OF5 and whether it's enabled.
Try and test a Code 39 barcode and see if that works - CODE39 is commonly used on device serial numbers and model numbers and so on, so is a quick way to test.
Unfortunately that's as far as I can help you now.
Kind regards, Arnold
Navigation
[0] Message Index