[go: up one dir, main page]

JP2008226124A - Printing system, control method of printing system, and program - Google Patents

Printing system, control method of printing system, and program Download PDF

Info

Publication number
JP2008226124A
JP2008226124A JP2007066777A JP2007066777A JP2008226124A JP 2008226124 A JP2008226124 A JP 2008226124A JP 2007066777 A JP2007066777 A JP 2007066777A JP 2007066777 A JP2007066777 A JP 2007066777A JP 2008226124 A JP2008226124 A JP 2008226124A
Authority
JP
Japan
Prior art keywords
print
change
print data
data
printing system
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.)
Pending
Application number
JP2007066777A
Other languages
Japanese (ja)
Inventor
Machiko Murakami
麻千子 村上
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.)
Star Micronics Co Ltd
Original Assignee
Star Micronics Co Ltd
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 Star Micronics Co Ltd filed Critical Star Micronics Co Ltd
Priority to JP2007066777A priority Critical patent/JP2008226124A/en
Publication of JP2008226124A publication Critical patent/JP2008226124A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printing system for enabling a user to add a desired change to a printing target character string included in print data generated by any of a plurality of print data generation programs and enabling the user or the like to relatively easily confirm whether the change as the user intends is added to the print target character string. <P>SOLUTION: A changing means (first print data changing/storing program 35a) adds a change to the printing target character string included in the print data. A request for a printout is made to a print output means on the basis of the print data changed by the changing means. A print data output means (first print data changing/storing program 35a) outputs contents of the print data before changed by the changing means and contents of the print data after changed by the changing means. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は印刷システム、印刷システムの制御方法及びプログラムに関する。   The present invention relates to a printing system, a printing system control method, and a program.

アプリケーションプログラムで作成された文書や画像をプリンタに印刷出力させる印刷システムが一般的に知られている。例えば商品販売の場では、POS(Point Of Sales)アプリケーションプログラムで生成されたレシートをプリンタに印刷出力させる印刷システムが利用されている。   A printing system that causes a printer to print out a document or an image created by an application program is generally known. For example, in the case of merchandise sales, a printing system that uses a printer to print out a receipt generated by a POS (Point Of Sales) application program is used.

例えば、上記のような商品販売の場で利用される印刷システムでは、その利便性を向上するために、POSアプリケーションプログラムで生成されたレシートにユーザが所望の変更を加えることができるような機能を実現することが考えられる。具体的には、例えば、POSアプリケーションプログラムで生成されたレシートに含まれる所定の文字列を他の文字列に置き換える機能を実現することが考えられる。こうすれば、例えば、POSアプリケーションプログラムで生成されたレシートに含まれる「お買上げありがとうございました」との文字列を、明日が特売日である場合には、「明日は特売日です!!!」との文字列に置き換えることが可能になる。また例えば、POSアプリケーションプログラムで生成されたレシートに特定の文字列が含まれる場合には所定の文字列を追加する機能を実現することも考えられる。こうすれば、例えば、POSアプリケーションプログラムで生成されたレシートに特定の商品名が含まれている場合に、その商品又はその商品の関連商品の広告又はクーポンを示す文字列をレシートに追加することが可能になる。すなわち、特定の商品を購入した顧客に対してその商品又はその商品の関連商品の広告又はクーポンを比較的簡易に配布できるようになる。   For example, in a printing system used in the merchandise sales place as described above, a function that allows a user to make a desired change to a receipt generated by a POS application program in order to improve its convenience. It can be realized. Specifically, for example, it is conceivable to realize a function of replacing a predetermined character string included in a receipt generated by a POS application program with another character string. In this way, for example, if the letter “Thank you for your purchase” included in the receipt generated by the POS application program is tomorrow is a sale day, “Tomorrow is a sale day !!” It becomes possible to replace with the character string. Further, for example, when a receipt generated by the POS application program includes a specific character string, a function of adding a predetermined character string may be realized. In this way, for example, when a specific product name is included in the receipt generated by the POS application program, a character string indicating an advertisement or coupon of the product or a related product of the product may be added to the receipt. It becomes possible. That is, it becomes possible to relatively easily distribute advertisements or coupons for the product or related products of the product to customers who have purchased the specific product.

上記のような機能を実現するにあたっては、ユーザが意図しているとおりの変更がレシートに加えられているか否かをユーザやシステム提供者(開発者)等が比較的簡易に確認できるように図る必要がある。   In realizing the functions as described above, the user, the system provider (developer), etc. can confirm relatively easily whether or not a change as intended by the user has been made to the receipt. There is a need.

本発明は上記課題に鑑みてなされたものであって、その目的は、複数の印刷データ生成プログラムのうちのいずれかによって生成された印刷データに含まれる印刷対象文字列にユーザが所望の変更を加えることが可能になるとともに、ユーザが意図しているとおりの変更が印刷対象文字列に加えられているか否かをユーザ等が比較的簡易に確認できるように図ることが可能になる印刷システム、印刷システムの制御方法及びプログラムを提供することにある。   The present invention has been made in view of the above problems, and its purpose is to allow a user to make a desired change to a print target character string included in print data generated by any one of a plurality of print data generation programs. A printing system that allows the user to check relatively easily whether or not a change intended by the user has been added to the print target character string, To provide a control method and program for a printing system.

上記課題を解決するために、本発明に係る印刷システムは、複数の印刷データ生成プログラムのうちのいずれかによって生成され、印刷対象文字列を含む印刷データに基づいて、印刷出力手段に印刷出力を実行させる印刷システムにおいて、前記印刷対象文字列に加える変更を制御するための変更制御データを記憶する変更制御データ記憶手段と、前記変更制御データに基づいて、前記印刷データに含まれる印刷対象文字列に変更を加える変更手段と、前記変更手段による変更後の前記印刷データに基づいて、前記印刷出力手段に印刷出力を要求する印刷出力要求手段と、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、を出力する印刷データ出力手段と、を含むことを特徴とする。   In order to solve the above problems, a printing system according to the present invention generates a print output to a print output unit based on print data generated by any one of a plurality of print data generation programs and including a print target character string. In the printing system to be executed, change control data storage means for storing change control data for controlling a change to be applied to the print target character string, and a print target character string included in the print data based on the change control data A change means for changing the print data, a print output request means for requesting the print output means for print output based on the print data after the change by the change means, and the contents of the print data before the change by the change means And print data output means for outputting the contents of the print data after being changed by the changing means. .

また、本発明に係る印刷システムの制御方法は、複数の印刷データ生成プログラムのうちのいずれかによって生成され、印刷対象文字列を含む印刷データに基づいて、印刷出力手段に印刷出力を実行させる印刷システムの制御方法において、前記印刷対象文字列に加える変更を制御するための変更制御データを記憶してなる変更制御データ記憶手段から前記変更制御データを読み出すステップと、前記変更制御データに基づいて、前記印刷データに含まれる印刷対象文字列に変更を加える変更ステップと、前記変更ステップによる変更後の前記印刷データに基づいて、前記印刷出力手段に印刷出力を要求する印刷出力要求ステップと、前記変更ステップによる変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、を出力する印刷データ出力ステップと、を含むことを特徴とする。   Also, the printing system control method according to the present invention is a print that is generated by any one of a plurality of print data generation programs and causes a print output unit to execute print output based on print data including a print target character string. In the system control method, based on the change control data, the step of reading the change control data from change control data storage means for storing change control data for controlling the change to be applied to the character string to be printed, A change step for changing a print target character string included in the print data; a print output request step for requesting print output to the print output means based on the print data after the change in the change step; and the change The contents of the print data before the change by the step and the print data after the change by the changing means Characterized in that it comprises a print data output step of outputting the contents, and the.

また、本発明に係るプログラムは、複数の印刷データ生成プログラムのうちのいずれかによって生成され、印刷対象文字列を含む印刷データに基づいて、印刷出力手段に印刷出力を実行させる印刷システムとしてコンピュータを機能させるためのプログラムであって、前記印刷対象文字列に加える変更を制御するための変更制御データを記憶してなる変更制御データ記憶手段から前記変更制御データを読み出す手段と、前記変更制御データに基づいて、前記印刷データに含まれる印刷対象文字列に変更を加える変更手段、前記変更手段による変更後の前記印刷データに基づいて、前記印刷出力手段に印刷出力を要求する印刷出力要求手段、及び、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、を出力する印刷データ出力手段、として前記コンピュータを機能させるためのプログラムである。   The program according to the present invention is a computer as a printing system that is generated by any one of a plurality of print data generation programs and causes a print output unit to execute print output based on print data including a print target character string. A program for causing the change control data to read out the change control data from a change control data storage means for storing change control data for controlling a change applied to the character string to be printed; A change means for changing a print target character string included in the print data, a print output request means for requesting a print output to the print output means based on the print data after the change by the change means, and The contents of the print data before the change by the change means and the print data after the change by the change means Is a program for causing the computer to function print data output means for outputting the contents of the data, and as.

また、本発明に係る情報記憶媒体は、上記プログラムを記憶したコンピュータ読み取り可能な情報記憶媒体である。   An information storage medium according to the present invention is a computer-readable information storage medium storing the above program.

本発明は、複数の印刷データ生成プログラムのうちのいずれかによって生成され、印刷対象文字列を含む印刷データに基づいて、印刷出力手段に印刷出力を実行させる印刷システムに関する。本発明では、印刷対象文字列に加える変更を制御するための変更制御データが記憶される。変更制御データに基づいて、印刷データに含まれる印刷対象文字列に変更が加えられる。そして、該変更後の印刷データに基づいて、印刷出力手段に印刷出力が要求される。また本発明では、上記変更前の印刷データの内容と、上記変更後の印刷データの内容と、が出力される。ここで、「出力」には、例えば、印刷出力、表示出力や、不揮発性記憶手段への保存等が含まれる。本発明によれば、複数の印刷データ生成プログラムのうちのいずれかによって生成された印刷データに含まれる印刷対象文字列にユーザが所望の変更を加えることが可能になる。さらに、本発明によれば、ユーザが意図しているとおりの変更が印刷対象文字列に加えられているか否かをユーザやシステム提供者等が比較的簡易に確認できるように図ることが可能になる。   The present invention relates to a printing system that causes a print output unit to execute print output based on print data that is generated by any one of a plurality of print data generation programs and includes a print target character string. In the present invention, change control data for controlling a change to be made to a print target character string is stored. Based on the change control data, the print target character string included in the print data is changed. Then, based on the changed print data, a print output is requested to the print output means. In the present invention, the contents of the print data before the change and the contents of the print data after the change are output. Here, “output” includes, for example, print output, display output, storage in a nonvolatile storage unit, and the like. According to the present invention, a user can make a desired change to a print target character string included in print data generated by any of a plurality of print data generation programs. Furthermore, according to the present invention, it is possible to make it relatively easy for the user, the system provider, and the like to confirm whether or not a change as intended by the user has been made to the character string to be printed. Become.

また、本発明の一態様では、前記印刷データ出力手段は、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、を不揮発性記憶手段に保存する保存手段を含むようにしてもよい。   In one aspect of the present invention, the print data output means stores the contents of the print data before the change by the change means and the contents of the print data after the change by the change means in a nonvolatile storage means. You may make it include the preservation | save means to preserve | save.

また、本発明の一態様では、前記保存手段は、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、をn進表記で保存するようにしてもよい。   In the aspect of the invention, the storage unit may store the content of the print data before the change by the change unit and the content of the print data after the change by the change unit in n-ary notation. It may be.

また、本発明の一態様では、前記保存手段は、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、該変更の基礎として用いられた前記変更制御データの内容と、を関連づけて前記不揮発性記憶手段に保存するようにしてもよい。   In one aspect of the present invention, the storage unit is used as the content of the print data before the change by the change unit, the content of the print data after the change by the change unit, and the basis of the change. The contents of the change control data may be associated with each other and stored in the nonvolatile storage means.

また、本発明の一態様では、前記印刷データ出力手段は、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、を印刷出力することを前記印刷出力手段に要求する第2印刷出力要求手段を含むようにしてもよい。   In one aspect of the present invention, the print data output means prints out the contents of the print data before the change by the change means and the contents of the print data after the change by the change means. A second print output requesting unit that requests the print output unit may be included.

