Skip to main content

Notifications

Dynamics 365 general forum

How to include QR code and barcodes in Word template?

Posted on by 5

I created a simple Word template in CRM, exported and edited in Word, then reimported to CRM to generate a simple "report on demand" from a record of the appropriate type. Once I defined the currency (US$) on all related records (one tricky detail), the Word template export/download function works fine.

I can "merge" the values of interest from the individual data record as text on the Word template using XML mapping, no problem. But when I try to generate a QR code or barcode using those same XML fields (pasted as plain text)  and DISPLAYBARCODE or MERGEBARCODE, it only codes the CRM data field name, not the "merge" value from the individual data record.

Here is the "simulated" code (curly brackets are fake here, duh):

natef_schoolname

{DISPLAYBARCODE natef_schoolname QR \q 3 \s 200}

{DISPLAYBARCODE address1_stateorprovince CODE128 \s 150 \t}

address1_stateorprovince

And here is what I get in the output. I wanted the QR code to decode to "A.K. Smith Area Career Center", but it decodes to "natef_schoolname" instead. Same problem with the barcode below that - I wanted "IN", but I got "address1_stateorprovince". I tried messing with the syntax five ways from Sunday. No soap.

barcodeoutput.jpg

  Can this be made to work with native tools in CRM (no add-ons; I'm not the developer)? HELP!

  • Suggested answer
    mmohran Profile Picture
    mmohran on at
    RE: How to include QR code and barcodes in Word template?

    Try this stackoverflow.com/.../how-to-generate-a-barcode-from-a-field-in-word-template

  • Suggested answer
    mmohran Profile Picture
    mmohran on at
    RE: How to include QR code and barcodes in Word template?

    But you can use this way:

    docs.microsoft.com/.../er-barcode-data-sources

  • Suggested answer
    mmohran Profile Picture
    mmohran on at
    RE: How to include QR code and barcodes in Word template?

    It is product limitation. As it is clearly mentioned not to make any changes to the content control other than making it bold or so.

    docs.microsoft.com/.../using-word-templates-dynamics-365

    pastedimage1619565248963v1.png

  • Yigal Profile Picture
    Yigal 5 on at
    RE: How to include QR code and barcodes in Word template?

    Hi!

    We are facing the same problem.

    Have you managed to find a solution?

    Thanks

    Yigal.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans