Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
This element adds a barcode or QR code to the form based on the provided string. You can use it to link to your website or to uniquely identify a form (for example, generate personalized exam papers for each student).
Information from the barcode is decoded during recognition.

Aspose.OMT for .NET can generate and recognize a wide variety of barcodes:
This element is declared as an instance of BarcodeConfig class. Reference Aspose.OMR.Generation.Config.Elements and Aspose.OMR.Generation.Config.Enums namespaces to use ContentConfig types without specifying the fully qualified namespace:
using Aspose.OMR.Generation.Config.Elements;
using Aspose.OMR.Generation.Config.Enums;
A string encoded as a barcode is specified in the Value property.
new BarcodeConfig() {
Value = "Encoded string"
}
| Name | Type | Description |
|---|---|---|
| Value | string | A string encoded as a barcode. |
| Name | Type | Default value | Description |
|---|---|---|---|
| Name | string |
n/a | Used as an element’s identifier in recognition results and as a reminder of the element’s purpose in template source; for example, “Web site”. This text is not displayed on the form. |
| BarcodeType | Type of the barcode, a value from Aspose.OMR.Generation.Config.Enums.BarcodeType enumerator. |
BarcodeType.QR |
Type of the barcode. |
| BarcodeQRVersion | QR code version, a value from Aspose.OMR.Generation.Config.Enums.QRVersion enumerator. |
QRVersion.Auto |
QR Code version. Only applicable when BarcodeType is QR. |
| DrawCodetext | bool |
false | Add a string from the Value property below the barcode image. |
| Align | AlignmentEnum |
AlignmentEnum.Center |
Horizontal alignment of the barcode image. |
| Height | int |
Automatic | Barcode height, in pixels. The width is adjusted automatically. |
| X | int |
n/a | Set the absolute position of the barcode relative to the left edge of the page. Overrides the value of Align property. |
| Y | int |
n/a | Set the absolute position of the barcode relative to the top edge of the page. |
| RotationAngle | int |
n/a | Rotate the element by the specified angle (in degrees). Negative angle rotates the element counter-clockwise, positive angle rotates the element clockwise. |
None.
TemplateConfig templateConfig = new TemplateConfig() {
Children=new List<BaseConfig>() {
new PageConfig() {
Children = new List<BaseConfig>() {
new ContainerConfig() {
Name = "Example",
ColumnsCount = 2,
Children= new List<BaseConfig>() {
new BlockConfig() {
Column = 1,
Children = new List<BaseConfig>() {
new BarcodeConfig() {
Value = Guid.NewGuid().ToString(),
Align = AlignmentEnum.Left,
Height = 300
}
}
},
new BlockConfig() {
Column = 2,
Children = new List<BaseConfig>() {
new BarcodeConfig() {
Value = "John Doe",
Align = AlignmentEnum.Left,
DrawCodetext = true,
Height = 300
}
}
}
}
}
}
}
}
};

Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.