また、本発明の一態様では、前記第2印刷出力要求手段は、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、をn進表記で印刷出力することを前記印刷出力手段に要求するようにしてもよい。   In the aspect of the invention, the second print output requesting unit may express the content of the print data before the change by the change unit and the content of the print data after the change by the change unit in n-ary notation. It is also possible to request the print output means to perform print output.

また、本発明の一態様では、前記第2印刷出力要求手段は、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、該変更の基礎として用いられた前記変更制御データの内容と、を印刷出力することを前記印刷出力手段に要求するようにしてもよい。   In the aspect of the invention, the second print output request unit may include the content of the print data before the change by the change unit, the content of the print data after the change by the change unit, and the basis of the change. It is also possible to request the print output means to print out the contents of the change control data used as.

また、本発明の一態様では、前記印刷システムは、プリンタ装置と、前記プリンタ装置と通信接続される印刷出力要求装置と、を含み、前記印刷出力手段は前記プリンタ装置に含まれ、前記変更制御データ記憶手段と前記変更手段と前記印刷出力要求手段と前記印刷データ出力手段とは前記印刷出力要求装置に含まれるようにしてもよい。   In one aspect of the present invention, the printing system includes a printer device and a print output requesting device connected to the printer device, the print output unit is included in the printer device, and the change control is performed. The data storage means, the change means, the print output request means, and the print data output means may be included in the print output request apparatus.

また、本発明の一態様では、前記複数の印刷データ生成プログラムのうちのいずれかによって生成される前記印刷データは、第1データフォーマットに則った第1印刷データであり、前記変更手段は、前記変更制御データに基づいて、前記第1印刷データに含まれる前記印刷対象文字列に変更を加え、前記印刷出力要求手段は、前記変更手段による変更後の前記第1印刷データに基づいて、第2データフォーマットに則った第2印刷データを生成する手段を含み、前記第2印刷データを前記プリンタ装置に供給するようにしてもよい。   In one aspect of the present invention, the print data generated by any one of the plurality of print data generation programs is first print data conforming to a first data format, and the changing unit includes Based on the change control data, the print target character string included in the first print data is changed, and the print output requesting unit performs a second operation based on the first print data changed by the changing unit. Means for generating second print data according to a data format may be included, and the second print data may be supplied to the printer device.

以下、本発明の実施形態の一例について図面に基づき詳細に説明する。   Hereinafter, an example of an embodiment of the present invention will be described in detail with reference to the drawings.

図1は、本発明の実施形態に係る印刷システムの全体構成を示す図である。図1に示すように、本実施の形態に係る印刷システム1はPOSコンピュータ10(印刷出力要求装置)と、プリンタ装置20と、を含んで構成される。   FIG. 1 is a diagram showing an overall configuration of a printing system according to an embodiment of the present invention. As shown in FIG. 1, the printing system 1 according to the present embodiment includes a POS computer 10 (print output request device) and a printer device 20.

図1に示すように、POSコンピュータ10は制御部11、主記憶部12、補助記憶部13(不揮発性記憶手段)、入力部14、表示部15、光ディスク読み取り部16及びインタフェース(I/F)17を含んで構成されるコンピュータシステムである。   As shown in FIG. 1, the POS computer 10 includes a control unit 11, a main storage unit 12, an auxiliary storage unit 13 (nonvolatile storage means), an input unit 14, a display unit 15, an optical disc reading unit 16, and an interface (I / F). 17 is a computer system including 17.

制御部11は、主記憶部12に読み出されたオペレーティングシステム及びその他のプログラムに従って各種情報処理を実行する。主記憶部12はRAM(Random Access Memory)を含んで構成される。主記憶部12には、補助記憶部13や光ディスクから読み出されたプログラムやデータが格納される。また主記憶部12は、処理の過程で必要となる種々のデータを記憶するワークメモリとしても用いられる。補助記憶部13は不揮発性記憶媒体を含んで構成される。補助記憶部13は例えばハードディスク装置やメモリカード等を含んで構成される。   The control unit 11 executes various types of information processing according to the operating system and other programs read to the main storage unit 12. The main storage unit 12 includes a RAM (Random Access Memory). The main storage unit 12 stores programs and data read from the auxiliary storage unit 13 and the optical disc. The main storage unit 12 is also used as a work memory for storing various data necessary for the process. The auxiliary storage unit 13 includes a nonvolatile storage medium. The auxiliary storage unit 13 includes, for example, a hard disk device and a memory card.

入力部14はユーザの操作入力に応じたデータを制御部11に入力する。入力部14は例えばキーボード又はマウスである。表示部15は制御部11から入力される指示に従って情報の表示を行う。表示部15は例えばディスプレイである。光ディスク読み取り部16は、光ディスク(情報記憶媒体)に記憶されたプログラムやデータを制御部11からの指示に従って読み取る。光ディスクは例えばDVD(Digital Versatile Disk)−ROM(Read Only Memory)等である。   The input unit 14 inputs data corresponding to a user operation input to the control unit 11. The input unit 14 is, for example, a keyboard or a mouse. The display unit 15 displays information according to instructions input from the control unit 11. The display unit 15 is a display, for example. The optical disk reading unit 16 reads a program and data stored on an optical disk (information storage medium) according to an instruction from the control unit 11. The optical disk is, for example, a DVD (Digital Versatile Disk) -ROM (Read Only Memory).

インタフェース17は各種周辺機器をPOSコンピュータ10に接続するためのインタフェースである。インタフェース17は周辺機器から入力されるデータを制御部11に出力する。また、インタフェース17は制御部11から入力される指示に従って種々のデータを周辺機器に出力する。POSコンピュータ10には、例えばUSB(Universal Serial Bus)インタフェース規格に則った1又は複数の接続口(以下、「USBポート」と記載する。)が設けられる。   The interface 17 is an interface for connecting various peripheral devices to the POS computer 10. The interface 17 outputs data input from the peripheral device to the control unit 11. Further, the interface 17 outputs various data to the peripheral device in accordance with instructions input from the control unit 11. The POS computer 10 is provided with one or a plurality of connection ports (hereinafter referred to as “USB ports”) conforming to, for example, a USB (Universal Serial Bus) interface standard.

本実施の形態では、POSコンピュータ10にオペレーティングシステムとしてマイクロソフト社製のウィンドウズ(登録商標)がインストールされている。また、POSコンピュータ10にはPOSアプリケーションプログラム(以下、「POSアプリケーション」と記載する。)がインストールされている。POSアプリケーションはレシートを生成する機能を備えている。図2はPOSアプリケーションによって生成されるレシートの一例を示している。   In the present embodiment, Windows (registered trademark) manufactured by Microsoft Corporation is installed in the POS computer 10 as an operating system. A POS application program (hereinafter referred to as “POS application”) is installed in the POS computer 10. The POS application has a function for generating a receipt. FIG. 2 shows an example of a receipt generated by the POS application.

POSコンピュータ10にはインタフェース17を介してプリンタ装置20が相互にデータ授受可能に接続される。プリンタ装置20はPOSアプリケーションによって生成されたレシートを印刷するために用いられる。図1に示すように、プリンタ装置20は制御部21、記憶部22、印刷出力部23及びインタフェース(I/F)24を含んで構成される。   The printer device 20 is connected to the POS computer 10 via the interface 17 so as to be able to exchange data with each other. The printer device 20 is used to print a receipt generated by a POS application. As shown in FIG. 1, the printer device 20 includes a control unit 21, a storage unit 22, a print output unit 23, and an interface (I / F) 24.

制御部21はプリンタ装置20全体の制御を行う。記憶部22はRAMやROMを含んで構成される。記憶部22には、印刷出力を実行するために必要な各種プログラムやデータが記憶される。インタフェース24はPOSコンピュータ10から送信されるデータを受信し、制御部21に出力する。プリンタ装置20には、例えばUSBポートがインタフェース24として設けられる。印刷出力部23は印刷出力を実行する。すなわち印刷出力部23は、制御部21から供給されるデータに基づいて、画像を用紙等の画像記録媒体に形成する。   The control unit 21 controls the entire printer device 20. The storage unit 22 includes a RAM and a ROM. The storage unit 22 stores various programs and data necessary for executing print output. The interface 24 receives data transmitted from the POS computer 10 and outputs it to the control unit 21. The printer device 20 is provided with, for example, a USB port as the interface 24. The print output unit 23 executes print output. That is, the print output unit 23 forms an image on an image recording medium such as paper based on the data supplied from the control unit 21.

本実施の形態では、プリンタ装置20は、所定のデータフォーマットのラスタ画像データ(より詳しくは、画像を構成する各画素ごとの着色情報を示すデータ)をPOSコンピュータ10から受信する。そしてプリンタ装置20(印刷出力部23)はそのラスタ画像データを画像記録媒体に形成する。またプリンタ装置20は、各機構の動作を制御するための制御コマンドデータをPOSコンピュータ10から受信する。そしてプリンタ装置20はその制御コマンドデータに従って各機構の動作を制御する。例えば、プリンタ装置20は用紙の切断を指示する制御コマンドデータをPOSコンピュータ10から受信する。そしてプリンタ装置20(印刷出力部23)はその制御コマンドデータに従って用紙を切断する。   In the present embodiment, the printer device 20 receives raster image data of a predetermined data format (more specifically, data indicating coloring information for each pixel constituting the image) from the POS computer 10. The printer device 20 (print output unit 23) forms the raster image data on an image recording medium. The printer device 20 receives control command data for controlling the operation of each mechanism from the POS computer 10. The printer device 20 controls the operation of each mechanism in accordance with the control command data. For example, the printer device 20 receives control command data for instructing cutting of paper from the POS computer 10. The printer device 20 (print output unit 23) cuts the paper according to the control command data.

次に、POSアプリケーションからレシートの印刷が要求された場合のPOSコンピュータ10の動作について説明する。図3はPOSコンピュータ10の動作を説明するための図である。なお、図3にはPOSアプリケーション30a,30bが記載されているが、実際にはPOSアプリケーション30a,30bの少なくとも一方がPOSコンピュータ10にインストールされる。   Next, the operation of the POS computer 10 when receipt printing is requested from the POS application will be described. FIG. 3 is a diagram for explaining the operation of the POS computer 10. 3 shows the POS applications 30a and 30b, but actually, at least one of the POS applications 30a and 30b is installed in the POS computer 10.

まず、POSアプリケーション30aからレシートの印刷が要求された場合について説明する。POSアプリケーション30aからレシートの印刷が要求された場合、GDI(Graphic Device Interface)プログラム31によって、そのレシートの描画命令を表すメタデータが生成される。GDIプログラム31はオペレーティングシステムの一部として提供されるプログラムである。また、このメタデータはデバイスに依存しないデータである。   First, a case where receipt printing is requested from the POS application 30a will be described. When printing of a receipt is requested from the POS application 30a, metadata representing a drawing command for the receipt is generated by a GDI (Graphic Device Interface) program 31. The GDI program 31 is a program provided as part of the operating system. The metadata is data that does not depend on the device.

GDIプログラム31によって生成されたメタデータは、スプーラ32を介して第1印刷データ生成プログラム(プリンタドライバ)33aに供給される。第1印刷データ生成プログラム33aは、所定のデータフォーマット(ここでは「第1データフォーマット」と記載する。)の印刷データをメタデータに基づいて生成する。例えば、第1データフォーマットの印刷データは、例えばプリンタ装置20が解釈不可能なデータフォーマットの印刷データである。言い換えれば、第1データフォーマットの印刷データは、例えばプリンタ装置20とは仕様の異なるプリンタ装置に対応するデータフォーマットの印刷データである。より具体的には、第1データフォーマットの印刷データは、例えば、プリンタ装置20の使用を開始する前にレシートの印刷出力に用いていたプリンタ装置に対応するデータフォーマットの印刷データである。   The metadata generated by the GDI program 31 is supplied to the first print data generation program (printer driver) 33a via the spooler 32. The first print data generation program 33a generates print data in a predetermined data format (herein described as “first data format”) based on the metadata. For example, the print data in the first data format is print data in a data format that cannot be interpreted by the printer device 20, for example. In other words, the print data in the first data format is, for example, print data in a data format corresponding to a printer device having a different specification from the printer device 20. More specifically, the print data in the first data format is, for example, print data in a data format corresponding to the printer device used for printing the receipt before starting to use the printer device 20.

