Display and Rotate Code 128 Barcodes in Microsoft Word
Question details
The user needs to display a Code 128 barcode in Word and rotate it vertically without relying on an unreliable barcode font.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A document uses a Code 128 barcode font that displayed correctly when rotated in Word 2010.
- Observed behavior
- The font-based barcode does not render or rotate properly in newer Office versions.
Have the text or number to encode ready, and open the document in a desktop version of Word that supports DISPLAYBARCODE fields. If the barcode must be vertical, have a screen-capture tool available.
Create a Code 128 field and rotate it as an image
Use Word's built-in barcode field instead of a barcode font, then capture the result as an image if it needs to be vertical.
Place the cursor where the barcode should appear. In Word for Windows, press Ctrl+F9 to insert a pair of field braces.
Inside the field braces, type DISPLAYBARCODE "ABC123" CODE128, replacing ABC123 with the value you want to encode.
Select the field and press F9 to update it. Confirm that Word displays a Code 128 barcode.
Use a screen-capture tool to capture the barcode, including the clear space around it. In Word, select Insert > Pictures and insert the saved capture.
Select the picture, then use Picture Format > Rotate to turn it to the required orientation. Print a sample and test it with the intended scanner.

Work with barcode images in WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface. Open a Word document in WPS Writer and work with a prepared barcode image; WPS does not fix Word's barcode font or field behavior.

Frequently Asked Questions
Why does my barcode font work in Word 2010 but not in a newer version?
Font rendering and rotation can behave differently across Word versions. A DISPLAYBARCODE field avoids relying on the barcode font, although a vertical barcode may still need to be inserted as an image.
Can I type the field braces myself?
No. In Word for Windows, use Ctrl+F9 to insert actual field braces, enter the DISPLAYBARCODE code inside them, and press F9 to update the field.
How do I rotate the barcode vertically?
Capture the displayed barcode as an image, insert it using Insert > Pictures, and select Picture Format > Rotate. Keep the clear margins around the barcode and test the printed result with a scanner.
Will the rotated image update when I change the barcode value?
No. Update the DISPLAYBARCODE field, then capture and insert a new image to reflect the changed value.




