The DynamicBarcode Creator for the .NET object model is straightforward. Class and method names match what you expect and are intuitive. For example, the class name for the Code 39 barcode is Code39. Other barcode entities are named similarly. The flow of most applications written using the Barcode DLL is as follows.

  1. Create any barcode class object by passing parameters to the respective constructor of the desired barcode type.
  2. Specify the name and location of the output file (use the instantiated class's Draw method to create the specific barcode class).

The following example illustrates creating a Code 39 barcode.

Code39 barcode = new Code39("123456789", 100);
barcode.Draw(pngFilePath, 300, ImageFormat.Png);       
Dim barcode As Code39 = New Code39("123456789", 100)
barcode.Draw(pngFilePath, 300, ImageFormat.Png)

GitHub Examples

The barcode-creator-core-framework project on GitHub contains example code demonstrating how to use the DynamicBarcode creator software. There are examples using .NET Framework and Core for both C# and Visual Basic .NET.

The projects are:

Classes for each of these examples are provided in each project.

In this topic