Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/FAQ/General questions

How to show M-Files properties as QR codes in a Word document

Last updated on 29 December 2020

Admin
Microsoft Office Add-ins

Overview

MS Word since version 2013 has been able to show fields as QR or barcodes in .docx documents. This means that M-Files properties in a Word document can also be changed to be displayed as such as well.

Solution


Here is how to display the values of M-Files properties on a Word document as barcodes or QR codes:

1.    Insert a new field to your document (from Word's menu ribbon, select Insert > Quick Parts > Field > OK) .
 
2.    Press Alt + F9 to see the field code.

3.    Change the field code from { = \* MERGEFORMAT } to { DISPLAYBARCODE "" }.

4.    Place the cursor between the quotation marks and insert an M-Files property inside the field formula (from Word's menu ribbon, select M-Files > Insert Property). The field code will look something like this (Note that if the field is too long, the end part might be cut off. Reduce the font size in this case.)
{ DISPLAYBARCODE "{ DOCPROPERTY "MFiles_PGD317A…" \* MERGEFORMAT }" }

5.    Place the cursor between the last quotation mark and the curly bracket at the end, and specify the type of barcode or QR code you want the property to be converted to. For example, QR or CODE39. The field code will look something like this:
{ DISPLAYBARCODE "{ DOCPROPERTY "MFiles_PGD317A…" \* MERGEFORMAT }" QR }

6.    Press Alt + F9 to see the output of the field code. It should look something like this:
 
For a complete list of available barcode types and options, please refer to 
https://msdn.microsoft.com/en-us/library/hh745901(v=office.12).aspx
 

Still need help?

On this page