DataMatrixBarcode.GetOverflowDataMatrixBarcode
Gets a new instance of the DataMatrixBarcode class.
public DataMatrixBarcode GetOverflowDataMatrixBarcode()
Function GetOverflowDataMatrixBarcode() As DataMatrixBarcode
Returns
Returns a DataMatrixBarcode object.
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Examples
The following example shows how to create the Data Matrix barcodes in cases where more than one barcode is required to represent the data.Imports System
Imports ceTe.DynamicBarcode.Creator
Module MyModule
Sub Main()
Dim MyFileCount As Integer = 1
' Create Data Matrix barcode object.
Dim MyDataMatrixBarcode As DataMatrixBarcode = New DataMatrixBarcode("Lorem ipsum dolor sit amet, consectetur.", DataMatrixEncodingType.Ascii, DataMatrixSymbolSize.R16xC16)
Do
Dim MyTempDataMatrixBarcode As DataMatrixBarcode = Nothing
' Get the Overflow Data Matrix barcode.
MyTempDataMatrixBarcode = MyDataMatrixBarcode.GetOverFlowDataMatrixBarcode()
' Save the Data Matrix barcode as an image.
MyDataMatrixBarcode.Draw("MyDataMatrixBarcode" + MyFileCount.ToString() + ".png", 72, ImageFormat.Png)
MyDataMatrixBarcode = MyTempDataMatrixBarcode
MyFileCount += 1
Loop While Not MyDataMatrixBarcode Is Nothing
End Sub
End Module
using System;
using ceTe.DynamicBarcode.Creator;
class MyClass
{
static void Main()
{
int fileCount = 1;
// Create Data Matrix barcode object.
DataMatrixBarcode dataMatrixBarcode = new DataMatrixBarcode("Lorem ipsum dolor sit amet, consectetur.", DataMatrixEncodingType.Ascii, DataMatrixSymbolSize.R16xC16);
do
{
DataMatrixBarcode tempDataMatrixBarcode = null;
// Get the Overflow Data Matrix barcode.
tempDataMatrixBarcode = dataMatrixBarcode.GetOverFlowDataMatrixBarcode();
// Save the Data Matrix barcode as an image.
dataMatrixBarcode.Draw("DataMatrixBarcode" + fileCount.ToString() + ".png", 72, ImageFormat.Png);
dataMatrixBarcode = tempDataMatrixBarcode;
fileCount++;
} while (dataMatrixBarcode != null);
}
}
Remarks
This method returns a new DataMatrixBarcode object that contains the remaining data that did not fit.