Page 1 of 1

Barcode PDF417 error

Posted: Tue Dec 10, 2019 10:29 am
by burhan.farooq
Hi,

Recently I have trouble generating barcode pdf417 using the barcodewriter.settings.ValueItems property the output bitmap gives error:

Unexpected symbol '' (0x001E).

The string I am passing has data: "[)>01029922384001C00000110001598EMSYAC2011/12LBNABCMIAMIFLABC ABC063Z0111ZABC ABC12Z404509699514ZABC15Z3006021Z022Z023Z1234567824Z09K7890"

OR
"[)>\u001e01\u001e0299223\u001d840\u001d01\u001dC00000110001598\u001dEMSY\u001dAC\u001d201\u001d\u001d1/1\u001d2LB\u001dN\u001dABC\u001dMIAMI\u001dFL\u001dABC ABC\u001d\u001d06\u001d3Z01\u001d11ZABC ABC12Z4045096995\u001d14ZABC\u001d15Z30060\u001d21Z0\u001d22Z0\u001d23Z1234567824Z09K7890\u001d\u001e\u0004"

As I know the above barcodewriter.settings.ValueItems property takes array of Numeric, Text, Binary which is failing.
But the other property [barcodeWriter.Settings.Value] working fine.

could you help in the issue as I am new to using this api set.

Thanks

Re: Barcode PDF417 error

Posted: Tue Dec 10, 2019 10:40 am
by Alex
Hi Burhan,

First, please try to generate barcode using our Barcode Demo.
For doing this, please do the following test:
  • Run our Barcode Demo, which you can find in distributive package of SDK
  • Select "Writer" tab
  • In barcode settings panel
    • Select "PDF417" barcode
    • Enter text "[)>01029922384001C00000110001598EMSYAC2011/12LBNABCMIAMIFLABC ABC063Z0111ZABCABC12Z404509699514ZABC15Z3006021Z022Z023Z1234567824Z09K7890" as barcode value
    • See generated barcode image and let me know result
Best regards, Alexander

Re: Barcode PDF417 error

Posted: Wed Dec 11, 2019 11:59 am
by burhan.farooq
Hi Alex,

Thanks for the quick reply, I followed the steps you mentioned in your reply the demo app barcode for PDF417 worked fine there.

Just to clear few things there are 2 api sets available in the lib for to set barcode data either through BarcodeWriter.Settings.ValueItems
OR
BarcodeWriter.Settings.Value.

which one should be used for barcode PDF417 as both are working in POC I created from sample code from SDK.
and in the demo app the EciCharacterEncoder & EciCharacterEncoding are used which one is default for PDF417 barcode.

just need some clarification on above properties as demo app has lots of options that make me wonder which one is default.

Regards
Burhan

Re: Barcode PDF417 error

Posted: Wed Dec 11, 2019 2:07 pm
by Alex
Hi Burhan,
Just to clear few things there are 2 api sets available in the lib for to set barcode data either through BarcodeWriter.Settings.ValueItems
OR
BarcodeWriter.Settings.Value.

which one should be used for barcode PDF417 as both are working in POC I created from sample code from SDK.
and in the demo app the EciCharacterEncoder & EciCharacterEncoding are used which one is default for PDF417 barcode.

just need some clarification on above properties as demo app has lots of options that make me wonder which one is default.
The WriterSettings.Value property allows to set the barcode value:
https://www.vintasoft.com/docs/vsbarcod ... Value.html
Property uses optimization algorithm for 2D barcodes to reduce matrix size.

If you want to disable optimization and you know correct value items in barcode value, use the WriterSettings.ValueItems property:
https://www.vintasoft.com/docs/vsbarcod ... Items.html
The WriterSettings.Value property is igonored if WriterSettings.ValueItems property is used.

Please see example for WriterSettings.ValueItems property here:
https://www.vintasoft.com/docs/vsbarcod ... mBase.html

Best regards, Alexander