
DisplayBarcode replaces certain characters
Original post : https://answers.microsoft.com/en-us/msoffice/forum/all/displaybarcode-replaces-certain-characters/8dff5f7f-53f8-4a1a-bc20-3d28813a00f4
--
Hi everyone !
I need your help because I don't understand where my issue is coming from. I created this mergefield with dynamics data, but the problem is the same with raw data (at the bottom of the page) and only for some records : the QRR line in interpreted like QRB. If I try to write "AAAAAA" instead of "QRR", it'll transform into "AAQAAA", or "AAAQAA", depending on the length of the full text.
There are 600 invoices to generate and luckily I came across this one while testing the code. For 95% of the documents it's OK, but for some reason, with certain text lengths, Word replaces certain characters, which poses a big problem.
I hope you can help me and wish you a happy new year 2024 :)
To test the code, you need to break the lines with Shift+Enter.
The data has been anonymized.
Johnny
--
The mergefield in Word
[
--
The QR code generated by Word
[
--
The result of the scan
[
--
Raw text if you want to test it
Please visit the original post, this one can't handle multiple blank lines :
https://answers.microsoft.com/en-us/msoffice/forum/all/displaybarcode-replaces-certain-characters/8dff5f7f-53f8-4a1a-bc20-3d28813a00f4
Microsoft 365 and Office | Word | For business | Windows
