DisplayBarcode replaces certain characters

Johnny 0 Reputation points
2024-01-05T13:20:54.3466667+00:00

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

[Image

--

The QR code generated by Word

[Image

--

The result of the scan

[Image

--

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
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.