図4は、第1データフォーマットの印刷データの一例を示している。図4に示す印刷データは図2に示すレシートに対応している。なお図4では、例えばESCや半角スペース(SP)等の制御文字が括弧<>付きで表されている。また図4において、「<SP>・・・<SP>」は半角スペースが複数連続していることを示している。   FIG. 4 shows an example of print data in the first data format. The print data shown in FIG. 4 corresponds to the receipt shown in FIG. In FIG. 4, for example, control characters such as ESC and half-width space (SP) are shown with parentheses <>. In FIG. 4, “<SP>... <SP>” indicates that a plurality of half-width spaces are continuous.

図4に示すように、第1データフォーマットの印刷データはテキスト形式のデータになっている。また、第1データフォーマットの印刷データは、レシートの印刷開始を命令するための開始コマンドデータ部分40と、レシートの内容を主に示す印刷内容データ部分41と、レシートの印刷終了を命令するための終了コマンドデータ部分42と、を含んで構成される。開始コマンドデータ部分40には、例えば、印刷設定を初期化するための制御コマンドデータを表す文字列「<ESC>@」や、書式を中央揃えに設定するための制御コマンドデータを表す文字列「<ESC><GS>a1」が含まれている。印刷内容データ部分41には、「A商店」、「バナナ」、「¥100」、「お買上げありがとうございました」等の印刷対象文字列が含まれている。また印刷内容データ部分41には、改行するための制御コマンドデータを表す文字列「<CR><LF>」も含まれている。終了コマンドデータ部分42には、所定量の紙送りを実行するための制御コマンドデータを表す文字列「<ESC>a」や、用紙を切断するための制御コマンドデータを表す文字列「<ESC>d3」が含まれている。なお以下では、制御コマンドデータを表す文字列のことを「制御コマンド文字列」と記載する。   As shown in FIG. 4, the print data in the first data format is text format data. The print data in the first data format includes a start command data portion 40 for instructing the start of printing of a receipt, a print content data portion 41 mainly indicating the contents of the receipt, and a command for instructing the end of printing of the receipt. And an end command data portion 42. The start command data portion 40 includes, for example, a character string “<ESC> @” that represents control command data for initializing print settings, and a character string “that represents control command data for setting the format to be center aligned. <ESC> <GS> a1 ”is included. The print content data portion 41 includes character strings to be printed such as “A store”, “banana”, “¥ 100”, “Thank you for your purchase”. The print content data portion 41 also includes a character string “<CR> <LF>” representing control command data for a line break. The end command data portion 42 includes a character string “<ESC> a” representing control command data for executing a predetermined amount of paper feed, and a character string “<ESC> representing control command data for cutting paper. d3 "is included. Hereinafter, the character string representing the control command data is referred to as “control command character string”.

ここで、POSアプリケーション30bからレシートの印刷が要求された場合についても説明しておく。POSアプリケーション30bからレシートの印刷が要求された場合、レシートの印刷データ(第1データフォーマットの印刷データ)が第1印刷データ生成プログラム33bによって生成される。第1印刷データ生成プログラム33bは「プリンタドライバ」以外の名称で呼ばれるプログラムである。第1印刷データ生成プログラム33bは、例えばPOSアプリケーション30bの一部として提供される。なお以下では、第1印刷データ生成プログラム33a又は33bによって生成される、第1データフォーマットの印刷データのことを「第1印刷データ」と呼ぶ。   Here, a case where receipt printing is requested from the POS application 30b will also be described. When receipt printing is requested from the POS application 30b, receipt print data (print data in the first data format) is generated by the first print data generation program 33b. The first print data generation program 33b is a program called by a name other than “printer driver”. The first print data generation program 33b is provided as a part of the POS application 30b, for example. Hereinafter, the print data of the first data format generated by the first print data generation program 33a or 33b is referred to as “first print data”.

第1印刷データ生成プログラム33a又は33bによって生成された第1印刷データはスプーラ32に供給される。スプーラ32は第1印刷データを一時的に保持する。そして、スプーラ32はプリンタ装置20の状態を監視しながら第1印刷データをポートドライバ34に供給する。   The first print data generated by the first print data generation program 33a or 33b is supplied to the spooler 32. The spooler 32 temporarily holds the first print data. The spooler 32 supplies the first print data to the port driver 34 while monitoring the state of the printer device 20.

ランゲージモニタプログラム36は、スプーラ32からポートドライバ34への第1印刷データの供給を監視する。ここで、ランゲージモニタプログラム36は、一般的にプリンタ装置20からポートドライバ34を介して供給されたステータス情報を所定のプログラム(例えばステータス参照プログラム等)に供給するためにも用いられるプログラムである。ランゲージモニタプログラム36は、スプーラ32からポートドライバ34への第1印刷データの供給を検知した場合、その第1印刷データのポートドライバ34への供給を制限(抑止)する。そして、ランゲージモニタプログラム36はその第1印刷データを第1印刷データ変換プログラム35に供給する。   The language monitor program 36 monitors the supply of the first print data from the spooler 32 to the port driver 34. Here, the language monitor program 36 is a program generally used to supply status information supplied from the printer device 20 via the port driver 34 to a predetermined program (for example, a status reference program). When the language monitor program 36 detects the supply of the first print data from the spooler 32 to the port driver 34, the language monitor program 36 restricts (suppresses) the supply of the first print data to the port driver 34. The language monitor program 36 then supplies the first print data to the first print data conversion program 35.

なお、ランゲージモニタプログラム36や第1印刷データ変換プログラム35は、例えばプリンタ装置20の開発・製造・販売元によって提供される。また、ランゲージモニタプログラム36や第1印刷データ変換プログラム35は、例えば、これらのプログラムが記憶された光ディスクが光ディスク読み取り部16にセットされた状態で所定のインストールプログラムが実行されることによって、POSコンピュータ10の補助記憶部13にインストールされる。   The language monitor program 36 and the first print data conversion program 35 are provided by, for example, a developer, manufacturer, or distributor of the printer device 20. The language monitor program 36 and the first print data conversion program 35 are, for example, a POS computer by executing a predetermined installation program in a state where an optical disc storing these programs is set in the optical disc reading unit 16. 10 auxiliary storage units 13 are installed.

第1印刷データ変換プログラム35は、POSアプリケーション30a又は30bによって生成されたレシートを加工する役割と、印刷データのデータフォーマットを変換する役割と、を果たす。第1印刷データ変換プログラム35は、第1印刷データ変更/保存プログラム35aと、第2印刷データ生成プログラム35bと、を含んでいる。   The first print data conversion program 35 plays a role of processing the receipt generated by the POS application 30a or 30b and a role of converting the data format of the print data. The first print data conversion program 35 includes a first print data change / save program 35a and a second print data generation program 35b.

第1印刷データ変更/保存プログラム35aは、第1印刷データ生成プログラム33a又は33bによって生成された第1印刷データに変更を加える。   The first print data change / save program 35a changes the first print data generated by the first print data generation program 33a or 33b.

例えば、第1印刷データ変更/保存プログラム35aは、第1印刷データに所定の文字列が含まれている場合、その文字列を他の文字列で置換する。以下、この機能のことを「テキスト置換機能」と呼ぶ。例えば、テキスト置換機能は、POSアプリケーション30a又は30bによって生成されたレシートに含まれる「お買上げありがとうございました」との文字列を「明日は特売日です!!!」に置換するために利用される。詳細については後述する(図7のS107参照)。   For example, when the first print data changing / saving program 35a includes a predetermined character string in the first print data, the first print data changing / saving program 35a replaces the character string with another character string. Hereinafter, this function is referred to as a “text replacement function”. For example, the text replacement function is used to replace the character string “Thank you for your purchase” included in the receipt generated by the POS application 30a or 30b with “Tomorrow is a special sale day !!” . Details will be described later (see S107 in FIG. 7).

また例えば、第1印刷データ変更/保存プログラム35aは、第1印刷データに特定の文字列(商品名)が含まれている場合、クーポンを示す文字列(以下、「クーポン文字列」と記載する。)を第1印刷データに追加する。以下、この機能のことを「クーポン付与機能」と呼ぶ。例えば、クーポン付与機能は、バナナを購入した顧客のレシートにバナナの割引クーポンを追加するために利用される。詳細については後述する(図8のS112参照)。   Further, for example, when the first print data change / save program 35a includes a specific character string (product name) in the first print data, it is described as a character string indicating a coupon (hereinafter referred to as “coupon character string”). .) Is added to the first print data. Hereinafter, this function is referred to as a “coupon grant function”. For example, the coupon grant function is used to add a banana discount coupon to the receipt of a customer who purchased the banana. Details will be described later (see S112 in FIG. 8).

また第1印刷データ変更/保存プログラム35aは、変更前及び後の第1印刷データを補助記憶部13に保存する。詳細については後述する(図7のS104、図8のS109,S114参照)。   The first print data change / save program 35 a saves the first print data before and after the change in the auxiliary storage unit 13. Details will be described later (see S104 in FIG. 7 and S109 and S114 in FIG. 8).

第2印刷データ生成プログラム35bは第1印刷データを所定データフォーマット(ここでは「第2データフォーマット」と記載する。)の印刷データに変換する。第2データフォーマットの印刷データは、例えばプリンタ装置20に対応するデータフォーマットの印刷データである。言い換えれば、第2データフォーマットの印刷データは、例えばプリンタ装置20が解釈可能なデータフォーマットの印刷データである。以下では、第2データフォーマットの印刷データのことを「第2印刷データ」と記載する。   The second print data generation program 35b converts the first print data into print data having a predetermined data format (herein referred to as “second data format”). The print data in the second data format is print data in a data format corresponding to the printer device 20, for example. In other words, the print data in the second data format is, for example, print data in a data format that can be interpreted by the printer device 20. Hereinafter, the print data in the second data format is referred to as “second print data”.

上述したように、本実施の形態では、プリンタ装置20が解釈可能な印刷データは所定のデータフォーマットのラスタ画像データである。このため、第2印刷データ生成プログラム35bは、第1印刷データに基づいて、レシートのラスタ画像データを生成する。詳細は後述する(図9のS118,S121,S122参照)。   As described above, in the present embodiment, the print data that can be interpreted by the printer device 20 is raster image data in a predetermined data format. Therefore, the second print data generation program 35b generates receipt raster image data based on the first print data. Details will be described later (see S118, S121, and S122 in FIG. 9).

また第2印刷データ生成プログラム35bは第2印刷データを加工する。例えば、第2印刷データ生成プログラム35bは、レシートにロゴ画像を付加するために第2印刷データを加工する。また例えば、第2印刷データ生成プログラム35bは、レシートに背景画像を付加するために第2印刷データを加工する。以下、上記の両機能のことを「ロゴ画像追加機能」と「背景画像追加機能」と呼ぶ。これらの機能の詳細については後述する(図9のS119,S120参照)。   The second print data generation program 35b processes the second print data. For example, the second print data generation program 35b processes the second print data in order to add a logo image to the receipt. For example, the second print data generation program 35b processes the second print data in order to add a background image to the receipt. Hereinafter, both of the above functions are referred to as “logo image addition function” and “background image addition function”. Details of these functions will be described later (see S119 and S120 in FIG. 9).

ユーザは、第1印刷データ変換プログラム35の処理の基礎となるデータをあらかじめ設定しておく必要がある。図5は、第1印刷データ変換プログラム35の処理の基礎となるデータをユーザが設定するための設定画面の一例を表している。   The user needs to set data as a basis for processing of the first print data conversion program 35 in advance. FIG. 5 shows an example of a setting screen for the user to set data that is the basis of the processing of the first print data conversion program 35.

