Aspose::BarCode Namespace Reference

Namespaces

 BarCodeRecognition
 
 Common
 
 ComplexBarcode
 
 Generation
 
 Serialization
 

Classes

class  BuildVersionInfo
 Contains the current build version information. More...
 
class  Details_BarCodeException
 Represents the exception for creating barcode image. More...
 
class  Details_InvalidCodeException
 The Exception will be thrown when invalid characters contained in the code text. More...
 
class  License
 Provides methods to license the component. More...
 
class  Metered
 Provides methods to set metered key. More...
 

Typedefs

using BarCodeException = System::ExceptionWrapper< Details_BarCodeException >
 
using InvalidCodeException = System::ExceptionWrapper< Details_InvalidCodeException >
 

Enumerations

enum  CustomerInformationInterpretingType { CustomerInformationInterpretingType::CTable, CustomerInformationInterpretingType::NTable, CustomerInformationInterpretingType::Other }
 Defines the interpreting type (CTable, NTable or Other) of customer information for AustralianPost BarCode. More...
 

Typedef Documentation

◆ BarCodeException

◆ InvalidCodeException

Enumeration Type Documentation

◆ CustomerInformationInterpretingType

Defines the interpreting type (CTable, NTable or Other) of customer information for AustralianPost BarCode.

Enumerator
CTable 

Use CTable to interpret the customer information. Allows A..Z, a..z, 1..9, space and # sign.

This sample shows how to generate and recognize Australia Post barcode with CTable Interpreting Type.

[C#]
using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AustraliaPost, "5912345678ABCde"))
{
generator.Parameters.Barcode.AustralianPost.AustralianPostEncodingTable = CustomerInformationInterpretingType.CTable;
using (Bitmap image = generator.GenerateBarCodeImage())
using (BarCodeReader reader = new BarCodeReader(image, DecodeType.AustraliaPost))
{
reader.BarcodeSettings.AustraliaPost.CustomerInformationInterpretingType = CustomerInformationInterpretingType.CTable;
foreach (BarCodeResult result in reader.ReadBarCodes())
{
Console.WriteLine("BarCode Type: " + result.CodeType);
Console.WriteLine("BarCode CodeText: " + result.CodeText);
}
}
}
[VB.NET]
Using generator As New BarcodeGenerator(EncodeTypes.AustraliaPost, "5912345678ABCde")
generator.Parameters.Barcode.AustralianPost.AustralianPostEncodingTable = CustomerInformationInterpretingType.CTable
Using image As Bitmap = generator.GenerateBarCodeImage()
Using reader As New BarCodeReader(image, DecodeType.AustraliaPost)
reader.BarcodeSettings.AustraliaPost.CustomerInformationInterpretingType = CustomerInformationInterpretingType.CTable
For Each result As BarCodeResult In reader.ReadBarCodes()
Console.WriteLine("BarCode Type: " + result.CodeTypeName)
Console.WriteLine("BarCode CodeText: " + result.CodeText)
Next
End Using
End Using
End Using
NTable 

Use NTable to interpret the customer information. Allows digits.

This sample shows how to generate and recognize Australia Post barcode with NTable Interpreting Type.

[C#]
using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AustraliaPost, "59123456781234567"))
{
generator.Parameters.Barcode.AustralianPost.AustralianPostEncodingTable = CustomerInformationInterpretingType.NTable;
using (Bitmap image = generator.GenerateBarCodeImage())
using (BarCodeReader reader = new BarCodeReader(image, DecodeType.AustraliaPost))
{
reader.BarcodeSettings.AustraliaPost.CustomerInformationInterpretingType = CustomerInformationInterpretingType.NTable;
foreach (BarCodeResult result in reader.ReadBarCodes())
{
Console.WriteLine("BarCode Type: " + result.CodeType);
Console.WriteLine("BarCode CodeText: " + result.CodeText);
}
}
}
[VB.NET]
Using generator As New BarcodeGenerator(EncodeTypes.AustraliaPost, "59123456781234567")
generator.Parameters.Barcode.AustralianPost.AustralianPostEncodingTable = CustomerInformationInterpretingType.NTable
Using image As Bitmap = generator.GenerateBarCodeImage()
Using reader As New BarCodeReader(image, DecodeType.AustraliaPost)
reader.BarcodeSettings.AustraliaPost.CustomerInformationInterpretingType = CustomerInformationInterpretingType.NTable
For Each result As BarCodeResult In reader.ReadBarCodes()
Console.WriteLine("BarCode Type: " + result.CodeTypeName)
Console.WriteLine("BarCode CodeText: " + result.CodeText)
Next
End Using
End Using
End Using
Other 

Do not interpret the customer information. Allows 0, 1, 2 or 3 symbol only.

This sample shows how to generate and recognize Australia Post barcode without Customer Interpreting Type.

[C#]
using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AustraliaPost, "59123456780123012301230123"))
{
generator.Parameters.Barcode.AustralianPost.AustralianPostEncodingTable = CustomerInformationInterpretingType.Other;
using (Bitmap image = generator.GenerateBarCodeImage())
using (BarCodeReader reader = new BarCodeReader(image, DecodeType.AustraliaPost))
{
reader.BarcodeSettings.AustraliaPost.CustomerInformationInterpretingType = CustomerInformationInterpretingType.Other;
foreach (BarCodeResult result in reader.ReadBarCodes())
{
Console.WriteLine("BarCode Type: " + result.CodeType);
Console.WriteLine("BarCode CodeText: " + result.CodeText);
}
}
}
[VB.NET]
Using generator As New BarcodeGenerator(EncodeTypes.AustraliaPost, "59123456780123012301230123")
generator.Parameters.Barcode.AustralianPost.AustralianPostEncodingTable = CustomerInformationInterpretingType.Other
Using image As Bitmap = generator.GenerateBarCodeImage()
Using reader As New BarCodeReader(image, DecodeType.AustraliaPost)
reader.BarcodeSettings.AustraliaPost.CustomerInformationInterpretingType = CustomerInformationInterpretingType.Other
For Each result As BarCodeResult In reader.ReadBarCodes()
Console.WriteLine("BarCode Type: " + result.CodeTypeName)
Console.WriteLine("BarCode CodeText: " + result.CodeText)
Next
End Using
End Using
End Using