Sha256: c49f0a4f037b28253cb66307c0cd8f42bc1addb994b7d3314ba497de800a6cee
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 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' 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.close
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rescpos-0.0.6 | examples/print.rb |
rescpos-0.0.5 | examples/print.rb |
rescpos-0.0.3 | examples/print.rb |