図5に示す設定画面50において、ユーザは第1印刷データ変換プログラム35の処理モードを設定する。本実施の形態では5つの処理モードA〜Eが用意されている。処理モードAは通常印刷を実行する処理モードである。処理モードAが選択された場合、ユーザの設定に従って加工されたレシートがプリンタ装置20で印刷出力される。処理モードBは、通常印刷と、第1印刷データの保存と、を実行する処理モードである。処理モードBが選択された場合、ユーザの設定に従って加工されたレシートがプリンタ装置20で印刷出力される。また、第1印刷データ変更/保存プログラム35aによる変更前及び後の第1印刷データが補助記憶部13に保存される。処理モードCは、第1印刷データ自体の印刷を実行する処理モードである。処理モードCが選択された場合、レシートはプリンタ装置20で印刷出力されず、その代わりに、第1印刷データ変更/保存プログラム35aによる変更前及び後の第1印刷データ自体がプリンタ装置20で印刷出力される。詳細については後述する(図7のS106、図8のS111,S116参照)。処理モードDは、第1印刷データ自体の印刷と、第1印刷データの保存と、を実行する処理モードである。処理モードDが選択された場合、第1印刷データ変更/保存プログラム35aによる変更前及び後の第1印刷データ自体がプリンタ装置20で印刷出力される。また、第1印刷データ変更/保存プログラム35aによる変更前及び後の第1印刷データが補助記憶部13に保存される。この場合も、レシートはプリンタ装置20で印刷出力されなくなる。処理モードEは、第1印刷データの保存のみを実行する処理モードである。処理モードEが選択された場合、第1印刷データ変更/保存プログラム35aによる変更前及び後の第1印刷データが補助記憶部13に保存される。このとき、プリンタ装置20では印刷出力が実行されなくなる。   On the setting screen 50 shown in FIG. 5, the user sets the processing mode of the first print data conversion program 35. In this embodiment, five processing modes A to E are prepared. Processing mode A is a processing mode for executing normal printing. When the processing mode A is selected, a receipt processed according to the user setting is printed out by the printer device 20. The processing mode B is a processing mode for executing normal printing and storing the first print data. When the processing mode B is selected, a receipt processed according to the user setting is printed out by the printer device 20. Further, the first print data before and after the change by the first print data change / save program 35 a is stored in the auxiliary storage unit 13. The processing mode C is a processing mode for executing printing of the first print data itself. When the processing mode C is selected, the receipt is not printed out by the printer device 20, and instead, the first print data itself before and after the change by the first print data change / save program 35a is printed by the printer device 20. Is output. Details will be described later (see S106 in FIG. 7 and S111 and S116 in FIG. 8). The processing mode D is a processing mode for executing printing of the first print data itself and storage of the first print data. When the processing mode D is selected, the first print data itself before and after the change by the first print data change / save program 35a is printed out by the printer device 20. Further, the first print data before and after the change by the first print data change / save program 35 a is stored in the auxiliary storage unit 13. Also in this case, the receipt is not printed out by the printer device 20. The processing mode E is a processing mode in which only the storage of the first print data is executed. When the processing mode E is selected, the first print data before and after the change by the first print data change / save program 35 a is saved in the auxiliary storage unit 13. At this time, the printer device 20 does not execute print output.

また設定画面50では、ユーザはテキスト置換機能、クーポン付与機能、ロゴ画像追加機能及び背景画像追加機能に関する設定を行う。   In the setting screen 50, the user performs settings related to the text replacement function, the coupon grant function, the logo image addition function, and the background image addition function.

例えばテキスト置換機能に関して、ユーザは置換元文字列及び置換先文字列を設定する。図5に示す設定画面50では、置換元文字列として「お買上げありがとうございました」が設定されている。また、置換先文字列として「明日は特売日です!!!」が設定されている。なお、置換元文字列と置換先文字列との組み合わせは複数設定できるようにしてもよい。   For example, regarding the text replacement function, the user sets a replacement source character string and a replacement destination character string. In the setting screen 50 shown in FIG. 5, “Thank you for your purchase” is set as the replacement source character string. Also, “Tomorrow is a special sale date !!” is set as the replacement character string. Note that a plurality of combinations of replacement source character strings and replacement destination character strings may be set.

また例えばクーポン付与機能に関して、ユーザは、クーポン付与の対象の商品名と、クーポン文字列と、を設定する。図5に示す設定画面では、クーポン付与の対象の商品名として「バナナ」が設定されている。また、クーポン文字列として「***バナナ¥10引き***」が設定されている。なお、クーポン付与の対象の商品名と、クーポン文字列と、の組み合わせは複数設定できるようにしてもよい。   Further, for example, with respect to the coupon grant function, the user sets a product name to be given a coupon and a coupon character string. In the setting screen shown in FIG. 5, “banana” is set as the product name to be given a coupon. Further, “*** Banana ¥ 10 discount ***” is set as a coupon character string. In addition, you may enable it to set multiple combinations of the goods name of coupon grant object, and a coupon character string.

また例えばロゴ画像追加機能及び背景画像追加機能に関して、ユーザはロゴ画像データや背景画像データを指定する。   For example, regarding the logo image addition function and the background image addition function, the user designates logo image data and background image data.

ユーザが設定画面50で登録ボタン51を押下すると、設定画面50で設定された内容を示す設定データ(変更制御データ)が補助記憶部13(変更制御データ記憶手段)に記憶される。設定データは例えばXML(Extensible Markup Language)形式のデータである。また、設定データは所定のディレクトリに保存される。図6は、POSコンピュータ10の補助記憶部13のディレクトリツリー構成のうち、第1印刷データ変換プログラム35に関連する部分の一例を示している。図6に示すように、本実施の形態では、設定データのファイル名が「config.xml」に設定される。また、設定データは「C:¥XXXXX」ディレクトリ内に保存される。   When the user presses the registration button 51 on the setting screen 50, setting data (change control data) indicating the contents set on the setting screen 50 is stored in the auxiliary storage unit 13 (change control data storage means). The setting data is, for example, data in XML (Extensible Markup Language) format. The setting data is stored in a predetermined directory. FIG. 6 shows an example of a portion related to the first print data conversion program 35 in the directory tree structure of the auxiliary storage unit 13 of the POS computer 10. As shown in FIG. 6, in the present embodiment, the file name of the setting data is set to “config.xml”. The setting data is stored in the “C: ¥ XXXX” directory.

次に、第1印刷データ変換プログラム35の処理について説明する。図7〜図9は第1印刷データ変換プログラム35に従って制御部11が実行する処理を示すフロー図である。S101〜S116は第1印刷データ変更/保存プログラム35aの処理である。S117〜S122は第2印刷データ生成プログラム35bの処理である。   Next, the process of the first print data conversion program 35 will be described. 7 to 9 are flowcharts showing processing executed by the control unit 11 in accordance with the first print data conversion program 35. S101 to S116 are processes of the first print data change / save program 35a. S117 to S122 are processes of the second print data generation program 35b.

図7に示すように、まず制御部11は、ユーザに設定された処理モードが処理モードB,D又はEであるか否かを判定する(S101)。この判定は設定データに基づいて行われる。そして、処理モードが処理モードB,D又はEである場合、制御部11は、第1印刷データを保存するためのディレクトリ(以下、「保存用ディレクトリ」と記載する。)を新規作成する(S102)。このとき、保存用ディレクトリは所定のディレクトリ内に作成される。本実施の形態では、保存用ディレクトリは「C:¥XXXXX¥Data」ディレクトリ内に作成される(図6参照)。また、保存用ディレクトリの名前は例えば現在日時に基づいて決定される。本実施の形態では、例えば、S102が2007年3月16日10時25分56.15秒に実行された場合、保存用ディレクトリの名前が「2007031610255615」に設定される(図6参照)。   As shown in FIG. 7, the control unit 11 first determines whether or not the processing mode set by the user is processing mode B, D, or E (S101). This determination is made based on the setting data. When the processing mode is processing mode B, D, or E, the control unit 11 newly creates a directory for storing the first print data (hereinafter referred to as “storage directory”) (S102). ). At this time, the storage directory is created in a predetermined directory. In the present embodiment, the storage directory is created in the “C: ¥ XXXX ¥ Data” directory (see FIG. 6). The name of the storage directory is determined based on the current date and time, for example. In the present embodiment, for example, when S102 is executed at 10: 25: 56.15 seconds on March 16, 2007, the name of the storage directory is set to “2007031610255615” (see FIG. 6).

次に制御部11は、その時点の設定データ(config.xml)を、S102で作成された保存用ディレクトリにコピーする(S103)。このとき、保存用ディレクトリにコピーされた設定データのファイル名は例えば「config0.xml」に設定される(図6参照)。また制御部11(印刷データ出力手段(保存手段))は、その時点の第1印刷データも、S102で作成された保存用ディレクトリに保存する(S104)。このとき、第1印刷データのファイル名は例えば「data1.dmp」に設定される(図6参照)。また、第1印刷データは16進表記のデータ(ダンプデータ)として保存される。すなわち、保存用ディレクトリに保存された第1印刷データは、印刷対象文字列や制御コマンド文字列が16進数値列で表されたデータになる。図10は、保存用ディレクトリに保存された第1印刷データの一例を示している。図10では、保存用ディレクトリに保存された第1印刷データの一部(開始コマンドデータ部分40)が表されている。   Next, the control unit 11 copies the setting data (config.xml) at that time to the storage directory created in S102 (S103). At this time, the file name of the setting data copied to the storage directory is set to, for example, “config0.xml” (see FIG. 6). The control unit 11 (print data output means (save means)) also saves the first print data at that time in the save directory created in S102 (S104). At this time, the file name of the first print data is set to, for example, “data1.dmp” (see FIG. 6). The first print data is saved as hexadecimal data (dump data). That is, the first print data stored in the storage directory is data in which a print target character string and a control command character string are represented by a hexadecimal value string. FIG. 10 shows an example of the first print data stored in the storage directory. FIG. 10 shows a part of the first print data (start command data part 40) stored in the storage directory.

S102〜S104が実行された場合、又はS101において処理モードが処理モードB,D及びEでないと判定された場合、制御部11は処理モードが処理モードC又はDであるか否かを判定する(S105)。そして、処理モードが処理モードC又はDである場合、制御部11(印刷データ出力手段(第2印刷出力要求手段))は、その時点の第1印刷データ自体の印刷出力をプリンタ装置20に要求する(S106)。ここで、第1印刷データ自体の印刷出力とは、第1印刷データの内容を印刷出力することである。より具体的には、第1印刷データ自体の印刷出力とは、第1印刷データに含まれる制御コマンド文字列と印刷対象文字列を印刷出力することである。図11は、第1印刷データ自体の印刷出力例を示している。図11に示す印刷出力例には、第1印刷データ(制御コマンド文字列及び印刷対象文字列)が16進表記で表される16進表記部分60と、第1印刷データ(コマンド文字列や印刷対象文字列)がテキスト形式で表されるテキスト表記部分61と、が含まれている。S106において、まず制御部11は、図11に示すような印刷出力を実行するための印刷データ(第1データフォーマットの印刷データ)を生成する。次に制御部11は、その印刷データに基づいてラスタ画像データを生成する。そして制御部11は、そのラスタ画像データをランゲージモニタプログラム36及びポートドライバ34を介してプリンタ装置20に供給する。この場合、プリンタ装置20では第1印刷データ自体を表すラスタ画像データ(図11参照)が印刷出力されることになる。   When S102 to S104 are executed, or when it is determined in S101 that the processing mode is not processing mode B, D, or E, the control unit 11 determines whether the processing mode is processing mode C or D ( S105). When the processing mode is processing mode C or D, the control unit 11 (print data output means (second print output request means)) requests the printer device 20 to output the first print data itself at that time. (S106). Here, the print output of the first print data itself means to print out the contents of the first print data. More specifically, the print output of the first print data itself is to print out a control command character string and a print target character string included in the first print data. FIG. 11 shows a print output example of the first print data itself. In the print output example shown in FIG. 11, the first print data (control command character string and print target character string) is expressed in hexadecimal notation 60, and the first print data (command character string and print). And a text notation portion 61 in which the target character string) is expressed in a text format. In S106, the control unit 11 first generates print data (print data in the first data format) for executing print output as shown in FIG. Next, the control unit 11 generates raster image data based on the print data. Then, the control unit 11 supplies the raster image data to the printer device 20 via the language monitor program 36 and the port driver 34. In this case, the printer device 20 prints out raster image data (see FIG. 11) representing the first print data itself.

