Office Compatibility Issues

Display and Rotate Code 128 Barcodes in Microsoft Word

Khadija KhanKhadija Khan Nov 14, 2026 870 views

Question details

The user needs to display a Code 128 barcode in Word and rotate it vertically without relying on an unreliable barcode font.

Display and Rotate Code 128 Barcodes in Microsoft Word
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.
Before you start

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.

Solution 1Recommended

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.

1
Insert a field

Place the cursor where the barcode should appear. In Word for Windows, press Ctrl+F9 to insert a pair of field braces.

2
Enter the barcode code

Inside the field braces, type DISPLAYBARCODE "ABC123" CODE128, replacing ABC123 with the value you want to encode.

3
Display the barcode

Select the field and press F9 to update it. Confirm that Word displays a Code 128 barcode.

4
Capture and insert an image

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.

5
Rotate and test

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.

Create a Code 128 field and rotate it as an image
Update the image when the value changes: The captured image is not linked to the field. If you change the encoded value, update the field and capture and insert a new image. Use a clear, sufficiently large image and retain the blank margins needed for scanning.
Free Microsoft Office alternative

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.

Insert and position a prepared Code 128 barcode image in a documentOpen and save Microsoft Word DOCX files for easier migrationUse a familiar document-editing interfaceGet a free, lightweight Office alternative
QA img-9

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.