Aspose::BarCode Namespace Reference

Namespaces

 BarCodeRecognition
 
 Common
 
 ComplexBarcode
 
 Generation
 
 Serialization
 

Classes

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...
 
class  XmlSerializationAttribute
 Represents attribute for xml entity generator. 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...
 
enum  XmlSerializationType { XmlSerializationType::Attribute, XmlSerializationType::Element }
 Represents type of xml serialization. More...
 

Typedef Documentation

◆ BarCodeException

◆ InvalidCodeException

Enumeration Type Documentation

◆ CustomerInformationInterpretingType

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

These samples show how to generate and recognize Australia Post barcode

[C#]
//This sample shows how to generate and recognize Australia Post barcode with CTable Interpreting Type.
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
//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
Enumerator
CTable 

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

NTable 

Use NTable to interpret the customer information. Allows digits.

Other 

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

◆ XmlSerializationType

Represents type of xml serialization.

Enumerator
Attribute 

Serialize as xml-attribute.

Element 

Serialize as xml-element.