Dears,
we can create empty barcode in bartender to use it in the application, we load the file, get the barcode then change its value:
private BarTender.Application GetApplication() {
if (barTenderApplication == null) {
barTenderApplication = new BarTender.Application();
}
return barTenderApplication;
}
Format barTenderFormat = GetApplication().Formats.Open(fileName);
barTenderFormat.SetNamedSubStringValue("gh", txtFName.barTenderFormat.SetNamedSubStringValue("os", txtX.barTenderFormat.SetNamedSubStringValue("yo", txtY.Text);
string imageName = @"C:\Bartender 03.10.13\" + DateTime.Now.Millisecond + ".jpg";
barTenderFormat.ExportToFile(imageName, "jpg", BtColors.btColors16, BtResolution.btResolutionPrinter, BtSaveOptions.btSaveChanges);
barTenderFormat.Close(BtSaveOptions.btSaveChanges);
Bitmap bMap = new Bitmap(new Bitmap(imageName), pictureBox.Width, pictureBox.Height);
pictureBox.Image = bMap;
but the question is: how to create the whole file from scratch,and create the objects inside it (barcode, text and other objects in this file) and set its value.
And if we create the file from bartender so how can we generate barcode, objects and set its value