S106が実行された場合、又はS105において処理モードが処理モードC及びDでないと判定された場合、制御部11(変更手段)はテキスト置換処理を実行する(S107)。S107において、まず制御部11は設定データを読み出し、置換元文字列と置換先文字列との組み合わせを設定データから取得する。次に、制御部11は第1印刷データに置換元文字列が含まれるか否かを判定する。そして、第1印刷データに置換元文字列が含まれている場合、制御部11はその置換元文字列を置換先文字列によって置換する。図12は、図4に示す第1印刷データに対してテキスト置換処理が実行された後の第1印刷データを表している。図12に示す第1印刷データでは、「お買上げありがとうございました」との文字列が「明日は特売日です!!!」との文字列に置換されている。   When S106 is executed, or when it is determined in S105 that the processing mode is not processing modes C and D, the control unit 11 (changing unit) executes text replacement processing (S107). In S107, the control unit 11 first reads the setting data, and acquires a combination of the replacement source character string and the replacement destination character string from the setting data. Next, the control unit 11 determines whether or not a replacement source character string is included in the first print data. When the replacement source character string is included in the first print data, the control unit 11 replaces the replacement source character string with the replacement destination character string. FIG. 12 shows the first print data after the text replacement process is performed on the first print data shown in FIG. In the first print data shown in FIG. 12, the character string “Thank you for your purchase” is replaced with the character string “Tomorrow is a special sale day !!”.

その後、制御部11は処理モードが処理モードB,D又はEであるか否かを判定する(S108)。処理モードが処理モードB,D又はEである場合、制御部11(印刷データ出力手段(保存手段))は、その時点の第1印刷データを、S102で作成された保存用ディレクトリに保存する(S109)。すなわち、テキスト置換処理が実行された後の第1印刷データが保存用ディレクトリに保存される。このとき、第1印刷データのファイル名は例えば「data2.dmp」に設定される(図6参照)。またS104と同様、第1印刷データは16進表記のデータとして保存される。   Thereafter, the control unit 11 determines whether the processing mode is processing mode B, D, or E (S108). When the processing mode is processing mode B, D, or E, the control unit 11 (print data output unit (storage unit)) stores the first print data at that time in the storage directory created in S102 ( S109). That is, the first print data after the text replacement process is performed is stored in the storage directory. At this time, the file name of the first print data is set to, for example, “data2.dmp” (see FIG. 6). As in S104, the first print data is stored as hexadecimal data.

S109が実行された場合、又はS108において処理モードが処理モードB,D及びEでないと判定された場合、制御部11は処理モードが処理モードC又はDであるか否かを判定する(S110)。処理モードが処理モードC又はDである場合、制御部11(印刷データ出力手段(第2印刷出力要求手段))は、その時点の第1印刷データ自体の印刷出力をプリンタ装置20に要求する(S111)。S111はS106と同様に実行される。この場合、プリンタ装置20では、テキスト置換処理が実行された後の第1印刷データ自体を表すラスタ画像データが印刷出力される。   When S109 is executed, or when it is determined in S108 that the processing mode is not processing mode B, D, or E, the control unit 11 determines whether the processing mode is processing mode C or D (S110). . When the processing mode is processing mode C or D, the control unit 11 (print data output means (second print output request means)) requests the printer device 20 to print the first print data itself at that time ( S111). S111 is executed in the same manner as S106. In this case, the printer device 20 prints out raster image data representing the first print data itself after the text replacement process is executed.

S111が実行された場合、又はS110において処理モードが処理モードC及びDでないと判定された場合、制御部11(変更手段)はクーポン付与処理を実行する(S112)。S112において、まず制御部11は設定データを読み出し、クーポン付与対象の商品名と、クーポン文字列と、を設定データから取得する。次に制御部11は、クーポン付与対象の商品名が第1印刷データに含まれているか否かを判定する。そして、クーポン付与対象の商品名が第1印刷データに含まれている場合、制御部11は第1印刷データの所定位置にクーポン文字列を挿入する。例えば、制御部11は第1印刷データの印刷内容データ部分41の末尾にクーポン文字列を挿入する。図13は、図12に示す第1印刷データに対してクーポン付与処理が実行された後の第1印刷データを表している。図12に示す第1印刷データにはクーポン付与対象の商品名「バナナ」が含まれている。その結果、図13に示す第1印刷データでは、印刷内容データ部分41の末尾にクーポン文字列「***バナナ¥10引き***」が追加されている。   When S111 is executed, or when it is determined in S110 that the processing mode is not the processing modes C and D, the control unit 11 (changing unit) executes a coupon grant process (S112). In S112, first, the control unit 11 reads the setting data, and acquires the product name to be given a coupon and the coupon character string from the setting data. Next, the control unit 11 determines whether or not the product name to be given a coupon is included in the first print data. And when the product name of coupon grant object is contained in the 1st print data, control part 11 inserts a coupon character string in the predetermined position of the 1st print data. For example, the control unit 11 inserts a coupon character string at the end of the print content data portion 41 of the first print data. FIG. 13 shows the first print data after the coupon giving process is executed on the first print data shown in FIG. The first print data shown in FIG. 12 includes the product name “banana” to be given a coupon. As a result, in the first print data shown in FIG. 13, the coupon character string “*** Banana ¥ 10 discount ***” is added to the end of the print content data portion 41.

その後、制御部11は処理モードが処理モードB,D又はEであるか否かを判定する(S113)。処理モードが処理モードB,D又はEである場合、制御部11(印刷データ出力手段(保存手段))は、その時点の第1印刷データを、S102で作成された保存用ディレクトリに保存する(S114)。すなわち、クーポン付与処理が実行された後の第1印刷データが保存用ディレクトリに保存される。このとき、第1印刷データのファイル名は例えば「data3.dmp」に設定される(図6参照)。またS104と同様、第1印刷データは16進表記のデータとして保存される。   Thereafter, the control unit 11 determines whether the processing mode is processing mode B, D, or E (S113). When the processing mode is processing mode B, D, or E, the control unit 11 (print data output unit (storage unit)) stores the first print data at that time in the storage directory created in S102 ( S114). That is, the first print data after the coupon giving process is executed is stored in the storage directory. At this time, the file name of the first print data is set to, for example, “data3.dmp” (see FIG. 6). As in S104, the first print data is stored as hexadecimal data.

S114が実行された場合、又はS113において処理モードが処理モードB,D及びEでないと判定された場合、制御部11は処理モードが処理モードC又はDであるか否かを判定する(S115)。処理モードが処理モードC又はDである場合、制御部11(印刷データ出力手段(第2印刷出力要求手段))は、その時点の第1印刷データ自体の印刷出力をプリンタ装置20に要求する(S116)。S116はS106と同様に実行される。この場合、プリンタ装置20では、クーポン付与処理が実行された後の第1印刷データ自体を表すラスタ画像データが印刷出力される。   When S114 is executed, or when it is determined in S113 that the processing mode is not processing mode B, D, or E, the control unit 11 determines whether the processing mode is processing mode C or D (S115). . When the processing mode is processing mode C or D, the control unit 11 (print data output means (second print output request means)) requests the printer device 20 to print the first print data itself at that time ( S116). S116 is executed in the same manner as S106. In this case, the printer device 20 prints out raster image data representing the first print data itself after the coupon giving process is executed.

S116が実行された場合、又はS115において処理モードが処理モードC及びDでないと判定された場合、制御部11は処理モードが処理モードA又はBであるか否かを判定する(S117)。処理モードが処理モードA及びBでない場合、本処理は終了する。   When S116 is executed, or when it is determined in S115 that the processing mode is not processing mode C or D, the control unit 11 determines whether the processing mode is processing mode A or B (S117). If the processing mode is not processing mode A or B, this processing ends.

一方、処理モードが処理モードA又はBである場合、制御部11(印刷出力要求手段)は、その時点の第1印刷データに基づいて、レシートのラスタ画像データを生成する(S118)。補助記憶部13には第1印刷データを解釈するためのデータが記憶されている。S118ではそのデータが参照されることによってレシートのラスタ画像データが生成される。図14は、S118で生成されるラスタ画像データの一例を示している。図14に示すラスタ画像データは図13に示す第1印刷データに対応している。   On the other hand, when the processing mode is processing mode A or B, the control unit 11 (print output request unit) generates receipt raster image data based on the first print data at that time (S118). The auxiliary storage unit 13 stores data for interpreting the first print data. In step S118, the raster image data of the receipt is generated by referring to the data. FIG. 14 shows an example of raster image data generated in S118. The raster image data shown in FIG. 14 corresponds to the first print data shown in FIG.

その後、制御部11はロゴ画像追加処理を実行する(S119)。S119において、まず制御部11は設定データを読み出し、ロゴ画像データのパスを設定データから取得する。そして、制御部11はロゴ画像データを補助記憶部13から読み出す。また制御部11は、S118で生成されたラスタ画像データの上端から所定幅の部分を切り取る。そして、制御部11はラスタ画像データの上端にロゴ画像データを結合する。図15は、図14に示すラスタ画像データに対してロゴ画像追加処理が実行された後のラスタ画像データの一例を示している。   Then, the control part 11 performs a logo image addition process (S119). In step S119, the control unit 11 first reads the setting data, and acquires the logo image data path from the setting data. Then, the control unit 11 reads the logo image data from the auxiliary storage unit 13. Further, the control unit 11 cuts out a portion having a predetermined width from the upper end of the raster image data generated in S118. Then, the control unit 11 combines the logo image data with the upper end of the raster image data. FIG. 15 shows an example of raster image data after the logo image addition processing is executed on the raster image data shown in FIG.

その後、制御部11は背景画像追加処理を実行する(S120)。S120において、まず制御部11は設定データを読み出し、背景画像データのパスを設定データから取得する。次に、制御部11は背景画像データを補助記憶部13から読み出す。そして、制御部11は背景画像データをラスタ画像データに対して半透明合成する。図16は、図15に示すラスタ画像データに対して背景画像追加処理が実行された後のラスタ画像データの一例を示している。   Thereafter, the control unit 11 executes background image addition processing (S120). In S120, the control unit 11 first reads the setting data, and acquires the background image data path from the setting data. Next, the control unit 11 reads background image data from the auxiliary storage unit 13. Then, the control unit 11 performs translucent synthesis of the background image data with the raster image data. FIG. 16 shows an example of raster image data after the background image addition processing is executed on the raster image data shown in FIG.

その後、制御部11(印刷出力要求手段)はラスタ画像データに基づいて第2印刷データを生成する(S121)。第2印刷データには、ラスタ画像データと、プリンタ装置20の各機構の動作を制御するための制御コマンドデータと、が含まれる。プリンタ装置20の各機構の動作を制御するための制御コマンドデータは、第1印刷データに含まれる制御コマンドデータに基づいて生成される。例えば、用紙を切断するための制御コマンドデータが第1印刷データに含まれている場合、その制御コマンドデータが第1データフォーマットから第2データフォーマットに変換される。そして、その変換後の制御コマンドデータが第2印刷データに含まれる。   Thereafter, the control unit 11 (print output request means) generates second print data based on the raster image data (S121). The second print data includes raster image data and control command data for controlling the operation of each mechanism of the printer device 20. Control command data for controlling the operation of each mechanism of the printer device 20 is generated based on the control command data included in the first print data. For example, when control command data for cutting a sheet is included in the first print data, the control command data is converted from the first data format to the second data format. The converted control command data is included in the second print data.

その後、制御部11(印刷出力要求手段)は第2印刷データをランゲージモニタプログラム36及びポートドライバ34を介してプリンタ装置20に供給する(S122)。この場合、プリンタ装置20では第2印刷データに従ってレシート(図16参照)が印刷出力される。   Thereafter, the control unit 11 (print output request means) supplies the second print data to the printer device 20 via the language monitor program 36 and the port driver 34 (S122). In this case, the printer 20 prints out a receipt (see FIG. 16) according to the second print data.

以上に説明したように、印刷システム1は、第1印刷データ生成プログラム33a又は33bによって生成された、第1データフォーマットに則った第1印刷データを、プリンタ装置20に対応する第2データフォーマットに則った第2印刷データに変換する機能を備えている。   As described above, the printing system 1 converts the first print data generated by the first print data generation program 33a or 33b into the second data format corresponding to the printer device 20 according to the first data format. It has a function of converting to the second print data in conformity.

