JP4341326B2 - Printing method, printing apparatus, printer driver, merchandise sales data processing apparatus, and POS system - Google Patents

Printing method, printing apparatus, printer driver, merchandise sales data processing apparatus, and POS system Download PDF

Info

Publication number
JP4341326B2
JP4341326B2 JP2003208852A JP2003208852A JP4341326B2 JP 4341326 B2 JP4341326 B2 JP 4341326B2 JP 2003208852 A JP2003208852 A JP 2003208852A JP 2003208852 A JP2003208852 A JP 2003208852A JP 4341326 B2 JP4341326 B2 JP 4341326B2
Authority
JP
Japan
Prior art keywords
background image
character string
printing
data
print data
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.)
Expired - Fee Related
Application number
JP2003208852A
Other languages
Japanese (ja)
Other versions
JP2004152256A (en
Inventor
政寛 箕輪
和幸 横山
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 JP2003208852A priority Critical patent/JP4341326B2/en
Publication of JP2004152256A publication Critical patent/JP2004152256A/en
Application granted granted Critical
Publication of JP4341326B2 publication Critical patent/JP4341326B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、商品販売に関する入力情報に基づき、ホストコンピュータによって生成された印刷データを取得し、当該印刷データによって表されるレシート印刷情報に背景画像を重ねてレシート上に印刷する印刷方法、刷装置、プリンタドライバ、商品販売データ処理装置およびPOSシステムに関するものである。
【0002】
【従来の技術】
従来、スーパーやコンビニエンス・ストア等の小売業において利用されているPOSシステム(販売時点情報管理システム)では、レシート用紙に印刷を行うための印刷装置が設けられている。この種の印刷装置としては、図13に示すようなレシート印刷情報が印刷されたレシートを発行する、いわゆる単色(モノクロ)・テキストベースの印刷装置が広く利用されている(例えば、特開2001−273560号公報参照)が、近年、カラープリンタの小型化、高速化に伴い、POSシステムへのカラープリンタの適用が望まれている。
【0003】
【発明が解決しようとする課題】
ところが、実際にカラープリンタを導入しようとした場合、POSシステムのアプリケーションは、単色プリンタを前提とした単色・テキストベースのものが一般的であるため、レシートをカラーで印刷したり、絵柄を挿入したりするためには、アプリケーションをカラー・グラフィックベースに変更しなければならない。しかしながら、アプリケーションの変更には多額の投資を必要とするため、カラープリンタの導入が期待できないといった問題があった。
【0004】
本発明は、上記の問題点に鑑み、単色・テキストベースのアプリケーションを変更することなく、カラー・グラフィックベースのレシートを発行可能な印刷方法、刷装置、プリンタドライバ、商品販売データ処理装置およびPOSシステムを提供することを目的とする。
【0006】
また、本発明の印刷方法は、商品販売に関する入力情報に基づき、ホストコンピュータ上のアプリケーション実行部によって生成された支払処理印刷データを取得し、当該印刷データに背景画像を重ねて得られたレシート印刷データを印刷装置を用いてレシート上に印刷する印刷方法であって、背景画像を表す背景画像データを記憶する背景画像データ記憶工程と、アプリケーション実行部から印刷データを取得する印刷データ取得工程と、支払処理印刷データの中から、背景画像データの付加を開始する位置を示すスタート文字列、および背景画像データの付加を終了する位置を示すエンド文字列を検出する文字列検出工程と、レシート上において、レシート印刷情報に重ねて、スタート文字列で指定された位置からエンド文字列で指定された位置までの領域に背景画像を印刷する印刷工程と、を備えたことを特徴とする。
【0007】
本発明の印刷装置は、印刷媒体に印刷データを背景画像と共に印刷する装置であって、背景画像を表す背景画像データを記憶する第一の手段と、入力情報に基づいて印刷データを取得する第二の手段と、前記背景画像データの付加を開始する位置を示すスタート文字列、および前記背景画像データの付加を終了する位置を示すエンド文字列を検出する第三の手段と、前記スタート文字列と前記エンド文字列で指定された領域内において前記背景画像と前記印刷データとを重ねて前記印刷媒体上に印刷する第四の手段と、を備えたことを特徴とする。
【0008】
また、本発明の印刷装置は、商品販売に関する入力情報に基づき、ホストコンピュータによって生成された支払処理印刷データを取得し、当該印刷データに背景画像データを重ねてレシート上に印刷する印刷装置であって、背景画像を表す背景画像データを記憶する背景画像データ記憶手段と、背景画像データの付加を開始する位置を示すスタート文字列、および背景画像の付加を終了する位置を示すエンド文字列を記憶する文字列記憶手段と、ホストコンピュータから印刷データを取得する印刷データ取得手段と、印刷データの中から、スタート文字列、およびエンド文字列を検出する文字列検出手段と、レシート上において、レシート印刷情報に重ねて、スタート文字列で指定された行からエンド文字列で指定された位置までの領域に背景画像を印刷する印刷手段と、を備えたことを特徴とする。
【0009】
これらの構成によれば、(印刷装置内に)背景画像を表す背景画像データを記憶しておき、ホストコンピュータによって生成された、レシート印刷情報を表す印刷データを取得した場合、背景画像とレシート印刷情報とを重ねてレシート上に印刷するため、ホストコンピュータが例えば単色・テキストベースのアプリケーションであっても、アプリケーションを変更することなく、(印刷装置によって)カラー・グラフィックベースのレシートを発行することができる。また、背景画像の印刷領域を、印刷データの中から検出されたスタート文字列およびエンド文字列が印刷されるそれぞれの位置の間に含まれる領域内とすることで、容易に印刷領域を特定することができると共に、見栄えの良いレシートを作成することができる。特に、スタート文字列およびエンド文字列を、レシート上に必ず印刷される文字列(例えば「領収証」、「合計金額」など)とすることで、レシート長に応じて、適切な領域に背景画像が印刷されたレシートを発行することができる。
【0011】
また、この場合、スタート文字列および/またはエンド文字列を指定する第五の手段を更に備えることが好ましい。
【0012】
これらの構成によれば、スタート文字列および/またはエンド文字列を指定することで、ユーザの好みに応じて、背景画像の印刷領域を指定することができる。
【0014】
また、これらの場合、第四の手段は、主色と、当該主色以外の少なくとも1色の副色とによるカラー印刷が可能であり、レシート印刷情報を主色によって印刷し、背景画像を副色によって印刷することが好ましい。
【0015】
これらの構成によれば、レシート印刷情報を主色によって印刷し、背景画像を副色によって印刷するため、レシート印刷情報の見やすさを損ねることなく、背景画像を付加することができる。また、カラー印刷が可能であるため、レシートの視認性を高めることができる。
【0017】
また、この場合、第五の手段は、ホストコンピュータから送信された設定コマンドにしたがって所定の文字列を記憶する第六の手段に格納することが好ましい。
【0018】
これらの構成によれば、ホストコンピュータから送信された設定コマンドにしたがって文字列を指定することができるため、ユーザは印刷装置を直接操作することなく文字列の指定を行うことができる。
【0019】
この場合、設定コマンドには、背景画像の印刷色を指定するパラメータが含まれていることが好ましい。
【0020】
この構成によれば、ユーザは印刷装置を直接操作することなく背景画像の印刷色を指定することができる。
【0022】
また、これらの場合、第一の手段は、背景画像データを複数記憶しており、設定コマンドには、複数の背景画像データの中から、印刷対象となる1の背景画像データを選択するパラメータが含まれていることが好ましい。
【0023】
これらの構成によれば、背景画像データを複数記憶しているため、多様な背景画像を印刷することができる。また、ユーザは印刷装置を直接操作することなく背景画像データを選択することができる。
【0024】
これらの場合、設定コマンドは、ホストコンピュータに組み込まれたプリンタドライバによって生成されることが好ましい。
【0025】
この構成によれば、プリンタドライバによって設定コマンドを生成するため、ホストコンピュータのアプリケーションを変更することなく、ホストコンピュータから背景画像データの設定を行うことができる。
【0030】
本発明のプリンタドライバは、ホストコンピュータに組み込まれ、商品販売に関する入力情報に基づいて当該ホストコンピュータ内のアプリケーションによって生成された印刷データに、背景画像を表す背景画像データを付加することによって背景画像付印刷データを生成し、これを印刷装置に送信するプリンタドライバであって、背景画像を表す背景画像データを記憶する背景画像データ記憶手段と、アプリケーションから印刷データを取得する印刷データ取得手段と、印刷データの中から、背景画像データの付加を開始するスタート文字列、および背景画像データの付加を終了するエンド文字列を検出する文字列検出手段と、スタート文字列が含まれる行から、エンド文字列が含まれる行までの領域内において、印刷データに背景画像データを付加することによって、背景画像付印刷データを生成する背景画像付印刷データ生成普段と、背景画像付印刷データを印刷装置に送信する送信手段と、を備えたことを特徴とする。
【0031】
この構成によれば、ホストコンピュータに組み込まれ、商品販売に関する入力情報に基づいて当該ホストコンピュータ内のアプリケーションによって生成された印刷データに、背景画像を表す背景画像データを付加することによって背景画像付印刷データを生成し、これを印刷装置に送信するため、ホストコンピュータが例えば単色・テキストベースのアプリケーションであっても、アプリケーションを変更することなく、印刷装置によってカラー・グラフィックベースのレシートを発行することができる。また、背景画像を、印刷データの中から検出されたスタート文字列およびエンド文字列で指定された行の間に含まれる領域内に印刷することで、容易に印刷領域を特定することができると共に、見栄えの良いレシートを作成することができる。特に、スタート文字列およびエンド文字列を、レシート上に必ず印刷される文字列(例えば「領収証」、「合計金額」など)とすることで、レシート長に応じて、適切な領域に背景画像が印刷されたレシートを発行することができる。
【0032】
本発明の商品販売データ処理装置は、上記に記載の印刷装置と、ホストコンピュータとを備えたことを特徴とする。
【0033】
この構成によれば、ホストコンピュータが例えば単色・テキストベースのアプリケーションであっても、ホストコンピュータのアプリケーションやプリンタドライバを変更することなく、カラー・グラフィックベースのレシートを発行することができる商品販売データ処理装置を提供することができる。
【0034】
本発明の他の商品販売データ処理装置は、上記に記載のプリンタドライバを有すると共に、ホストコンピュータと、印刷装置と、を備えたことを特徴とする。
【0035】
この構成によれば、ホストコンピュータが例えば単色・テキストベースのアプリケーションであっても、ホストコンピュータのアプリケーションを変更することなく、カラー・グラフィックベースのレシートを発行することができる商品販売データ処理装置を提供することができる。
【0036】
本発明のPOSシステムは、上記に記載の商品販売データ処理装置であるPOS端末と、ネットワークを介してPOS端末に接続され、当該POS端末を管理するPOSサーバと、によって構成されていることを特徴とする。
【0037】
この構成によれば、ホストコンピュータが例えば単色・テキストベースのアプリケーションであっても、ホストコンピュータのアプリケーションを変更することなく、カラー・グラフィックベースのレシートを発行することができるPOSシステムを提供することができる。
【0039】
【発明の実施の形態】
以下、本発明の一実施形態に係る印刷方法、刷装置、プリンタドライバ、商品販売データ処理装置およびPOSシステムについて、添付図面を参照しながら詳細に説明する。本発明は、印刷装置内に背景画像を表す背景画像データを記憶しておき、ホストコンピュータによって生成された、レシート印刷情報(図13参照)を表す印刷データを取得した場合、背景画像とレシート印刷情報とを重ねてレシート上に印刷するものである。そして、この構成により、例えばホストコンピュータが単色・テキストベースのアプリケーションであっても、アプリケーションを変更することなく、カラー・グラフィックベースのレシートを発行することができる。また、印刷データの中からスタート文字列およびエンド文字列を検出し、それぞれの文字列で指定された領域を、背景画像の印刷領域とするため、容易に印刷領域を特定することができ、ひいては見栄えの良いレシートを作成することができるなどの作用・効果を奏するものである。
【0040】
そこで、以下、スーパーやコンビニエンス・ストア等の店舗にて利用され、オペレータによって入力された商品販売に関する入力情報に基づいてレシート(印刷対象物)を発行するPOSシステムを例に挙げて説明する。
【0041】
図1に示すように、本発明のPOSシステム10は、オペレータ(ユーザ)によって、主に商品に付されたバーコードが読み取られることにより入力情報を取得する複数の商品販売データ処理装置であるPOS端末20(1つのみ図示)と、ネットワークを介して当該POS端末20と相互に接続され、POS端末20に入力された入力情報の管理を行うPOSサーバ30とによって構成されている。
【0042】
POSサーバ30は、制御装置(CPU31)の他、ROM32やRAM33等のメモリを有し、ROM32内に記憶された制御プログラムにしたがって、RAM33内のバッファ39等に記憶された情報の処理を行う。特にRAM33内には、商品コードブロック35、商品名ブロック36、金額ブロック37、在庫ブロック38等からなる商品マスタを有しており、CPU31は、POS端末20より送信された入力情報に基づいて、商品マスタから商品コード、商品名、金額に関する情報を抽出し、レシート61への印刷およびPOS端末20のディスプレイ42の表示に用いる商品データを生成する。なお、「商品データ」とは、PC40で生成される印刷データの元となるデータであり、レシート61上に印刷される商品名やその金額等の商品情報が含まれるものである。
【0043】
POS端末20は、入力情報に基づき、POSサーバ30の商品データを参照して、レシート61上にレシート印刷情報(商品情報の他、店舗名や電話番号、日付、顧客に対するメッセージなどの情報も含む;図13参照)を印刷するための印刷データを生成したり、入力データをPOSサーバ30に登録する等の金銭登録処理をするアプリケーション実行部41aを有するパーソナルコンピュータ(PC)40と、印刷データに基づいてレシート61上に印刷を行う印刷装置50(レシートプリンタ)とを備え、互いにコネクタ46,53を介して接続されている。PC40は、キーボード43による入力またはバーコードリーダ44によるバーコードの読み取りによって商品に関する情報(商品情報)や顧客60に関する情報(顧客情報)などの入力情報を取得する。また、カードリーダ45によって顧客60のクレジットカードや会員カードを読み取り、クレジット清算に関する情報や会員番号等の会員に関する情報を取得する。さらに、POSサーバ30から送信された商品データを元に生成した商品情報を表示するディスプレイ42を有し、顧客60に対して購入商品の金額等を提示する。
【0044】
また、PC40の制御は、ウィンドウズ(登録商標)等のOS上で稼働するプリンタドライバOLE for Retail POS(以下、OPOSという)により行われる。OPOSとは、OS上で稼働するPOSアプリケーション41aに対して、印刷装置50やバーコードリーダ44等の周辺デバイスとの機種依存性のないインターフェースを提供するものであり、デバイスのカテゴリ毎に対応したコントロールオブジェクト(CO)41bと、デバイスの機種毎に対応したサービスオブジェクト(SO)41cとによって構成されている。
【0045】
POSアプリケーション41aは、POSサーバ30から送信される商品データや入力情報に基づいてレシート61上に印刷するための印刷データを生成するが、この印刷データは、印刷装置用のCO41bに引き渡され、さらにCO41bから印刷装置の機種に対応したSO41cに引き渡される。SO41cは、この印刷データを加工して、印刷装置のコマンド仕様に応じた印刷コマンドを生成し、OS41dを介して印刷装置50へ送信する。なお、上記したOPOSは、SO41cとCO41bとをコンバインした形態で、プリンタドライバ109としてユーザに提供される。
【0046】
また、SO41cには、背景画像データを設定するための背景画像データ設定プログラム108が実装されている。具体的な説明は後述するが、背景画像データ設定プログラム108は、ディスプレイ42上に所定の設定画面(図6および図7参照)を表示させることにより、背景画像データ設定のためのインターフェースをユーザに提供するものである。このように、プリンタドライバ109によって背景画像データ設定プログラム108が提供されるため、PC40のPOSアプリケーション41aを変更することなく、PC40から背景画像データの設定を行うことができる。
【0047】
一方、印刷装置50は、インクジェット方式で印刷が行われるインクジェットプリンタであり、第1印刷ヘッド55aないし第6印刷ヘッド55fの、6つのインクジェットヘッドを有する印刷部100を備えている。これらのインクジェットヘッド55は、それぞれ、M(マゼンタ)、C(シアン)、Y(イエロー)、LM(ライトマゼンタ)、LC(ライトシアン)、K(ブラック)のインクを吐出することで、フルカラーの印刷ができるように構成されている。なお、印刷ヘッド55の構成は、これに限らず、ヘッド数を増やして、さらに多色の印刷を行い得るよう構成しても良いし、ヘッド数を減らして1色若しくは2色のみの印刷を行う構成としても良い。
【0048】
また、印刷装置50は、第6印刷ヘッド55fのみで印刷を行うモノクロ印刷モードと、全ての印刷ヘッドによって印刷を行うカラー印刷モードとのいずれかを、図示しないディップスイッチあるいは、ソフトディップスイッチによって設定可能となっている。そして、このモード設定に関する情報をPC40が取得し、生成する印刷データにカラー情報を含ませるか否かを判断することができる。したがって、カラー印刷モードに設定されている場合であって、且つ印刷データにカラー情報が含まれる場合、これに基づきレシート61上に2色若しくは多色刷りの印刷を行うことが可能となる。なお、以下の説明では、印刷装置50はカラー印刷モードに設定されており、レシート印刷情報は主色の「K(ブラック)」にて印刷され、背景画像は主色以外の指定された副色にて印刷されるものとする。
【0049】
次に、POS端末20の装置構成について、図2A,2Bを参照して説明する。図2Aは、POS端末20をオペレータによる操作側から見た正面斜視図であり、図2Bは、これを顧客側から見た背面斜視図である。両図に示すように、POS端末20は、箱形の本体ケース48によってその主体部を成すPC40と、本体ケース48の後部左側に配置される印刷装置50とによって構成されている。なお、印刷装置50は、本体ケース48とケーブル接続されているため、この配置に限らず、ケーブル長が許す範囲で任意の場所に配置可能となっている。
【0050】
PC40は、本体ケース48の前部上面にオペレータが商品情報や顧客情報などの情報を入力するキーボード43と、その後部右側にオペレータが入力情報を確認するオペレータ用ディスプレイ42aとを配置し、本体ケース48内にはキャッシュドロア49が収納さている。また、本体ケース48の右側側面には商品に貼付若しくは印刷されたバーコードを読み取るためのバーコードリーダ44、左側側面には印刷装置50と接続するための印刷装置側インターフェース47を備え、キーボード43の右側には、顧客60から提示されたクレジットカードを読み取るためのカードリーダ用スロット45が形成されている。さらに、本体ケース48の背面側には、顧客60が商品情報等を確認するための顧客用ディスプレイ42bが配置されている。なお、背景画像データ設定のための設定画面(図6および図7参照)は、上記のオペレータ側ディスプレイ42aに表示され、オペレータはこれを確認しながら、設定操作を行うこととなる。
【0051】
一方、印刷装置50は、その前面側に動作表示ランプ65と、PC側インターフェース51とが配置されており、PC側インターフェース51と、PC40に備えられた印刷装置側インターフェース47とはケーブル63およびコネクタ46,53を介して接続されている。また、印刷装置50の上面には、印刷済みのレシート61が排出されるレシート排出口64が形成されている。
【0052】
次に、印刷装置50の制御構成について、図3の機能ブロック図を参照して説明する。同図に示すように、印刷装置50の制御部140は、端末装置40から通常の支払い決済処理を目的とするレシート印刷のための通常印刷データ、印刷コマンド、背景画像設定コマンド等の各種データをインターフェイス51を介して取得し、受信バッファ71に収納する。コマンド解析部72は、受信バッファ71に格納されたデータを解析し、この中に含まれているコマンドデータに沿ってデータを処理を実行する。コマンド解析部72は、背景画像を含まない通常の印刷データの印刷コマンド(印刷データを含む)であれば、通常印刷データ処理部73へ転送し、背景画像設定コマンドであれば、背景画像データ処理部74へ転送し、背景画像付き印刷データの印刷コマンドであれば、背景画像付き印刷データ生成部76へ転送する。背景画像データ処理部74では、後に説明する所定の背景画像を生成し、背景画像データ格納部75に格納する。通常印刷データ処理部73では、通常印刷データ格納部78に印刷データを生成して格納する。
【0053】
背景画像付き印刷データ生成部76では、印刷コマンドに背景画像を付加するパラメータが含まれているので、このパラメータで指定された内容(背景画像を付加するパラメータの内容については、後に詳述する)に沿って、通常印刷データ格納部78に格納されたデータと、背景画像データ格納部75に格納されたデータの中から選択された所定の背景画像データとを合成して背景画像付き印刷データを生成し、印刷処理部80に転送する。印刷処理部80は、印刷コマンドに背景画像を付加するパラメータが含まれていない場合は、通常印刷データ格納部78のデータをそのまま印刷部100に転送し、印刷部100にて印刷が十呼応される。このように印刷処理部80は、印刷コマンドの種類に応じて、データを取得し、印刷部100に転送する。これらの動作は主にCPU、ROM、RAM等によって構成されている(詳細については後述する)。このように、上記の端末装置40から背景画像付印刷が支持された場合、背景画像付印刷データが生成され、印刷部100によって印刷を行うことができる。
【0054】
図4は、印刷装置50の制御ブロック図を示したものであるが、同図に示すように、印刷装置50は、インターフェース51を有し、PC40からの背景画像設定コマンドや印刷データを入力するデータ入力部110と、6つのインクジェットヘッド55を有し、それぞれ異なる色のインクを吐出することによりカラー印刷を行う印刷部100と、ヘッドドライバ131を有し、インクジェットヘッド55を駆動する駆動部130と、印刷装置50全体を制御する制御部140とによって構成されている。
【0055】
制御部140は、CPU141、ROM142、CG−ROM143およびRAM144を有し、互いに内部バス145により接続されている。ROM142は、CPU141で処理する制御プログラムを記憶する制御プログラムブロック142aの他、各種テーブルを含む制御データを記憶する制御データブロック142bを有している。また、CG−ROM143は、印刷する文字のフォントデータを記憶し、文字を特定するコードが与えられたときに対応するフォントデータを出力する。
【0056】
RAM144は、フラグ等として使用される各種ワークエリアブロック151の他、PC40から送信された印刷データを記憶する印刷データブロック152と、背景画像データファイルを記憶する背景画像データブロック153と、スタート文字列およびエンド文字列、背景画像のファイル名、背景画像を付加するときの条件(設定条件)に関する情報を記憶する設定条件情報ブロック155と、背景画像データを印刷データに付加することによって生成した背景画像付印刷データを記憶する背景画像付印刷データブロック157とを有し、制御処理のための作業領域として使用される。また、RAM144は電源が切断されても記憶したデータを保持しておくように常にバックアップされている。また、内部バス145は、データ入力部110および駆動部130とも接続され、インターフェース51から入力データ(背景画像設定コマンド、印刷データ等)を取り込む(図3参照)と共に、CPU151等から出力された出力データ(背景画像付印刷データ等)や制御信号を、駆動部130(ヘッドドライバ131)に出力する。
【0057】
そして、CPU141は、上記の構成により、ROM142内の制御プログラムに基づいて、印刷装置50内の各部から各種信号・データ等を入力し、RAM144内の各種データ等を処理すると共に、各部に各種信号・データ等を出力することにより、背景画像データの設定を行い、その設定内容にしたがって背景画像データを印刷データに付加することで背景画像付印刷データを生成し、これに基づいて印刷を行うなど、印刷装置50全体を制御している。
【0058】
なお、インターフェース51およびPC40に備えられたインターフェース47は、RS−232C規格などのシリアルデータ転送、セントロニクス規格などのパラレルデータ転送、イーサネット(登録商標)の10Base−Tなどのネットワーク接続、若しくはUSBなどのデータ転送規格に対応したものを採用することができる。
【0059】
次に印刷装置50における背景画像付印刷データの生成処理について、図5のフローチャートを参照して説明する。まず、印刷装置50は、入力データを取得すると、これが背景画像設定コマンドであるか否かを判別する(S11)。そして、入力データが背景画像設定コマンドである場合(S11:Yes)は、背景画像データの設定を行う(S12)。この時、背景画像設定コマンドは、一般的にESCシーケンスと呼ばれる、コマンドコードと、各種パラメータから構成され、一例として、“ESC *”がビットイメージデータ転送に用いられ、このコマンドは、“ESC * m nL nH dl....dk”と言う表記によって、画像データが転送可能に構成されている。このような構成をベースとして、背景画像転送用の専用コマンドを設定し、イメージデータ共に、ファイル名、サイズ、カラー等のデータをパラメータとして同時に送信可能とする事ができる。本実施例ではこのような構成のコマンドを用いることとする。これにより、受信した印刷装置では、ファイル名でデータを管理することができる。
【0060】
背景画像データの設定は、PC40において、背景画像データ設定プログラム108(図1参照)が実行されることにより行われる。具体的には、背景画像データ設定プログラム108が起動されると、図6および図7に示すような設定画面が、オペレータ側ディスプレイ42aに表示され、オペレータが各種情報を入力することにより設定が行われるが、これについては、後に詳述するものとする。
【0061】
背景画像データの設定が終了すると(S12)、その設定内容に関する情報を背景画像設定データブロック156(図4参照)に格納し(S13)、その後送信された印刷データに対して、設定した背景画像データの付加処理が行われる。すなわち、入力データが背景画像設定コマンドではなく(S11:No)、印刷データである場合(S14:Yes)、背景画像データの付加設定が為されているか否かを判別し(S15)、付加設定が為されている場合(S15:Yes)は、当該印刷データに予め設定された背景画像データを付加し(S16)、背景画像付印刷データを生成する(S18)。また、付加設定が為されていない場合(S15:No)は、背景画像データを付加することなく(S17)、PC40から送信された印刷データを最終的な印刷データとする。この時、印刷データ転送コマンドが用いられ、一般的には、テキストデータを転送するコマンドが主に使用される。このコマンドに、背景画像付加の“要”、“不要”、付加する場合のファイル名を設定するパラメータを定義しておくことにより、あらかじめ転送されている背景画像データを、支払処理印刷データと合成し、用紙上に重畳(スーパポーズ)して印刷する処理が容易に実行可能となる。
【0062】
一方、入力データが背景画像設定コマンドではなく(S11:No)、印刷データでもない場合(S14:No;例えば、背景画像データの登録のための情報が入力された場合など)、その指示に応じた処理が為される(S19)。
【0063】
次に、背景画像データ設定プログラム108により実行される背景画像データの設定処理について、図6および図7に示す設定画面(D11、D12)を参照して説明する。オペレータにより背景画像データ設定プログラム108が起動されると、印刷装置50に対して背景画像データの設定情報を読み出すコマンドが送信され、このコマンドに応じて背景画像データの設定情報が、設定画面上に表示される。オペレータは、この設定情報と異なる情報部分を設定していくことで、新規に背景画像データの設定を行う。
【0064】
図6に示すように、設定画面では、背景画像を設定するための各種情報が複数の画面に分かれて設定可能となっており、オペレータ(ユーザ)は、所望の設定画面を開いて設定を行っていく。なお、最初のタブ「基本」の設定画面を開くと、レシート61の幅サイズ、背景画像の印刷濃度および印刷品質等を設定可能となっており、通常の印刷設定ユーティリティーとほぼ同内容であるため、ここでは説明を省略する。
【0065】
図6に示す画面は、「背景画像データ」についての情報を設定する画面(D11)であり、まず、オペレータによって既登録ファイル一覧201の中から1のファイルが選択されることにより、背景画像となるファイルが指定され、ファイル指定欄202に入力される。また、オペレータは、登録済みのIDをID欄203で選択することにより、ファイルを指定することも可能である。ここでは、「背景画像」として、図8に示すように、3つの画像ファイルが登録されており、これらの中から1の背景画像を選択することができるものとし、本設定操作では、「炎柄(ID:U2)」が選択されたものとする。
【0066】
次に、文字列指定欄204、205では、背景画像を印刷する領域を特定するためのスタート文字列と、エンド文字列とを設定可能となっている。例えば、スタート文字列が「領収証」である場合、その文字列「領収証」が含まれる行から下側に背景画像が印刷される。また、例えば、エンド文字列が「お買いあげ」である場合、その文字列「お買いあげ」が含まれる行から上側に背景画像が印刷される。すなわち、図9の<印刷例1>に示すように、スタート文字列が含まれる行と、エンド文字列が含まれる行とによって確定される領域が、背景画像の印刷領域となる。スタート文字列とエンド文字列は、背景画像のスーパポーズの開始行と、終了行の指定に用いられ、上記の例ではその文字が含まれる場合を説明している。この文字列の用い方はこれに限られず、例えばスタート文字列は、その文字列を含む行の指定に、エンド文字列は、その文字列の直前の行の指定に用いることも、更にはその逆の利用法も可能である。また、コマンドのパラメータにその定義を指定する内容を入れることも可能である。更には、スタートとエンドの双方の文字列を用いるのではなく、例えばスタート文字列のみを指定して、画像の終了位置は、支払い処理情報の終了位置と一致させるという応用も可能である。
【0067】
また、設定画面D11では、「カラー印刷」についての情報も設定可能となっており、まずカラー印刷を行うか否かが設定される。そして、オペレータによりカラー印刷を「する」にチェックされた場合は、背景カラー設定欄211において、背景画像を印刷する印刷色が設定される。
【0068】
なお、ここでは、レシート印刷情報を表す印刷データの印刷が主色「K(ブラック)」にて行われるように予め設定されているため、背景画像は、「K(ブラック)」以外の印刷色(副色)が設定可能となっている。したがって、例えば、「K(ブラック」と「R(レッド)」のみの2色印刷を行う印刷装置では、印刷データが主色「K(ブラック」にて印刷される場合は、背景画像データは必然的に副色「R(レッド)」にて印刷されることになる。このように、印刷データが主色にて印刷され、背景画像データが副色にて印刷されることで、印刷データによって印刷される文字等の見やすさを損ねることなく、背景画像を付加することができる。なお、本設定操作では、背景カラー「Red(赤色)」が選択されたものとする。
【0069】
以上の内容の設定が完了すると、オペレータにより「OK」ボタン207がクリックされ、「背景画像データ」について設定された情報が、PC40内のRAM等のメモリに格納される。
【0070】
続いて、図7は、「詳細」についての情報を設定する画面(D12)であり、まず、背景画像を付加するか否かが設定される。ここで、オペレータにより背景画像を「付加しない」にチェックされた場合は、上記した設定内容に関わらず、背景画像データの付加は行わず、レシート印刷情報のみをレシート61上に印刷する(図13参照)。また、背景画像の登録欄211においては、「追加」ボタン212および「削除」ボタン213がクリックされることにより、背景画像データの追加登録および削除が行われる。さらに、文字列の登録欄214においては、スタート文字列またはエンド文字列として登録したい文字列が入力される。したがって、文字列設定欄204、205(図6参照)では、ここで入力した文字列の中からそれぞれスタート文字列およびエンド文字列が選択できるようになっている。以上の内容の設定が完了すると、オペレータにより「OK」ボタン215がクリックされ、「詳細」について設定された情報が、PC40内のRAM等のメモリに格納される。
【0071】
そして、図6および図7に示す全ての情報の設定が完了し、オペレータにより図示しない背景画像データの「設定完了ボタン」がクリックされると、設定された情報(PC40内のRAM等のメモリに格納された情報)を「背景画像設定コマンド」として、PC40から印刷装置50に送信する。印刷装置50では、上記のとおり、この「背景画像設定コマンド」にしたがって背景画像データの設定を行い、その設定内容を背景画像設定データブロック156(図4参照)に格納し、PC40から送信された印刷データに、設定した背景画像データを付加することによって背景画像付印刷データを生成する。さらに、「詳細」の設定画面(D12)において登録された背景画像や文字列に関する情報は、背景画像データの「設定完了ボタン」がクリックされたときに「背景画像設定コマンド」と共に印刷装置50に送信し、それぞれ背景画像データブロック153および文字列ブロック154(図4参照)に格納する。
【0072】
以上の設定操作により、設定された背景画像をレシート印刷情報と重ねて印刷したものが、図9の<印刷例1>である。すなわち、上記の設定内容に従い、「炎柄」の背景画像が、スタート文字列「領収証」が含まれる行からエンド文字列「お買いあげ」が含まれる行まで印刷されており、その印刷色は「赤色」となっている。また、ここに示すように、背景画像「炎柄」は、スタート文字列「が含まれる行からエンド文字列が含まれる行までの長さに応じて、繰り返し印刷される。
【0073】
ここで、幾つかの例を挙げて、その他の背景画像の印刷例について説明する。図10の<印刷例2>は、背景画像として「網点模様」が選択されると共に背景カラーが「黄色」に設定され、さらに、スタート文字列を「?年?月?日」(ワイルドカード使用)、エンド文字列を「合計」に設定した場合を示したものである。また、図11の<印刷例3>は、背景画像として「花模様」が選択されると共に背景カラーが「黄色」に設定され、さらに、スタート文字列を「Thank You」、エンド文字列を「領収証」に設定した場合を示したものである。したがって、「花柄」の背景画像が、スタート文字列「Thank You」が含まれる行から下側と、エンド文字列「領収証」が含まれる行までの領域に印刷されている。その他、図示は省略するが、スタート文字列とエンド文字列とを同じ文字列とすることにより、その文字列が含まれる行だけに背景画像を印刷することも可能である。
【0074】
このように、スタート文字列およびエンド文字列を指定することにより、印刷領域を特定することができるため、特に大きな絵柄を背景画像としたときなど、レシート毎に背景画像の開始位置が異なって見栄えが悪くなることがない。また、<印刷例1>ないし<印刷例3>のように、スタート文字列およびエンド文字列を、レシート上に必ず印刷される文字列とすることで、レシート長に関わらず、適切な領域に背景画像が印刷されたレシートを発行することができる。
【0075】
以上の通り、本発明の印刷方法によれば、背景画像や、スタート文字列およびエンド文字列を複数記憶しておくことにより、オペレータ(ユーザ)はその中から好みのものを選択するだけで簡単に背景画像の設定を行うことができる。また、これらを組み合わせることにより背景画像データが、数種類しか登録されていなくても、多様な態様で背景画像を印刷することができる。
【0076】
特に、本実施形態のように、POSシステム10において本発明の印刷装置50が用いられる場合は、店舗のロゴなどを背景画像として記憶させておくことで、特定の領域に店舗のロゴが印刷されたレシート61を発行することができる。すなわち、レシートプリンタとして用いる印刷装置50に、背景画像(ロゴ)を格納するだけの小さなメモリを備えるだけで、視認性の高いレシートを作成することができると共に、顧客に対して店舗のイメージを強く印象づけ、宣伝効果を高めることができる。
【0077】
また、印刷装置50内の制御部140により、背景画像付印刷データの生成を行うため、例えばPC40のPOSアプリケーション41aが単色・テキストベースであっても、これを変更することなく、カラー・グラフィックベースの印刷データ(背景画像データ付印刷データ)を生成することができる。
【0078】
次に、本発明の第2実施形態について説明する。上記の実施形態では、印刷装置50内の制御部140により、背景画像付印刷データの生成を行うものとしたが、本実施形態では、これをPC40に組み込まれたプリンタドライバ452により実現するものである。以下、第1実施形態と異なる点を中心に説明する。
【0079】
図12に示すように、本実施形態の端末装置500は、金銭処理時において購入商品名やその金額を表示すると共に、背景画像データの設定時においてその設定画面を表示するディスプレイ442と、商品コードや金額を入力すると共に、背景画像データ設定のための情報を入力するキーボード443と、金銭処理時において商品に貼付または印刷されたバーコードを読み取るバーコードリーダ444と、同じく金銭処理時において顧客60のクレジットカードや会員カードを読み取るカードリーダ445と、POSサーバ30との情報の入出力を行うPOSサーバ側インターフェース448と、印刷装置50との情報の入出力を行う印刷装置側インターフェース447と、商品登録や清算等の金銭処理を実行する金銭処理部420と、主に印刷データを生成するデータ生成部430と、CPUの他、RAMやROM等のメモリを有し、端末装置500全体を制御する中央制御部410と、により構成されている。
【0080】
データ生成部430は、金銭処理部420において処理された情報およびPOSサーバ30から送信された情報に基づいて印刷データを生成する「印刷データ生成部431」と、背景画像データの各種設定を行う「背景画像データ設定部432」と、「印刷データ生成部431」によって生成された印刷データに、「背景画像データ設定部432」による設定内容にしたがって背景画像データを付加することにより、背景画像データ付印刷データを生成する「背景画像データ付印刷データ生成部433」とにより構成されている。このうち、「印刷データ生成部431」はPOSアプリケーション451により実現され、「背景画像データ設定部432」および「背景画像データ付印刷データ生成433」は、プリンタドライバ452により実現される。また、「背景画像データ設定部432」には、背景画像データ設定のための設定プログラム(第1実施形態の背景画像データ設定プログラム108に相当;図1参照)も含まれる。
【0081】
プリンタドライバ452は、印刷装置側インターフェース447を介して、印刷データ(背景画像付印刷データ)を送信したり、印刷装置50からの制御信号を受信したりすることが可能である。また、プリンタドライバ452内の「背景画像データ設定部432」および「背景画像データ付印刷データ生成部433」では、上記の第1実施形態において印刷装置50内の制御部140で実行された処理と同様の処理が行われるため、説明を省略する。
【0082】
このように、本発明の第2実施形態によれば、例えば端末装置500のPOSアプリケーション451が単色・テキストベースであっても、これを変更することなく、プリンタドライバ452によりカラー・グラフィックベースの印刷データ(背景画像データ付印刷データ)を生成することができる。
【0083】
なお、上記第1実施形態および第2実施形態では、背景画像付印刷データの生成が、印刷装置50内の制御部140、若しくは端末装置500に組み込まれたプリンタドライバ452によって実現されるものとしたが、これを記録媒体に格納し、他の印刷装置で生成プログラムを利用できるように構成しても良い。記憶媒体としては、ハードディスク、フラッシュROM、メモリカード(コンパクトフラッシュ(登録商標)、スマートメディア、メモリースティック等)、コンパクトディスク、光磁気ディスク、デジタルバーサタイルディスクおよびフレキシブルディスク等を利用することができる。
【0084】
以上の通り、本発明の印刷方法、刷装置、プリンタドライバ、商品販売データ処理装置およびPOSシステムによれば、印刷装置50内に背景画像を表す背景画像データを記憶しておき、PC40によって生成された、レシート印刷情報を表す印刷データを取得した場合、背景画像とレシート印刷情報とを重ねてレシート上に印刷するため、PC40が例えば単色・テキストベースのアプリケーションであっても、アプリケーションを変更することなく、印刷装置50によってカラー・グラフィックベースのレシートを発行することができる。
【0085】
また、背景画像の印刷領域を、印刷データの中から検出されたスタート文字列およびエンド文字列が印刷されるそれぞれの行の間に含まれる領域内とすることで、容易に印刷領域を特定することができると共に、見栄えの良いレシートを作成することができる。
【0086】
また、この構成によれば、印刷装置50側で背景画像付印刷データを生成するため、PC40と印刷装置50間のインターフェースとして低速インターフェースを用いた場合でも、PC40から印刷装置50へのデータ伝送時間が問題となることがない。さらに、プリンタドライバも変更する必要が無いため、最小限の投資で、カラー・グラフィックベースのレシート61の発行を実現することができる。
【0087】
また、背景画像付印刷データを設定するための設定コマンドを、プリンタドライバ109,452によって生成することにより、PC40,端末装置500が単色・テキストベースのアプリケーションであっても、アプリケーションを変更することなく、また印刷装置50を直接操作することなく、PC40から背景画像データの設定を行うことができる。
【0088】
また、端末装置500に組み込まれたプリンタドライバ452において、背景画像付印刷データを生成することによっても(第2実施形態)、端末装置500の単色・テキストベースのアプリケーション451を変更することなく、印刷装置50によってカラー・グラフィックベースのレシートを発行することができる。
【0089】
なお、上記の例では、レシート印刷情報が主色「K(ブラック)」にて行われるように予め設定されており、背景画像は、「K(ブラック)」以外の印刷色(副色)が設定可能となっているものとしたが、背景画像として「K(ブラック)」を設定できるように構成しても良い。但し、この場合(印刷データと背景画像が同色で印刷されるように設定された場合)、背景画像は自動的に印刷濃度を低くして印刷されるように設定されることが好ましい。この構成によれば、レシート印刷情報の見やすさを損ねることなく、背景画像を付加することができる。
【0090】
また、背景画像だけでなく、レシート印刷情報の印刷色も設定可能に構成しても良い。但し、この場合も、背景画像はレシート印刷情報の設定色以外の印刷色のみが設定可能に構成されるか、若しくはレシート印刷情報と背景画像が同色で印刷されるように設定された場合、背景画像は自動的に印刷濃度を低くして印刷されるように設定されることが好ましい。
【0091】
また、上記の例では、スタート文字列とエンド文字列の両方を設定するものとしたが、これらの設定がない場合は、デフォルト値にしたがって、背景画像の印刷領域を特定するようにしても良い。例えば、スタート文字列の指定がない場合は、レシート61の前端から所定長さXの行から背景画像を印刷開始し、エンド文字列の指定がない場合、レシート61の後端から所定長さYの行までで背景画像の印刷を終了するようにしても良い。また、スタート文字列の指定がない場合は、印刷データに含まれる所定文字列(例えば「TEL:」など)が印刷される行から背景画像を印刷開始し、エンド文字列の指定がない場合は、印刷データに含まれる他の所定文字列(例えば、「お買いあげありがとうございました。」など)が印刷される行までで背景画像の印刷を終了するようにしても良い。これらの構成によれば、ユーザが印刷領域に拘らない場合に設定の手間を省くことができる。
【0092】
また、背景画像データの設定は、図6および図7に示した設定内容に限らず、背景画像の拡大・縮小や回転角度の設定、2以上の背景画像の指定およびそれらの印刷色の設定などを行い得るように構成しても良い。この構成によれば、さらに多様な背景画像データを生成することができる。
【0093】
また、上記の例では、印刷装置50として、インクジェット方式のものを使用するものとしたが、これに限らず、サーマルヘッド方式、ワイヤードット方式の印刷装置を使用しても良い。
【0094】
また、上述したPOSシステムの例によらず、例えば、サーバに接続されないスタンドアロンタイプのECR、キャッシュレジスタなど、システム構成や装置構成について、本発明の要旨を逸脱しない範囲で、適宜変更も可能である。
【0095】
【発明の効果】
上述のように、本発明の印刷方法、刷装置、プリンタドライバ、商品販売データ処理装置およびPOSシステムによれば、ホストコンピュータの単色・テキストベースのアプリケーションを変更することなく、印刷装置によりカラー・グラフィックベースのレシートを発行することができる、などの効果がある。
【図面の簡単な説明】
【図1】本発明のPOSシステムの一例を示す構成図である。
【図2】(A)(B)は、本発明のPOSシステムを構成するPOS端末の外観斜視図である。
【図3】本発明の印刷装置の機能ブロック図である。
【図4】本発明の印刷装置の制御ブロック図である。
【図5】本発明の背景画像付印刷データ生成処理の一例を示すフローチャートである。
【図6】本発明の背景画像データを設定するための設定画面の一例を示す図である。
【図7】本発明の背景画像データを設定するための設定画面の一例を示す図である。
【図8】背景画像の一例を示す図である。
【図9】本発明の印刷方法によって作成されるレシートの一例である<印刷例1>を示す図である。
【図10】本発明の印刷方法によって作成されるレシートの一例である<印刷例2>を示す図である。
【図11】本発明の印刷方法によって作成されるレシートの一例である<印刷例3>を示す図である。
【図12】本発明の第2実施形態に係る端末装置の機能ブロック図である。
【図13】本発明の従来例におけるレシートの作成例を示す図である。
【符号の説明】
10 POSシステム
20 POS端末
30 POSサーバ
40 PC
41a POSアプリケーション実行部
41b コントロールオブジェクト
41c サービスオブジェクト
41d OS
47 印刷装置側インターフェース
50 印刷装置
51 PC側インターフェース
61 レシート
91 画像データ記憶部
92 文字列記憶部
93 設定データ記憶部
94 印刷データ記憶部
108 背景画像データ設定プログラム
109 プリンタドライバ
100 印刷部
110 データ入出力部
111 POSサーバ側インターフェース
120 入力部
130 表示部
140 駆動部
150 制御部
151 CPU
152 ROM
153 RAM
154 内部バス
400 端末装置
410 中央制御部
420 金銭処理部
430 データ生成部
431 印刷データ生成部
432 背景画像データ設定部
433 背景画像データ生成部
434 背景画像データ付印刷データ生成部
451 POSアプリケーション
452 プリンタドライバ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a printing method for acquiring print data generated by a host computer on the basis of input information relating to merchandise sales, and printing a print on a receipt with a background image superimposed on receipt print information represented by the print data, mark The present invention relates to a printing apparatus, a printer driver, a merchandise sales data processing apparatus, and a POS system.
[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 is provided with a printing device for printing on receipt paper. As this type of printing apparatus, a so-called monochrome (monochrome) text-based printing apparatus that issues a receipt printed with receipt printing information as shown in FIG. 13 is widely used (for example, JP-A-2001-2001). In recent years, as color printers have become smaller and faster, it is desired to apply color printers to POS systems.
[0003]
[Problems to be solved by the invention]
However, when actually trying to introduce a color printer, the POS system application is generally a monochrome / text-based application that assumes a monochrome printer, so print receipts in color or insert pictures. In order to do this, the application must be changed to a color / graphic base. However, the change of the application requires a large amount of investment, and there is a problem that the introduction of a color printer cannot be expected.
[0004]
In view of the above problems, the present invention provides a printing method capable of issuing a color / graphic-based receipt without changing a monochrome / text-based application, mark An object of the present invention is to provide a printing apparatus, a printer driver, a merchandise sales data processing apparatus, and a POS system.
[0006]
Also, the printing method of the present invention obtains payment processing print data generated by an application execution unit on a host computer based on input information relating to merchandise sales, and prints a receipt obtained by superimposing a background image on the print data. A printing method for printing data on a receipt using a printing apparatus, a background image data storage step for storing background image data representing a background image, a print data acquisition step for acquiring print data from an application execution unit, On the receipt, a character string detecting step for detecting a start character string indicating a position where the addition of the background image data is started and an end character string indicating a position where the addition of the background image data is ended from the payment processing print data, , Overlay the receipt print information, and specify the end character string from the position specified by the start character string. A printing step of printing a background image in a region up to a position, and further comprising a.
[0007]
A printing apparatus according to the present invention is an apparatus that prints print data on a print medium together with a background image, a first unit that stores background image data representing the background image, and a first unit that acquires print data based on input information. A second means for detecting a start character string indicating a position where the addition of the background image data is started, an end character string indicating a position where the addition of the background image data is ended, and the start character string. And a fourth means for printing the background image and the print data on the print medium in an area designated by the end character string.
[0008]
The printing apparatus of the present invention is a printing apparatus that acquires payment processing print data generated by a host computer based on input information related to merchandise sales, and prints the image data on a receipt by superimposing background image data on the print data. A background image data storage means for storing background image data representing the background image, a start character string indicating a position where the addition of the background image data is started, and an end character string indicating the position where the addition of the background image is ended Character string storage means, print data acquisition means for obtaining print data from the host computer, character string detection means for detecting the start character string and end character string from the print data, and receipt printing on the receipt Overlaid on the information, the area from the line specified by the start string to the position specified by the end string is Characterized by comprising a printing unit for printing an image.
[0009]
According to these configurations, when the background image data representing the background image is stored (in the printing apparatus) and the print data representing the receipt print information generated by the host computer is acquired, the background image and the receipt print are printed. Because the information is printed on the receipt, the host computer can issue a color / graphics-based receipt (by the printing device) without changing the application, even if the host computer is a monochrome / text-based application, for example. it can. In addition, the print area of the background image is set within the area included between the positions where the start character string and the end character string detected from the print data are printed, thereby easily specifying the print area. And a good-looking receipt can be created. In particular, the start character string and the end character string are character strings that are always printed on the receipt (for example, “receipt”, “total amount”, etc.), so that the background image is displayed in an appropriate area according to the receipt length. Printed receipts can be issued.
[0011]
In this case, it is preferable to further include a fifth means for designating a start character string and / or an end character string.
[0012]
According to these configurations, by specifying the start character string and / or the end character string, the print area of the background image can be specified according to the user's preference.
[0014]
In these cases, the fourth means is capable of color printing with the primary color and at least one secondary color other than the primary color, prints the receipt print information in the primary color, and outputs the background image as the secondary color. It is preferable to print by color.
[0015]
According to these configurations, since the receipt print information is printed in the primary color and the background image is printed in the sub color, the background image can be added without impairing the visibility of the receipt print information. Moreover, since color printing is possible, the visibility of a receipt can be improved.
[0017]
In this case, the fifth means is preferably stored in a sixth means for storing a predetermined character string in accordance with the setting command transmitted from the host computer.
[0018]
According to these configurations, since the character string can be designated according to the setting command transmitted from the host computer, the user can designate the character string without directly operating the printing apparatus.
[0019]
In this case, the setting command preferably includes a parameter for specifying the print color of the background image.
[0020]
According to this configuration, the user can designate the print color of the background image without directly operating the printing apparatus.
[0022]
In these cases, the first means stores a plurality of background image data, and the setting command includes a parameter for selecting one background image data to be printed from the plurality of background image data. It is preferably included.
[0023]
According to these configurations, since a plurality of background image data is stored, various background images can be printed. Further, the user can select background image data without directly operating the printing apparatus.
[0024]
In these cases, the setting command is preferably generated by a printer driver incorporated in the host computer.
[0025]
According to this configuration, since the setting command is generated by the printer driver, the background image data can be set from the host computer without changing the application of the host computer.
[0030]
The printer driver of the present invention is embedded in a host computer, and adds background image data representing a background image to print data generated by an application in the host computer based on input information related to product sales. A printer driver that generates print data and transmits the print data to a printing apparatus, a background image data storage unit that stores background image data representing a background image, a print data acquisition unit that acquires print data from an application, and printing From the data, a start character string for starting addition of background image data, a character string detecting means for detecting an end character string for ending addition of background image data, and an end character string from a line including the start character string In the area up to the line that contains By adding the data, characterized by comprising a normally generated with the background image printing data to generate a with background image printing data, and transmitting means for transmitting to the printing device the print data with the background image.
[0031]
According to this configuration, printing with a background image is performed by adding background image data representing a background image to print data incorporated in a host computer and generated by an application in the host computer based on input information related to product sales. In order to generate data and send it to the printing device, even if the host computer is a monochrome / text-based application, for example, a color / graphics-based receipt can be issued by the printing device without changing the application. it can. In addition, by printing the background image in the area included between the lines specified by the start character string and the end character string detected from the print data, the print area can be easily specified. Can create a good looking receipt. In particular, the start character string and the end character string are character strings that are always printed on the receipt (for example, “receipt”, “total amount”, etc.), so that the background image is displayed in an appropriate area according to the receipt length. Printed receipts can be issued.
[0032]
A merchandise sales data processing apparatus according to the present invention includes the printing apparatus described above and a host computer.
[0033]
According to this configuration, even if the host computer is, for example, a monochrome / text-based application, the merchandise sales data processing can issue a color / graphic-based receipt without changing the host computer application or printer driver. An apparatus can be provided.
[0034]
Another merchandise sales data processing apparatus of the present invention includes the printer driver described above, and includes a host computer and a printing apparatus.
[0035]
According to this configuration, even if the host computer is, for example, a monochrome / text-based application, a merchandise sales data processing apparatus capable of issuing a color / graphic-based receipt without changing the application of the host computer is provided. can do.
[0036]
The POS system of the present invention includes a POS terminal that is the above-described merchandise sales data processing apparatus, and a POS server that is connected to the POS terminal via the network and manages the POS terminal. And
[0037]
According to this configuration, even if the host computer is a monochrome / text-based application, for example, it is possible to provide a POS system that can issue a color / graphic-based receipt without changing the application of the host computer. it can.
[0039]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, a printing method according to an embodiment of the present invention, mark The printing apparatus, printer driver, merchandise sales data processing apparatus, and POS system will be described in detail with reference to the accompanying drawings. In the present invention, when background image data representing a background image is stored in a printing apparatus, and print data representing receipt print information (see FIG. 13) generated by a host computer is acquired, the background image and receipt printing are performed. The information is printed on the receipt in a superimposed manner. With this configuration, even if the host computer is a monochrome / text-based application, for example, a color / graphic-based receipt can be issued without changing the application. In addition, since the start character string and the end character string are detected from the print data, and the area designated by each character string is used as the print area of the background image, the print area can be easily specified. It has the effect of being able to create a receipt that looks good.
[0040]
In view of this, a POS system that issues a receipt (print object) based on input information related to product sales input by an operator and used in a store such as a supermarket or a convenience store will be described below as an example.
[0041]
As shown in FIG. 1, the POS system 10 of the present invention is a POS system that is a plurality of merchandise sales data processing devices that acquire input information by an operator (user) reading a bar code attached to a merchandise. A terminal 20 (only one is shown) and a POS server 30 that are connected to the POS terminal 20 via a network and manage input information input to the POS terminal 20 are configured.
[0042]
The POS server 30 has a memory such as a ROM 32 and a RAM 33 in addition to a control device (CPU 31), and processes information stored in the 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 composed of a product code block 35, a product name block 36, a price block 37, an inventory block 38, etc., and the CPU 31 is based on the input information transmitted from the POS terminal 20. Information on 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 displaying on the display 42 of the POS terminal 20 is generated. The “product data” is data that is the basis of print data generated by the PC 40, and includes product information such as a product name printed on the receipt 61 and its price.
[0043]
The POS terminal 20 refers to the product data of the POS server 30 based on the input information, and includes receipt print information (information such as store name, telephone number, date, message to the customer, etc. in addition to the product information) on the receipt 61. A personal computer (PC) 40 having an application execution unit 41a that performs a cash registration process such as generating print data for printing (see FIG. 13) or registering input data in the POS server 30; A printing apparatus 50 (receipt printer) that performs printing on the receipt 61 based on this is connected to each other via connectors 46 and 53. The PC 40 acquires input information such as information related to a product (product information) and information related to a customer 60 (customer information) by inputting using the keyboard 43 or reading a barcode using the barcode reader 44. In addition, the credit card or member card of the customer 60 is read by the card reader 45, and information relating to membership such as information relating to credit clearing or a membership number is acquired. Furthermore, it has a display 42 for displaying product information generated based on product data transmitted from the POS server 30, and presents the amount of purchased product to the customer 60.
[0044]
The PC 40 is controlled by a printer driver OLE for Retail POS (hereinafter referred to as OPOS) that runs on an OS such as Windows (registered trademark). The OPOS provides a POS application 41a running on the OS with a model-independent interface with peripheral devices such as the printing apparatus 50 and the barcode reader 44, and corresponds to each device category. A control object (CO) 41b and a service object (SO) 41c corresponding to each device model are configured.
[0045]
The POS application 41a generates print data for printing on the receipt 61 based on the product data and input information transmitted from the POS server 30, and this print data is delivered to the CO 41b for the printing apparatus. It is delivered from the CO 41b to the SO 41c corresponding to the printer model. The SO 41c processes this print data, generates a print command according to the command specification of the printing apparatus, and transmits it to the printing apparatus 50 via the OS 41d. The OPOS described above is provided to the user as the printer driver 109 in a form in which SO41c and CO41b are combined.
[0046]
In addition, a background image data setting program 108 for setting background image data is installed in SO41c. Although a specific description will be given later, the background image data setting program 108 displays a predetermined setting screen (see FIGS. 6 and 7) on the display 42, thereby allowing the user to provide an interface for setting the background image data. It is to provide. Thus, since the background image data setting program 108 is provided by the printer driver 109, the background image data can be set from the PC 40 without changing the POS application 41a of the PC 40.
[0047]
On the other hand, the printing apparatus 50 is an ink jet printer that performs printing by an ink jet method, and includes a printing unit 100 having six ink jet heads, that is, a first print head 55a to a sixth print head 55f. Each of these inkjet heads 55 ejects ink of M (magenta), C (cyan), Y (yellow), LM (light magenta), LC (light cyan), and K (black), thereby printing in full color. 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 so that multicolor printing can be performed. Alternatively, the number of heads can be reduced to print only one or two colors. It is good also as a structure to perform.
[0048]
In addition, the printing apparatus 50 sets either a monochrome print mode in which printing is performed using only the sixth print head 55f or a color print mode in which printing is performed using all the print heads by using a dip switch or a soft dip switch (not shown). It is possible. Then, the PC 40 can acquire information related to the mode setting and determine whether or not to include color information in the generated print data. Accordingly, when the color print mode is set and color information is included in the print data, it is possible to perform two-color or multicolor printing on the receipt 61 based on this. In the following description, the printing apparatus 50 is set to the color printing mode, the receipt print information is printed in the primary color “K (black)”, and the background image is designated as a sub color other than the primary color. Shall be printed.
[0049]
Next, the device configuration of the POS terminal 20 will be described with reference to FIGS. 2A and 2B. FIG. 2A is a front perspective view of the POS terminal 20 as viewed from the operation side by the operator, and FIG. 2B is a rear perspective view of the POS terminal 20 as viewed from the customer side. As shown in both figures, the POS terminal 20 includes a PC 40 that forms a main part of a box-shaped main body case 48 and a printing device 50 that is arranged on the left side of the rear portion of the main body case 48. Since the printing apparatus 50 is connected to the main body case 48 by a cable, the printing apparatus 50 is not limited to this arrangement, and can be arranged at an arbitrary place as long as the cable length allows.
[0050]
The PC 40 has a keyboard 43 on which the operator inputs information such as product information and customer information on the upper surface of the front part of the main body case 48, and an operator display 42a on which the operator confirms the input information on the right side of the rear part. A cash drawer 49 is accommodated in 48. Further, a bar code reader 44 for reading a bar code attached to 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 the printing device 50 is provided on the left side surface. A card reader slot 45 for reading a credit card presented by the customer 60 is formed on the right side. Further, a customer display 42 b for the customer 60 to confirm product information and the like is disposed on the back side of the main body case 48. The setting screen for setting the background image data (see FIGS. 6 and 7) is displayed on the operator-side display 42a, and the operator performs the setting operation while confirming this.
[0051]
On the other hand, the operation display lamp 65 and the PC-side interface 51 are arranged on the front side of the printing apparatus 50. The PC-side interface 51 and the printing apparatus-side interface 47 provided in the PC 40 include a cable 63 and a connector. 46 and 53 are connected. In addition, a receipt discharge port 64 through which a printed receipt 61 is discharged is formed on the upper surface of the printing apparatus 50.
[0052]
Next, the control configuration of the printing apparatus 50 will be described with reference to the functional block diagram of FIG. As shown in the figure, the control unit 140 of the printing apparatus 50 receives various data such as normal print data, print commands, and background image setting commands for receipt printing for the purpose of normal payment settlement processing from the terminal apparatus 40. Obtained via the interface 51 and stored in the reception buffer 71. The command analysis unit 72 analyzes the data stored in the reception buffer 71 and executes data processing according to the command data included therein. The command analysis unit 72 transfers a normal print data print command (including print data) that does not include a background image to the normal print data processing unit 73, and if it is a background image setting command, the background image data processing. If it is a print command for print data with background image, it is transferred to the print data generation unit with background image 76. The background image data processing unit 74 generates a predetermined background image, which will be described later, and stores it in the background image data storage unit 75. The normal print data processing unit 73 generates and stores print data in the normal print data storage unit 78.
[0053]
The print data generating unit with background image 76 includes a parameter for adding a background image to the print command, so the content specified by this parameter (the content of the parameter for adding the background image will be described in detail later). The data stored in the normal print data storage unit 78 and the predetermined background image data selected from the data stored in the background image data storage unit 75 are combined to generate print data with a background image. It is generated and transferred to the print processing unit 80. If the print command does not include a parameter for adding a background image, the print processing unit 80 transfers the data in the normal print data storage unit 78 to the printing unit 100 as it is, and the printing unit 100 performs ten printing. The As described above, the print processing unit 80 acquires data according to the type of the print command and transfers the data to the printing unit 100. These operations are mainly configured by a CPU, a ROM, a RAM, and the like (details will be described later). In this way, when background image-added printing is supported from the terminal device 40 described above, background-image-added print data is generated and printing can be performed by the printing unit 100.
[0054]
FIG. 4 shows a control block diagram of the printing apparatus 50. As shown in FIG. 4, the printing apparatus 50 has an interface 51 and inputs a background image setting command and print data from the PC 40. A data input unit 110 and six inkjet heads 55, each of which has a printing unit 100 that performs color printing by ejecting different colors of ink, and a head driver 131 that drives the inkjet head 55. And a control unit 140 that controls the entire printing apparatus 50.
[0055]
The control unit 140 includes a CPU 141, a ROM 142, a CG-ROM 143, and a RAM 144, which are connected to each other via 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. The CG-ROM 143 stores font data of characters to be printed, and outputs corresponding font data when a code for specifying the characters is given.
[0056]
The RAM 144 includes various work area blocks 151 used as flags and the like, a print data block 152 that stores print data transmitted from the PC 40, a background image data block 153 that stores a background image data file, and a start character string. A setting condition information block 155 for storing information on an end character string, a file name of the background image, a condition (setting condition) for adding the background image, and a background image generated by adding the background image data to the print data A background image-attached print data block 157 for storing attached print data, and is 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. The internal bus 145 is also connected to the data input unit 110 and the drive unit 130, and takes in input data (background image setting command, print data, etc.) from the interface 51 (see FIG. 3) and outputs output from the CPU 151 and the like. Data (such as print data with a background image) and control signals are output to the drive unit 130 (head driver 131).
[0057]
The CPU 141 receives various signals and data from each unit in the printing apparatus 50 based on the control program in the ROM 142 and processes various data in the RAM 144 and various signals in each unit. -Set the background image data by outputting data, etc., generate the print data with the background image by adding the background image data to the print data according to the setting contents, and print based on this The entire printing apparatus 50 is controlled.
[0058]
The interface 47 and the interface 47 provided in the PC 40 are serial data transfer such as RS-232C standard, parallel data transfer such as Centronics standard, network connection such as 10Base-T of Ethernet (registered trademark), or USB. The one corresponding to the data transfer standard can be adopted.
[0059]
Next, background image-added print data generation processing in the printing apparatus 50 will be described with reference to the flowchart of FIG. First, when the printing apparatus 50 acquires input data, it determines whether or not this is a background image setting command (S11). If the input data is a background image setting command (S11: Yes), the background image data is set (S12). At this time, the background image setting command is composed of a command code generally called an ESC sequence and various parameters. As an example, “ESC *” is used for bit image data transfer. Image data can be transferred by the notation “mnL nH dl... dk”. Based on such a configuration, a dedicated command for background image transfer can be set so that data such as file name, size, and color can be transmitted simultaneously as parameters together with image data. In this embodiment, a command having such a configuration is used. Thus, the received printing apparatus can manage data by the file name.
[0060]
The background image data is set by executing a background image data setting program 108 (see FIG. 1) in the PC 40. Specifically, when the background image data setting program 108 is started, a setting screen as shown in FIGS. 6 and 7 is displayed on the operator side display 42a, and the setting is performed by the operator inputting various information. However, this will be described in detail later.
[0061]
When the setting of the background image data is completed (S12), information regarding the setting contents is stored in the background image setting data block 156 (see FIG. 4) (S13), and then the set background image is set for the transmitted print data. Data addition processing is performed. That is, if the input data is not a background image setting command (S11: No) but is print data (S14: Yes), it is determined whether additional setting of the background image data has been made (S15). If the image data has been set (S15: Yes), background image data set in advance is added to the print data (S16), and print data with background image is generated (S18). If no additional setting is made (S15: No), background data is not added (S17), and the print data transmitted from the PC 40 is used as final print data. At this time, a print data transfer command is used, and generally a command for transferring text data is mainly used. In this command, by defining the parameters for setting the background image addition “necessary”, “unnecessary”, and the file name to be added, the previously transferred background image data is combined with the payment processing print data. In addition, it is possible to easily execute the process of superimposing (superposing) on the paper for printing.
[0062]
On the other hand, when the input data is not a background image setting command (S11: No) and is not print data (S14: No; for example, when information for registering background image data is input), the instruction is accepted. The process is performed (S19).
[0063]
Next, background image data setting processing executed by the background image data setting program 108 will be described with reference to setting screens (D11, D12) shown in FIGS. When the background image data setting program 108 is started by the operator, a command for reading background image data setting information is transmitted to the printing apparatus 50, and in response to this command, the background image data setting information is displayed on the setting screen. Is displayed. The operator newly sets background image data by setting an information portion different from the setting information.
[0064]
As shown in FIG. 6, in the setting screen, various information for setting the background image can be divided into a plurality of screens, and the operator (user) opens the desired setting screen and performs the setting. To go. When the setting screen for the first tab “Basic” is opened, the width size of the receipt 61, the print density of the background image, the print quality, and the like can be set, and the contents are almost the same as those of the normal print setting utility. The description is omitted here.
[0065]
The screen shown in FIG. 6 is a screen (D11) for setting information about “background image data”. First, when an operator selects one file from the registered file list 201, a background image and Are specified and input to the file specification field 202. The operator can also specify a file by selecting a registered ID in the ID column 203. Here, as “background image”, as shown in FIG. 8, three image files are registered, and one background image can be selected from these, and in this setting operation, “flame” is selected. It is assumed that “pattern (ID: U2)” is selected.
[0066]
Next, in the character string designation fields 204 and 205, a start character string and an end character string for specifying an area for printing a background image can be set. For example, when the start character string is “receipt”, the background image is printed below the line including the character string “receipt”. For example, when the end character string is “purchase”, the background image is printed above the line including the character string “purchase”. That is, as shown in <Print Example 1> in FIG. 9, the area determined by the line including the start character string and the line including the end character string is the print area of the background image. The start character string and the end character string are used for designating the start line and the end line of the superpose of the background image, and the above example describes the case where the characters are included. The use of this character string is not limited to this. For example, the start character string can be used to specify a line including the character string, the end character string can be used to specify the line immediately before the character string, and further, The reverse usage is also possible. It is also possible to put the contents specifying the definition in the command parameter. Furthermore, instead of using both the start and end character strings, for example, only the start character string is designated, and the end position of the image is matched with the end position of the payment processing information.
[0067]
In the setting screen D11, information about “color printing” can also be set. First, whether or not to perform color printing is set. If the operator checks “Yes” for color printing, the background color setting field 211 sets the print color for printing the background image.
[0068]
Here, since the print data representing the receipt print information is set in advance so as to be performed in the main color “K (black)”, the background image has a print color other than “K (black)”. (Sub color) can be set. Therefore, for example, in a printing apparatus that performs two-color printing with only “K (black)” and “R (red)”, if the print data is printed with the main color “K (black)”, the background image data is inevitably necessary. In this way, the print data is printed in the primary color and the background image data is printed in the secondary color. A background image can be added without impairing the visibility of printed characters, etc. It is assumed that the background color “Red (red)” is selected in this setting operation.
[0069]
When the setting of the above contents is completed, an “OK” button 207 is clicked by the operator, and information set for “background image data” is stored in a memory such as a RAM in the PC 40.
[0070]
Next, FIG. 7 shows a screen (D12) for setting information about “details”. First, whether or not to add a background image is set. Here, when the background image is not added by the operator, the background image data is not added regardless of the setting contents described above, and only the receipt print information is printed on the receipt 61 (FIG. 13). reference). In addition, in the background image registration field 211, when an “add” button 212 and a “delete” button 213 are clicked, background image data is additionally registered and deleted. In the character string registration field 214, a character string to be registered as a start character string or an end character string is input. Therefore, in the character string setting fields 204 and 205 (see FIG. 6), a start character string and an end character string can be selected from the character strings input here. When the setting of the above contents is completed, an “OK” button 215 is clicked by the operator, and information set for “details” is stored in a memory such as a RAM in the PC 40.
[0071]
When the setting of all the information shown in FIGS. 6 and 7 is completed and the “setting completion button” of background image data (not shown) is clicked by the operator, the set information (in a memory such as a RAM in the PC 40). The stored information) is transmitted as “background image setting command” from the PC 40 to the printing apparatus 50. As described above, the printing apparatus 50 sets the background image data in accordance with the “background image setting command”, stores the setting contents in the background image setting data block 156 (see FIG. 4), and is transmitted from the PC 40. Print data with background image is generated by adding the set background image data to the print data. Further, information regarding the background image and the character string registered on the “detail” setting screen (D12) is stored in the printing apparatus 50 together with the “background image setting command” when the “setting completion button” of the background image data is clicked. It is transmitted and stored in the background image data block 153 and the character string block 154 (see FIG. 4), respectively.
[0072]
<Printing example 1> in FIG. 9 is a print of the set background image superimposed on the receipt print information by the above setting operation. That is, according to the above setting content, the background image of “flame pattern” is printed from the line including the start character string “receipt” to the line including the end character string “purchase”, and the print color is It is “red”. Further, as shown here, the background image “flame pattern” is repeatedly printed according to the length from the line including the start character string “to the line including the end character string.
[0073]
Here, some examples of background image printing will be described with some examples. In <Print Example 2> in FIG. 10, “halftone dot pattern” is selected as the background image, the background color is set to “yellow”, and the start character string is “? Year? Month? Day” (wild card). Use), the case where the end character string is set to “total” is shown. In <Print Example 3> in FIG. 11, “flower pattern” is selected as the background image, the background color is set to “yellow”, the start character string “Thank You”, and the end character string “ It shows the case where it is set to “Receipt”. Therefore, the background image of “flower pattern” is printed in the area from the line including the start character string “Thank You” to the lower side and the line including the end character string “receipt”. In addition, although illustration is omitted, by making the start character string and the end character string the same character string, it is also possible to print the background image only on the line including the character string.
[0074]
Since the print area can be specified by specifying the start character string and the end character string in this way, the start position of the background image looks different for each receipt, especially when a large pattern is used as the background image. Will not get worse. Also, as shown in <Print Example 1> to <Print Example 3>, the start character string and the end character string are always printed on the receipt, so that the appropriate character area can be obtained regardless of the receipt length. A receipt on which a background image is printed can be issued.
[0075]
As described above, according to the printing method of the present invention, by storing a plurality of background images, start character strings, and end character strings, the operator (user) can easily select a favorite one from among them. You can set the background image. Further, by combining these, even if only several types of background image data are registered, the background image can be printed in various modes.
[0076]
In particular, when the printing apparatus 50 of the present invention is used in the POS system 10 as in the present embodiment, the store logo is printed in a specific area by storing the store logo or the like as a background image. A receipt 61 can be issued. That is, the printing apparatus 50 used as a receipt printer can be provided with a highly visible receipt only by providing a small memory for storing a background image (logo), and strongly enhances the store image to the customer. Impress and enhance advertising effectiveness.
[0077]
In addition, since the control unit 140 in the printing apparatus 50 generates the print data with the background image, for example, even if the POS application 41a of the PC 40 is a monochrome / text base, the color / graphic base is not changed. Print data (print data with background image data) can be generated.
[0078]
Next, a second embodiment of the present invention will be described. In the above embodiment, the print data with background image is generated by the control unit 140 in the printing apparatus 50. However, in the present embodiment, this is realized by the printer driver 452 incorporated in the PC 40. is there. Hereinafter, a description will be given focusing on differences from the first embodiment.
[0079]
As shown in FIG. 12, the terminal device 500 of the present embodiment displays a purchased product name and its amount at the time of money processing, and a display 442 for displaying the setting screen at the time of setting the background image data, and a product code And a keyboard 443 for inputting information for setting background image data, a barcode reader 444 for reading a barcode affixed or printed on a product at the time of money processing, and a customer 60 at the same time for money processing. A card reader 445 that reads a credit card or a membership card, a POS server side interface 448 that inputs / outputs information to / from the POS server 30, a printing device side interface 447 that inputs / outputs information to / from the printing device 50, and a product A monetary processing unit 420 that performs monetary processing such as registration and settlement; A data generation unit 430 for generating a printing data, other CPU, a memory such as a RAM and a ROM, a central control unit 410 for controlling the entire terminal device 500 is constituted by.
[0080]
The data generation unit 430 generates a print data based on the information processed by the money processing unit 420 and the information transmitted from the POS server 30, and performs various settings of the background image data. By adding background image data to the print data generated by the “background image data setting unit 432” and the “print data generation unit 431” according to the setting contents of the “background image data setting unit 432”, The “print data generation unit with background image data 433” that generates print data is configured. Among these, the “print data generation unit 431” is realized by the POS application 451, and the “background image data setting unit 432” and “print data generation with background image data 433” are realized by the printer driver 452. The “background image data setting unit 432” also includes a setting program for setting background image data (corresponding to the background image data setting program 108 of the first embodiment; see FIG. 1).
[0081]
The printer driver 452 can transmit print data (background image-added print data) and receive a control signal from the printing apparatus 50 via the printing apparatus side interface 447. Further, the “background image data setting unit 432” and the “print data generation unit with background image data 433” in the printer driver 452 perform the processing executed by the control unit 140 in the printing apparatus 50 in the first embodiment. Since the same processing is performed, description is omitted.
[0082]
Thus, according to the second embodiment of the present invention, for example, even if the POS application 451 of the terminal device 500 is monochromatic / text-based, the printer driver 452 does not change the color / graphic-based printing. Data (print data with background image data) can be generated.
[0083]
In the first and second embodiments, the generation of the print data with background image is realized by the control unit 140 in the printing apparatus 50 or the printer driver 452 incorporated in the terminal apparatus 500. However, this may be stored in a recording medium so that the generation program can be used by another printing apparatus. As the storage medium, a hard disk, flash ROM, memory card (compact flash (registered trademark), smart media, memory stick, etc.), compact disk, magneto-optical disk, digital versatile disk, flexible disk, and the like can be used.
[0084]
As described above, the printing method of the present invention, mark According to the printing apparatus, printer driver, merchandise sales data processing apparatus, and POS system, background image data representing a background image is stored in the printing apparatus 50, and print data representing receipt printing information generated by the PC 40 is stored. When acquired, the background image and the receipt print information are printed on the receipt, so that even if the PC 40 is a monochrome / text-based application, for example, the color / graphic base is changed by the printing device 50 without changing the application. A receipt can be issued.
[0085]
In addition, the print area of the background image is set within the area included between the lines where the start character string and the end character string detected from the print data are printed, thereby easily specifying the print area. And a good-looking receipt can be created.
[0086]
Further, according to this configuration, since the printing data with background image is generated on the printing apparatus 50 side, the data transmission time from the PC 40 to the printing apparatus 50 even when a low-speed interface is used as the interface between the PC 40 and the printing apparatus 50. Will not be a problem. Furthermore, since there is no need to change the printer driver, it is possible to issue the color / graphics-based receipt 61 with a minimum investment.
[0087]
Further, by generating a setting command for setting the print data with background image by the printer drivers 109 and 452, even if the PC 40 and the terminal device 500 are monochromatic / text-based applications, the applications are not changed. In addition, the background image data can be set from the PC 40 without directly operating the printing apparatus 50.
[0088]
In addition, the printer driver 452 incorporated in the terminal device 500 generates print data with a background image (second embodiment), so that printing can be performed without changing the monochrome / text-based application 451 of the terminal device 500. The device 50 can issue a color graphic based receipt.
[0089]
In the above example, the receipt print information is preset to be performed in the primary color “K (black)”, and the background image has a print color (sub color) other than “K (black)”. Although it can be set, it may be configured so that “K (black)” can be set as the background image. However, in this case (when the print data and the background image are set to be printed in the same color), the background image is preferably set to be automatically printed at a lower print density. According to this configuration, a background image can be added without impairing the visibility of the receipt print information.
[0090]
Further, not only the background image but also the print color of the receipt print information may be set. However, in this case as well, if the background image is configured so that only a print color other than the set color of the receipt print information can be set, or if the receipt print information and the background image are set to be printed in the same color, the background image The image is preferably set so that it is automatically printed at a lower print density.
[0091]
In the above example, both the start character string and the end character string are set. However, if these settings are not set, the print area of the background image may be specified according to the default value. . For example, if the start character string is not specified, printing of the background image is started from a line having a predetermined length X from the front end of the receipt 61. If the end character string is not specified, the predetermined length Y is specified from the rear end of the receipt 61. The printing of the background image may be completed up to the line. If the start character string is not specified, printing of the background image is started from the line on which a predetermined character string (for example, “TEL:”) included in the print data is printed, and the end character string is not specified. The printing of the background image may be completed up to the line where another predetermined character string (for example, “Thank you for your purchase”) included in the print data is printed. According to these configurations, setting work can be saved when the user is not concerned with the print area.
[0092]
The setting of the background image data is not limited to the setting contents shown in FIGS. 6 and 7, but the background image is enlarged / reduced, the rotation angle is set, two or more background images are specified, and their print colors are set. You may comprise so that it can perform. According to this configuration, more various background image data can be generated.
[0093]
In the above example, an ink jet type printer is used as the printing apparatus 50. However, the present invention is not limited to this, and a thermal head type or wire dot type printing apparatus may be used.
[0094]
In addition, the system configuration and the device configuration, such as a stand-alone type ECR that is not connected to a server and a cash register, can be appropriately changed without departing from the gist of the present invention, regardless of the above-described POS system example. .
[0095]
【The invention's effect】
As described above, the printing method of the present invention, mark According to the printing device, printer driver, merchandise sales data processing device, and POS system, a color / graphics-based receipt can be issued by the printing device without changing the monochrome / text-based application of the host computer, etc. There is an effect.
[Brief description of the drawings]
FIG. 1 is a configuration diagram showing an example of a POS system according to the present invention.
2A and 2B are external perspective views of a POS terminal constituting a POS system of the present invention.
FIG. 3 is a functional block diagram of a printing apparatus according to the present invention.
FIG. 4 is a control block diagram of the printing apparatus of the present invention.
FIG. 5 is a flowchart illustrating an example of print data generation processing with background image according to the present invention.
FIG. 6 is a diagram showing an example of a setting screen for setting background image data according to the present invention.
FIG. 7 is a diagram illustrating an example of a setting screen for setting background image data according to the present invention.
FIG. 8 is a diagram illustrating an example of a background image.
FIG. 9 is a diagram illustrating <Print Example 1> which is an example of a receipt created by the printing method of the present invention.
FIG. 10 is a diagram illustrating <Print Example 2> which is an example of a receipt created by the printing method of the present invention.
FIG. 11 is a diagram illustrating <Print Example 3> which is an example of a receipt created by the printing method of the present invention.
FIG. 12 is a functional block diagram of a terminal device according to a second embodiment of the present invention.
FIG. 13 is a view showing an example of creating a receipt in the 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 Printer interface
50 Printing device
51 PC side interface
61 Receipt
91 Image data storage unit
92 Character string storage
93 Setting data storage
94 Print data storage
108 Background image data setting program
109 Printer driver
100 printing section
110 Data input / output section
111 POS server side interface
120 Input section
130 Display
140 Drive unit
150 Control unit
151 CPU
152 ROM
153 RAM
154 Internal bus
400 terminal device
410 Central control unit
420 Money processing department
430 Data generation unit
431 Print data generation unit
432 Background image data setting unit
433 Background image data generation unit
434 Print data generation unit with background image data
451 POS application
452 Printer driver

Claims (13)

商品販売に関する入力情報に基づき、ホストコンピュータ上のアプリケーション実行部によって生成された支払処理印刷データを取得し、当該印刷データに背景画像データを重ねて得られたレシート印刷データを印刷装置を用いてレシート上に印刷する印刷方法であって、
前記背景画像を表す背景画像データを記憶する背景画像データ記憶工程と、
前記アプリケーション実行部から前記印刷データを取得する印刷データ取得工程と、
前記支払処理印刷データの中から、前記背景画像データの付加を開始する位置を示すスタート文字列、および前記背景画像データの付加を終了する位置を示すエンド文字列を検出する文字列検出工程と、
前記レシート上において、前記支払処理印刷データに重ねて、前記スタート文字列と前記エンド文字列で指定された領域内に前記背景画像を印刷する印刷工程と、
を備えたことを特徴とする印刷方法。
Acquire payment processing print data generated by an application execution unit on the host computer based on input information related to merchandise sales, and use the printing device to obtain receipt print data obtained by superimposing background image data on the print data. A printing method for printing on top,
A background image data storage step for storing background image data representing the background image;
A print data acquisition step of acquiring the print data from the application execution unit;
A character string detection step for detecting a start character string indicating a position at which addition of the background image data is started and an end character string indicating a position at which addition of the background image data is ended, from the payment processing print data;
On the receipt, a printing step of printing the background image in an area designated by the start character string and the end character string, superimposed on the payment processing print data;
A printing method characterized by comprising:
印刷媒体に印刷データを背景画像と共に印刷する装置であって、
背景画像を表す背景画像データを記憶する第一の手段と、
入力情報に基づいて印刷データを取得する第二の手段と、
前記背景画像データの付加を開始する位置を示すスタート文字列、および前記背景画像データの付加を終了する位置を示すエンド文字列を検出する第三の手段と、
前記スタート文字列と前記エンド文字列で指定された領域内において前記背景画像と前記印刷データとを重ねて前記印刷媒体上に印刷する第四の手段と、
を備えたことを特徴とする印刷装置。
An apparatus for printing print data on a print medium together with a background image,
First means for storing background image data representing a background image;
A second means for acquiring print data based on input information;
A third means for detecting a start character string indicating a position where the addition of the background image data is started and an end character string indicating a position where the addition of the background image data is ended;
A fourth means for printing the background image and the print data on the print medium in an area designated by the start character string and the end character string;
A printing apparatus comprising:
商品販売に関する入力情報に基づき、ホストコンピュータによって生成された支払処理印刷データを取得し、当該印刷データに背景画像データを重ねてレシート上に印刷する印刷装置であって、
前記背景画像を表す背景画像データを記憶する背景画像データ記憶手段と、
前記背景画像データの付加を開始する位置を示すスタート文字列、および前記背景画像データの付加を終了する位置を示すエンド文字列を記憶する文字列記憶手段と、
前記ホストコンピュータから前記印刷データを取得する印刷データ取得手段と、
前記印刷データの中から、前記背景画像データの付加を開始する位置を示すスタート文字列、および前記背景画像データの付加を終了する位置を示すエンド文字列を検出する文字列検出手段と、
前記レシート上において、前記支払処理印刷データに重ねて、前記スタート文字列で指定された行から前記エンド文字列で指定された行までの領域内に前記背景画像を印刷する印刷手段と、
を備えたことを特徴とする印刷装置。
A printing apparatus that acquires payment processing print data generated by a host computer based on input information related to product sales, and prints the background image data on the print data on a receipt,
Background image data storage means for storing background image data representing the background image;
A character string storage means for storing a start character string indicating a position where the addition of the background image data is started, and an end character string indicating a position where the addition of the background image data is ended;
Print data acquisition means for acquiring the print data from the host computer;
From the print data, a character string detection means for detecting a start character string indicating a position where the addition of the background image data is started and an end character string indicating a position where the addition of the background image data is ended;
Printing means for printing the background image in an area from the line specified by the start character string to the line specified by the end character string on the receipt on the payment processing print data.
A printing apparatus comprising:
前記スタート文字列および/または前記エンド文字列を指定する第五の手段を更に備えたことを特徴とする請求項に記載の印刷装置。The printing apparatus according to claim 2 , further comprising fifth means for designating the start character string and / or the end character string. 前記第四の手段は、主色と、当該主色以外の少なくとも1色の副色とによるカラー印刷が可能であり、
前記レシート印刷情報を前記主色によって印刷し、前記背景画像を前記少なくとも1色の副色によって印刷することを特徴とする請求項に記載の印刷装置。
The fourth means is capable of color printing with a primary color and at least one sub-color other than the primary color,
The printing apparatus according to claim 4 , wherein the receipt print information is printed with the primary color, and the background image is printed with the at least one sub-color.
前記第五の手段は、前記ホストコンピュータから送信された設定コマンドにしたがって所定の文字列を文字列を記憶する第六の手段に格納することを特徴とする請求項に記載の印刷装置。6. The printing apparatus according to claim 5 , wherein the fifth means stores a predetermined character string in a sixth means for storing the character string in accordance with a setting command transmitted from the host computer. 前記設定コマンドは、前記背景画像の印刷色を指定するパラメータを含み、当該パラメータに従って前記背景画像を指定された色で印刷することを特徴とする請求項に記載の印刷装置。The printing apparatus according to claim 6 , wherein the setting command includes a parameter for designating a printing color of the background image, and the background image is printed with a designated color in accordance with the parameter. 前記第一の手段は、前記背景画像データのファイルを複数記憶しており、
前記設定コマンドは、前記複数の背景画像データの中から、印刷対象となる1の背景画像データを選択するパラメータを含み、当該パラメータに従って選択された背景画像を印刷することを特徴とする請求項に記載の印刷装置。
The first means stores a plurality of files of the background image data,
The setting command, from among the plurality of background image data comprises a parameter for selecting one of the background image data to be printed, according to claim 7, characterized in that printing the background image selected in accordance with the parameters A printing apparatus according to 1.
前記設定コマンドは、前記ホストコンピュータに組み込まれたプリンタドライバによって生成されることを特徴とする請求項に記載の印刷装置。The printing apparatus according to claim 7 , wherein the setting command is generated by a printer driver incorporated in the host computer. ホストコンピュータに組み込まれ、商品販売に関する入力情報に基づいて当該ホストコンピュータ内のアプリケーション実行部によって生成された支払処理印刷データに、背景画像を表す背景画像データを付加することによって背景画像付レシート印刷データを生成し、これを印刷装置に送信するプリンタドライバであって、
前記背景画像を表す背景画像データのファイルを記憶する背景画像データ記憶手段と、
前記アプリケーション実行部から前記支払処理印刷データを取得する印刷データ取得手段と、
前記印刷データの中から、前記背景画像データの付加を開始する位置を示すスタート文字列、および前記背景画像データの付加を終了する位置を示すエンド文字列を検出する文字列検出手段と、
前記スタート文字列と前記エンド文字列で指定された領域において、前記印刷データに前記背景画像データを付加することによって、背景画像付印刷データを生成する背景画像付印刷データ生成手段と、
前記背景画像付印刷データを前記印刷装置に送信する送信手段と、
を備えたことを特徴とするプリンタドライバ。
Receipt print data with a background image by adding background image data representing a background image to payment processing print data incorporated in a host computer and generated by an application execution unit in the host computer based on input information relating to product sales A printer driver that generates and sends it to the printing device,
Background image data storage means for storing a file of background image data representing the background image;
Print data acquisition means for acquiring the payment processing print data from the application execution unit;
From the print data, a character string detection means for detecting a start character string indicating a position where the addition of the background image data is started and an end character string indicating a position where the addition of the background image data is ended;
In a region designated by the start character string and the end character string, by adding the background image data to the print data, a background image-added print data generating unit that generates background image-added print data;
Transmitting means for transmitting the print data with background image to the printing apparatus;
A printer driver characterized by comprising:
請求項に記載の印刷装置と、前記ホストコンピュータとを備えたことを特徴とする商品販売データ処理装置。A product sales data processing apparatus comprising the printing apparatus according to claim 2 and the host computer. 請求項10に記載のプリンタドライバを有すると共に、前記ホストコンピュータとして機能する端末装置と、前記印刷装置と、を備えたことを特徴とする商品販売データ処理装置。A merchandise sales data processing apparatus comprising: the printer driver according to claim 10; and a terminal device that functions as the host computer; and the printing device. 請求項11に記載の商品販売データ処理装置と、
ネットワークを介して前記商品販売データ処理装置に接続され、当該商品販売データ処理装置を管理するPOSサーバと、によって構成されていることを特徴とするPOSシステム。
A merchandise sales data processing device according to claim 11 ;
A POS system comprising: a POS server connected to the merchandise sales data processing apparatus via a network and managing the merchandise sales data processing apparatus.
JP2003208852A 2002-09-05 2003-08-26 Printing method, printing apparatus, printer driver, merchandise sales data processing apparatus, and POS system Expired - Fee Related JP4341326B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003208852A JP4341326B2 (en) 2002-09-05 2003-08-26 Printing method, printing apparatus, printer driver, merchandise sales data processing apparatus, and POS system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2002260047 2002-09-05
JP2003208852A JP4341326B2 (en) 2002-09-05 2003-08-26 Printing method, printing apparatus, printer driver, merchandise sales data processing apparatus, and POS system

Publications (2)

Publication Number Publication Date
JP2004152256A JP2004152256A (en) 2004-05-27
JP4341326B2 true JP4341326B2 (en) 2009-10-07

Family

ID=32472980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003208852A Expired - Fee Related JP4341326B2 (en) 2002-09-05 2003-08-26 Printing method, printing apparatus, printer driver, merchandise sales data processing apparatus, and POS system

Country Status (1)

Country Link
JP (1) JP4341326B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009226689A (en) * 2008-03-21 2009-10-08 Seiko Epson Corp Printer
JP5374932B2 (en) 2008-06-18 2013-12-25 セイコーエプソン株式会社 Printer, printer control method and operation control program
JP5760705B2 (en) * 2011-05-31 2015-08-12 セイコーエプソン株式会社 RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP6036040B2 (en) * 2012-09-07 2016-11-30 セイコーエプソン株式会社 RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
US9280305B2 (en) 2013-01-02 2016-03-08 Seiko Epson Corporation Client device using a markup language to control a periphery device via a printer

Also Published As

Publication number Publication date
JP2004152256A (en) 2004-05-27

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
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
JP4670264B2 (en) Printing apparatus, printer interface, POS system, program, and printing apparatus control method
JP2006323445A (en) Printing system, pos system, connection device, control method for printing system, and program therefor
EP1342578B1 (en) Printing system generating multichrome print data from monochrome print data
US7355737B2 (en) Apparatus and method for two-color printing based on single color data
EP1408465B1 (en) Method of controlling printing apparatus in POS systems
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
JP4341326B2 (en) Printing method, printing apparatus, printer driver, merchandise sales data processing apparatus, and POS system
JP4492191B2 (en) POS terminal control method and program
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
EP1396808A1 (en) Method and apparatus of printing payment transaction information, program, printer driver and point of sale system for realising the same
JP2003266804A (en) Printer, printer controlling method, apparatus and method for setting coloring information, program for executing these methods by computer and recording medium with the program recorded
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
JP4579470B2 (en) How to register print data
JP4414742B2 (en) Passbook printing system
JP4062413B2 (en) Printer control apparatus, printer control method, program for causing computer to execute printer control method, printer system, POS system
JP2003330690A (en) Printing system, printer, pos system, coloring setting device, printer driver, print control method, coloring setting method, program and recording medium having its program recorded thereon
JP4144289B2 (en) Printing method, program for realizing the printing method, recording medium recording the program, POS terminal and POS system
JP2003260819A (en) Printer controller, printer control method, program for making computer execute printer control method, printer system and pos system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060605

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080925

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090331

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090526

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: 20090616

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: 20090629

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

Free format text: PAYMENT UNTIL: 20120717

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4341326

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120717

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130717

Year of fee payment: 4

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