Barcode is used for displaying barcode data.
Assume you have report containing Barcode with Name set to "barcode0". All you should do is set report XML file, then set the string data to show.
// C# code
Stampa.ReportDocument document = new Stampa.ReportDocument();
// set .xml file for printing
document.setXML("barcode.xml");
// add barcode data
document.AddBarcode("barcode0", "5555555");
Sample XML structure for Line :
<barcode name="barcode1" x="524" y="269" width="150" height="100" Layout="EveryPage" Selectable="True" horAlignment="None" verAlignment="None" > <text value="012345" /> <barcodeType value="Code39" /> <showLabel value="True" /> <labelFont family="Courier New" size="10" underline="False" /> </barcode>
| BarcodeType | The Barcode type. Valid values are Codabar, Code39, EAN13, EAN8, EAN128UCC, I2of5, UPCA, UPCE. Default value : Code39 . |
| Height | Barcode area rectangle height (in pixels). |
| HorizontalAlignment | Barcode alignment within page, relative to margins. Default value : None |
| Image | Gets the bitmap image of report element. Useful for displaying image data within StyledTable |
| Layout | This property defines if element is displayed on every section page, first or last page only. Valid values are : EveryPage, FirstPage, LastPage. Default value : EveryPage |
| LineWidth | Width of the line (in pixels). Default value : 1 |
| Selectable | This property defines whether object can be selected by left mouse click in design mode. Useful for locking background objects during design mode. If set to false, object can only be selected through Object Browser. Default value : true |
| ShowLabel | Defines whether barcode label will be displayed. Default value : true |
| Text | The text containing barcode data. Default value : 012345 |
| VerticalAlignment | Line vertical alignment within page, relative to margins. Default value : None |
| Width | Line area width (in pixels). |
| X | Left border coordinate (in pixels). |
| Y | Top border coordinate (in pixels). |