例えば、レシートの印刷出力に用いるプリンタ装置を、第1データフォーマットに則った第1印刷データを受け付けるプリンタ装置Aから、第2データフォーマットに則った第2印刷データを受け付けるプリンタ装置Bに置き換える場合を想定する。このような場合、従来は、第1印刷データ生成プログラム33a又は33bを第2データフォーマットに則った第2印刷データを生成するプログラムに置き換えることが行われていた。そして、その場合、プリンタ装置Bにおいてプリンタ装置Aと同様の印刷出力が再現されない場合があった。このため、従来は、プリンタ装置Bにおいてプリンタ装置Aと同様の印刷出力が再現されるようにするために、POSアプリケーション30a又は30b側の仕様や設定に変更を加えなければならない場合があった。この点、印刷システム1では、第1印刷データ変換プログラム35によって印刷データのデータフォーマットの変換が行われる。このため、印刷システム1によれば、POSアプリケーション30a又は30b側の仕様や設定に変更を加えなくても、プリンタ装置Bにおいてプリンタ装置Aと同様の印刷出力が再現させることが可能になる。また、印刷システム1によれば、レシートの印刷が異なる印刷ルートで行われるPOSアプリケーション30a,30bについて、異なるプログラム(第1印刷データ変換プログラム35)を用意する必要がない。   For example, a case where the printer device used for printing the receipt is replaced from the printer device A that accepts the first print data according to the first data format to the printer device B that accepts the second print data according to the second data format. Suppose. In such a case, conventionally, the first print data generation program 33a or 33b has been replaced with a program that generates second print data in accordance with the second data format. In this case, the printer device B may not reproduce the same print output as the printer device A. For this reason, conventionally, in order for the printer apparatus B to reproduce the same print output as that of the printer apparatus A, there have been cases in which changes have been made to the specifications and settings on the POS application 30a or 30b side. In this regard, in the printing system 1, the data format of the print data is converted by the first print data conversion program 35. For this reason, according to the printing system 1, it is possible to reproduce the same print output as that of the printer apparatus A in the printer apparatus B without changing the specification or setting on the POS application 30a or 30b side. Further, according to the printing system 1, it is not necessary to prepare a different program (first print data conversion program 35) for the POS applications 30a and 30b in which receipt printing is performed by different printing routes.

また、印刷システム1は、POSアプリケーション30a又は30bによって生成されたレシートに加工を施す機能を備えている。すなわち、印刷システム1はテキスト置換機能、クーポン付与機能、ロゴ画像追加機能、背景画像追加機能を備えている。   The printing system 1 also has a function of processing a receipt generated by the POS application 30a or 30b. That is, the printing system 1 has a text replacement function, a coupon grant function, a logo image addition function, and a background image addition function.

例えば、テキスト置換機能によれば、POSアプリケーション30a又は30bによって生成されたレシートに含まれる所定文字列を他の文字列に置き換えることが可能になる。例えば、POSアプリケーション30a又は30bで生成されたレシートに含まれる「お買上げありがとうございました」との文字列を、明日が特売日の場合には、「明日は特売日です!!!」との文字列に置き換えることが可能になる。   For example, the text replacement function can replace a predetermined character string included in a receipt generated by the POS application 30a or 30b with another character string. For example, if the character string “Thank you for your purchase” included in the receipt generated by the POS application 30a or 30b is tomorrow is a special sale day, the character “Tomorrow is a special sale day !!” It becomes possible to replace it with a column.

また、クーポン付与機能によれば、POSアプリケーション30a又は30bによって生成されたレシートに特定の商品名が含まれる場合に、その商品又はその商品の関連商品のクーポンをレシートに追加することが可能になる。例えば、POSアプリケーション30a又は30bで生成されたレシートに商品名「バナナ」が含まれる場合に、「バナナ」の割引クーポンをレシートに追加することが可能になる。なお、クーポンの代わりに、商品の広告がレシートに追加されるようにしてもよい。   In addition, according to the coupon grant function, when a specific product name is included in the receipt generated by the POS application 30a or 30b, it is possible to add a coupon of the product or a related product of the product to the receipt. . For example, when the product name “banana” is included in the receipt generated by the POS application 30a or 30b, a discount coupon of “banana” can be added to the receipt. Note that an advertisement for a product may be added to the receipt instead of the coupon.

また、ロゴ画像追加機能や背景画像追加機能によれば、POSアプリケーション30a又は30bによって生成されたレシートに対して、ロゴ画像や背景画像を付加することが可能になる。   Further, according to the logo image addition function and the background image addition function, it is possible to add a logo image and a background image to the receipt generated by the POS application 30a or 30b.

上記のテキスト置換機能、クーポン付与機能、ロゴ画像追加機能及び背景画像追加機能は第1印刷データ変換プログラム35によって実現される。このため、このため、印刷システム1によれば、レシートに加工を施すようにするにあたって、POSアプリケーション30a,30b側に変更を加える必要がない。   The text replacement function, coupon grant function, logo image addition function, and background image addition function are realized by the first print data conversion program 35. For this reason, according to the printing system 1, it is not necessary to change the POS applications 30a and 30b when processing the receipt.

ところで、従来は、英語のみに対応するPOSアプリケーション30a又は30bを利用して日本語、中国語又は韓国語等のレシートを印刷出力することはできなかった。日本語、中国語又は韓国語等のレシートを印刷出力するためには、POSアプリケーション30a又は30bを日本語、中国語又は韓国語等に対応するものへと改良するより他なかった。この点、印刷システム1によれば、テキスト置換機能を利用することによって、レシートに含まれる英語の文字列を日本語、中国語又は韓国語等の文字列に置換できるようになる。このため、印刷システム1によれば、例えば、英語のみに対応するPOSアプリケーション30a又は30bを利用して日本語、中国語又は韓国語等のレシートを印刷出力することができるようになる。すなわち、POSアプリケーション30a又は30bがある言語に対応していない場合であっても、その言語のレシートの印刷出力をPOSアプリケーション30a又は30bを利用して行うことができるようになる。   Conventionally, it has been impossible to print out receipts in Japanese, Chinese, Korean, or the like using the POS application 30a or 30b that supports only English. In order to print out receipts in Japanese, Chinese, Korean, etc., there was nothing but to improve the POS application 30a or 30b to be compatible with Japanese, Chinese, Korean, or the like. In this regard, according to the printing system 1, the English character string included in the receipt can be replaced with a character string such as Japanese, Chinese, or Korean by using the text replacement function. Therefore, according to the printing system 1, for example, a receipt in Japanese, Chinese, Korean, or the like can be printed out using the POS application 30a or 30b that supports only English. That is, even if the POS application 30a or 30b does not support a certain language, the receipt printout of the language can be performed using the POS application 30a or 30b.

また印刷システム1では、処理モードが処理モードB,D又はEに設定されると、第1印刷データに変更が加えられるごとに、その変更前及び後の第1印刷データが関連づけて補助記憶部13に記憶される。例えば、テキスト置換機能による変更が行われる前の第1印刷データ(data1.dmp;図7のS104参照)と、テキスト置換機能による変更が行われた後の第1印刷データ(data2.dmp;図8のS109参照)と、が関連づけて補助記憶部13に記憶される。このため、ユーザやプリンタ装置20(印刷データ変換プログラム35)の提供者等は、補助記憶部13に記憶された、それらの第1印刷データを比較することによって、テキスト置換機能が正常に動作しているか否かを比較的簡易に確認することができるようになる。また例えば、クーポン付与機能による変更が行われる前の第1印刷データ(data2.dmp;図8のS109参照)と、クーポン付与機能による変更が行われた後の第1印刷データ(data3.dmp;図8のS114参照)と、が関連づけて補助記憶部13に記憶される。このため、ユーザやプリンタ装置20(印刷データ変換プログラム35)の提供者等は、補助記憶部13に保存された、それらの第1印刷データを比較することによって、クーポン付与機能が正常に動作しているか否かを比較的簡易に確認することができるようになる。   In the printing system 1, when the processing mode is set to the processing mode B, D, or E, each time the first print data is changed, the first print data before and after the change is associated with the auxiliary storage unit. 13 is stored. For example, the first print data before the change by the text replacement function (data1.dmp; see S104 in FIG. 7) and the first print data after the change by the text replacement function (data2.dmp; figure) 8 is stored in the auxiliary storage unit 13 in association with each other. For this reason, the user or the provider of the printer device 20 (print data conversion program 35) compares the first print data stored in the auxiliary storage unit 13 so that the text replacement function operates normally. It becomes possible to confirm whether or not it is relatively easy. Further, for example, the first print data before the change by the coupon grant function (data2.dmp; refer to S109 in FIG. 8) and the first print data after the change by the coupon grant function (data3.dmp; Are stored in the auxiliary storage unit 13 in association with each other. For this reason, the user or the provider of the printer device 20 (print data conversion program 35) compares the first print data stored in the auxiliary storage unit 13 so that the coupon grant function operates normally. It becomes possible to confirm whether or not it is relatively easy.

特に印刷システム1では、補助記憶部13に保存される第1印刷データは、印刷対象文字列や制御コマンド文字列を16進表記で表すデータとなっている(図10参照)。このため、ユーザやプリンタ装置20(印刷データ変換プログラム35)の提供者等は、文字列を16進表記で表すデータを参照するための既存ツールを用いて、テキスト置換機能又はクーポン付与機能による変更前及び後の第1印刷データを比較することができる。   In particular, in the printing system 1, the first print data stored in the auxiliary storage unit 13 is data representing a character string to be printed and a control command character string in hexadecimal notation (see FIG. 10). For this reason, the user, the provider of the printer device 20 (print data conversion program 35), etc. can use the existing tool for referring to the data representing the character string in hexadecimal notation, and change the text replacement function or the coupon grant function. The first print data before and after can be compared.

また印刷システム1では、処理モードが処理モードC又はDに設定されると、テキスト置換機能又はクーポン付与機能による変更前及び後の第1印刷データ自体がプリンタ装置20から印刷出力される(図11参照)。このため、ユーザやプリンタ装置20(印刷データ変換プログラム35)の提供者等は、テキスト置換機能又はクーポン付与機能による変更前後の第1印刷データの比較を比較的簡易に行えるようになる。   In the printing system 1, when the processing mode is set to the processing mode C or D, the first print data itself before and after the change by the text replacement function or the coupon giving function is printed out from the printer device 20 (FIG. 11). reference). Therefore, the user, the provider of the printer device 20 (print data conversion program 35), and the like can relatively easily compare the first print data before and after the change by the text replacement function or the coupon grant function.

また印刷システム1では、テキスト置換機能又はクーポン付与機能による変更前及び後の第1印刷データと、その変更が行われた当時の設定データと、が関連づけて補助記憶部13に記憶される。このため、ユーザやプリンタ装置20(印刷データ変換プログラム35)の提供者等は、テキスト置換機能又はクーポン付与機能による変更前及び後の第1印刷データとともに、その変更が行われた当時の設定データを確認できるようになる。その結果、例えばテキスト置換機能又はクーポン付与機能がユーザの意図するように動作していないような場合に、ユーザやプリンタ装置20(印刷データ変換プログラム35)の提供者等は、印刷データ変換プログラム35に問題があるのか、又は設定データに問題があるのかを比較的簡易に判断できるようになる。   In the printing system 1, the first print data before and after the change by the text replacement function or the coupon giving function and the setting data at the time when the change is made are stored in the auxiliary storage unit 13 in association with each other. Therefore, the user, the provider of the printer device 20 (print data conversion program 35), etc., together with the first print data before and after the change by the text replacement function or the coupon grant function, the setting data at the time when the change was made Will be able to confirm. As a result, for example, when the text replacement function or the coupon grant function does not operate as intended by the user, the user, the provider of the printer device 20 (print data conversion program 35), etc. It is possible to relatively easily determine whether there is a problem with the setting data or a problem with the setting data.

なお、本発明は以上に説明した実施の形態に限定されるものではない。   The present invention is not limited to the embodiment described above.

