Hello everyone,
hopefully someone can help me with my problem.
First the starting point:
I use JasperSoft iReport and JasperSoft Studio to create a jrxml file that uses the DataMatrix from barcode4j.jar. We then create a PDF file from the jrxml file and the corresponding XML file.
As an attachment I add the jrxml file with the corresponding XML file, as well as the generated PDF file.
Problem:
The data string I want to generate with the DataMatrix looks like this:
"#1N3199599A ##325854990#061222X1L HRS0026882J="
The DataMatrix is generated without errors.
Unfortunately, like my customer, I received the wrong data string when scanning the DataMatrix:
"#1N3199599A ##325854990#061222X1L HRS0H5PTYM2WP026882J="
What I found out already is that it is due to the combination with the characters "#", "=" and " " (spaces). I wanted to replace the spaces with an underscore because with this combination the data string is correct when scanning the DataMatrix.
Unfortunately, the data string must contain these characters.
I urgently need a solution to the problem and would be extremely grateful for a quick help.
Here is the example in which I replaced the spaces with an underscore.