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 PDFInfo
- 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
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
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
[0028]
The
[0029]
The
[0030]
The
[0031]
Control of the
[0032]
The
[0033]
In the
[0034]
On the other hand, the
[0035]
The
[0036]
Next, the device configuration of the
[0037]
The
[0038]
On the other hand, the
[0039]
Next, the control configuration of the
[0040]
The definition
[0041]
The image addition setting command generation unit 203 includes a character
[0042]
Then, the
[0043]
Subsequently, a control configuration of the
[0044]
The
[0045]
The
[0046]
The
[0047]
According to the above configuration, the
[0048]
FIG. 5 is a control block diagram of the
[0049]
The
[0050]
The
[0051]
The image addition setting
[0052]
The
[0053]
With the above-described configuration, the
[0054]
The PC-
[0055]
If the internal TTL (Transistor Transistor Logic) of the
[0056]
Next, the image data setting process will be described with reference to FIG. The setting of the image data is performed by the
[0057]
As shown in the figure, on the
[0058]
As shown in FIG. 6, on the "definition table"
[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
[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
[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"
[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
[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
[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
[0074]
Next, transmission processing of the accounting processing print data / image addition setting command in the
[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
[0076]
Next, the receipt print data generation processing in the
[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
[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
[0089]
In the above embodiment, the generation of the image addition setting command is realized by the
[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
[0091]
In addition, the
[0092]
Further, by generating an image addition setting command for adding image data by the
[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
[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
[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
41a POS
47 printing
142 ROM
143 CG-ROM
144 RAM
145
205
233
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または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、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.
前記画像データを記憶する画像データ記憶手段と、
前記ホストコンピュータから、前記会計処理印刷データを取得する会計処理印刷データ取得手段と、
前記ホストコンピュータから、前記画像データを付加して印刷するための画像付加設定コマンドを取得する画像付加設定コマンド取得手段と、
前記画像付加設定コマンドを解析し、前記画像データの印刷位置を示す行番号を取得するコマンド解析手段と、
前記行番号に基づき、前記会計処理印刷データに前記画像データを付加して前記レシート印刷データを生成するレシート印刷データ生成手段と、
を備えたことを特徴とする印刷装置。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.
前記コマンド解析手段は、前記画像付加設定コマンドから前記画像指定データを取得することを特徴とする請求項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色の副色によって印刷することを特徴とする請求項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.
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)
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 |
-
2002
- 2002-10-11 JP JP2002298995A patent/JP4168722B2/en not_active Expired - Fee Related
Cited By (3)
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 |