Sha256: 2bfef2ea4552c0286373aceb8c1451cebb62fa2fd20045672e6e628fee8b73ec

Contents?: true

Size: 452 Bytes

Versions: 2

Compression:

Stored size: 452 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'

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

report = DishItemReport.new

printer = Rescpos::Printer.open("192.168.1.3", 9100)
printer.print_report(report, :encoding => 'GBK')
printer.close

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rescpos-0.0.2 examples/print.rb
rescpos-0.0.1 examples/print.rb