例えば、図7のS102において、保存用ディレクトリは、POSコンピュータ10とLAN(Local Area Network)等の通信ネットワークを介して接続される他のコンピュータのハードディスク装置(不揮発性記憶手段)に作成されるようにしてもよい。   For example, in S102 of FIG. 7, the storage directory is created in a hard disk device (nonvolatile storage unit) of another computer connected to the POS computer 10 via a communication network such as a LAN (Local Area Network). It may be.

また例えば、テキスト置換機能又はクーポン付与機能による変更前及び後の第1印刷データと、その変更が行われた当時の設定データと、を関連づけて記憶する態様は、以上に説明した態様に限られない。例えばS102において、制御部11は保存用ディレクトリを新規作成する代わりに現在日時を取得するようにしてもよい。そして、S103,S104,S109,S114において、設定データや第1印刷データが所定のディレクトリ(例えば、「c:¥XXXXX¥Data」ディレクトリ)に保存され、かつ、設定データや第1印刷データのファイル名が、S102で取得された現在日時に基づいて決定されるようにしてもよい。例えば、S102が実行された際の現在日時が2007年3月16日10時25分56.15秒である場合には、S103において、設定データのファイル名が「2007031610255615config0.xml」に設定されるようにしてもよい。同様に、S104において、第1印刷データのファイル名が「2007031610255615data1.dmp」に設定されるようにしてもよい。また、S109において、第1印刷データのファイル名が「2007031610255615data2.dmp」に設定されるようにしてもよい。また、S114において、第1印刷データのファイル名が「2007031610255615data3.dmp」に設定されるようにしてもよい。このようにしても、テキスト置換機能又はクーポン付与機能による変更前及び後の第1印刷データと、その変更が行われた当時の設定データと、が関連づけて記憶されるようになる。   In addition, for example, the mode of storing the first print data before and after the change by the text replacement function or the coupon giving function and the setting data at the time when the change is performed in association with each other is limited to the mode described above. Absent. For example, in S102, the control unit 11 may acquire the current date and time instead of creating a new storage directory. In S103, S104, S109, and S114, the setting data and the first print data are stored in a predetermined directory (for example, “c: ¥ XXXX ¥ Data” directory), and the setting data and the first print data file are stored. The name may be determined based on the current date and time acquired in S102. For example, when the current date and time when S102 is executed is 10: 25: 56.15 seconds on March 16, 2007, the file name of the setting data is set to “20070316105556config0.xml” in S103. You may do it. Similarly, in S104, the file name of the first print data may be set to “2007031610255615data1.dmp”. In S109, the file name of the first print data may be set to “20070316105255615data2.dmp”. In step S114, the file name of the first print data may be set to “20070316105255615data3.dmp”. Even in this case, the first print data before and after the change by the text replacement function or the coupon giving function and the setting data at the time when the change is made are stored in association with each other.

また例えば、テキスト置換機能又はクーポン追加機能による変更前及び後の第1印刷データと、その変更が行われた当時の設定データとは、特定のタイミングで、プリンタ装置20(印刷データ変換プログラム35)の提供者等に電子メール等で送信されるようにしてもよい。   Further, for example, the first print data before and after the change by the text replacement function or the coupon addition function and the setting data at the time when the change is made are at a specific timing, the printer device 20 (print data conversion program 35). It may be transmitted by e-mail or the like to the provider.

また例えば、第1印刷データ変更/保存プログラム35aはフォント変換機能を備えるようにしてもよい。フォント変換機能は、レシートに含まれる文字のフォント種類を変換する機能である。例えば、フォント種類を指定する制御コマンド文字列が第1印刷データに含まれていない場合には、フォント種類を指定する制御コマンド文字列が第1印刷データの所定位置に追加されるようにしてもよい。また例えば、フォント種類を指定する制御コマンド文字列が第1印刷データに含まれる場合には、その制御コマンド文字列において指定されるフォント種類が他のフォント種類に変更されるようにしてもよい。このような場合にも、フォント変換機能による変更前及び後の第1印刷データが補助記憶部13に保存されるようにしてもよい。また、フォント変換機能による変更前及び後の第1印刷データ自体がプリンタ装置20で印刷出力されるようにしてもよい。   For example, the first print data change / save program 35a may have a font conversion function. The font conversion function is a function for converting the font type of characters included in the receipt. For example, when a control command character string specifying a font type is not included in the first print data, a control command character string specifying a font type may be added to a predetermined position of the first print data. Good. In addition, for example, when a control command character string specifying a font type is included in the first print data, the font type specified in the control command character string may be changed to another font type. Even in such a case, the first print data before and after the change by the font conversion function may be stored in the auxiliary storage unit 13. Further, the first print data itself before and after the change by the font conversion function may be printed out by the printer device 20.

また例えば、第2印刷データ生成プログラム35bは、ラスタ画像データを180度反転する機能や、ラスタ画像データの上部又は/及び下部の余白を切り取る機能を備えるようにしてもよい。また例えば、クーポン付与機能は第2印刷データ生成プログラム35bによって実現されるようにしてもよい。すなわち、ユーザによって指定されたクーポン画像データが、第2印刷データ生成プログラム35bによって、レシートのラスタ画像データの例えば下端に付加されるようにしてもよい。   Further, for example, the second print data generation program 35b may have a function of inverting the raster image data by 180 degrees and a function of cutting out the upper and / or lower margins of the raster image data. For example, the coupon grant function may be realized by the second print data generation program 35b. That is, the coupon image data designated by the user may be added to, for example, the lower end of the raster image data of the receipt by the second print data generation program 35b.

また例えば、POSコンピュータ10で実行されるオペレーティングシステムはマイクロソフト製のウィンドウズ(登録商標)に限られない。また、POSコンピュータ10で実行されるアプリケーションプログラムはPOSアプリケーション30a、30bに限られない。すなわち、プリンタ装置20で印刷出力される文書や画像はPOSアプリケーション30a、30bによって生成されたレシートに限られず、他のアプリケーションプログラムによって生成された文書や画像であってもよい。   Further, for example, the operating system executed on the POS computer 10 is not limited to Microsoft Windows (registered trademark). The application program executed by the POS computer 10 is not limited to the POS applications 30a and 30b. That is, the documents and images printed out by the printer device 20 are not limited to receipts generated by the POS applications 30a and 30b, and may be documents and images generated by other application programs.

また例えば、POSコンピュータ10とプリンタ装置20とはLAN等の通信ネットワークを介して通信接続されるようにしてもよい。この場合、インタフェース17及び24は通信ネットワークに接続するための通信インタフェースとして構成されるようにすればよい。   Further, for example, the POS computer 10 and the printer device 20 may be connected for communication via a communication network such as a LAN. In this case, the interfaces 17 and 24 may be configured as communication interfaces for connecting to a communication network.

また例えば、ランゲージモニタプログラム36の代わりに、「ランゲージモニタプログラム」以外の名称で呼ばれるプログラム(例えば、「ポートエミュレータ」等)が用いられるようにしてもよい。   For example, instead of the language monitor program 36, a program called by a name other than the “language monitor program” (for example, “port emulator”) may be used.

また例えば、第1印刷データ変換プログラム35によって実現される機能の全部又は一部は、プリンタ装置20に記憶されるプログラムによって実現されるようにしてもよい。すなわち、プリンタ装置20の制御部21が「変更手段」、「印刷出力要求手段」、「印刷データ出力手段(保存手段、第2印刷出力要求手段)」に相当するようにしてもよい。また、プリンタ装置20の記憶部22が「変更制御データ記憶手段」や「不揮発性記憶手段」に相当するようにしてもよい。   Further, for example, all or part of the functions realized by the first print data conversion program 35 may be realized by a program stored in the printer device 20. That is, the control unit 21 of the printer device 20 may correspond to “change means”, “print output request means”, and “print data output means (storage means, second print output request means)”. Further, the storage unit 22 of the printer device 20 may correspond to “change control data storage unit” or “nonvolatile storage unit”.

また例えば、処理モードが処理モードC又はDに設定された場合には、その時点の設定データ(config.xml)の内容がプリンタ装置20から印刷出力されるようにしてもよい。こうしても、ユーザやプリンタ装置20(印刷データ変換プログラム35)の提供者等は、テキスト置換機能又はクーポン付与機能による変更前及び後の第1印刷データとともに、その変更が行われた当時の設定データを確認できるようになる。   For example, when the processing mode is set to the processing mode C or D, the contents of the setting data (config.xml) at that time may be printed out from the printer device 20. Even in this case, the user, the provider of the printer device 20 (the print data conversion program 35), etc., together with the first print data before and after the change by the text replacement function or the coupon grant function, the setting data at the time when the change was made. Will be able to confirm.

また例えば、テキスト置換機能又はクーポン付与機能による変更前及び後の第1印刷データ自体をプリンタ装置20で印刷出力させる代わりに、テキスト置換機能又はクーポン付与機能による変更前及び後の第1印刷データ自体を表示部15に表示出力させるようにしてもよい。さらに、その時点の設定データ(config.xml)の内容が表示部15に表示出力されるようにしてもよい。   Further, for example, instead of printing out the first print data itself before and after the change by the text replacement function or the coupon giving function by the printer device 20, the first print data itself before and after the change by the text replacement function or the coupon giving function is used. May be displayed on the display unit 15. Further, the contents of the setting data (config.xml) at that time may be displayed on the display unit 15.

本発明の実施形態に係る印刷システムの全体構成を示す図である。1 is a diagram illustrating an overall configuration of a printing system according to an embodiment of the present invention. レシートの一例を示す図である。It is a figure which shows an example of a receipt. POSコンピュータの動作を説明するための図である。It is a figure for demonstrating operation | movement of a POS computer. 第1印刷データの一例を示す図である。It is a figure which shows an example of 1st print data. 設定画面の一例を示す図である。It is a figure which shows an example of a setting screen. ディレクトリツリー構造の一例を示している。An example of a directory tree structure is shown. 第1印刷データ変換プログラムの処理を示すフロー図である。It is a flowchart which shows the process of a 1st print data conversion program. 第1印刷データ変換プログラムの処理を示すフロー図である。It is a flowchart which shows the process of a 1st print data conversion program. 第1印刷データ変換プログラムの処理を示すフロー図である。It is a flowchart which shows the process of a 1st print data conversion program. 保存ディレクトリに保存された第1印刷データの一例を示す図である。It is a figure which shows an example of the 1st print data preserve | saved in the preservation | save directory. 第1印刷データ自体の印刷出力例を示す図である。It is a figure which shows the example of a print output of 1st print data itself. テキスト変換機能による変更後の第1印刷データの一例を示す図である。It is a figure which shows an example of the 1st print data after the change by a text conversion function. クーポン付与機能による変更後の第1印刷データの一例を示す図である。It is a figure which shows an example of the 1st print data after the change by a coupon provision function. レシートのラスタ画像データの一例を示す図である。It is a figure which shows an example of the raster image data of a receipt. ロゴ画像が追加されたレシートのラスタ画像データの一例を示す図である。It is a figure which shows an example of the raster image data of the receipt to which the logo image was added. 背景画像が追加されたレシートのラスタ画像データの一例を示す図である。It is a figure which shows an example of the raster image data of the receipt to which the background image was added.

符号の説明Explanation of symbols

1 印刷システム、10 POSコンピュータ、11 制御部、12 主記憶部、13 補助記憶部、14 入力部、15 表示部、16 光ディスク読み取り部、17 インタフェース、20 プリンタ装置、21 制御部、22 記憶部、23 印刷出力部、24 インタフェース、30a,30b POSアプリケーション、31 GDIプログラム、32 スプーラ、33a,33b 第1印刷データ生成プログラム、34 ポートドライバ、35 第1印刷データ変換プログラム、35a 第1印刷データ変更/保存プログラム、35b 第2印刷データ生成プログラム、36 ランゲージモニタプログラム、40 開始コマンドデータ部分、41 印刷内容データ部分、42 終了コマンドデータ部分、50 設定画面、51 登録ボタン、60 16進表記部分、61 テキスト表記部分。   DESCRIPTION OF SYMBOLS 1 Printing system, 10 POS computer, 11 Control part, 12 Main memory part, 13 Auxiliary memory part, 14 Input part, 15 Display part, 16 Optical disk reading part, 17 Interface, 20 Printer apparatus, 21 Control part, 22 Storage part, 23 Print Output Unit, 24 Interface, 30a, 30b POS Application, 31 GDI Program, 32 Spooler, 33a, 33b First Print Data Generation Program, 34 Port Driver, 35 First Print Data Conversion Program, 35a First Print Data Change / Save program, 35b Second print data generation program, 36 language monitor program, 40 start command data part, 41 print content data part, 42 end command data part, 50 setting screen, 51 registration button, 60 1 Hexadecimal notation, 61 text notation.

