PrintBarcode() public method

Prints the barcode data.
public PrintBarcode ( BarcodeType type, string data ) : void
type BarcodeType /// Type of barcode. ///
data string /// Data to print. ///
return void
コード例 #1
0
		static void TestBarcode(ThermalPrinter printer)
		{
			ThermalPrinter.BarcodeType myType = ThermalPrinter.BarcodeType.ean13;
			string myData = "3350030103392";
			printer.WriteLine(myType.ToString() + ", data: " + myData);
			printer.SetLargeBarcode(true);
			printer.LineFeed();
			printer.PrintBarcode(myType,myData);
			printer.SetLargeBarcode(false);
			printer.LineFeed();
			printer.PrintBarcode(myType,myData);
		}