We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Designing a label


Is there an example where I can generate a barcode with multiple captions/text in an area. For example, I will set the barcode image to the right of a label, then also add multiple labels on the left of the bar code. These text may be printed in multiple lines that span the size of the barcode.

Please let me know.


Hi Sherwin,

Thank you for your interest in Aspose products.

I am afraid, with current implementation of Aspose.BarCode for .NET, you cannot set a caption for right and left sides of the barcode symbol. BarCodeBuilder class has two properties, CaptionAbove and CaptionBelow that take an instance of Caption class. So, it is possible to customize the text, alignment, font, color and space of the caption if it is above or below the barcode symbol. Moreover, you can also influence the caption text alignment by setting the TextAlign property exposed by the Caption class.

Please check below linked technical articles for your reference,

Feel free to write back in case you have further inquiries or comments.