I have a barcode creation code and the footer
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128, "1234567890");
Stream ms = new MemoryStream();
generator.Save(ms, BarCodeImageFormat.Png);
Aspose.Words.Document doc = new Aspose.Words.Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertImage(ms,
RelativeHorizontalPosition.Margin,
0,
RelativeVerticalPosition.Margin,
400,
200,
100,
WrapType.Square);
There are questions
- How to create a right footer, now it is being created on the left
Now the barcode is inserted in an arbitrary place.I use aspose.words.
You can use
DocumentBuilder.MoveToHeaderFooterto move cursor into the footer and then useParagraphAlignment.Rightto place barcode at right. See the following code: