

The barcode image is generated with a resolution of 300 dpi and then is added between lines of text at the current position of the cursor. You can navigate the DocumentBuilder cursor to a different location in a document using various MoveTo methods. The DocumentBuilder has an internal cursor where the text will be inserted when you call Write(), Writeln(), InsertBreak(), and other methods.
BARCODE GENERATOR WORD HOW TO
This example explains how to insert a barcode image created through class BarcodeGenerator into a Word file represented as an object of using the cursor position. How to Add Barcode Images to Word Documents Using Cursor Position DocumentBuilder serves as a simplification (so-called “facade”) for the complex structure of Document and allows adding contents and formatting in a quick and easy way. Add the barcode to the Word file in the desired positions using Ĭlass DocumentBuilder facilitates the process of creating objects of class Document.Generate a barcode image in a raster or vector format (see the list of supported formats here)) using class BarcodeGenerator.Create or open a Word document through.This operation includes the following steps: The Aspose.Word library is the most convenient tool to work with Word files and can be used to insert barcodes into Word files. Word documents use points instead of pixels as measurement units (one inch equals 72 points). This parameter is still important to convert millimeters and inches to internal vector units for fonts and sizing parameters. For vector formats, the resolution does not have a large impact. For high-quality printing, it should be set in a range from 300 to 600 dpi. This task requires first generating a barcode in a raster (raster graphics) o vector (Windows metafile) format and then inserting it into a Word file.įor raster images, it is very important to set an appropriate value of Resolution.

It may often be needed to add one or more barcode images to a Microsoft Word document.
