Printing a BarCode Image in Ruby

Aspose.BarCode - Printing a BarCode Image

To Print a BarCode Image using Aspose.Barcode Java for Ruby, simply invoke PrintingBarcodeImage module. Here you can see example code.

Ruby Code

 data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'



\# Instantiate barcode object

symbology = Rjb::import('com.aspose.barcode.Symbology')

builder = Rjb::import('com.aspose.barcode.BarCodeBuilder').new("12345678", symbology.Code128)

\# Set printer name

builder.setPrinterName("ML-1640 Series")

\# Start a print job

builder.print()

Download Running Code

Download Printing a BarCode Image (Aspose.BarCode) from any of the below mentioned social coding sites: