JP2004133779A - Method for generating receipt print data, program for realizing it, recording medium and printer - Google Patents

Method for generating receipt print data, program for realizing it, recording medium and printer Download PDF

Info

Publication number
JP2004133779A
JP2004133779A JP2002298995A JP2002298995A JP2004133779A JP 2004133779 A JP2004133779 A JP 2004133779A JP 2002298995 A JP2002298995 A JP 2002298995A JP 2002298995 A JP2002298995 A JP 2002298995A JP 2004133779 A JP2004133779 A JP 2004133779A
Authority
JP
Japan
Prior art keywords
data
image
image data
print data
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2002298995A
Other languages
Japanese (ja)
Other versions
JP4168722B2 (en
Inventor
Masahiro Minowa
箕輪 政寛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2002298995A priority Critical patent/JP4168722B2/en
Priority to ES03021178T priority patent/ES2294234T3/en
Priority to DE60317438T priority patent/DE60317438T2/en
Priority to EP03021178A priority patent/EP1408465B1/en
Priority to US10/675,858 priority patent/US20050275894A1/en
Publication of JP2004133779A publication Critical patent/JP2004133779A/en
Application granted granted Critical
Publication of JP4168722B2 publication Critical patent/JP4168722B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Cash Registers Or Receiving Machines (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To quickly print image data even in the case of using a low-fast interface as an interface between a host computer and a printer. <P>SOLUTION: This method for generating receipt print data adds image data that have been already stored to accounting print data transmitted from the host computer 40 to generate receipt print data. The accounting print data generated on the basis of input information about merchandise sales and an image addition setting command for adding the print data for printing are acquired from the host computer 40. Next, the image addition setting command is analyzed and a line number showing a printing position of the image data is acquired. Then, the image data is added to the accounting print data to generate receipt print data on the basis of the acquired line number. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、商品販売に関する入力情報に基づいてホストコンピュータにより生成された会計処理印刷データに、既に記憶されている画像データを付加して、レシート印刷データを生成するレシート印刷データ生成方法、これを実現させるためのプログラム、記録媒体および印刷装置に関するものである。
【0002】
【従来の技術】
従来、スーパーやコンビニエンス・ストア等の小売業において利用されているPOSシステム(販売時点情報管理システム)では、商品販売に関する入力情報を取得するホストコンピュータと、レシートに印刷を行うための印刷装置とによってPOS端末が構成されている。この種のPOS端末としては、ホストコンピュータにより生成された会計処理印刷データを印刷装置が受信し、当該会計処理印刷データに基づいて、レシート上に印刷を行う形態(例えば、特許文献1参照。)が一般的である(図17参照)が、近年では、この会計処理印刷データの他に、例えば店のロゴなどの画像データを印刷可能なものも知られている。
【0003】
【特許文献1】
特開2001−273560号公報(第4−7頁、第10−11図)
【0004】
【発明が解決しようとする課題】
ところで、このような会計処理印刷データと画像データとを同一のレシート上に印刷するPOS端末においては、ホストコンピュータ内に画像データを格納しておき、この画像データとホストコンピュータ内で生成された会計処理印刷データとをコンバインした後、印刷装置にデータを送信している。しかしながら、ホストコンピュータと印刷装置とが低速インターフェースを用いて接続されている場合、データ伝送に時間がかかり、レシートの発行が遅れてしまうといった問題があった。このため、全体として処理効率が悪化し、顧客を待たせてしまうなど、業務に支障をきたしていた。
【0005】
本発明は、上記の問題点に鑑み、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、迅速に画像データを印刷可能なレシート印刷データ生成方法、これを実現させるためのプログラム、記録媒体および印刷装置を提供することを目的とする。
【0006】
【課題を解決するための手段】
本発明のレシート印刷データ生成方法は、商品販売に関する入力情報に基づいてホストコンピュータにより生成された会計処理印刷データに、既に記憶されている画像データを付加して、レシート印刷データを生成するレシート印刷データ生成方法であって、画像データを記憶する画像データ記憶工程と、ホストコンピュータから、会計処理印刷データを取得する会計処理印刷データ取得工程と、ホストコンピュータから、画像データを付加して印刷するための画像付加設定コマンドを取得する画像付加設定コマンド取得工程と、画像付加設定コマンドを解析し、画像データの印刷位置を示す行番号を取得するコマンド解析工程と、行番号に基づき、会計処理印刷データに画像データを付加してレシート印刷データを生成するレシート印刷データ生成工程と、を備えたことを特徴とする。
【0007】
また、本発明の印刷装置は、商品販売に関する入力情報に基づいてホストコンピュータにより生成された会計処理印刷データに、既に記憶している画像データを付加して、レシート印刷データを生成する印刷装置において、画像データを記憶する画像データ記憶手段と、ホストコンピュータから、会計処理印刷データを取得する会計処理印刷データ取得手段と、ホストコンピュータから、画像データを付加して印刷するための画像付加設定コマンドを取得する画像付加設定コマンド取得手段と、画像付加設定コマンドを解析し、画像データの印刷位置を示す行番号を取得するコマンド解析手段と、行番号に基づき、会計処理印刷データに画像データを付加してレシート印刷データを生成するレシート印刷データ生成手段と、を備えたことを特徴とする。
【0008】
これらのレシート印刷データ生成方法および印刷装置は、印刷装置に画像データを記憶しておき、ホストコンピュータから会計処理印刷データと、画像データを付加するための画像付加設定コマンドを取得する。そして、画像付加設定コマンドを解析することで、印刷位置を示す行番号を取得し、この行番号に基づいて、会計処理印刷データに画像データを付加する。このため、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、迅速に画像データを印刷することができる。また、ホストコンピュータ側で画像データを付加するための付加設定コマンドを生成するため、印刷装置を直接操作することなくホストコンピュータにより画像データの付加設定を行うことができる。さらに、画像データの印刷位置が、画像付加設定コマンドに含まれるパラメータの一つである行番号で特定されるため、印刷装置は、容易に印刷領域を決定し、画像データの付加処理を行うことができる。特に、所定の文字列を、レシート上に必ず印刷される文字列(例えば「領収証」、「合計金額」など)とすることで、レシート長に応じて、適切な位置に画像データが印刷されたレシートを発行することができる。
【0009】
この場合、画像付加設定コマンドは、画像データの付加を開始する位置を示すスタート行番号、および画像データの付加を終了する位置を示すエンド行番号に関するパラメータを含み、コマンド解析工程では、スタート行番号およびエンド行番号の2つの行番号を取得することが好ましい。
【0010】
また、この場合、画像付加設定コマンドは、画像データの付加を開始する位置を示すスタート行番号、および画像データの付加を終了する位置を示すエンド行番号に関するパラメータを含み、コマンド解析手段は、スタート行番号およびエンド行番号の2つの行番号を取得することが好ましい。
【0011】
これらの構成によれば、スタート行番号からエンド行番号の間に画像データを付加することができる。すなわち、画像データの付加領域を、スタート行番号とエンド行番号とにより特定される領域とすることができるため、レシート長に応じて、適切な領域に画像データが印刷されたレシートを発行することができる。
【0012】
これらの場合、画像データ記憶工程では、複数の画像データファイルを記憶し、且つ画像付加設定コマンドは、複数の画像データファイルの中から1の画像データファイルを指定するための画像指定データに関するパラメータを含み、コマンド解析工程では、画像付加設定コマンドから画像指定データを取得することが好ましい。
【0013】
また、これらの場合、画像データ記憶手段は、複数の画像データファイルを記憶し、且つ画像付加設定コマンドは、複数の画像データファイルの中から1の画像データファイルを指定するための画像指定データに関するパラメータを含み、コマンド解析手段は、画像付加設定コマンドから画像指定データを取得することが好ましい。
【0014】
これらの構成によれば、複数の画像データファイルが記憶されており、画像付加設定コマンドは、複数の画像データファイルの中から1の画像データファイルを指定するための画像指定データに関するパラメータを含むため、画像指定データに関するパラメータを変化させることで種々の画像データを付加することができる。したがって、多様なレシートを作成することができる。
【0015】
これらの場合、主色と、当該主色以外の少なくとも1色の副色とによるカラー印刷を行うカラー印刷工程を更に備え、カラー印刷工程では、会計処理印刷データを主色によって印刷し、画像データを少なくとも1色の副色によって印刷することが好ましい。
【0016】
また、これらの場合、主色と、当該主色以外の少なくとも1色の副色とによるカラー印刷を行うカラー印刷手段を更に備え、カラー印刷手段は、会計処理印刷データを主色によって印刷し、画像データを少なくとも1色の副色によって印刷することが好ましい。
【0017】
これらの構成によれば、会計処理印刷データを主色によって印刷し、画像データを副色によって印刷するため、会計処理印刷データの見やすさを損ねることなく、画像データを付加することができる。また、カラー印刷が可能であるため、レシートの視認性を高めることができる。
【0018】
この場合、ホストコンピュータでは、画像データの印刷色を設定可能であり、画像付加設定コマンドには、印刷色を示すパラメータが含まれていることが好ましい。
【0019】
これらの構成によれば、画像付加設定コマンドは、印刷色を示すパラメータを含むため、印刷色を示すパラメータを変化させることで種々の画像データを付加することができる。したがって、多様なレシートを作成することができる。
【0020】
本発明のプログラムは、上記のいずれか1に記載のレシート印刷データ生成方法をコンピュータに実現させることを特徴とする。
【0021】
この構成によれば、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、迅速に画像データを印刷可能なプログラムを提供することができる。
【0022】
本発明の記録媒体は、上記に記載のプログラムを記録したことを特徴とする。
【0023】
この構成によれば、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、迅速に画像データを印刷可能なプログラムを記録した記録媒体を提供することができる。
【0024】
【発明の実施の形態】
以下、本発明の一実施形態に係るレシート印刷データ生成方法、これを実現させるためのプログラム、記録媒体および印刷装置について、添付図面を参照しながら詳細に説明する。本発明は、ホストコンピュータにより、会計処理印刷データの中から、画像データの印刷位置を示す特定文字列を抽出し、この特定文字列によって特定される行番号に基づいて、会計処理印刷データに画像データを付加するための画像付加設定コマンドを生成する。そして、印刷装置では、この画像付加設定コマンドから取得した行番号に基づいて、画像データを会計処理印刷データに付加し、レシート上に印刷するためのレシート印刷データを生成する。
【0025】
すなわち、この構成により、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、印刷装置により迅速に画像データを印刷可することができる。また、ホストコンピュータに組み込んだプリンタドライバによって画像付加設定コマンドの生成を行うことで、ホストコンピュータが例えば単色・テキストベースのアプリケーションであっても、アプリケーションを変更することなく、印刷装置によってカラー・グラフィックベースのレシートを発行することができる。また、印刷装置では、画像付加設定コマンドから行番号を取得することによって、容易に印刷位置を特定することができ、ひいては見栄えの良いレシートを作成することができるなどの作用・効果を奏するものである。
【0026】
そこで、以下、スーパーやコンビニエンス・ストア等の店舗にて利用され、オペレータによって入力された商品販売に関する入力情報に基づいてレシートを発行するPOSシステムを例に挙げて説明する。
【0027】
図1に示すように、本発明のPOSシステム10は、オペレータ(ユーザ)によって、主に商品に付されたバーコードが読み取られることにより入力情報を取得する複数の商品販売データ処理装置であるPOS端末20(1つのみ図示)と、ネットワークを介して当該POS端末20と相互に接続され、POS端末20に入力された入力情報の管理を行うPOSサーバ30とによって構成されている。
【0028】
POSサーバ30は、制御装置(CPU31)の他、ROM32やRAM33等のメモリを有し、ROM32内に記憶された制御プログラムにしたがって、RAM33内のバッファ39等に記憶された情報の処理を行う。特にRAM33内には、商品コードブロック35、商品名ブロック36、金額ブロック37、在庫ブロック38等からなる商品マスタを有しており、CPU31は、POS端末20より送信された入力情報に基づいて、商品マスタから商品コード、商品名、金額に関する情報を抽出し、レシート61への印刷およびPOS端末20のディスプレイ42の表示に用いる商品データを生成する。なお、「商品データ」とは、PC40で生成される会計処理印刷データの元となるデータであり、レシート61上に印刷される商品名やその金額等の商品情報が含まれるものである。
【0029】
POS端末20は、入力情報に基づき、POSサーバ30の商品データを参照して、レシート61上に印刷する会計処理印刷データ(商品情報の他、店舗名や電話番号、日付、顧客に対するメッセージなどを印刷するためのデータおよびコマンドを言う;図17参照)を生成したり、入力データをPOSサーバ30に登録する等の金銭登録処理をするPOSアプリケーション実行部41aを有するパーソナルコンピュータ(PC)40と、印刷データに基づいてレシート61上に印刷を行う印刷装置50(レシートプリンタ)とを備え、互いにコネクタ46,53を介して接続されている。
【0030】
PC40は、キーボード43による入力またはバーコードリーダ44によるバーコードの読み取りによって商品に関する情報(商品情報)や顧客60に関する情報(顧客情報)などの入力情報を取得する。また、カードリーダ45によって顧客60のクレジットカードや会員カードを読み取り、クレジット清算に関する情報や会員番号等の会員に関する情報を取得する。さらに、POSサーバ30から送信された商品データを元に生成した商品情報を表示するディスプレイ42を有し、顧客60に対して購入商品の金額等を提示する。
【0031】
また、PC40の制御は、ウィンドウズ(登録商標)等のOS上で稼働するプリンタドライバOLE for Retail POS(以下、OPOSという)により行われる。OPOSとは、OS上で稼働するPOSアプリケーション41aに対して、印刷装置50やバーコードリーダ44等の周辺デバイスとの機種依存性のないインターフェースを提供するものであり、デバイスのカテゴリ毎に対応したコントロールオブジェクト(CO)41bと、デバイスの機種毎に対応したサービスオブジェクト(SO)41cとによって構成されている。
【0032】
POSアプリケーション41aは、POSサーバ30から送信される商品データや入力情報に基づいてレシート61上に印刷するための会計処理印刷データを生成するが、この会計処理印刷データは、OS41dを介して印刷装置用のCO41bに引き渡され、さらにCO41bから印刷装置50の機種に対応したSO41cに引き渡される。SO41cは、この印刷データを加工して、印刷装置50のコマンド仕様に応じた印刷コマンドを生成し、印刷装置50へ送信する。なお、上記したOPOSは、SO41cとCO41bとをコンバインした形態で、プリンタドライバ109としてユーザに提供される。
【0033】
また、SO41cでは、画像データを会計処理印刷データに付加するための画像付加設定コマンドの生成を行うと共に、画像データの各種設定を行う画像データ設定プログラム108が実装されている。具体的な説明は後述するが、画像データ設定プログラム108は、ディスプレイ42上に所定の設定画面300(図6参照)を表示させることにより、画像データ設定のためのインターフェースをユーザに提供するものである。このように、プリンタドライバ109によって画像データ設定プログラム(ユーティリティ実行プログラム)108が提供されるため、PC40のPOSアプリケーション41aを変更することなく、PC40から画像データの設定を行うことができる。
【0034】
一方、印刷装置50は、インクジェット方式で印刷が行われるインクジェットプリンタであり、第1印刷ヘッド55aないし第6印刷ヘッド55fの、6つのインクジェットヘッドを有する印刷部120を備えている。これらのインクジェットヘッド55は、それぞれ、M(マゼンタ)、C(シアン)、Y(イエロー)、LM(ライトマゼンタ)、LC(ライトシアン)、K(ブラック)のインクを吐出することで、フルカラーの印刷ができるように構成されている。なお、印刷ヘッド55の構成は、これに限らず、ヘッド数を増やして、さらに多色の印刷を行い得るよう構成しても良いし、ヘッド数を減らして1色若しくは2色のみの印刷を行う構成としても良い。
【0035】
また、印刷装置50は、第6印刷ヘッド55fのみで印刷を行うモノクロ印刷モードと、全ての印刷ヘッドによって印刷を行うカラー印刷モードとのいずれかを、図示しないディップスイッチあるいは、ソフトディップスイッチによって設定可能となっている。そして、このモード設定に関する情報をPC40が取得し、生成する印刷データにカラー情報を含ませるか否かを判断することができる。したがって、カラー印刷モードに設定されている場合であって、且つ印刷データにカラー情報が含まれる場合、これに基づきレシート61上に2色若しくは多色刷りの印刷を行うことが可能となる。なお、以下の説明では、印刷装置50はカラー印刷モードに設定されており、会計処理印刷データは主色の「K(ブラック)」にて印刷され、画像データは主色(K(ブラック))以外の指定された副色にて印刷されるものとする。
【0036】
次に、POS端末20の装置構成について、図2を参照して説明する。同図(a)は、POS端末20をオペレータによる操作側から見た正面斜視図であり、同図(b)は、これを顧客側から見た背面斜視図である。両図に示すように、POS端末20は、箱形の本体ケース48によってその主体部を成すPC40と、本体ケース48の後部左側に配置される印刷装置50とによって構成されている。なお、印刷装置50は、本体ケース48とケーブル接続されているため、この配置に限らず、ケーブル長が許す範囲で任意の場所に配置可能となっている。
【0037】
PC40は、本体ケース48の前部上面にオペレータが商品情報や顧客情報などの情報を入力するキーボード43と、その後部右側にオペレータが入力情報を確認するオペレータ用ディスプレイ42aとを配置し、本体ケース48内にはキャッシュドロア49が収納さている。また、本体ケース48の右側側面には商品に貼付若しくは印刷されたバーコードを読み取るためのバーコードリーダ44、左側側面には印刷装置50と接続するための印刷装置側インターフェース47を備え、キーボード43の右側には、顧客60から提示されたクレジットカードを読み取るためのカードリーダ用スロット45が形成されている。さらに、本体ケース48の背面側には、顧客60が商品情報等を確認するための顧客用ディスプレイ42bが配置されている。なお、画像データ設定のための設定画面(図6参照)は、上記のオペレータ側ディスプレイ42aに表示され、オペレータはこれを確認しながら、設定操作を行うこととなる。
【0038】
一方、印刷装置50は、その前面側に動作表示ランプ65と、PC側インターフェース51とが配置されており、PC側インターフェース51と、PC40に備えられた印刷装置側インターフェース47とはケーブル63およびコネクタ46,53を介して接続されている。また、印刷装置50の上面には、印刷済みのレシート61が排出されるレシート排出口64が形成されている。
【0039】
次に、PC40の制御構成について、図3の機能ブロック図を参照して説明する。PC40は、画像付加設定コマンドを生成するための参照テーブルである定義テーブル(図9等参照)を設定する定義テーブル設定部201と、会計処理印刷データを生成する会計処理印刷データ生成部202と、画像付加設定コマンドを生成する画像付加設定コマンド生成部203と、定義テーブル記憶部221、会計処理印刷データ記憶部222および画像付加設定コマンド記憶部223を有し、各種データを記憶するデータ記憶部204と、会計処理印刷データ送信部225および画像付加設定コマンド送信部226を有し、印刷装置側インターフェース47を介して会計処理印刷データおよび画像付加設定コマンドの送信を行うデータ送信部205とを備えている。また、定義テーブル設定部201、画像付加設定コマンド生成部203は、主にプリンタドライバ109によって実現されるものである。
【0040】
定義テーブル設定部201は、プリンタドライバ109によって提供される画像データ設定プログラム108により実行され、画像データの印刷位置を示す特定文字列(スタート文字列およびエンド文字列(図14等参照))を設定する文字列設定部211と、付加対象となる画像データを指定するための画像指定データ(ファイル名など)を設定する画像指定データ設定部212と、画像データの印刷位置を特定する行番号の取得パターンを設定する(詳細については後述する)行番号設定部213と、画像データの印刷色を設定するカラー情報設定部214とを備えている。この定義テーブル設定部201における設定事項は、ユーザが設定画面300(図6参照)に必要事項を入力することで設定されるものであり、入力された情報はRAM等のメモリに記憶され、必要に応じて書き換え可能となっている。
【0041】
画像付加設定コマンド生成部203は、会計処理印刷データを検索して特定文字列を抽出する文字列抽出部216と、特定文字列によって特定される行番号を取得する行番号取得部217と、定義テーブルから特定文字列に関連づけられた画像指定データを取得する画像指定データ取得部218とを備えており、図11および図12に示すような、画像付加設定コマンド「ESC I n1,n2,n3・・・」を生成する。画像付加設定コマンドの構成については、後述する。
【0042】
そして、PC40は、上記の構成により、会計処理印刷データ生成部202によって生成された会計処理印刷データの中から、定義テーブル設定部201で設定された定義テーブルにしたがって、特定文字列を抽出し、その特定文字列によって特定される行番号、および特定文字列に関連づけられた画像指定データに基づいて、画像付加設定コマンド生成部203により画像付加設定コマンドを生成する。そして、生成した会計処理印刷データおよび画像付加設定コマンドをデータ送信部205により、印刷装置50へ送信する。
【0043】
続いて、印刷装置50の制御構成について、図4の機能ブロック図を参照して説明する。印刷装置50は、PC40からPC側インターフェース51を介して会計処理印刷データおよび画像付加設定コマンドを取得するデータ取得部231と、取得したデータおよび複数の画像データファイル(図13参照)を記憶するデータ記憶部232と、PC40から送信された画像付加設定コマンドを解析するコマンド解析部233と、レシート61に印刷するためのレシート印刷データを生成するレシート印刷データ生成部234と、レシート印刷データに基づいて印刷を行う印刷部235とを備えている。
【0044】
データ取得部231は、会計処理印刷データ取得部241と、画像付加設定コマンド取得部242とを有し、それぞれ会計処理印刷データ記憶部245と、画像付加設定コマンド記憶部246とにデータを送るが、実際には、会計処理印刷データと、画像付加設定コマンドが同時に送信され、会計処理印刷データの中から画像付加設定コマンドを抽出して解析処理を行うことになる。ここでは、説明を容易にするため、会計処理印刷データと画像付加設定コマンドとは個別に取得および記憶するものとして図示する。したがって、会計処理印刷データは、画像付加設定コマンドを除いた、商品データを印刷するためのデータ・コマンドによって構成されるものとする。
【0045】
データ記憶部232は、画像データ記憶部244と、会計処理印刷データ記憶部245と、画像付加設定コマンド記憶部246とを有し、画像データ記憶部244には、予め複数の画像データファイルが記憶されている。なお、これら複数の画像データファイルは、PC40によりスキャナ等で読み込まれたデータや、描画ソフトによって作成されたデータが、画像データ設定プログラム108により実行される設定画面300において登録され(図6「画像データ登録」タブ参照)、これを印刷装置50に送信したものを、画像データ記憶部244内に記憶したものであり、ユーザのニーズに応じて適宜書き換えができるよう構成されている。
【0046】
コマンド解析部233は、PC40から送信された画像付加設定コマンドを解析することによって行番号を取得する行番号取得部248と、同じく画像付加設定コマンドから画像指定データ(ファイル名や画像指定No.等)を取得する画像指定データ取得部249と、同じく画像付加設定コマンドから画像データの印刷色を示すカラー情報を取得するカラー情報取得部250とを有し、取得した情報は、後述するRAM144内に格納される。
【0047】
印刷装置50は、上記の構成により、データ取得部231によって、会計処理印刷データおよび画像付加設定コマンドを取得し、コマンド解析部233によって画像付加設定コマンドを解析することにより、行番号、画像指定データおよびカラー情報を得る。さらに、これらの情報に基づいて、レシート印刷データ生成部234により、会計処理印刷データに画像データを付加し、レシート印刷データを生成する。
【0048】
図5は、印刷装置50の制御ブロック図を示したものであるが、同図に示すように、印刷装置50は、PC側インターフェース51を有し、PC40からの画像付加設定コマンドや会計処理印刷データを入力するデータ入力部110と、6つのインクジェットヘッド55を有し、それぞれ異なる色のインクを吐出することによってカラー印刷を行う印刷部120と、ヘッドドライバ131を有し、インクジェットヘッド55を駆動する駆動部130と、印刷装置50全体を制御する制御部140とによって構成されている。
【0049】
制御部140は、CPU141、ROM142、CG−ROM143およびRAM144を有し、互いに内部バス145により接続されている。ROM142は、CPU141で処理する制御プログラムを記憶する制御プログラムブロック142aの他、各種テーブルを含む制御データを記憶する制御データブロック142bを有している。また、CG−ROM143は、印刷する文字のフォントデータを記憶し、文字を特定するコードが与えられたときに対応するフォントデータを出力する。
【0050】
RAM144は、フラグ等として使用される各種ワークエリアブロック151の他、画像データファイルを複数記憶する画像データブロック152と、PC40から送信された会計処理印刷データを記憶する会計処理印刷データブロック153と、画像付加設定コマンドの解析結果に関する情報を記憶する画像付加設定コマンドブロック154と、会計処理印刷データに画像データを付加することによって生成したレシート印刷データを記憶するレシート印刷データブロック155とを有し、制御処理のための作業領域として使用される。また、RAM144は電源が切断されても記憶したデータを保持しておくように常にバックアップされている。
【0051】
画像付加設定コマンドブロック154は、画像付加設定コマンドの解析の結果得られた行番号、画像指定データおよびカラー情報をそれぞれ記憶する行番号ブロック157、画像指定データブロック158およびカラー情報ブロック159を備え、前記コマンド解析部233(図4参照)の各部によって取得された情報を記憶している。
【0052】
また、内部バス145は、データ入力部110および駆動部130とも接続され、PC側インターフェース51から入力データ(画像付加設定コマンド、会計処理印刷データ等)を取り込む(図4参照)と共に、CPU151等から出力された出力データ(レシート印刷データ等)や制御信号を、駆動部130(ヘッドドライバ131)に出力する。
【0053】
そして、CPU141は、上記の構成により、ROM142内の制御プログラムに基づいて、印刷装置50内の各部から各種信号・データ等を入力し、RAM144内の各種データ等を処理すると共に、各部に各種信号・データ等を出力することにより、画像付加設定コマンドの解析を行い、その解析結果にしたがって画像データを会計処理印刷データに付加することでレシート印刷データを生成し、これに基づいて印刷を行うなど、印刷装置50全体を制御している。
【0054】
なお、PC側インターフェース51およびPC40に備えられた印刷装置側インターフェース47は、RS−232規格などのシリアルデータ転送、セントロニクス規格などのパラレルデータ転送、イーサネット(登録商標)の10Base−Tなどのネットワーク接続、若しくはUSBなどのデータ転送規格に対応したものを採用することができる。
【0055】
また、PC40の内部TTL(Transistor Transistor Logic)と、印刷装置50の内部との駆動電圧レベルが異なる場合には、PC側インターフェース51および印刷装置側インターフェース47にレベル変換を行うドライバ回路を備えることが好ましい。この構成によれば、信号レベルを容易に変換することができる。
【0056】
次に、画像データの設定処理について、図6を参照して説明する。画像データの設定は、PC40において、画像データ設定プログラム108(図1参照)が実行されることにより行われる。具体的には、画像データ設定プログラム108が起動されると、図6に示すような設定画面が、オペレータ側ディスプレイ42aに表示され、オペレータが各種情報を入力することにより設定が行われる。
【0057】
同図に示すように、設定画面300では、画像データを設定するための各種情報が複数の画面に分かれて設定可能となっており、オペレータ(ユーザ)は、所望の設定画面を開いて設定を行っていく。なお、最初のタブ「基本」の設定画面を開くと、レシート61の幅サイズ、画像データの印刷濃度および印刷品質等を設定可能となっており、通常の印刷設定ユーティリティとほぼ同内容であるため、ここでは説明を省略する。また、3つ目のタブ「画像データ登録」の設定画面を開くと、図13に示すような画像データを登録可能となっており、これについても通常の登録方法を用いることができるため、説明を省略する。したがって、ここではタブ「定義テーブル」の設定画面についてのみ説明する。
【0058】
図6に示すように、「定義テーブル」の設定画面300では、まず、特定文字列の設定を行う。特定文字列は、スタート文字列とエンド文字列とからなり、前者は、画像データの付加を開始する位置を示し、後者は、画像データの付加を終了する位置を示すものである。オペレータは、これらスタート文字列およびエンド文字列を、スタート文字列設定欄301およびエンド文字列設定欄302の上下アイコンにより既に登録されている文字列の中から選択しても良いし、各設定欄301、302に直接文字列を入力しても良い。ここでは、スタート文字列として「領収証」が、また、エンド文字列として「お買いあげ」が設定されたものとする。
【0059】
続いて、画像指定データの設定を行う。画像指定データの設定は、オペレータにより既登録ファイル一覧303の中から1のファイルが選択されることによって画像データとなるファイルが指定され、ファイル設定欄304に入力される。また、オペレータは、登録済みのIDをID欄305で選択することにより、ファイルを指定することも可能である。ここでは、「画像データ」として、図13に示すように、3つの画像ファイルが登録されており、これらの中から1の画像データを選択することができるものとし、本設定操作では、「炎柄(ID:U2)」が選択されたものとする。
【0060】
続いて、行番号の設定を行う。ここでは、印刷領域を特定するための行番号として、スタート文字列の行番号またはスタート文字列より1行下の行番号のいずれを取得させるか、並びにエンド文字列の行番号またはエンド文字列より1行上の行番号のいずれを取得させるかを設定することができる。つまり、印刷領域を、対象文字列を含む位置で特定するか、含まない位置で特定するかを設定することができる。ここでは、スタート文字列を「含む」位置(行)からエンド文字列を「含む」位置(行)までを印刷領域として特定するものとする。
【0061】
続いて、カラー設定を行う。ここでは、まず、カラー指定を行うか否かが設定される。そして、オペレータによりカラー設定を「指定する」にチェックされた場合は、カラー設定欄306において、画像データを印刷する印刷色が設定される。
【0062】
なお、ここでは、会計処理印刷データの印刷が主色「K(ブラック)」にて行われるように予め設定されているため、画像データは、「K(ブラック)」以外の印刷色(副色)が設定可能となっている。したがって、例えば、「K(ブラック」と「R(レッド)」のみの2色印刷を行う印刷装置では、印刷データが主色「K(ブラック」にて印刷される場合は、画像データは必然的に副色「R(レッド)」にて印刷されることになる。このように、印刷データが主色にて印刷され、画像データが副色にて印刷されることで、印刷データによって印刷される文字等の見やすさを損ねることなく、画像データを付加することができる。なお、本設定操作では、印刷色「Red(赤色)」が選択されたものとする。
【0063】
なお、カラー設定を「指定しない」にチェックされた場合、画像データは予め設定された印刷色(例えば、店舗のテーマカラーなど)で印刷されることになる。但し、画像データがカラーで登録されている場合などは、その登録されたカラーで印刷されるように構成しても良い。以上の内容の設定が完了すると、オペレータにより「OK」ボタン307がクリックされ、「定義テーブル」について設定された情報が、PC40内のRAM等のメモリに格納される。
【0064】
ここで、図9および図14を参照し、上記の設定による定義テーブル、および印刷結果について説明する。図9に示すように、定義テーブルには、上記の一連の操作により設定された情報にアイテムNo.が付され、ここでは、1のアイテム(アイテムNo.1)のみが設定されていることを示している。また、スタート文字列として「領収証」が設定され、且つ、エンド文字列として「お買いあげ」が設定されており、それぞれの行番号設定は「1」となっている。これは、その対象文字列を「含む」位置(行)で印刷領域を特定していることを示したものであり、その対象文字列を「含まない」位置(対象文字列が「スタート文字列」の場合はその1行下の行、また、対象文字列が「エンド文字列」の場合はその1行上の行が取得する行番号となる)で印刷領域を特定する場合は、「0」となる。
【0065】
また、画像指定データとして、「U2/C:fire.jpg」が設定されているが、テーブル上には、ファイル名「fire」で記憶されるようにしても良い。また、ファイル名に代えて、画像データファイル毎に付された連番、若しくは所定の法則に基づいて付された数値で記憶されるようにしても良い。ここでは、IDである「U2」に基づいて、画像指定No.「02」が記憶されるものとする。
【0066】
また、カラー指定として、「Red」が設定されているが、テーブル上には、カラー名に代えて、カラー毎に付されたカラー指定No.、若しくは所定の法則に基づいて付された数値で記憶されるようにしても良い。ここでは、カラー毎に付されたカラー指定No.(Redは「2」とする)が記憶されるものとする。
【0067】
続いて、定義テーブルに上記の情報が記憶されている場合であって、且つ会計処理印刷データにスタート文字列「領収証」およびエンド文字列「お買いあげ」が含まれている場合のデータ取得結果を同図に示す。すなわち、この場合は、”画像指定No.02の画像データを、行番号「x1」から「x2」の印刷領域にカラー指定No.2で印刷する”ことを示すデータを取得する。行番号「x1」および「x2」とは、それぞれスタート文字列「領収証」およびエンド文字列「お買いあげ」が含まれる行を示す行番号である。
【0068】
そして、上記のようなデータを取得した結果、得られる印刷結果が、図14に示す<印刷例1>である。ここに示すように、レシート61上には、会計処理印刷データ(図17参照)に画像データ「U2/C:fire.jpg」(炎柄;図13参照)が付加されており、その印刷色は「Red」となる。また、印刷領域は、スタート文字列「領収証」が含まれる行番号「x1」からエンド文字列「お買いあげ」が含まれる行番号「x2」までとなっている。さらに、ここに示すように、画像データは、スタート文字列が含まれる行からエンド文字列が含まれる行までの長さに応じて、繰り返し印刷される。
【0069】
なお、会計処理印刷データの中に、スタート文字列またはエンド文字列のいずれかのみが含まれる場合、すなわちスタート文字列およびエンド文字列の両方が含まれない場合は、印刷領域が特定できないため画像データの付加は行われない。但し、設計変更により、スタート文字列またはエンド文字列のいずれかを抽出した場合、スタート文字列から下方にx行分、またはスタート文字列からレシート終了行まで画像データを付加したり、エンド文字列から上方にy行分、またはエンド文字列からレシート開始行まで画像データを付加したりなどとすることも可能である。
【0070】
このように、本発明では、画像データの印刷領域が、画像付加設定コマンドに含まれるパラメータの一つである行番号で特定されるため、印刷装置50は、容易に印刷領域を決定し、画像データの付加処理を行うことができる。特に、特定文字列を、レシート上に必ず印刷される文字列(例えば「領収証」、「合計金額」など)とすることで、レシート長に応じて、適切な位置に画像データが印刷されたレシート61を発行することができる。
【0071】
続いて、図9に示すデータ取得結果に基づいて生成される画像付加設定コマンドについて、図11を参照して説明する。同図(a)は、画像付加設定コマンドの構成を示したものであるが、このうち「ESC I」が画像付加設定コマンドコードを示し、これに続く「n1,n2,n3,n4」がパラメータを示す(一般的にESCシーケンスと呼ばれるコマンドを利用している)。各パラメータは1byte(8bit)で構成されており、n1は、画像指定No.を示し、<印刷例1>の場合は「02」を表す。また、n2およびn3は、スタート行番号およびエンド行番号を示し、<印刷例1>の場合は「x1」および「x2」を表す。また、n4は、カラー情報(カラー指定No.)を示し、<印刷例1>の場合は「2」を表す(図9参照)。
【0072】
また、同図(b)に示すように、スタート行番号を示すパラメータ「n2」は、8bitのうち、最初の1bitで、行番号設定を表し(図9参照)、行番号を含む場合は「1」、含まない場合は「0」で表される。また、残りの7bitでは、スタート行番号(第1行ないし第128行)を表す。エンド行番号を示すパラメータ「n3」についても、同様の構成である。なお、各パラメータを構成するbit数およびパラメータの順序は適宜変更可能である。
【0073】
このように、本発明では、画像付加設定コマンドとして画像データを付加するための専用コマンドを設定し、会計処理印刷データと共に、各種情報をパラメータとして同時に送信可能することができる。これにより、受信した印刷装置50では、印刷処理等に支障をきたすことなく容易に画像データの付加処理(レシート印刷データの生成処理)を行うことができる。
【0074】
次に、PC40における会計処理印刷データ/画像付加設定コマンドの送信処理について、図7のフローチャートを参照して説明する。PC40は、キーボード43による入力またはバーコードリーダ44によるバーコードの読み取りによって商品に関する入力情報を取得し、これに基づいて会計処理印刷データを生成する(S11)。そして、会計処理印刷データを検索することによって、これに含まれる特定文字列(スタート文字列およびエンド文字列)を抽出する(S12)。
【0075】
このとき、特定文字列は、上記のとおり、予め設定されて定義テーブルとして記憶されている。そして、特定文字列(<印刷例1>の場合、スタート文字列「領収証」およびエンド文字列「お買いあげ」)を抽出した場合(S13:Yes)は、その特定文字列によって特定される行番号、並びに特定文字列に関連づけられて記憶されている画像指定データおよびカラー情報を取得する(S14;図9参照)。そして、その取得結果から画像付加設定コマンドを生成し(S15;図11参照)、会計処理印刷データと共に印刷装置50に送信し(S16)、処理を終了する(S18)。一方、特定文字列を抽出しなかった場合(S13:No)は、画像付加設定コマンドを生成することなく、会計処理印刷データのみを印刷装置50に送信する(S17)。
【0076】
続いて、上記のPC40における会計処理印刷データ/画像付加設定コマンドの送信処理に続く、印刷装置50におけるレシート印刷データ生成処理について、図8のフローチャートを参照して説明する。印刷装置50は、PC40から会計処理印刷データを取得すると(S21:Yes)、その会計処理印刷データと共に画像付加設定コマンドが送信されたか否かを判別する(S23)。取得したデータが、会計処理印刷データでない場合は(S21:No)、その指示に応じた処理を行う(S22)。また、画像付加設定コマンドが送信されていない場合は(S23:No)、画像データの付加処理を行うことなく(S24)、会計処理印刷データをそのままレシート印刷データとする(S27)。
【0077】
一方、会計処理印刷データと共に画像付加設定コマンドが送信された場合(S23:Yes)は、画像付加設定コマンドを解析し(S25)、行番号(スタート行番号およびエンド行番号)、画像指定データ(画像指定No.)およびカラー情報(カラー指定No.)を取得する(S26;図11(a)参照)。そして、取得した情報に基づき、会計処理印刷データに画像データを付加(スーパーポーズ)してレシート印刷データを生成し(S27)、処理を終了する(S28)。
【0078】
このように、本発明では、PC40によって生成された会計処理印刷データを検索することによって、画像データの印刷位置を示す特定文字列を抽出し、この特定文字列によって特定される行番号に基づいて画像付加設定コマンドを生成する。そして、PC40は、会計処理印刷データと共に、これを印刷装置50に送信する。一方、印刷装置50は、会計処理印刷データに、画像付加設定コマンドに基づいて画像データを付加し、レシート上に印刷するためのレシート印刷データを生成する。すなわち、この構成により、PC40と印刷装置50間のインターフェースとして低速インターフェースが用いられた場合でも、迅速に画像データを印刷することができる。また、PC40側で画像データを付加するための付加設定コマンドを生成するため、印刷装置50を直接操作することなくPC40により画像データの設定を行うことができる。
【0079】
ここで、幾つかの例を挙げて、その他の画像データの印刷例について説明する。図10(a)、図12(a)および図15は、<印刷例2>における、定義テーブル、データ取得結果、画像付加設定コマンドおよび印刷結果を示したものである。図10(a)に示すように、定義テーブルには、同じ画像データ「U0/C:hana.jpg」(花模様)を指定した2つのアイテムが記憶されている。この場合、データ取得結果は、同図に示すとおり、1の画像指定データに対して、スタート行番号、エンド行番号、カラー指定がセットになって、2組関連づけられた形式となり、2つの印刷領域に同じ画像データが印刷されることとなる。そのため、図12(a)に示すとおり、画像付加設定コマンドも、画像指定データを示すパラメータ「n1」の後に、スタート行番号、エンド行番号、カラー情報を示すパラメータ(「n2,n3,n4」および「n5,n6,n7」)がセットになって付加される。
【0080】
但し、<印刷例2>では、エンド文字列「領収証」に対する行番号設定が「0」となっているため(図10(a)参照)、パラメータ「n3」の、行番号設定を表す先頭bitは「0」となる(図11(b参照))。したがって、エンド文字列「領収証」が含まれる行は印刷領域と成らず、エンド文字列「領収証」が含まれる行から1行上の行までが印刷領域となる。
【0081】
そこで、図12(a)に示す画像付加設定コマンドが送信された場合の印刷結果を、図15に示した。ここに示すとおり、画像データ(花模様)が、2つの印刷領域に印刷され、1つ目の印刷領域(スタート行番号「x1」およびエンド行番号「x2」で特定される印刷領域)では、画像データが行番号「x1」から行番号「x2−1」まで印刷され、2つ目の印刷領域(スタート行番号「x3」およびエンド行番号「x4」で特定される印刷領域)では、画像データが行番号「x3」から行番号「x4」まで印刷されている。
【0082】
このように、<印刷例2>に示すとおり、同じ画像指定データに対して、複数の特定文字列が抽出された場合、より簡単な構成の画像付加設定コマンドで、画像データの付加設定を行うことができる。
【0083】
続いて、図10(b)、図12(b)および図16は、<印刷例3>における、定義テーブル、データ取得結果、画像付加設定コマンドおよび印刷結果を示したものである。図10(b)に示すように、定義テーブルには、異なる画像データ(「U3/C:syoku.jpg」,「U4/C:nichi.jpg」,「U5/C:iyaku.jpg」)に対して、それぞれスタート文字列およびエンド文字列が関連づけられた3つのアイテムが記憶されている。この場合、データ取得結果は、同図に示すとおり、各画像指定データに対して、スタート行番号、エンド行番号、カラー指定がそれぞれ関連づけられた形式となっている。そのため、図12(b)に示すとおり、画像付加設定コマンドも、画像指定データ、スタート行番号、エンド行番号、カラー情報を示すパラメータ(「n1,n2,n3,n4」および「n5,n6,n7、n8」・・・)がセットになって付加される。
【0084】
但し、<印刷例3>では、3つのアイテムが定義テーブルに記憶されているが、これらはスタート文字列が異なるものの、エンド文字列が全て同じ文字列「カテゴリ合計」である。この場合、スタート文字列から下側に存在し、且つ最上行に存在する文字列をそのスタート文字列に対するエンド文字列としている。このため、同じエンド文字列が異なるアイテムに記憶されていても、そのエンド文字列が複数会計処理印刷データ内に存在する場合、複数の画像データが重ねて印刷されることはない。
【0085】
そこで、図12(b)に示す画像付加設定コマンドが送信された場合の印刷結果を、図16に示した。ここに示すとおり、画像データ「U3/C:syoku.jpg」,「U4/C:nichi.jpg」および「U5/C:iyaku.jpg」に対して、それぞれのスタート文字列およびエンド文字列によって特定される印刷領域に印刷されている。また、エンド文字列が同じ文字列であっても、そのエンド文字列が複数会計処理印刷データ内に存在するため、3つの画像データが重ねて印刷されることはない。
【0086】
このように、<印刷例3>に示すとおり、複数の画像指定データを、異なる印刷領域に印刷する場合でも、1の画像付加設定コマンドで、画像データの付加設定を行うことができる。
【0087】
以上の通り、本発明によれば、画像指定データ、スタート文字列およびエンド文字列を関連づけ、定義テーブルとして複数記憶しておくことにより、会計処理印刷データに含まれる文字列に応じて、多種多様な画像データを所望する印刷領域に印刷することができる。
【0088】
特に、本実施形態のように、POSシステム10において本発明の印刷装置50が用いられる場合は、店のロゴなどを画像データとして記憶させておくことで、特定の領域に店のロゴが印刷されたレシート61を発行することができる。すなわち、レシートプリンタとして用いる印刷装置50に、画像データ(ロゴ)を格納するだけの小さなメモリを備えるだけで、視認性の高いレシートを作成することができると共に、顧客に対して店舗のイメージを強く印象づけ、宣伝効果を高めることができる。
【0089】
なお、上記の実施形態では、画像付加設定コマンドの生成が、PC40内の制御部140に組み込まれたプリンタドライバ109によって実現されるものとしたが、これを記録媒体に格納し、他のPCや印刷装置で生成プログラムを利用できるように構成しても良い。記憶媒体としては、ハードディスク、フラッシュROM、メモリカード(コンパクトフラッシュ(登録商標)、スマートメディア、メモリースティック等)、コンパクトディスク、光磁気ディスク、デジタルバーサタイルディスクおよびフレキシブルディスク等を利用することができる。
【0090】
以上の通り、本発明のレシート印刷データ生成方法、これを実現させるためのプログラム、記録媒体および印刷装置によれば、PC40から印刷装置50に画像データを送信するのではなく、印刷装置50内に画像データを記憶しておき、PC40から画像データを付加するための画像付加設定コマンドを送信するため、PC40と印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、伝送時間が問題とならず、処理効率を低下させることがない。
【0091】
また、印刷装置50では、画像付加設定コマンドに含まれるパラメータから行番号を取得することによって、容易に印刷位置を特定することができ、ひいては見栄えの良いレシートを作成することができるなどの作用・効果を奏する。
【0092】
また、画像データを付加するための画像付加設定コマンドを、プリンタドライバ109によって生成することにより、印刷装置50を直接操作することなく、PC40から画像データの設定を行うことができる。さらに、PC40が、単色・テキストベースのアプリケーションであっても、これを変更することなく、印刷装置50によってカラー・グラフィックベースのレシートを発行することができる。
【0093】
なお、上記の例では、会計処理印刷データが主色「K(ブラック)」にて行われるように予め設定されており、画像データは、「K(ブラック)」以外の印刷色(副色)が設定可能となっているものとしたが、画像データとして「K(ブラック)」を設定できるように構成しても良い。但し、この場合(会計処理印刷データと画像データが同色で印刷されるように設定された場合)、画像データは自動的に印刷濃度を低くして印刷されるように設定されることが好ましい。この構成によれば、会計処理印刷データの見やすさを損ねることなく、画像データを付加することができる。
【0094】
また、画像データだけでなく、会計処理印刷データの印刷色も設定可能に構成しても良い。但し、この場合も、画像データは会計処理印刷データの設定色以外の印刷色のみが設定可能に構成されるか、若しくは会計処理印刷データと画像データが同色で印刷されるように設定された場合、画像データは自動的に印刷濃度を低くして印刷されるように設定されることが好ましい。
【0095】
また、上記の例では、スタート文字列とエンド文字列の両方を設定するものとしたが、これら両方の設定がない場合は、デフォルト値にしたがって、画像データの印刷領域を特定するようにしても良い。例えば、スタート文字列の設定がない場合は、レシート61の前端から所定長さXの行から画像データを印刷開始し、エンド文字列の指定がない場合、レシート61の後端から所定長さYの行までで画像データの印刷を終了するようにしても良い。また、スタート文字列の指定がない場合は、会計処理印刷データに含まれる所定文字列(例えば「TEL:」など)が印刷される行から画像データを印刷開始し、エンド文字列の指定がない場合は、印刷データに含まれる他の所定文字列(例えば、「お買いあげありがとうございました。」など)が印刷される行までで画像データの印刷を終了するようにしても良い。これらの構成によれば、ユーザが印刷領域に拘らない場合に設定の手間を省くことができる。
【0096】
また、画像データ(定義テーブル)の設定は、図6に示した設定内容に限らず、画像データの拡大・縮小や回転角度の設定、2以上の画像データの指定およびそれらの印刷色の設定などを行い得るように構成しても良い。この構成によれば、さらに多様な画像データを付加することができる。
【0097】
また、上記の例では、印刷装置50として、インクジェット方式のものを使用するものとしたが、これに限らず、サーマルヘッド方式、ワイヤードット方式の印刷装置を使用しても良い。
【0098】
また、上述したPOSシステムの例によらず、例えば、サーバに接続されないスタンドアロンタイプのECR、キャッシュレジスタなど、システム構成や装置構成について、本発明の要旨を逸脱しない範囲で、適宜変更も可能である。
【0099】
【発明の効果】
上述のように、本発明のレシート印刷データ生成方法、これを実現させるためのプログラム、記録媒体および印刷装置によれば、ホストコンピュータ内に画像データを記憶して、ホストコンピュータから画像データを送信するのではなく、印刷装置内に画像データを記憶しておき、ホストコンピュータからは画像データを付加するための画像付加設定コマンドを送信するため、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、迅速に画像データを印刷することができるなどの効果を奏する。
【図面の簡単な説明】
【図1】本発明のPOSシステムの一例を示す構成図である。
【図2】本発明のPOSシステムを構成するPOS端末の外観斜視図である。
【図3】本発明のPCの機能ブロック図である。
【図4】本発明の印刷装置の機能ブロック図である。
【図5】本発明の印刷装置の制御ブロック図である。
【図6】本発明の画像データを設定するための設定画面の一例を示す図である。
【図7】本発明の会計処理印刷データ/画像付加設定コマンド送信処理の一例を示すフローチャートである。
【図8】本発明のレシート印刷データ生成処理の一例を示すフローチャートである。
【図9】本発明の定義テーブル、並びに会計処理印刷データから得られるデータ取得結果を示す図である。
【図10】本発明の定義テーブル、並びに会計処理印刷データから得られるデータ取得結果を示す図である。
【図11】本発明の画像付加設定コマンドコードの一例を示す図である。
【図12】本発明の画像付加設定コマンドコードの一例を示す図である。
【図13】画像データの一例を示す図である。
【図14】本発明によって作成されるレシートの一例である<印刷例1>を示す図である。
【図15】本発明によって作成されるレシートの一例である<印刷例2>を示す図である。
【図16】本発明によって作成されるレシートの一例である<印刷例3>を示す図である。
【図17】本発明の従来例におけるレシートの作成例を示す図である。
【符号の説明】
10    POSシステム
20    POS端末
30    POSサーバ
40    PC
41a   POSアプリケーション実行部
41b   コントロールオブジェクト
41c   サービスオブジェクト
41d   OS
47    印刷装置側インターフェース
50    印刷装置
51    PC側インターフェース
61    レシート
108    画像データ設定プログラム
109    プリンタドライバ
110    データ入出力部
120    印刷部
130    駆動部
140    制御部
141    CPU
142    ROM
143    CG−ROM
144    RAM
145    内部バス
201    定義テーブル設定部
202    会計処理印刷データ生成部
203    画像付加設定コマンド生成部
204    データ記憶部(PC)
205    データ送信部
231    データ取得部
232    データ記憶部(印刷装置)
233    コマンド解析部
234    レシート印刷データ生成部
235    印刷部
300    設定画面
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a receipt print data generating method for generating receipt print data by adding image data already stored to accounting print data generated by a host computer based on input information on merchandise sales. The present invention relates to a program, a recording medium, and a printing device for realizing the program.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, a POS system (point-of-sale information management system) used in a retail business such as a supermarket or a convenience store includes a host computer for acquiring input information on product sales and a printing device for printing on a receipt. A POS terminal is configured. As a POS terminal of this type, a printing apparatus receives accounting print data generated by a host computer, and prints it on a receipt based on the accounting print data (for example, see Patent Document 1). (See FIG. 17), but in recent years, in addition to the accounting processing print data, a type capable of printing image data such as a store logo is also known.
[0003]
[Patent Document 1]
JP-A-2001-273560 (pages 4-7, FIGS. 10-11)
[0004]
[Problems to be solved by the invention]
By the way, in a POS terminal that prints such accounting processing print data and image data on the same receipt, image data is stored in a host computer, and the image data and accounting data generated in the host computer are stored. After combining the print data with the processed print data, the data is transmitted to the printing apparatus. However, when the host computer and the printing apparatus are connected by using a low-speed interface, there is a problem in that data transmission takes a long time, and receipt issuance is delayed. For this reason, the processing efficiency has deteriorated as a whole, and the customer has to wait.
[0005]
The present invention has been made in view of the above-described problems, and even when a low-speed interface is used as an interface between a host computer and a printing apparatus, a receipt print data generation method capable of rapidly printing image data, a program for realizing the same, It is an object to provide a recording medium and a printing device.
[0006]
[Means for Solving the Problems]
The receipt print data generating method according to the present invention is a receipt print that generates receipt print data by adding image data already stored to accounting print data generated by a host computer based on input information regarding product sales. A data generation method, comprising: an image data storage step of storing image data; an accounting print data acquisition step of acquiring accounting print data from a host computer; and printing by adding image data from the host computer. An image addition setting command obtaining step of obtaining the image addition setting command; a command analysis step of analyzing the image addition setting command to obtain a line number indicating a print position of the image data; and accounting processing print data based on the line number. Receipt print data that generates receipt print data by adding image data to Characterized by comprising a data generating step.
[0007]
Further, the printing apparatus of the present invention is a printing apparatus that generates receipt print data by adding image data already stored to accounting print data generated by a host computer based on input information regarding product sales. Image data storage means for storing image data; accounting print data acquisition means for acquiring accounting print data from a host computer; and an image addition setting command for adding and printing image data from the host computer. Means for acquiring an image addition setting command to be acquired, command analysis means for analyzing the image addition setting command and acquiring a line number indicating a print position of the image data, and adding image data to the accounting processing print data based on the line number. Receipt data generating means for generating receipt print data by means of To.
[0008]
These receipt print data generation methods and printing apparatuses store image data in the printing apparatus, and acquire accounting processing print data and an image addition setting command for adding image data from the host computer. Then, by analyzing the image addition setting command, a line number indicating the print position is obtained, and the image data is added to the accounting processing print data based on the line number. Therefore, even when a low-speed interface is used as an interface between the host computer and the printing apparatus, image data can be printed quickly. Further, since the host computer generates an additional setting command for adding image data, the host computer can perform additional setting of image data without directly operating the printing apparatus. Further, since the print position of the image data is specified by the line number which is one of the parameters included in the image addition setting command, the printing apparatus can easily determine the print area and perform the image data addition processing. Can be. In particular, by using a predetermined character string as a character string that is always printed on the receipt (for example, “receipt”, “total amount”, etc.), image data is printed at an appropriate position according to the receipt length. A receipt can be issued.
[0009]
In this case, the image addition setting command includes a start line number indicating a position where image data addition is started, and a parameter regarding an end line number indicating a position where image data addition is ended. It is preferable to obtain two line numbers, and an end line number.
[0010]
Further, in this case, the image addition setting command includes a start line number indicating a position where image data addition is started, and an end line number indicating a position where image data addition is ended. Preferably, two line numbers, a line number and an end line number, are obtained.
[0011]
According to these configurations, image data can be added between the start line number and the end line number. That is, since the additional area of the image data can be an area specified by the start line number and the end line number, it is necessary to issue a receipt in which image data is printed in an appropriate area according to the receipt length. Can be.
[0012]
In these cases, in the image data storage step, a plurality of image data files are stored, and the image addition setting command sets a parameter relating to image designation data for designating one image data file from among the plurality of image data files. In the command analysis step, it is preferable to acquire image designation data from an image addition setting command.
[0013]
In these cases, the image data storage means stores a plurality of image data files, and the image addition setting command relates to image designation data for designating one image data file from among the plurality of image data files. It is preferable that the command analysis unit includes parameters and obtains the image designation data from the image addition setting command.
[0014]
According to these configurations, a plurality of image data files are stored, and the image addition setting command includes a parameter relating to image designation data for designating one image data file from among the plurality of image data files. By changing the parameters relating to the image designation data, various image data can be added. Therefore, various receipts can be created.
[0015]
In these cases, the method further includes a color printing step of performing color printing using the main color and at least one sub-color other than the main color. In the color printing step, the accounting print data is printed in the main color, and the image data is printed. Is preferably printed with at least one sub color.
[0016]
In these cases, the apparatus further includes a color printing unit that performs color printing using the main color and at least one sub-color other than the main color. The color printing unit prints the accounting processing print data in the main color, Preferably, the image data is printed in at least one sub-color.
[0017]
According to these configurations, since the accounting print data is printed in the main color and the image data is printed in the sub color, the image data can be added without impairing the legibility of the accounting print data. Further, since color printing is possible, the visibility of the receipt can be improved.
[0018]
In this case, the host computer can set the print color of the image data, and the image addition setting command preferably includes a parameter indicating the print color.
[0019]
According to these configurations, since the image addition setting command includes the parameter indicating the print color, various image data can be added by changing the parameter indicating the print color. Therefore, various receipts can be created.
[0020]
A program according to the present invention causes a computer to implement the receipt print data generation method according to any one of the above.
[0021]
According to this configuration, even when a low-speed interface is used as an interface between the host computer and the printing apparatus, it is possible to provide a program capable of rapidly printing image data.
[0022]
A recording medium according to the present invention has the program described above recorded thereon.
[0023]
According to this configuration, even when a low-speed interface is used as an interface between the host computer and the printing apparatus, it is possible to provide a recording medium on which a program capable of rapidly printing image data is recorded.
[0024]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, a receipt print data generation method according to an embodiment of the present invention, a program for realizing the method, a recording medium, and a printing apparatus will be described in detail with reference to the accompanying drawings. According to the present invention, a specific character string indicating a print position of image data is extracted from the accounting processing print data by the host computer, and the image data is added to the accounting processing printing data based on the line number specified by the specific character string. An image addition setting command for adding data is generated. Then, the printing apparatus adds receipt of the image data to the accounting processing print data based on the line number acquired from the image addition setting command, and generates receipt print data for printing on the receipt.
[0025]
That is, with this configuration, even when a low-speed interface is used as an interface between the host computer and the printing device, the printing device can quickly print image data. Also, by generating an image addition setting command by a printer driver incorporated in the host computer, even if the host computer is, for example, a monochrome / text-based application, the printing apparatus can change the color / graphics-based application without changing the application. Can issue a receipt. In addition, the printing device can easily specify the printing position by obtaining the line number from the image addition setting command, and thus has an operation and effect such that a good-looking receipt can be created. is there.
[0026]
Therefore, the following describes an example of a POS system that is used in a store such as a supermarket or a convenience store and issues a receipt based on input information on product sales input by an operator.
[0027]
As shown in FIG. 1, a POS system 10 of the present invention is a POS system, which is a plurality of merchandise sales data processing devices that mainly acquire input information by reading bar codes attached to merchandise by an operator (user). It comprises a terminal 20 (only one is shown) and a POS server 30 interconnected with the POS terminal 20 via a network and managing input information input to the POS terminal 20.
[0028]
The POS server 30 has memories such as a ROM 32 and a RAM 33 in addition to the control device (CPU 31), and processes information stored in a buffer 39 and the like in the RAM 33 according to a control program stored in the ROM 32. In particular, the RAM 33 has a product master including a product code block 35, a product name block 36, an amount block 37, an inventory block 38, and the like. The CPU 31 performs, based on input information transmitted from the POS terminal 20, Information about a product code, a product name, and a price is extracted from the product master, and product data used for printing on the receipt 61 and for displaying on the display 42 of the POS terminal 20 is generated. The “product data” is data that is the basis of accounting print data generated by the PC 40 and includes product information such as a product name printed on the receipt 61 and the amount of the product.
[0029]
The POS terminal 20 refers to the merchandise data of the POS server 30 based on the input information, and outputs accounting processing print data (such as merchandise information, a store name, a telephone number, a date, a message to the customer, etc., in addition to the merchandise information). A personal computer (PC) 40 having a POS application execution unit 41a for generating data and commands for printing; see FIG. 17) and performing a money registration process such as registering input data in the POS server 30; A printing apparatus 50 (receipt printer) for printing on a receipt 61 based on print data is provided, and is connected to each other via connectors 46 and 53.
[0030]
The PC 40 acquires input information such as information on merchandise (product information) and information on the customer 60 (customer information) by inputting using the keyboard 43 or reading a barcode using the barcode reader 44. Further, the credit card or the membership card of the customer 60 is read by the card reader 45, and information on the credit settlement and information on the member such as the membership number are acquired. Further, it has a display 42 for displaying merchandise information generated based on the merchandise data transmitted from the POS server 30, and presents the price of the purchased merchandise to the customer 60.
[0031]
Control of the PC 40 is performed by a printer driver OLE for Retail POS (hereinafter, referred to as OPOS) which operates on an OS such as Windows (registered trademark). The OPOS provides the POS application 41a running on the OS with an interface that is independent of the model with peripheral devices such as the printing device 50 and the barcode reader 44, and is compatible with each device category. It is composed of a control object (CO) 41b and a service object (SO) 41c corresponding to each device model.
[0032]
The POS application 41a generates accounting print data for printing on the receipt 61 based on the product data and input information transmitted from the POS server 30, and the accounting print data is transmitted to the printing device via the OS 41d. To the CO 41b, and then from the CO 41b to the SO 41c corresponding to the model of the printing apparatus 50. The SO 41 c processes the print data, generates a print command according to the command specification of the printing device 50, and transmits the command to the printing device 50. The OPOS described above is provided to the user as the printer driver 109 in a form in which the SO41c and the CO41b are combined.
[0033]
In the SO 41c, an image data setting program 108 for generating an image addition setting command for adding image data to accounting print data and performing various settings of the image data is installed. Although a specific description will be given later, the image data setting program 108 provides a user with an interface for setting image data by displaying a predetermined setting screen 300 (see FIG. 6) on the display 42. is there. As described above, since the image data setting program (utility execution program) 108 is provided by the printer driver 109, the image data can be set from the PC 40 without changing the POS application 41a of the PC 40.
[0034]
On the other hand, the printing apparatus 50 is an inkjet printer that performs printing by an inkjet method, and includes a printing unit 120 having six inkjet heads, a first print head 55a to a sixth print head 55f. These inkjet heads 55 discharge full-color printing by ejecting M (magenta), C (cyan), Y (yellow), LM (light magenta), LC (light cyan), and K (black) inks, respectively. It is configured to be able to. The configuration of the print head 55 is not limited to this, and the print head 55 may be configured to increase the number of heads to perform multi-color printing, or to reduce the number of heads to perform printing of only one color or two colors. It is good also as a structure which performs.
[0035]
The printing apparatus 50 sets one of a monochrome print mode in which printing is performed only by the sixth print head 55f and a color print mode in which printing is performed by all print heads using a dip switch or a soft dip switch (not shown). It is possible. Then, the PC 40 acquires the information on the mode setting, and can determine whether or not to include the color information in the generated print data. Therefore, when the color print mode is set and the print data includes color information, two-color or multicolor printing can be performed on the receipt 61 based on the color data. In the following description, the printing apparatus 50 is set to the color print mode, the accounting print data is printed in the primary color “K (black)”, and the image data is printed in the primary color (K (black)). It is assumed that printing is performed in a specified sub color other than.
[0036]
Next, the device configuration of the POS terminal 20 will be described with reference to FIG. FIG. 2A is a front perspective view of the POS terminal 20 as viewed from an operation side by an operator, and FIG. 2B is a rear perspective view of the POS terminal 20 as viewed from a customer. As shown in both figures, the POS terminal 20 is constituted by a PC 40 forming a main part of a box-shaped main body case 48 and a printing device 50 arranged on the rear left side of the main body case 48. Note that the printing device 50 is connected to the main body case 48 via a cable, so that the printing device 50 is not limited to this arrangement, and can be arranged at an arbitrary location as long as the cable length allows.
[0037]
The PC 40 has a keyboard 43 on which an operator inputs information such as merchandise information and customer information on a front upper surface of a main body case 48, and an operator display 42a on which an operator checks input information on a rear right side. A cash drawer 49 is accommodated in 48. A bar code reader 44 for reading a bar code attached or printed on a product is provided on the right side surface of the main body case 48, and a printing device side interface 47 for connecting to a printing device 50 is provided on the left side surface. On the right side of is formed a card reader slot 45 for reading a credit card presented by the customer 60. Further, on the back side of the main body case 48, a customer display 42b for the customer 60 to check product information and the like is arranged. The setting screen (see FIG. 6) for setting the image data is displayed on the above-mentioned operator-side display 42a, and the operator performs the setting operation while checking this.
[0038]
On the other hand, the printing apparatus 50 has an operation display lamp 65 and a PC-side interface 51 on the front side thereof. The PC-side interface 51 and the printing-side interface 47 provided in the PC 40 are connected to a cable 63 and a connector. They are connected via 46 and 53. On the upper surface of the printing device 50, a receipt outlet 64 for discharging the printed receipt 61 is formed.
[0039]
Next, the control configuration of the PC 40 will be described with reference to the functional block diagram of FIG. The PC 40 includes a definition table setting unit 201 that sets a definition table (see FIG. 9 and the like) that is a reference table for generating an image addition setting command, an accounting processing print data generation unit 202 that generates accounting processing print data, A data storage unit 204 that has an image addition setting command generation unit 203 that generates an image addition setting command, a definition table storage unit 221, an accounting processing print data storage unit 222, and an image addition setting command storage unit 223, and stores various data. And a data transmission unit 205 having an accounting processing print data transmission unit 225 and an image addition setting command transmission unit 226, and transmitting the accounting processing print data and the image addition setting command via the printing device-side interface 47. I have. The definition table setting unit 201 and the image addition setting command generation unit 203 are realized mainly by the printer driver 109.
[0040]
The definition table setting unit 201 is executed by the image data setting program 108 provided by the printer driver 109, and sets a specific character string (a start character string and an end character string (see FIG. 14, etc.) indicating the print position of the image data). A character string setting unit 211, an image designation data setting unit 212 for setting image designation data (eg, a file name) for designating image data to be added, and a line number for specifying a print position of the image data A line number setting unit 213 for setting a pattern (to be described in detail later) and a color information setting unit 214 for setting a print color of image data are provided. The setting items in the definition table setting unit 201 are set by the user inputting necessary items on the setting screen 300 (see FIG. 6), and the input information is stored in a memory such as a RAM, It can be rewritten according to.
[0041]
The image addition setting command generation unit 203 includes a character string extraction unit 216 that searches the accounting processing print data and extracts a specific character string, a line number acquisition unit 217 that obtains a line number specified by the specific character string, and a definition. And an image designation data acquisition unit 218 for acquiring image designation data associated with a specific character string from the table. The image addition setting command “ESC I n1, n2, n3.・ ・ ”Is generated. The configuration of the image addition setting command will be described later.
[0042]
Then, the PC 40 extracts a specific character string from the accounting process print data generated by the accounting process print data generation unit 202 according to the definition table set by the definition table setting unit 201 by the above configuration, The image addition setting command generation unit 203 generates an image addition setting command based on the line number specified by the specific character string and the image designation data associated with the specific character string. Then, the generated accounting processing print data and the image addition setting command are transmitted to the printing apparatus 50 by the data transmission unit 205.
[0043]
Subsequently, a control configuration of the printing apparatus 50 will be described with reference to a functional block diagram of FIG. The printing device 50 includes a data acquisition unit 231 that acquires accounting print data and an image addition setting command from the PC 40 via the PC-side interface 51, and data that stores the acquired data and a plurality of image data files (see FIG. 13). A storage unit 232, a command analysis unit 233 that analyzes the image addition setting command transmitted from the PC 40, a receipt print data generation unit 234 that generates receipt print data for printing on the receipt 61, and a receipt print data. A printing unit 235 for performing printing.
[0044]
The data acquisition unit 231 has an accounting processing print data acquisition unit 241 and an image addition setting command acquisition unit 242, and sends data to the accounting processing print data storage unit 245 and the image addition setting command storage unit 246, respectively. Actually, the accounting processing print data and the image addition setting command are transmitted at the same time, and the image addition setting command is extracted from the accounting processing printing data to perform the analysis processing. Here, in order to facilitate the description, the accounting processing print data and the image addition setting command are illustrated as separately acquired and stored. Therefore, the accounting processing print data is configured by a data command for printing product data excluding the image addition setting command.
[0045]
The data storage unit 232 includes an image data storage unit 244, a transaction print data storage unit 245, and an image addition setting command storage unit 246. The image data storage unit 244 stores a plurality of image data files in advance. Have been. In the plurality of image data files, data read by a scanner or the like by the PC 40 and data created by drawing software are registered on a setting screen 300 executed by the image data setting program 108 (see FIG. The data transmitted to the printing apparatus 50 is stored in the image data storage unit 244, and can be appropriately rewritten according to the needs of the user.
[0046]
The command analysis unit 233 analyzes the image addition setting command transmitted from the PC 40 to obtain a line number, and also obtains the image designation data (file name, image designation number, etc.) from the image addition setting command. ), And a color information acquisition unit 250 for acquiring color information indicating the print color of the image data from the image addition setting command. The acquired information is stored in a RAM 144 described later. Is stored.
[0047]
According to the above configuration, the printing apparatus 50 acquires the accounting processing print data and the image addition setting command by the data acquisition unit 231 and analyzes the image addition setting command by the command analysis unit 233 to obtain the line number and the image designation data. And color information. Further, based on the information, the receipt print data generation unit 234 adds image data to the accounting processing print data to generate receipt print data.
[0048]
FIG. 5 is a control block diagram of the printing apparatus 50. As shown in FIG. 5, the printing apparatus 50 has a PC-side interface 51. Driving the inkjet head 55 with a data input unit 110 for inputting data, a printing unit 120 having six inkjet heads 55 for performing color printing by ejecting inks of different colors, and a head driver 131 And a control unit 140 that controls the entire printing apparatus 50.
[0049]
The control unit 140 has a CPU 141, a ROM 142, a CG-ROM 143, and a RAM 144, and is connected to each other by an internal bus 145. The ROM 142 has a control data block 142b for storing control data including various tables in addition to a control program block 142a for storing a control program to be processed by the CPU 141. Further, the CG-ROM 143 stores font data of characters to be printed, and outputs a corresponding font data when a code for specifying the characters is given.
[0050]
The RAM 144 includes, in addition to various work area blocks 151 used as flags and the like, an image data block 152 that stores a plurality of image data files, an accounting print data block 153 that stores accounting print data transmitted from the PC 40, An image addition setting command block 154 for storing information relating to an analysis result of the image addition setting command; and a receipt print data block 155 for storing receipt print data generated by adding image data to the accounting processing print data. Used as a work area for control processing. The RAM 144 is always backed up so as to retain the stored data even when the power is turned off.
[0051]
The image addition setting command block 154 includes a line number block 157 that stores a line number, image designation data, and color information obtained as a result of the analysis of the image addition setting command, an image designation data block 158, and a color information block 159, respectively. Information obtained by each unit of the command analysis unit 233 (see FIG. 4) is stored.
[0052]
The internal bus 145 is also connected to the data input unit 110 and the drive unit 130 to receive input data (image addition setting command, accounting processing print data, etc.) from the PC-side interface 51 (see FIG. 4), and to receive data from the CPU 151 and the like. The output data (such as receipt print data) and the control signal are output to the drive unit 130 (head driver 131).
[0053]
With the above-described configuration, the CPU 141 inputs various signals and data from each unit in the printing apparatus 50 based on the control program in the ROM 142, processes various data and the like in the RAM 144, and sends various signals to each unit. -Output data, etc., analyze the image addition setting command, generate receipt print data by adding image data to accounting processing print data according to the analysis result, and print based on this. , The printer 50 as a whole.
[0054]
The PC-side interface 51 and the printing-device-side interface 47 provided in the PC 40 are connected to serial data transfer such as RS-232 standard, parallel data transfer such as Centronics standard, and network connection such as Ethernet (registered trademark) 10Base-T. , Or a device corresponding to a data transfer standard such as USB.
[0055]
If the internal TTL (Transistor Transistor Logic) of the PC 40 and the driving voltage level of the inside of the printing apparatus 50 are different, the PC side interface 51 and the printing apparatus side interface 47 may include a driver circuit for performing level conversion. preferable. According to this configuration, the signal level can be easily converted.
[0056]
Next, the image data setting process will be described with reference to FIG. The setting of the image data is performed by the PC 40 executing the image data setting program 108 (see FIG. 1). Specifically, when the image data setting program 108 is started, a setting screen as shown in FIG. 6 is displayed on the operator side display 42a, and the setting is performed by the operator inputting various information.
[0057]
As shown in the figure, on the setting screen 300, various kinds of information for setting image data can be set on a plurality of screens, and an operator (user) opens a desired setting screen to perform setting. I will go. When the setting screen of the first tab "Basic" is opened, the width size of the receipt 61, the print density of the image data, the print quality, and the like can be set, and the contents are almost the same as those of a normal print setting utility. Here, the description is omitted. Further, when the setting screen of the third tab “Register image data” is opened, the image data as shown in FIG. 13 can be registered. Is omitted. Therefore, only the setting screen of the tab “definition table” will be described here.
[0058]
As shown in FIG. 6, on the "definition table" setting screen 300, first, a specific character string is set. The specific character string is composed of a start character string and an end character string. The former indicates a position where image data addition is started, and the latter indicates a position where image data addition ends. The operator may select the start character string and the end character string from the character strings already registered by the upper and lower icons of the start character string setting column 301 and the end character string setting column 302. A character string may be directly input to 301 and 302. Here, it is assumed that “receipt” is set as the start character string and “purchase” is set as the end character string.
[0059]
Subsequently, image designation data is set. In the setting of the image designation data, a file to be image data is designated by selecting one file from the registered file list 303 by the operator, and is input to the file setting column 304. The operator can also specify a file by selecting a registered ID in the ID column 305. Here, as shown in FIG. 13, three image files are registered as “image data”, and it is assumed that one image data can be selected from the three image files. Pattern (ID: U2) "is selected.
[0060]
Subsequently, a line number is set. Here, as the line number for specifying the print area, whether the line number of the start character string or the line number one line below the start character string is obtained, and the line number of the end character string or the end character string It is possible to set which of the line numbers one line above is to be acquired. That is, it is possible to set whether the print area is specified at a position including the target character string or at a position not including the target character string. Here, it is assumed that a region from a position (line) including the start character string to a position (line) including the end character string is specified as a print area.
[0061]
Subsequently, color setting is performed. Here, first, it is set whether or not to perform color designation. When the operator selects “specify” for the color setting, a print color for printing the image data is set in the color setting column 306.
[0062]
Here, since the printing of the accounting process print data is set in advance so as to be performed in the primary color “K (black)”, the image data is printed in a print color (sub color) other than “K (black)”. ) Can be set. Therefore, for example, in a printing apparatus that performs two-color printing of only “K (black)” and “R (red)”, if print data is printed in the main color “K (black)”, image data is inevitable. Is printed in the sub color “R (red).” As described above, the print data is printed in the main color, and the image data is printed in the sub color, so that the print data is printed by the print data. It is possible to add image data without deteriorating the legibility of characters, etc. In this setting operation, it is assumed that the print color “Red (red)” has been selected.
[0063]
If the color setting is checked to "not specify", the image data is printed in a preset printing color (for example, a theme color of a store). However, when the image data is registered in color, the image data may be printed in the registered color. When the above settings are completed, the operator clicks an "OK" button 307, and the information set for the "definition table" is stored in a memory such as a RAM in the PC 40.
[0064]
Here, with reference to FIG. 9 and FIG. 14, the definition table based on the above settings and the print result will be described. As shown in FIG. 9, in the definition table, information set by the above-described series of operations includes item No. Here, it is indicated that only one item (item No. 1) is set. Also, “receipt” is set as the start character string, and “purchase” is set as the end character string, and each line number setting is “1”. This indicates that the print area is specified at a position (line) that “includes” the target character string, and a position that does not include the target character string (the target character string is “start character string”). ", The line number one line below the line, and if the target character string is the" end character string, "the line number one line above is the line number to be obtained. ".
[0065]
Although “U2 / C: fire.jpg” is set as the image designation data, it may be stored as a file name “fire” on the table. Further, instead of the file name, a serial number assigned to each image data file or a numerical value assigned based on a predetermined rule may be stored. Here, based on the ID “U2”, the image designation No. “02” is assumed to be stored.
[0066]
Although “Red” is set as the color designation, the color designation No. assigned to each color is displayed on the table instead of the color name. Alternatively, it may be stored as a numerical value assigned based on a predetermined rule. Here, the color designation No. assigned to each color is used. (Red is “2”).
[0067]
Next, a data acquisition result in the case where the above information is stored in the definition table and the start character string “receipt” and the end character string “purchase” are included in the accounting print data. Is shown in FIG. That is, in this case, the image data of “image designation No. 02 is stored in the print area of line numbers“ x1 ”to“ x2 ”in the color designation No. 2 is obtained. The line numbers “x1” and “x2” are the line numbers indicating the lines including the start character string “receipt” and the end character string “purchase”, respectively. is there.
[0068]
Then, a printing result obtained as a result of acquiring the data as described above is <Printing Example 1> shown in FIG. As shown here, the image data “U2 / C: fire.jpg” (flame pattern; see FIG. 13) is added to the accounting processing print data (see FIG. 17) on the receipt 61, and the print color Becomes “Red”. Further, the print area includes a line number “x1” including a start character string “receipt” to a line number “x2” including an end character string “purchase”. Further, as shown here, the image data is repeatedly printed according to the length from the line including the start character string to the line including the end character string.
[0069]
Note that if only one of the start character string and the end character string is included in the accounting print data, that is, if both the start character string and the end character string are not included, the print area cannot be specified, and No data is added. However, when either the start character string or the end character string is extracted due to a design change, image data is added below x lines from the start character string or from the start character string to the receipt end line, or the end character string is added. It is also possible to add image data from the end to the y-line or from the end character string to the receipt start line.
[0070]
As described above, in the present invention, since the print area of the image data is specified by the line number which is one of the parameters included in the image addition setting command, the printing apparatus 50 easily determines the print area and Data addition processing can be performed. In particular, by making the specific character string a character string that is always printed on the receipt (for example, “receipt”, “total amount”, etc.), the receipt where the image data is printed at an appropriate position according to the receipt length 61 can be issued.
[0071]
Next, an image addition setting command generated based on the data acquisition result shown in FIG. 9 will be described with reference to FIG. FIG. 11A shows the configuration of the image addition setting command, in which “ESC I” indicates the image addition setting command code, and “n1, n2, n3, n4” following this are the parameters. (A command generally called an ESC sequence is used). Each parameter is composed of 1 byte (8 bits), and n1 is an image designation No. In the case of <Print Example 1>, “02” is indicated. Further, n2 and n3 indicate a start line number and an end line number, and in the case of <print example 1>, represent "x1" and "x2". Further, n4 indicates color information (color designation No.), and in the case of <print example 1>, indicates "2" (see FIG. 9).
[0072]
Also, as shown in FIG. 9B, the parameter “n2” indicating the start line number indicates the line number setting in the first 1 bit of the 8 bits (see FIG. 9). 1 ", and" 0 "when not included. The remaining 7 bits indicate a start line number (first to 128th lines). The parameter “n3” indicating the end row number has the same configuration. The number of bits forming each parameter and the order of the parameters can be changed as appropriate.
[0073]
As described above, according to the present invention, it is possible to set a dedicated command for adding image data as an image addition setting command, and simultaneously transmit various information as parameters together with the accounting processing print data. Thus, the printing apparatus 50 that has received the image data can easily perform the addition processing of the image data (the processing of generating the receipt print data) without hindering the print processing and the like.
[0074]
Next, transmission processing of the accounting processing print data / image addition setting command in the PC 40 will be described with reference to the flowchart of FIG. The PC 40 obtains input information on the product by inputting with the keyboard 43 or reading a barcode with the barcode reader 44, and generates accounting processing print data based on the input information (S11). Then, the specific character strings (start character string and end character string) included therein are extracted by searching the accounting processing print data (S12).
[0075]
At this time, the specific character string is set in advance and stored as a definition table as described above. Then, when a specific character string (in the case of <Print Example 1>, the start character string “receipt” and the end character string “purchase”) is extracted (S13: Yes), the line specified by the specific character string is extracted. The number, image designation data and color information stored in association with the specific character string are acquired (S14; see FIG. 9). Then, an image addition setting command is generated from the obtained result (S15; see FIG. 11), transmitted to the printing device 50 together with the accounting processing print data (S16), and the process is terminated (S18). On the other hand, if the specific character string has not been extracted (S13: No), only the accounting processing print data is transmitted to the printing device 50 without generating an image addition setting command (S17).
[0076]
Next, the receipt print data generation processing in the printing device 50 subsequent to the above-described accounting processing print data / image addition setting command transmission processing in the PC 40 will be described with reference to the flowchart in FIG. Upon acquiring the accounting processing print data from the PC 40 (S21: Yes), the printing apparatus 50 determines whether an image addition setting command has been transmitted together with the accounting processing printing data (S23). If the acquired data is not the accounting processing print data (S21: No), a process according to the instruction is performed (S22). If the image addition setting command has not been transmitted (S23: No), the accounting processing print data is used as receipt print data without performing the image data addition processing (S24).
[0077]
On the other hand, when the image addition setting command is transmitted together with the accounting processing print data (S23: Yes), the image addition setting command is analyzed (S25), the line number (start line number and end line number), and the image designation data ( Image designation No.) and color information (color designation No.) are acquired (S26; see FIG. 11A). Then, based on the acquired information, image data is added (super paused) to the accounting processing print data to generate receipt print data (S27), and the process ends (S28).
[0078]
As described above, in the present invention, by searching the accounting processing print data generated by the PC 40, the specific character string indicating the print position of the image data is extracted, and based on the line number specified by the specific character string. Generate an image addition setting command. Then, the PC 40 transmits this to the printing apparatus 50 together with the accounting processing print data. On the other hand, the printing apparatus 50 adds the image data to the accounting processing print data based on the image addition setting command, and generates receipt print data for printing on the receipt. That is, with this configuration, even when a low-speed interface is used as an interface between the PC 40 and the printing device 50, image data can be printed quickly. Further, since the PC 40 generates an additional setting command for adding image data, the PC 40 can set image data without directly operating the printing apparatus 50.
[0079]
Here, printing examples of other image data will be described with some examples. FIGS. 10A, 12A and 15 show the definition table, the data acquisition result, the image addition setting command, and the print result in <Print Example 2>. As shown in FIG. 10A, two items specifying the same image data “U0 / C: hana.jpg” (flower pattern) are stored in the definition table. In this case, as shown in the drawing, the data acquisition result is such that a set of a start line number, an end line number, and a color designation is set for one image designation data, and two sets are associated with each other. The same image data is printed in the area. Therefore, as shown in FIG. 12A, the image addition setting command also includes a parameter (“n2, n3, n4”) indicating a start line number, an end line number, and color information after a parameter “n1” indicating image designation data. And "n5, n6, n7") are added as a set.
[0080]
However, in <Printing Example 2>, since the line number setting for the end character string “receipt” is “0” (see FIG. 10A), the first bit representing the line number setting of the parameter “n3” Becomes "0" (see FIG. 11B). Therefore, a line including the end character string “receipt” does not form a print area, and a line from the line including the end character string “receipt” to a line one line above becomes a print area.
[0081]
FIG. 15 shows a print result when the image addition setting command shown in FIG. 12A is transmitted. As shown here, the image data (flower pattern) is printed in two print areas, and in the first print area (the print area specified by the start line number “x1” and the end line number “x2”), The image data is printed from the line number “x1” to the line number “x2-1”, and in the second print area (the print area specified by the start line number “x3” and the end line number “x4”), Data is printed from line number “x3” to line number “x4”.
[0082]
Thus, as shown in <Printing Example 2>, when a plurality of specific character strings are extracted from the same image designation data, the image data addition setting is performed using an image addition setting command having a simpler configuration. be able to.
[0083]
Next, FIGS. 10B, 12B, and 16 show the definition table, the data acquisition result, the image addition setting command, and the printing result in <Printing Example 3>. As shown in FIG. 10B, different image data (“U3 / C: syoku.jpg”, “U4 / C: nichi.jpg”, and “U5 / C: iyaku.jpg”) are stored in the definition table. On the other hand, three items each having a start character string and an end character string associated with each other are stored. In this case, the data acquisition result has a format in which a start line number, an end line number, and a color designation are associated with each image designation data as shown in FIG. Therefore, as shown in FIG. 12B, the image addition setting command also includes parameters (“n1, n2, n3, n4” and “n5, n6,” indicating image designation data, a start line number, an end line number, and color information. n7, n8 ") are added as a set.
[0084]
However, in <Printing Example 3>, although three items are stored in the definition table, they have different start character strings, but all have the same end character string “category total”. In this case, the character string existing below the start character string and in the uppermost line is set as the end character string for the start character string. For this reason, even if the same end character string is stored in a different item, if the end character string exists in the multiple accounting processing print data, a plurality of image data will not be printed in an overlapping manner.
[0085]
FIG. 16 shows a print result when the image addition setting command shown in FIG. 12B is transmitted. As shown here, for the image data “U3 / C: syoku.jpg”, “U4 / C: nichi.jpg” and “U5 / C: iyaku.jpg”, the respective start character strings and end character strings are used. Printed in the specified print area. Further, even if the end character string is the same character string, since the end character string exists in the multiple accounting processing print data, the three image data are not printed in an overlapping manner.
[0086]
In this way, as shown in <Printing Example 3>, even when a plurality of image designation data are printed in different print areas, the addition setting of the image data can be performed by one image addition setting command.
[0087]
As described above, according to the present invention, the image designation data, the start character string, and the end character string are associated with each other and stored as a plurality of definition tables, so that various types of data can be provided in accordance with the character strings included in the accounting processing print data. Image data can be printed in a desired print area.
[0088]
In particular, when the printing apparatus 50 of the present invention is used in the POS system 10 as in the present embodiment, a store logo or the like is stored as image data so that the store logo is printed in a specific area. A receipt 61 can be issued. In other words, simply by providing the printing device 50 used as a receipt printer with a small memory for storing image data (logo), a receipt with high visibility can be created, and the image of the store can be enhanced for the customer. Impress and enhance the advertising effect.
[0089]
In the above embodiment, the generation of the image addition setting command is realized by the printer driver 109 incorporated in the control unit 140 in the PC 40. However, this is stored in a recording medium, and is stored in another PC or The printing device may be configured to use the generation program. As a storage medium, a hard disk, a flash ROM, a memory card (compact flash (registered trademark), smart media, a memory stick, or the like), a compact disk, a magneto-optical disk, a digital versatile disk, a flexible disk, or the like can be used.
[0090]
As described above, according to the receipt print data generation method of the present invention, the program for realizing the same, the recording medium, and the printing apparatus, the image data is not transmitted from the PC 40 to the printing apparatus 50, but is stored in the printing apparatus 50. Since image data is stored and an image addition setting command for adding image data is transmitted from the PC 40, even when a low-speed interface is used as an interface between the PC 40 and the printing apparatus, transmission time does not matter, There is no reduction in processing efficiency.
[0091]
In addition, the printing device 50 can easily specify the printing position by acquiring the line number from the parameter included in the image addition setting command, and thus can create a good-looking receipt. It works.
[0092]
Further, by generating an image addition setting command for adding image data by the printer driver 109, image data can be set from the PC 40 without directly operating the printing apparatus 50. Further, even if the PC 40 is a monochrome / text-based application, the printing device 50 can issue a color / graphics-based receipt without changing the application.
[0093]
In the above example, the accounting print data is set in advance so as to be performed in the primary color “K (black)”, and the image data is printed in a print color (sub color) other than “K (black)”. Can be set, but "K (black)" may be set as image data. However, in this case (when the accounting processing print data and the image data are set so as to be printed in the same color), it is preferable that the image data is set so that the print density is automatically reduced and printed. According to this configuration, the image data can be added without deteriorating the legibility of the accounting print data.
[0094]
Further, not only the image data but also the print color of the accounting processing print data may be settable. However, also in this case, if the image data is configured so that only the printing color other than the set color of the accounting processing print data can be set, or if the accounting processing printing data and the image data are set to be printed in the same color. It is preferable that the image data is set so that the print density is automatically lowered.
[0095]
In the above example, both the start character string and the end character string are set. However, if neither of these settings is made, the print area of the image data may be specified according to the default value. good. For example, if no start character string is set, printing of image data is started from a line having a predetermined length X from the front end of the receipt 61. If no end character string is specified, a predetermined length Y is set from the rear end of the receipt 61. The printing of the image data may be completed by the line up to. If no start character string is specified, printing of image data starts from a line where a predetermined character string (for example, “TEL:”) included in the accounting processing print data is printed, and no end character string is specified. In such a case, the printing of the image data may be completed until a line where another predetermined character string (for example, “Thank you for your purchase”) included in the print data is printed. According to these configurations, it is possible to save the trouble of setting when the user is not concerned with the print area.
[0096]
Further, the setting of the image data (definition table) is not limited to the setting contents shown in FIG. 6, but the setting of the enlargement / reduction of the image data, the setting of the rotation angle, the designation of two or more image data and the setting of their print colors, May be performed. According to this configuration, more various image data can be added.
[0097]
Further, in the above-described example, the printing apparatus 50 is of an inkjet type, but is not limited thereto, and a thermal head type or a wire dot type printing apparatus may be used.
[0098]
Further, irrespective of the example of the POS system described above, for example, a system configuration and an apparatus configuration such as a stand-alone type ECR and a cash register that are not connected to the server can be appropriately changed without departing from the gist of the present invention. .
[0099]
【The invention's effect】
As described above, according to the receipt print data generation method, the program for realizing the same, the recording medium, and the printing apparatus of the present invention, the image data is stored in the host computer, and the image data is transmitted from the host computer. Instead, a low-speed interface was used as an interface between the host computer and the printing device in order to store image data in the printing device and to transmit an image addition setting command for adding image data from the host computer. Even in such a case, there is an effect that image data can be printed quickly.
[Brief description of the drawings]
FIG. 1 is a configuration diagram showing an example of a POS system of the present invention.
FIG. 2 is an external perspective view of a POS terminal constituting the POS system of the present invention.
FIG. 3 is a functional block diagram of a PC according to the present invention.
FIG. 4 is a functional block diagram of the printing apparatus of the present invention.
FIG. 5 is a control block diagram of the printing apparatus of the present invention.
FIG. 6 is a diagram showing an example of a setting screen for setting image data according to the present invention.
FIG. 7 is a flowchart illustrating an example of an accounting processing print data / image addition setting command transmission processing according to the present invention.
FIG. 8 is a flowchart illustrating an example of a receipt print data generation process according to the present invention.
FIG. 9 is a diagram showing a definition table of the present invention and data acquisition results obtained from accounting print data.
FIG. 10 is a diagram showing a definition table of the present invention and data acquisition results obtained from accounting processing print data.
FIG. 11 is a diagram showing an example of an image addition setting command code of the present invention.
FIG. 12 is a diagram showing an example of an image addition setting command code of the present invention.
FIG. 13 is a diagram illustrating an example of image data.
FIG. 14 is a diagram showing <Printing Example 1>, which is an example of a receipt created by the present invention.
FIG. 15 is a diagram illustrating a <print example 2> which is an example of a receipt created by the present invention.
FIG. 16 is a diagram illustrating a <print example 3> which is an example of a receipt created by the present invention.
FIG. 17 is a diagram showing an example of creating a receipt in a conventional example of the present invention.
[Explanation of symbols]
10 POS system 20 POS terminal 30 POS server 40 PC
41a POS application execution unit 41b control object 41c service object 41d OS
47 printing device side interface 50 printing device 51 PC side interface 61 receipt 108 image data setting program 109 printer driver 110 data input / output unit 120 printing unit 130 drive unit 140 control unit 141 CPU
142 ROM
143 CG-ROM
144 RAM
145 Internal bus 201 Definition table setting unit 202 Accounting processing print data generation unit 203 Image addition setting command generation unit 204 Data storage unit (PC)
205 Data transmission unit 231 Data acquisition unit 232 Data storage unit (printing device)
233 Command analysis unit 234 Receipt print data generation unit 235 Printing unit 300 setting screen

Claims (12)

商品販売に関する入力情報に基づいてホストコンピュータにより生成された会計処理印刷データに、既に記憶されている画像データを付加して、レシート印刷データを生成するレシート印刷データ生成方法であって、
前記画像データを記憶する画像データ記憶工程と、
前記ホストコンピュータから、前記会計処理印刷データを取得する会計処理印刷データ取得工程と、
前記ホストコンピュータから、前記画像データを付加して印刷するための画像付加設定コマンドを取得する画像付加設定コマンド取得工程と、
前記画像付加設定コマンドを解析し、前記画像データの印刷位置を示す行番号を取得するコマンド解析工程と、
前記行番号に基づき、前記会計処理印刷データに前記画像データを付加して前記レシート印刷データを生成するレシート印刷データ生成工程と、
を備えたことを特徴とするレシート印刷データ生成方法。
A receipt print data generating method for generating receipt print data by adding previously stored image data to accounting print data generated by a host computer based on input information regarding product sales,
An image data storing step of storing the image data;
From the host computer, an accounting print data acquisition step of acquiring the accounting print data,
From the host computer, an image addition setting command obtaining step of obtaining an image addition setting command for printing by adding the image data,
A command analysis step of analyzing the image addition setting command and acquiring a line number indicating a print position of the image data,
A receipt print data generating step of generating the receipt print data by adding the image data to the accounting processing print data based on the line number;
A method for generating receipt print data, comprising:
前記画像付加設定コマンドは、前記画像データの付加を開始する位置を示すスタート行番号、および前記画像データの付加を終了する位置を示すエンド行番号に関するパラメータを含み、
前記コマンド解析工程では、前記スタート行番号および前記エンド行番号の2つの行番号を取得することを特徴とする請求項1に記載のレシート印刷データ生成方法。
The image addition setting command includes a start line number indicating a position to start adding the image data, and a parameter related to an end line number indicating a position to end the addition of the image data,
2. The receipt print data generation method according to claim 1, wherein in the command analysis step, two line numbers of the start line number and the end line number are obtained.
前記画像データ記憶工程では、複数の画像データファイルを記憶し、且つ前記画像付加設定コマンドは、前記複数の画像データファイルの中から1の画像データファイルを指定するための画像指定データに関するパラメータを含み、
前記コマンド解析工程では、前記画像付加設定コマンドから前記画像指定データを取得することを特徴とする請求項1または2に記載のレシート印刷データ生成方法。
In the image data storing step, a plurality of image data files are stored, and the image addition setting command includes a parameter relating to image designation data for designating one image data file from among the plurality of image data files. ,
3. The receipt print data generation method according to claim 1, wherein in the command analysis step, the image designation data is acquired from the image addition setting command.
主色と、当該主色以外の少なくとも1色の副色とによるカラー印刷を行うカラー印刷工程を更に備え、
前記カラー印刷工程では、前記会計処理印刷データを前記主色によって印刷し、前記画像データを前記少なくとも1色の副色によって印刷することを特徴とする請求項1、2または3に記載のレシート印刷データ生成方法。
A color printing step of performing color printing using the main color and at least one sub color other than the main color,
4. The receipt printing according to claim 1, wherein in the color printing step, the accounting print data is printed in the main color, and the image data is printed in the at least one sub color. Data generation method.
前記ホストコンピュータでは、前記画像データの印刷色を設定可能であり、
前記画像付加設定コマンドには、前記印刷色を示すパラメータが含まれていることを特徴とする請求項4に記載のレシート印刷データ生成方法。
In the host computer, a print color of the image data can be set,
5. The receipt print data generation method according to claim 4, wherein the image addition setting command includes a parameter indicating the print color.
請求項1ないし5のいずれか1に記載のレシート印刷データ生成方法をコンピュータに実現させるためのプログラム。A program for causing a computer to implement the receipt print data generation method according to any one of claims 1 to 5. 請求項6に記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。A computer-readable recording medium on which the program according to claim 6 is recorded. 商品販売に関する入力情報に基づいてホストコンピュータにより生成された会計処理印刷データに、既に記憶している画像データを付加して、レシート印刷データを生成する印刷装置において、
前記画像データを記憶する画像データ記憶手段と、
前記ホストコンピュータから、前記会計処理印刷データを取得する会計処理印刷データ取得手段と、
前記ホストコンピュータから、前記画像データを付加して印刷するための画像付加設定コマンドを取得する画像付加設定コマンド取得手段と、
前記画像付加設定コマンドを解析し、前記画像データの印刷位置を示す行番号を取得するコマンド解析手段と、
前記行番号に基づき、前記会計処理印刷データに前記画像データを付加して前記レシート印刷データを生成するレシート印刷データ生成手段と、
を備えたことを特徴とする印刷装置。
In a printing device that generates receipt print data by adding image data already stored to accounting print data generated by a host computer based on input information regarding product sales,
Image data storage means for storing the image data;
From the host computer, accounting process print data acquisition means for acquiring the accounting process print data,
From the host computer, an image addition setting command obtaining means for obtaining an image addition setting command for adding and printing the image data,
Command analysis means for analyzing the image addition setting command and acquiring a line number indicating a print position of the image data,
Receipt print data generating means for adding the image data to the accounting processing print data to generate the receipt print data based on the line number,
A printing device comprising:
前記画像付加設定コマンドは、前記画像データの付加を開始する位置を示すスタート行番号、および前記画像データの付加を終了する位置を示すエンド行番号に関するパラメータを含み、
前記コマンド解析手段は、前記スタート行番号および前記エンド行番号の2つの行番号を取得することを特徴とする請求項8に記載の印刷装置。
The image addition setting command includes a start line number indicating a position to start adding the image data, and a parameter related to an end line number indicating a position to end the addition of the image data,
9. The printing apparatus according to claim 8, wherein the command analysis unit acquires two line numbers of the start line number and the end line number.
前記画像データ記憶手段は、複数の画像データファイルを記憶し、且つ前記画像付加設定コマンドは、前記複数の画像データファイルの中から1の画像データファイルを指定するための画像指定データに関するパラメータを含み、
前記コマンド解析手段は、前記画像付加設定コマンドから前記画像指定データを取得することを特徴とする請求項8または9に記載の印刷装置。
The image data storage means stores a plurality of image data files, and the image addition setting command includes a parameter relating to image designation data for designating one image data file from among the plurality of image data files. ,
10. The printing apparatus according to claim 8, wherein the command analysis unit acquires the image designation data from the image addition setting command.
主色と、当該主色以外の少なくとも1色の副色とによるカラー印刷を行うカラー印刷手段を更に備え、
前記カラー印刷手段は、前記会計処理印刷データを前記主色によって印刷し、前記画像データを前記少なくとも1色の副色によって印刷することを特徴とする請求項8、9または10に記載の印刷装置。
Color printing means for performing color printing with the main color and at least one sub-color other than the main color,
11. The printing apparatus according to claim 8, wherein the color printing unit prints the accounting print data in the primary color, and prints the image data in the at least one secondary color. .
前記ホストコンピュータでは、前記画像データの印刷色を設定可能であり、
前記画像付加設定コマンドには、前記印刷色を示すパラメータが含まれていることを特徴とする請求項11に記載の印刷装置。
In the host computer, a print color of the image data can be set,
The printing apparatus according to claim 11, wherein the image addition setting command includes a parameter indicating the print color.
JP2002298995A 2002-10-11 2002-10-11 Receipt print data generation method, program for realizing the same, recording medium, and printing apparatus Expired - Fee Related JP4168722B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2002298995A JP4168722B2 (en) 2002-10-11 2002-10-11 Receipt print data generation method, program for realizing the same, recording medium, and printing apparatus
ES03021178T ES2294234T3 (en) 2002-10-11 2003-09-24 METHOD OF CONTROL OF A PRINTING DEVICE IN POINT OF SALE SYSTEMS.
DE60317438T DE60317438T2 (en) 2002-10-11 2003-09-24 Control method of a printing device in point-of-sale systems
EP03021178A EP1408465B1 (en) 2002-10-11 2003-09-24 Method of controlling printing apparatus in POS systems
US10/675,858 US20050275894A1 (en) 2002-10-11 2003-09-30 Method of controlling printing apparatus, method of generating receipt print data, program, printer driver, printing apparatus, merchandise sales data processing apparatus and POS system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002298995A JP4168722B2 (en) 2002-10-11 2002-10-11 Receipt print data generation method, program for realizing the same, recording medium, and printing apparatus

Publications (2)

Publication Number Publication Date
JP2004133779A true JP2004133779A (en) 2004-04-30
JP4168722B2 JP4168722B2 (en) 2008-10-22

Family

ID=32288258

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002298995A Expired - Fee Related JP4168722B2 (en) 2002-10-11 2002-10-11 Receipt print data generation method, program for realizing the same, recording medium, and printing apparatus

Country Status (1)

Country Link
JP (1) JP4168722B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007168149A (en) * 2005-12-20 2007-07-05 Seiko Epson Corp Control method of printer, print system and program
JP2010069695A (en) * 2008-09-18 2010-04-02 Casio Computer Co Ltd Printing device
JP2016012361A (en) * 2015-08-26 2016-01-21 セイコーエプソン株式会社 Control device and record system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007168149A (en) * 2005-12-20 2007-07-05 Seiko Epson Corp Control method of printer, print system and program
JP2010069695A (en) * 2008-09-18 2010-04-02 Casio Computer Co Ltd Printing device
JP2016012361A (en) * 2015-08-26 2016-01-21 セイコーエプソン株式会社 Control device and record system

Also Published As

Publication number Publication date
JP4168722B2 (en) 2008-10-22

Similar Documents

Publication Publication Date Title
JP4407183B2 (en) Printing method, program for realizing the printing method, recording medium printing apparatus, and printer driver
US20040105126A1 (en) Method of printing, program for realizing the same, recording medium, apparatus for printing, printer driver, merchandise sales data processing device, and point-of-sale system
JP4710903B2 (en) PRINT SYSTEM, POS SYSTEM, CONNECTION DEVICE, PRINT SYSTEM CONTROL METHOD AND ITS PROGRAM
US8988702B2 (en) Printing apparatus and printing method
US20120069404A1 (en) Method of adding value to print data, a value-adding device, and a recording medium
JP2006323445A (en) Printing system, pos system, connection device, control method for printing system, and program therefor
US7375844B2 (en) Method for generating a print data file, method for storing print data, a data storage medium therefor, and an apparatus for generating a data storage file
US10430697B2 (en) Printer and method for processing string information
EP1408465B1 (en) Method of controlling printing apparatus in POS systems
US7355737B2 (en) Apparatus and method for two-color printing based on single color data
JP4492188B2 (en) POS terminal control method, receipt print data generation method, program, printing apparatus, merchandise sales data processing apparatus, and POS system
JP4284963B2 (en) Printing apparatus control method, program for realizing the same, recording medium, printer driver, merchandise sales data processing apparatus, and POS system
JP4492191B2 (en) POS terminal control method and program
JP4341326B2 (en) Printing method, printing apparatus, printer driver, merchandise sales data processing apparatus, and POS system
JP4168722B2 (en) Receipt print data generation method, program for realizing the same, recording medium, and printing apparatus
US20060055950A1 (en) Image data registration method, image data registration program, and printing apparatus
JP2004086477A (en) Printing method, program for realizing its printing method, recording medium, printing device, printer driver, pos terminal and pos system
JP2004013630A (en) Printer, printer driver, printing system, pos system, control method for printer, generation method of print data, program for impementing the methods by computer, and recording medium for the program
JP2006301737A (en) Image registration apparatus, method and program, and image preview program
JP2012198613A (en) Output device, journal generation system, journal generation method and program
EP1396808A1 (en) Method and apparatus of printing payment transaction information, program, printer driver and point of sale system for realising the same
JP4414742B2 (en) Passbook printing system
JP4144289B2 (en) Printing method, program for realizing the printing method, recording medium recording the program, POS terminal and POS system
JP2006076163A (en) Print controller, program, and test printing method of print controller
JP2003263681A (en) Printer, controller, printer control method, program for making computer execute printer control method, printer system and post system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051011

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20070403

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080401

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080530

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080715

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080728

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110815

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120815

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130815

Year of fee payment: 5

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees