public static void Run() { // Get the default Printer Name PrinterSettings settings = new PrinterSettings(); string printerName = settings.PrinterName; // Create instance of BarCodeBuilder, specify codetext and symbology in the constructor BarCodeBuilder builder = new BarCodeBuilder("12345678", Symbology.Code128); // Set printer name builder.PrinterName = printerName; builder.Print(); }
public static void Run() { // ExStart:PrintBarcodeImage // Get the default Printer Name PrinterSettings settings = new PrinterSettings(); string printerName = settings.PrinterName; // Instantiate barcode object and set CodeText & Barcode Symbology BarCodeBuilder barCodeBuilder = new BarCodeBuilder("1234567890", EncodeTypes.Code128); // Set printer name barCodeBuilder.PrinterName = printerName; barCodeBuilder.Print(); // ExEnd:PrintBarcodeImage }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_BarCodeImage(); string dst = dataDir + "barcode-print.jpg"; //Get the default Printer Name PrinterSettings settings = new PrinterSettings(); string printerName = settings.PrinterName; // Create instance of BarCodeBuilder, specify codetext and symbology in the constructor BarCodeBuilder builder = new BarCodeBuilder("12345678", Symbology.Code128); // Set printer name builder.PrinterName = printerName; builder.Print(); Console.WriteLine(Environment.NewLine + "Printing barcode.... "); }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_BarCodeImage(); string dst = dataDir + "barcode-print.jpg"; //Get the default Printer Name PrinterSettings settings = new PrinterSettings(); string printerName = settings.PrinterName; // Create instance of BarCodeBuilder, specify codetext and symbology in the constructor BarCodeBuilder builder = new BarCodeBuilder("12345678", Symbology.Code128); // Set printer name builder.PrinterName = printerName; builder.Print(); Console.WriteLine(Environment.NewLine + "Printing barcode.... "); }