Sha256: f780469dd83d6ededeaf8c74df0e36d47e191525f6bbd58f7a2c8c05e7abe5f3

Contents?: true

Size: 665 Bytes

Versions: 2

Compression:

Stored size: 665 Bytes

Contents

# -*- encoding: utf-8 -*-
$:.unshift(File.join(File.dirname(__FILE__), "../lib"))
$:.unshift(File.join(File.dirname(__FILE__)))

require 'rescpos'
require 'reports/dish_item_report'
require 'reports/bill_list_report'
require 'reports/array_table_report'

Rescpos.configure do |config|
  config.template_path = File.expand_path(File.join(File.dirname(__FILE__), 'escposes'))
end

report = DishItemReport.new
report1 = BillListReport.new

printer = Rescpos::Printer.open("192.168.1.3", 9100)
# printer.print_report(report, :encoding => 'GBK')
# print table 
# printer.print_report(report1, :encoding => 'GBK')
printer.print_report(ArrayTableReport.new)
printer.close

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rescpos-0.0.8 examples/print.rb
rescpos-0.0.7 examples/print.rb