Claims (11)

複数の印刷データ生成プログラムのうちのいずれかによって生成され、印刷対象文字列を含む印刷データに基づいて、印刷出力手段に印刷出力を実行させる印刷システムにおいて、
前記印刷対象文字列に加える変更を制御するための変更制御データを記憶する変更制御データ記憶手段と、
前記変更制御データに基づいて、前記印刷データに含まれる印刷対象文字列に変更を加える変更手段と、
前記変更手段による変更後の前記印刷データに基づいて、前記印刷出力手段に印刷出力を要求する印刷出力要求手段と、
前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、を出力する印刷データ出力手段と、
を含むことを特徴とする印刷システム。
In a printing system that causes a print output unit to execute print output based on print data that is generated by one of a plurality of print data generation programs and includes a print target character string,
Change control data storage means for storing change control data for controlling changes to be made to the character string to be printed;
Based on the change control data, changing means for changing a print target character string included in the print data;
Print output requesting means for requesting print output to the print output means based on the print data changed by the changing means;
Print data output means for outputting the contents of the print data before the change by the change means and the contents of the print data after the change by the change means;
A printing system comprising:
請求項1に記載の印刷システムにおいて、
前記印刷データ出力手段は、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、を不揮発性記憶手段に保存する保存手段を含むことを特徴とする印刷システム。
The printing system according to claim 1,
The print data output means includes storage means for storing the contents of the print data before the change by the change means and the contents of the print data after the change by the change means in a nonvolatile storage means. And printing system.
請求項2に記載の印刷システムにおいて、
前記保存手段は、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、をn進表記で保存することを特徴とする印刷システム。
The printing system according to claim 2,
The storage system stores the contents of the print data before being changed by the changing means and the contents of the print data after being changed by the changing means in n-ary notation.
請求項2又は3に記載の印刷システムにおいて、
前記保存手段は、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、該変更の基礎として用いられた前記変更制御データの内容と、を関連づけて前記不揮発性記憶手段に保存することを特徴とする印刷システム。
The printing system according to claim 2 or 3,
The storage means includes the contents of the print data before the change by the change means, the contents of the print data after the change by the change means, and the contents of the change control data used as the basis of the change. A printing system characterized by being stored in association with the non-volatile storage means.
請求項1乃至4のいずれかに記載の印刷システムにおいて、
前記印刷データ出力手段は、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、を印刷出力することを前記印刷出力手段に要求する第2印刷出力要求手段を含むことを特徴とする印刷システム。
The printing system according to any one of claims 1 to 4,
The print data output means requests the print output means to print out the contents of the print data before the change by the change means and the contents of the print data after the change by the change means. A printing system comprising a print output requesting means.
請求項5に記載の印刷システムにおいて、
前記第2印刷出力要求手段は、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、をn進表記で印刷出力することを前記印刷出力手段に要求することを特徴とする印刷システム。
The printing system according to claim 5, wherein
The second print output request means prints out the contents of the print data before the change by the change means and the contents of the print data after the change by the change means in n-ary notation. A printing system characterized by requesting means.
請求項5又は6に記載の印刷システムにおいて、
前記第2印刷出力要求手段は、前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、該変更の基礎として用いられた前記変更制御データの内容と、を印刷出力することを前記印刷出力手段に要求することを特徴とする印刷システム。
The printing system according to claim 5 or 6,
The second print output request means includes the contents of the print data before the change by the change means, the contents of the print data after the change by the change means, and the change control data used as the basis of the change. A printing system which requests the print output means to print out the contents.
請求項1乃至7のいずれかに記載の印刷システムにおいて、
前記印刷システムは、プリンタ装置と、前記プリンタ装置と通信接続される印刷出力要求装置と、を含み、
前記印刷出力手段は前記プリンタ装置に含まれ、
前記変更制御データ記憶手段と前記変更手段と前記印刷出力要求手段と前記印刷データ出力手段とは前記印刷出力要求装置に含まれる、
ことを特徴とする印刷システム。
The printing system according to any one of claims 1 to 7,
The printing system includes a printer device, and a print output request device connected to the printer device for communication,
The print output means is included in the printer device,
The change control data storage means, the change means, the print output request means, and the print data output means are included in the print output request device.
A printing system characterized by that.
請求項1乃至8のいずれかに記載の印刷システムにおいて、
前記複数の印刷データ生成プログラムのうちのいずれかによって生成される前記印刷データは、第1データフォーマットに則った第1印刷データであり、
前記変更手段は、前記変更制御データに基づいて、前記第1印刷データに含まれる前記印刷対象文字列に変更を加え、
前記印刷出力要求手段は、前記変更手段による変更後の前記第1印刷データに基づいて、第2データフォーマットに則った第2印刷データを生成する手段を含み、前記第2印刷データを前記プリンタ装置に供給する、
ことを特徴とする印刷システム。
The printing system according to any one of claims 1 to 8,
The print data generated by any one of the plurality of print data generation programs is first print data according to a first data format,
The changing unit changes the print target character string included in the first print data based on the change control data,
The print output request means includes means for generating second print data in accordance with a second data format based on the first print data changed by the changing means, and the second print data is sent to the printer device. To supply,
A printing system characterized by that.
複数の印刷データ生成プログラムのうちのいずれかによって生成され、印刷対象文字列を含む印刷データに基づいて、印刷出力手段に印刷出力を実行させる印刷システムの制御方法において、
前記印刷対象文字列に加える変更を制御するための変更制御データを記憶してなる変更制御データ記憶手段から前記変更制御データを読み出すステップと、
前記変更制御データに基づいて、前記印刷データに含まれる印刷対象文字列に変更を加える変更ステップと、
前記変更ステップによる変更後の前記印刷データに基づいて、前記印刷出力手段に印刷出力を要求する印刷出力要求ステップと、
前記変更ステップによる変更前の前記印刷データの内容と、前記変更ステップによる変更後の前記印刷データの内容と、を出力する印刷データ出力ステップと、
を含むことを特徴とする印刷システムの制御方法。
In a control method of a printing system that causes a print output unit to execute print output based on print data that is generated by one of a plurality of print data generation programs and includes a print target character string,
Reading the change control data from change control data storage means for storing change control data for controlling changes to be applied to the print target character string;
Based on the change control data, a change step for changing a print target character string included in the print data;
A print output requesting step for requesting print output to the print output means based on the print data after the change in the changing step;
A print data output step for outputting the content of the print data before the change by the change step and the content of the print data after the change by the change step;
A control method for a printing system, comprising:
複数の印刷データ生成プログラムのうちのいずれかによって生成され、印刷対象文字列を含む印刷データに基づいて、印刷出力手段に印刷出力を実行させる印刷システムとしてコンピュータを機能させるためのプログラムであって、
前記印刷対象文字列に加える変更を制御するための変更制御データを記憶してなる変更制御データ記憶手段から前記変更制御データを読み出す手段と、
前記変更制御データに基づいて、前記印刷データに含まれる印刷対象文字列に変更を加える変更手段、
前記変更手段による変更後の前記印刷データに基づいて、前記印刷出力手段に印刷出力を要求する印刷出力要求手段、及び、
前記変更手段による変更前の前記印刷データの内容と、前記変更手段による変更後の前記印刷データの内容と、を出力する印刷データ出力手段、
として前記コンピュータを機能させるためのプログラム。
A program for causing a computer to function as a printing system that causes a print output unit to execute print output based on print data including a print target character string generated by any one of a plurality of print data generation programs,
Means for reading out the change control data from change control data storage means for storing change control data for controlling a change to be applied to the character string to be printed;
Based on the change control data, change means for changing a print target character string included in the print data,
Based on the print data after the change by the change means, a print output request means for requesting the print output means for print output, and
Print data output means for outputting the contents of the print data before the change by the change means and the contents of the print data after the change by the change means;
A program for causing the computer to function as
JP2007066777A 2007-03-15 2007-03-15 Printing system, control method of printing system, and program Pending JP2008226124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007066777A JP2008226124A (en) 2007-03-15 2007-03-15 Printing system, control method of printing system, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007066777A JP2008226124A (en) 2007-03-15 2007-03-15 Printing system, control method of printing system, and program

Publications (1)

Publication Number Publication Date
JP2008226124A true JP2008226124A (en) 2008-09-25

Family

ID=39844621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007066777A Pending JP2008226124A (en) 2007-03-15 2007-03-15 Printing system, control method of printing system, and program

Country Status (1)

Country Link
JP (1) JP2008226124A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012160184A (en) * 2011-01-31 2012-08-23 Metrologic Instruments Inc Method, device and system for programming bar code symbol scanning terminal using two-dimensional programming codes
JP2012178020A (en) * 2011-02-25 2012-09-13 Seiko Epson Corp Function extension program, function extension device, and function extension method using print data
JP2013210885A (en) * 2012-03-30 2013-10-10 Seiko Epson Corp Print control unit, print system, and print control method
JP2018069512A (en) * 2016-10-27 2018-05-10 セイコーエプソン株式会社 Printer and control method for the same
US10019204B2 (en) 2012-03-30 2018-07-10 Seiko Epson Corporation Print control device, printing system, and print control method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012160184A (en) * 2011-01-31 2012-08-23 Metrologic Instruments Inc Method, device and system for programming bar code symbol scanning terminal using two-dimensional programming codes
JP2012178020A (en) * 2011-02-25 2012-09-13 Seiko Epson Corp Function extension program, function extension device, and function extension method using print data
JP2013210885A (en) * 2012-03-30 2013-10-10 Seiko Epson Corp Print control unit, print system, and print control method
US10019204B2 (en) 2012-03-30 2018-07-10 Seiko Epson Corporation Print control device, printing system, and print control method
US10459668B2 (en) 2012-03-30 2019-10-29 Seiko Epson Corporation Print control device, printing system, and print control method for generating image print commands from print data in markup language
JP2018069512A (en) * 2016-10-27 2018-05-10 セイコーエプソン株式会社 Printer and control method for the same

Similar Documents

Publication Publication Date Title
US8917405B2 (en) Information processing for generating graphics data processible by a printer
US20140362412A1 (en) Method of adding value to print data, a value-adding device, and a recording medium
JP7700308B2 (en) PROGRAM, STORAGE MEDIUM AND INFORMATION PROCESSING DEVICE
JP4270152B2 (en) Print control program, print control apparatus, and print control method
US20120013948A1 (en) Information processing apparatus, method for controlling same, and storage medium
JP4785577B2 (en) Information processing apparatus, control method therefor, and program
JP2008226124A (en) Printing system, control method of printing system, and program
JP2019040564A (en) Printer driver and information processing apparatus
US8320001B2 (en) Information processing method and apparatus for banner printing
US9898691B2 (en) Control device, control system, and control method of a control device
JP4685624B2 (en) Environment setting data setting method, environment setting data setting program, and print data supply device
US7961341B2 (en) Print system, print data supplying device, and method for supplying print data to printer
JP4627683B2 (en) Printing system, printing system control method and program
TW201348011A (en) Data processing apparatus, recording apparatus and control method of the data processing apparatus
JP5173881B2 (en) Information processing method and information processing apparatus
JP4594812B2 (en) Printing system, printing request apparatus control method, program, and printing request apparatus
JP3961302B2 (en) Printer driver and printer driver data processing method
JP2007058463A (en) Receipt image printing system, control method for receipt image printing system, and program
JP2017083996A (en) Information processing device, control method and program thereof
JP2007011515A (en) Print system, control method of print system and program
JP4594813B2 (en) Printing system, printing request apparatus control method, program, and printing request apparatus
JP2012141732A (en) Information processor, control method and program
JP2006338412A (en) Method of installing print data output program, and program
JP2014054846A (en) Control device, control method for control device, and program
JP6064676B2 (en) Printing system, cover setting method for printing system, cover setting program, and recording medium