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

Free Support Forum - aspose.com

Barcode generated display in a specific loaction

i want to display my barcode generated image in a specific loacation

pls help me

how can i solve it .......


This message was posted using Page2Forum from .NET Components - Documentation

Hi,

Thanks for considering Aspose.

The image generated by the component only contains the barcode and some text (optional), so specifying the location of barcode is not supported.

But, you may use the BarCodeBuilder.Margins property to control the location of barcode within the image. For example, the below code snippet would generate an image, with barcode located at (200, 200) coordinate.

BarCodeBuilder builder = new BarCodeBuilder();
builder.CodeText = “test-123”;
builder.SymbologyType = Symbology.Code128;
builder.GraphicsUnit = GraphicsUnit.Pixel;
builder.Margins = new MarginsF(200, 0, 200, 0);
builder.Save(“test.png”);