The .NET API is implemented in BarcodesForDocuments.NF.dll, which is installed in the C:\Program Files\Inlite\Assemblies directory.
1. Add a reference to BarcodeForDocuments.NF from the .NET tab of the Add References dialog box.
2. Create a barcode
The following code demonstrates the use of the .NET API in C#. A similar sequence should be used in any other language:
using Inlite.BarcodeGenerator;
...
Barcode bcGen = new Barcode();
bcGen.Configure (config);
Bitmap bmp = bcGen.CreateBarcode(data);
config
is the configuration
string, obtained from VBD
data is a string with the data to be placed in barcode
Save barcode image to file use .NET Bitmap.Save method :
bmp.Save(fileName);
Copy barcode image to Clipboard:
Inlite.BarcodeGenerator.Utility.BitmapToClipboard(bmp);
TIP: The .NET function, Clipboard.SetData(bmp), does not save the bitmap resolution, which is essential for the accurate representation of the pasted barcode image.
Paint bitmap using Graphics object:
graphicsObject.DrawImage(bmp,
rectImage, new RectangleF(0,0, bmp.Width, bmp.Height),
GraphicsUnit.Pixel);
Convert to WordML string:
txtWordML =
Inlite.BarcodeGenerator.Utility.BitmapGetWordML(bmp,
titleText, altText)