JP2013257805A - Control device, control method of control device, and program - Google Patents

Control device, control method of control device, and program Download PDF

Info

Publication number
JP2013257805A
JP2013257805A JP2012134561A JP2012134561A JP2013257805A JP 2013257805 A JP2013257805 A JP 2013257805A JP 2012134561 A JP2012134561 A JP 2012134561A JP 2012134561 A JP2012134561 A JP 2012134561A JP 2013257805 A JP2013257805 A JP 2013257805A
Authority
JP
Japan
Prior art keywords
barcode
execution unit
image information
application execution
control
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
JP2012134561A
Other languages
Japanese (ja)
Inventor
Hiroyuki Nagasawa
洋幸 長澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2012134561A priority Critical patent/JP2013257805A/en
Publication of JP2013257805A publication Critical patent/JP2013257805A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimiles In General (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent an incorrect barcode from being recorded when an image including a barcode is recorded in a recording device.SOLUTION: When an image including a barcode is recorded in a printer 12, an application execution unit 20 of a host computer 11 outputs image information relating to the barcode without using a GDI 40, and a printer driver execution unit 21 generates control data relating to the barcode on the basis of the image information relating to the barcode output by the application execution unit 20 without using the GDI 40.

Description

本発明は、記録装置に接続可能な制御装置、当該制御装置の制御方法、及び、当該制御装置を制御するためのプログラムに関する。   The present invention relates to a control device connectable to a recording device, a control method for the control device, and a program for controlling the control device.

従来、シート等の記録媒体にバーコードを記録するバーコード印刷システムが知られている(例えば、特許文献1参照)。   Conventionally, a barcode printing system that records a barcode on a recording medium such as a sheet is known (see, for example, Patent Document 1).

特開2002−150211号公報JP 2002-150211 A

記録媒体に記録されるバーコードは、後に光学的に読み取られて、所定の処理に使用されるものであるため、誤ったバーコードが記録されることを防止する必要がある。
本発明は、上述した事情に鑑みてなされたものであり、バーコードを含む画像を記録装置に記録させる場合に、誤ったバーコードが記録されることを防止することを目的とする。
Since the barcode recorded on the recording medium is optically read later and used for predetermined processing, it is necessary to prevent an erroneous barcode from being recorded.
The present invention has been made in view of the above-described circumstances, and an object thereof is to prevent an erroneous barcode from being recorded when an image including a barcode is recorded on a recording apparatus.

上記目的を達成するために、本発明は、記録装置に接続可能な制御装置であって、前記記録装置に記録させる画像に関する画像情報を生成し、前記画像情報を出力するアプリケーション実行部と、前記アプリケーション実行部から出力された前記画像情報に基づいて、前記記録装置を制御する制御データを生成するプリンタードライバー実行部と、を備え、バーコードを含む画像を前記記録装置に記録させる場合、前記アプリケーション実行部は、バーコードに係る前記画像情報については、描画処理用のインターフェイスを介すことなく出力し、前記プリンタードライバー実行部は、前記アプリケーション実行部により前記描画処理用のインターフェイスを介すことなく出力されたバーコードに係る前記画像情報に基づいて、バーコードに係る前記制御データを生成する、ことを特徴とする。
ここで、一般に、アプリケーションとプリンタードライバーとの間でのデータの受け渡しは、OSにより提供されるソフトウェア的なインターフェイスを介して行われる。通常、このインターフェイスは、アプリケーションから入力されたデータについて、OSの仕様に応じた所定の描画処理を施した上で、プリンタードライバーに出力する機能を有している。
そして、上記構成によれば、バーコードを含む画像を記録装置に記録させる場合、アプリケーション実行部は、バーコードに係る画像情報については、描画処理用のインターフェイスを介すことなく出力し、プリンタードライバー実行部は、アプリケーション実行部により描画処理用のインターフェイスを介すことなく出力されたバーコードに係る画像情報に基づいて、バーコードに係る制御データを生成する。従って、アプリケーションからプリンタードライバーへのバーコードに係る画像情報の出力に際し、インターフェイスの機能により、バーコードに係る画像情報に何らかの改変が加わることがなく、バーコードに係る画像情報の改変に起因して誤ったバーコードが記録されることを防止できる。
In order to achieve the above object, the present invention provides a control device connectable to a recording device, wherein the application execution unit generates image information relating to an image to be recorded by the recording device, and outputs the image information; A printer driver execution unit that generates control data for controlling the recording device based on the image information output from the application execution unit, and when the image including a barcode is recorded on the recording device, the application The execution unit outputs the image information relating to the barcode without using the drawing processing interface, and the printer driver execution unit does not pass through the drawing processing interface by the application execution unit. Based on the image information related to the output barcode, Wherein generating the control data that, characterized in that.
Here, generally, data exchange between the application and the printer driver is performed via a software interface provided by the OS. Normally, this interface has a function of outputting a data input from an application to a printer driver after performing a predetermined drawing process according to the specification of the OS.
According to the above configuration, when an image including a barcode is recorded on the recording device, the application execution unit outputs the image information related to the barcode without using the drawing processing interface, and the printer driver The execution unit generates control data related to the barcode based on the image information related to the barcode output by the application execution unit without passing through the drawing processing interface. Therefore, when outputting the image information related to the barcode from the application to the printer driver, the interface function does not cause any modification to the image information related to the barcode, and is caused by the modification of the image information related to the barcode. It is possible to prevent an erroneous barcode from being recorded.

また、本発明は、バーコードを含む画像を前記記録装置に記録させる場合、前記アプリケーション実行部は、バーコードに係る前記画像情報を所定の記憶領域に記憶し、前記プリンタードライバー実行部は、前記所定の記憶領域に記憶されたバーコードに係る前記画像情報に基づいて、バーコードに係る前記制御データを生成する、ことを特徴とする。
この構成によれば、描画処理用のインターフェイスに何ら機能を追加することなく、アプリケーションからプリンタードライバーに対して、描画処理用のインターフェイスを介すことなくバーコードに係る画像情報を出力可能である。
In the present invention, when the image including the barcode is recorded on the recording device, the application execution unit stores the image information on the barcode in a predetermined storage area, and the printer driver execution unit The control data relating to the barcode is generated based on the image information relating to the barcode stored in a predetermined storage area.
According to this configuration, it is possible to output image information related to the barcode from the application to the printer driver without going through the drawing processing interface without adding any function to the drawing processing interface.

また、上記目的を達成するために、本発明は、記録装置に接続可能に構成され、前記記録装置に記録させる画像に関する画像情報を生成し、出力するアプリケーション実行部と、前記アプリケーション実行部から出力された前記画像情報に基づいて、前記記録装置を制御する制御データを生成するプリンタードライバー実行部と、を備える制御装置の制御方法であって、バーコードを含む画像を前記記録装置に記録させる場合、前記アプリケーション実行部により、バーコードに係る前記画像情報については、前記描画処理用のインターフェイスを介すことなく出力し、前記プリンタードライバー実行部により、前記アプリケーション実行部により前記描画処理用のインターフェイスを介すことなく出力されたバーコードに係る前記画像情報に基づいて、バーコードに係る前記制御データを生成する、ことを特徴とする。
この制御方法によれば、アプリケーションからプリンタードライバーへのバーコードに係る画像情報の出力に際し、インターフェイスの機能により、バーコードに係る画像情報に何らかの改変が加わることがなく、バーコードに係る画像情報の改変に起因して誤ったバーコードが記録されることを防止できる。
In order to achieve the above object, the present invention is configured to be connectable to a recording apparatus, and generates and outputs image information relating to an image to be recorded by the recording apparatus, and outputs from the application execution section A control method for a control device, comprising: a printer driver execution unit that generates control data for controlling the recording device based on the image information that has been recorded, wherein the recording device records an image including a barcode The application execution unit outputs the image information relating to the barcode without passing through the drawing processing interface, and the printer driver execution unit sets the drawing processing interface by the application execution unit. The image information relating to the barcode output without passing through Based on, for generating the control data according to the bar code, characterized in that.
According to this control method, when the image information related to the barcode is output from the application to the printer driver, the image information related to the barcode is not modified by the function of the interface without any modification to the image information related to the barcode. It is possible to prevent an erroneous bar code from being recorded due to modification.

また、上記目的を達成するために、本発明は、記録装置に接続可能な制御装置を制御する制御部により実行されるプログラムであって、前記制御部を、前記記録装置に記録させる画像に関する画像情報を生成し、出力するアプリケーション実行部と、前記アプリケーション実行部から出力された前記画像情報に基づいて、前記記録装置を制御する制御データを生成するプリンタードライバー実行部と、として機能させると共に、バーコードを含む画像を前記記録装置に記録させる場合、前記アプリケーション実行部に、バーコードに係る前記画像情報については、描画処理用のインターフェイスを介すことなく出力させ、前記プリンタードライバー実行部に、前記アプリケーション実行部により前記描画処理用のインターフェイスを介すことなく出力させたバーコードに係る前記画像情報に基づいて、バーコードに係る前記制御データを生成させる、ことを特徴とする。
このプログラムによれば、アプリケーションからプリンタードライバーへのバーコードに係る画像情報の出力に際し、インターフェイスの機能により、バーコードに係る画像情報に何らかの改変が加わることがなく、バーコードに係る画像情報の改変に起因して誤ったバーコードが記録されることを防止できる。
In order to achieve the above object, the present invention provides a program executed by a control unit that controls a control device that can be connected to a recording apparatus, the image relating to an image that causes the recording apparatus to record the control unit. An application execution unit that generates and outputs information, and a printer driver execution unit that generates control data for controlling the recording apparatus based on the image information output from the application execution unit, When recording an image including a code in the recording device, the application execution unit causes the image information related to the barcode to be output without passing through a drawing processing interface, and the printer driver execution unit Via the interface for drawing processing by the application execution unit Based on the image information according to the Ku barcode is output, thereby generating the control data according to the bar code, characterized in that.
According to this program, when the image information related to the barcode is output from the application to the printer driver, the image information related to the barcode is not modified by the function of the interface, and the image information related to the barcode is modified. It is possible to prevent an erroneous bar code from being recorded due to the error.

本発明によれば、誤ったバーコードが記録されることを防止できる。   According to the present invention, it is possible to prevent an erroneous barcode from being recorded.

記録システムの機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of a recording system. 各機能ブロックの関係を示す図である。It is a figure which shows the relationship between each functional block. ホストコンピューターの動作を示すフローチャートである。It is a flowchart which shows operation | movement of a host computer.

以下、図面を参照して本発明の実施形態について説明する。
図1は、本発明を適用した実施形態に係る記録システム1の構成を示すブロック図である。
この図1に示すように、記録システム1は、ホストコンピューター11(制御装置)と、ホストコンピューター11に対して通信可能に接続されたプリンター12(記録装置)と、を備えている。
ホストコンピューター11は、例えば、コンビニエンスストアやスーパーマーケット等の店舗の店頭に設置され、売上登録処理及び精算処理等の機能を有するPOS端末であり、顧客による会計毎にプリンター12によってレシートを発行する。
図1に示すように、ホストコンピューター11は、制御部13と、入力部14と、表示部15と、インターフェイス(I/F)部16と、記憶部17と、を備えている。
制御部13は、ホストコンピューター11を中枢的に制御するものであり、各種プログラムを実行するCPU、CPUにより実行される基本制御プログラム等を記憶するROM、CPUが実行するプログラムや処理対象のデータ等を一時的に記憶するワークエリアを形成するRAM、その他周辺回路等を備えている。制御部13は、アプリケーション実行部20と、プリンタードライバー実行部21とを備えているがこれらについては後述する。入力部14は、オペレーターに操作される売上登録キー等の各種キーを備えたキーボードや、バーコードスキャナー、カードリーダー等の各種デバイスに接続され、これらデバイスに対する操作を検出し、制御部13に出力する。表示部15は、液晶ディスプレイ等の表示パネルを備え、制御部13の制御の下、各種情報を表示パネルに表示する。インターフェイス部16は、制御部13の制御の下、プリンター12との間で通信規格に準拠した通信を行う。記憶部17は、EEPROM等の不揮発性メモリーを備え、各種データを書き換え可能に記憶する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a recording system 1 according to an embodiment to which the present invention is applied.
As shown in FIG. 1, the recording system 1 includes a host computer 11 (control device) and a printer 12 (recording device) connected to the host computer 11 so as to be communicable.
The host computer 11 is a POS terminal that is installed at a store such as a convenience store or a supermarket, and has functions such as a sales registration process and a settlement process, and issues a receipt by the printer 12 for each transaction by a customer.
As shown in FIG. 1, the host computer 11 includes a control unit 13, an input unit 14, a display unit 15, an interface (I / F) unit 16, and a storage unit 17.
The control unit 13 centrally controls the host computer 11, and includes a CPU that executes various programs, a ROM that stores basic control programs executed by the CPU, a program executed by the CPU, data to be processed, and the like. RAM, which forms a work area for temporarily storing data, and other peripheral circuits. The control unit 13 includes an application execution unit 20 and a printer driver execution unit 21, which will be described later. The input unit 14 is connected to a keyboard having various keys such as a sales registration key operated by an operator, various devices such as a barcode scanner, a card reader, etc., detects operations on these devices, and outputs them to the control unit 13 To do. The display unit 15 includes a display panel such as a liquid crystal display, and displays various information on the display panel under the control of the control unit 13. The interface unit 16 performs communication based on the communication standard with the printer 12 under the control of the control unit 13. The storage unit 17 includes a nonvolatile memory such as an EEPROM and stores various data in a rewritable manner.

また、プリンター12は、ホストコンピューター11の制御に従って、ロール状に巻かれた感熱ロール紙(記録媒体)を、搬送機構(不図示)により搬送しつつ、この感熱ロール紙の記録面にラインサーマルヘッド(不図示)によって熱を与えることにより文字や画像を記録し、切断機構(不図示)により所定の位置で感熱ロール紙を切断することによってレシートを発行するラインサーマルプリンターである。
図1に示すように、プリンター12は、プリンター側制御部30と、インターフェイス(I/F)部31と、プリントエンジン32と、プリンター側記憶部33と、を備えている。
プリンター側制御部30は、プリンター12の各部を中枢的に制御するものであり、CPUや、ROM、RAMその他の周辺回路を備えている。インターフェイス部31は、プリンター側制御部30の制御の下、ホストコンピューター11との間で、通信規格に準拠した通信を行う。プリントエンジン32は、プリンター側制御部30の制御の下、用紙端センサーや用紙残量センサー等の各種センサーの検出値を監視しながら、上述したラインサーマルヘッドのほか、感熱ロール紙を搬送するプラテンローラーを駆動するための搬送モーターや、上述した切断機構が備えるカッターを駆動するためのカッター駆動モーターを動作させて、感熱ロール紙に画像を記録し、画像を記録した感熱ロール紙を切断することによりレシートを発行する。プリンター側記憶部33は、EEPROM等の不揮発性メモリーを備え、各種データを書き換え可能に記憶する。プリンター側記憶部33には、ファームウェアがロード可能に記憶されており、プリンター側制御部30は、ファームウェアの機能により、プリンター12の各部を制御する。
In addition, the printer 12 transports a thermal roll paper (recording medium) wound in a roll shape according to the control of the host computer 11 by a transport mechanism (not shown), and a line thermal head on the recording surface of the thermal roll paper. This is a line thermal printer that records characters and images by applying heat (not shown) and issues a receipt by cutting the thermal roll paper at a predetermined position by a cutting mechanism (not shown).
As shown in FIG. 1, the printer 12 includes a printer-side control unit 30, an interface (I / F) unit 31, a print engine 32, and a printer-side storage unit 33.
The printer-side control unit 30 centrally controls each unit of the printer 12 and includes a CPU, a ROM, a RAM, and other peripheral circuits. The interface unit 31 performs communication based on the communication standard with the host computer 11 under the control of the printer-side control unit 30. Under the control of the printer-side control unit 30, the print engine 32 monitors the detection values of various sensors such as a paper edge sensor and a paper remaining amount sensor, and in addition to the above-described line thermal head, a platen that conveys thermal roll paper. Operate the conveyance motor for driving the roller and the cutter drive motor for driving the cutter provided in the above-described cutting mechanism, record the image on the thermal roll paper, and cut the thermal roll paper on which the image is recorded. Issue a receipt. The printer-side storage unit 33 includes a nonvolatile memory such as an EEPROM and stores various data in a rewritable manner. Firmware is stored in the printer-side storage unit 33 so that it can be loaded. The printer-side control unit 30 controls each unit of the printer 12 by the function of the firmware.

次いで、アプリケーション実行部20、及び、プリンタードライバー実行部21の説明を通して、1つのレシートを発行する際の記録システム1の基本的な動作について説明する。
アプリケーション実行部20は、ホストコンピューター11に予めインストールされたPOSアプリケーション(所定のアプリケーション)を実行することにより、取引毎に、例えば所定のサーバーにアクセスする等して、取引において購入された商品を示す情報や、商品の単価を示す情報、購入金額を示す情報等のレシートに記載すべき情報を取得し、取得した情報に基づいてレシートに記録すべき画像に関する画像情報(記録装置に記録させる画像に関する画像情報)を生成し、プリンタードライバー実行部21に出力する。
プリンタードライバー実行部21は、ホストコンピューター11に予めインストールされたプリンタードライバーを実行することにより、アプリケーション実行部20から入力された画像情報に基づいて、プリンター12のコマンド仕様に対応した制御コマンド(制御データ)を生成し、プリンター12に出力する。この制御コマンドには、搬送機構に感熱ロール紙を搬送させるコマンドや、ラインサーマルヘッドを駆動させて画像を記録させるコマンド、また、感熱ロール紙に記録すべき画像の画像データ、切断機構に感熱ロール紙を切断させるコマンド等が含まれている。
制御コマンドが入力されたプリンター側制御部30は、ファームウェアの機能により、制御コマンドに従って、プリントエンジン32を制御して、レシートの発行に係る各種動作を実行する。
Next, basic operations of the recording system 1 when issuing one receipt will be described through the description of the application execution unit 20 and the printer driver execution unit 21.
The application execution unit 20 executes a POS application (predetermined application) installed in advance on the host computer 11 to indicate a product purchased in the transaction, for example, by accessing a predetermined server for each transaction. Information, information indicating the unit price of the product, information indicating the purchase price, etc. is acquired and information on the image to be recorded on the receipt based on the acquired information (related to the image to be recorded on the recording device) Image information) is generated and output to the printer driver execution unit 21.
The printer driver execution unit 21 executes a printer driver installed in advance in the host computer 11, thereby controlling a control command (control data) corresponding to the command specification of the printer 12 based on the image information input from the application execution unit 20. ) And output to the printer 12. This control command includes a command for transporting the thermal roll paper to the transport mechanism, a command for driving the line thermal head to record an image, image data of an image to be recorded on the thermal roll paper, and a thermal roll for the cutting mechanism. Commands to cut the paper are included.
The printer-side control unit 30 to which the control command is input controls the print engine 32 according to the control command by the function of the firmware, and executes various operations related to the receipt issuance.

次に、アプリケーション実行部20と、プリンタードライバー実行部21との関係をより詳細に説明すると共に、これら機能ブロックによって制御コマンドが生成される際の動作についてより詳細に説明する。
図2は、アプリケーション実行部20、及び、プリンタードライバー実行部21との関係を、関連する要素と共に、模式的に示す図である。
図2では、説明の便宜のため、プログラムを実行することによって機能を発揮する機能ブロック、プログラムを実行することによって発揮される機能、及び、プログラムを、同じレベルのブロックによって表現している。
図2において、OS39は、例えば、Windows(登録商標)が提供するOSである。このOS39は、POSアプリケーション、及び、プリンタードライバーが利用可能なAPI(Application Programming Interface)としてのGDI(Graphical Device Interface)40(描画処理用のインターフェイス)、及び、スプーラー41を提供する。本実施形態では、GDI40は、描画処理用のインターフェイスである。
プリンター12に画像を記録させる場合、アプリケーション実行部20は、上述した画像情報を生成し、GDI40を呼び出し、GDI40を介して、画像情報をプリンタードライバー実行部21に出力する。
GDI40は、アプリケーション実行部20から入力された画像情報について、記録に関する所定の描画処理(例えば、直線や曲線の描画の調整に係る描画処理や、改行位置や文字間隔の調整に係る描画処理)を施し、DDI(Device Driver Interface)関数に置き換えてプリンタードライバー実行部21に出力する。記録に関する所定の描画処理は、例えば、直線や曲線の描画の調整に係る描画処理や、改行位置や文字間隔の調整に係る描画処理である。
プリンタードライバー実行部21は、制御データ生成機能43を有しており、当該機能により、GDI40から入力されたDDI関数としての画像情報に基づいて、プリンター12のコマンド仕様に対応した制御コマンドを生成し、スプーラー41に出力する。
スプーラー41は、プリンタードライバー実行部21から入力された制御コマンドを、所定の記憶領域に一時記憶し、プリンター12の状態に応じて、制御コマンドを送信する。
Next, the relationship between the application execution unit 20 and the printer driver execution unit 21 will be described in more detail, and the operation when a control command is generated by these functional blocks will be described in more detail.
FIG. 2 is a diagram schematically illustrating a relationship between the application execution unit 20 and the printer driver execution unit 21 together with related elements.
In FIG. 2, for convenience of explanation, a function block that exhibits a function by executing a program, a function that is exhibited by executing a program, and a program are represented by blocks of the same level.
In FIG. 2, an OS 39 is an OS provided by Windows (registered trademark), for example. The OS 39 provides a POS application, a GDI (Graphic Device Interface) 40 (drawing processing interface), and a spooler 41 as an API (Application Programming Interface) that can be used by a printer driver. In the present embodiment, the GDI 40 is an interface for drawing processing.
When recording an image on the printer 12, the application execution unit 20 generates the above-described image information, calls the GDI 40, and outputs the image information to the printer driver execution unit 21 via the GDI 40.
The GDI 40 performs predetermined drawing processing related to recording (for example, drawing processing related to adjustment of drawing of straight lines and curves, and drawing processing related to adjustment of line feed position and character spacing) for image information input from the application execution unit 20. The data is replaced with a DDI (Device Driver Interface) function and output to the printer driver execution unit 21. The predetermined drawing process related to recording is, for example, a drawing process related to adjustment of drawing a straight line or a curve, or a drawing process related to adjustment of a line feed position or a character interval.
The printer driver execution unit 21 has a control data generation function 43, which generates a control command corresponding to the command specification of the printer 12 based on image information as a DDI function input from the GDI 40. , Output to the spooler 41.
The spooler 41 temporarily stores the control command input from the printer driver execution unit 21 in a predetermined storage area, and transmits the control command according to the state of the printer 12.

ところで、レシートには、バーコードが記録される場合がある。バーコードは、後に光学的に読み取られ、所定の処理に使用されるものであるため、レシートに、記録すべきバーコードと異なるバーコード(誤ったバーコード)が記録されることは避けなければならない。一方で、本実施形態では、アプリケーション実行部20は、プリンタードライバー実行部21に対して、GDI40を介して画像情報を出力するが、上述したとおり、GDI40は、入力された画像情報に対して、改行位置の調整に係る描画処理等の所定の描画処理を施す機能を有しているため、バーコードに係る画像情報に対して、何らかの描画処理が行われる可能性がある。例えば、バーコードに係る画像情報には、文字列としてのバーコードの識別コードが含まれているが、この識別コードの中途で改行処理が行われ、識別コードが変更される可能性がある。そして、バーコードに係る画像情報に対して描画処理が行われた場合、記録すべきバーコードと異なるバーコードがレシートに記録されてしまう可能性がある。ここで、従来は、GDI40により、バーコードに係る画像情報に何らかの描画処理が施された場合、プリンタードライバーの機能により、記録されるバーコードが正しいものとなるよう、バーコードに係る画像情報が再構築されていたが、この場合、当該再構築に係る機能をプリンタードライバーに実装させる必要があり、プリンタードライバーの複雑化を招く可能性があった。
以上を踏まえ、本実施形態に係るホストコンピューター11は、以下の動作を実行する。
By the way, a barcode may be recorded on the receipt. Since the bar code is optically read later and used for predetermined processing, it is necessary to avoid recording a bar code (wrong bar code) different from the bar code to be recorded on the receipt. Don't be. On the other hand, in the present embodiment, the application execution unit 20 outputs image information to the printer driver execution unit 21 via the GDI 40. As described above, the GDI 40 outputs the image information to the input image information. Since it has a function of performing predetermined drawing processing such as drawing processing related to adjustment of a line feed position, there is a possibility that some drawing processing may be performed on image information related to a barcode. For example, the image information relating to the barcode includes a barcode identification code as a character string, but there is a possibility that the identification code may be changed by performing a line feed process in the middle of this identification code. When a drawing process is performed on image information related to a barcode, a barcode different from the barcode to be recorded may be recorded on the receipt. Here, conventionally, when some drawing processing is performed on the image information related to the barcode by the GDI 40, the image information related to the barcode is set so that the recorded barcode is correct by the function of the printer driver. However, in this case, it is necessary to cause the printer driver to implement the function related to the reconfiguration, which may lead to complication of the printer driver.
Based on the above, the host computer 11 according to the present embodiment performs the following operations.

図3は、プリンター12に画像を記録されるときのホストコンピューター11の動作を示すフローチャートである。
まず、アプリケーション実行部20は、プリンター12に記録させる画像の画像情報を生成する(ステップSA1)。
次いで、アプリケーション実行部20は、生成した画像情報に、バーコードに係る画像情報(以下、「バーコード画像情報」という。)が含まれているか否かを判別する(ステップSA2)。画像情報にバーコード画像情報が含まれているということは、プリンター12によって記録させようとしている画像にバーコードが含まれているということである。本実施形態では、画像情報において、バーコード画像情報は、バーコードフォントのバーコードの識別コードを表す文字列(例えば、「123456」)として表されている。ステップSA2では、アプリケーション実行部20は、画像情報に、バーコードフォントによって表された文字列が含まれているか否かを判別することにより、画像情報にバーコード画像情報が含まれているか否かを判別する。
画像情報にバーコード画像情報が含まれていない場合(ステップSA2:NO)、アプリケーション実行部20は、処理手順をステップSA4へ移行する。
画像情報にバーコード画像情報が含まれている場合(ステップSA2:YES)、アプリケーション実行部20は、バーコード画像情報が示すバーコードの識別コード(文字列)を、記憶部17に予め記憶された所定のファイル17a(所定の記憶領域。図2も併せて参照。)に記述(記憶)する(ステップSA3)。
ステップSA4において、アプリケーション実行部20は、生成した画像情報をGDI40を介してプリンタードライバー実行部21に出力する。
FIG. 3 is a flowchart showing the operation of the host computer 11 when an image is recorded on the printer 12.
First, the application execution unit 20 generates image information of an image to be recorded by the printer 12 (Step SA1).
Next, the application execution unit 20 determines whether the generated image information includes image information related to a barcode (hereinafter referred to as “barcode image information”) (step SA2). The fact that barcode image information is included in the image information means that the image to be recorded by the printer 12 includes a barcode. In the present embodiment, in the image information, the barcode image information is represented as a character string (for example, “123456”) representing the barcode identification code of the barcode font. In step SA2, the application execution unit 20 determines whether or not the image information includes barcode image information by determining whether or not the image information includes a character string represented by a barcode font. Is determined.
When the barcode information is not included in the image information (step SA2: NO), the application execution unit 20 moves the processing procedure to step SA4.
When the barcode information is included in the image information (step SA2: YES), the application execution unit 20 stores the barcode identification code (character string) indicated by the barcode image information in the storage unit 17 in advance. It is described (stored) in a predetermined file 17a (predetermined storage area; see also FIG. 2) (step SA3).
In step SA4, the application execution unit 20 outputs the generated image information to the printer driver execution unit 21 via the GDI 40.

プリンタードライバー実行部21は、画像情報が入力されると、この画像情報に、バーコード画像情報が含まれているか否かを判別する(ステップSA5)。含まれていない場合(ステップSA5:NO)、プリンタードライバー実行部21は、通常の処理により制御コマンドを生成し(ステップSA6)、生成した制御コマンドをスプーラー41を介してプリンター12に送信する(ステップSA7)。
一方、画像情報に、バーコード画像情報が含まれている場合(ステップSA5:YES)、プリンタードライバー実行部21は、記憶部17の所定のファイル17aにアクセスし、当該ファイル17aに記述されたバーコードの識別コードを取得する(ステップSA8)。
次いで、プリンタードライバー実行部21は、制御コマンドを生成し(ステップSA9)、出力するが(ステップSA7)、バーコードの記録を指示する制御コマンド(バーコードに係る制御データ)については、以下のようにして制御コマンドを生成する。
すなわち、プリンタードライバー実行部21は、アプリケーション実行部20から入力された画像情報に含まれるバーコード画像情報が示すバーコードの識別コードではなく、ステップSA8において所定のファイル17aにアクセスして取得したバーコードの識別コードに基づいて、当該識別コードを表すバーコードの記録を指示する制御コマンドを生成する。このような動作が行われることにより、以下の効果を奏する。すなわち、画像情報に含まれるバーコード画像情報は、GDI40の機能により何らかの描画処理が施され、当該情報が示すバーコードの識別情報に何らかの改変が加わっている可能性がある。一方で、ステップSA3において記憶部17の所定のファイル17aに記述されたバーコードの識別情報は、GDI40による描画処理が施されておらず、従って、バーコードの識別情報に何らかの改変が加わっていることはない。そして、ステップSA8において、ファイル17aに記述されたバーコードの識別コードに基づいて、バーコードの記録を指示する制御コマンドが生成されることにより、GDI40に起因して記録すべきバーコードと異なるバーコードが記録されることが防止される。
When the image information is input, the printer driver execution unit 21 determines whether or not barcode image information is included in the image information (step SA5). If not included (step SA5: NO), the printer driver execution unit 21 generates a control command through normal processing (step SA6), and transmits the generated control command to the printer 12 via the spooler 41 (step SA6). SA7).
On the other hand, when the bar code image information is included in the image information (step SA5: YES), the printer driver execution unit 21 accesses the predetermined file 17a in the storage unit 17 and the bar described in the file 17a. The code identification code is acquired (step SA8).
Next, the printer driver execution unit 21 generates and outputs a control command (step SA9), and outputs (step SA7). The control command (barcode control data) for instructing bar code recording is as follows. To generate a control command.
In other words, the printer driver execution unit 21 does not use the barcode identification code indicated by the barcode image information included in the image information input from the application execution unit 20, but the bar code obtained by accessing the predetermined file 17a in step SA8. Based on the identification code of the code, a control command for instructing recording of a barcode representing the identification code is generated. By performing such an operation, the following effects can be obtained. That is, the barcode image information included in the image information is subjected to some drawing processing by the function of the GDI 40, and some modification may be added to the barcode identification information indicated by the information. On the other hand, the barcode identification information described in the predetermined file 17a of the storage unit 17 in step SA3 has not been subjected to drawing processing by the GDI 40, and therefore some modification is added to the barcode identification information. There is nothing. In step SA8, a control command for instructing barcode recording is generated based on the barcode identification code described in the file 17a, so that a barcode different from the barcode to be recorded due to the GDI 40 is generated. The code is prevented from being recorded.

以上説明したように、本実施形態に係るホストコンピューター11では、バーコードを含む画像をプリンター12に記録させる場合、アプリケーション実行部20は、バーコードの識別コード(バーコードに係る画像情報)については、GDI40を介すことなく出力し、プリンタードライバー実行部21は、アプリケーション実行部20によりGDI40を介すことなく出力されたバーコードの識別コードに基づいて、バーコードの記録を指示する制御コマンド(バーコードに係る制御データ)を生成する。
この構成によれば、アプリケーション実行部20からプリンタードライバー実行部21へのバーコードに係る画像情報の出力に際し、インターフェイスの機能により、バーコードに係る画像情報に何らかの改変が加わることがなく、バーコードに係る画像情報の改変に起因して誤ったバーコードが記録されることを防止できる。
As described above, in the host computer 11 according to the present embodiment, when the printer 12 records an image including a barcode, the application execution unit 20 determines the barcode identification code (image information related to the barcode). , The printer driver execution unit 21 outputs a control command for instructing to record a barcode based on the barcode identification code output by the application execution unit 20 without passing through the GDI 40. Control data relating to a barcode).
According to this configuration, when the image information related to the barcode is output from the application execution unit 20 to the printer driver execution unit 21, the barcode function does not add any modification to the image information related to the barcode by the function of the interface. It is possible to prevent an erroneous barcode from being recorded due to the alteration of the image information.

また、本実施形態では、バーコードを含む画像をプリンター12に記録させる場合、アプリケーション実行部20は、バーコードの識別コードを記憶部17の所定のファイル17a(所定の記憶領域)に記述(記憶)し、プリンタードライバー実行部21は、所定のファイル17aに記述されたバーコードの識別コードに基づいて、バーコードの記録を指示する制御コマンド(バーコードに係る制御データ)を生成する。
この構成によれば、GDI40に何ら機能を追加することなく、アプリケーション実行部20からプリンタードライバー実行部21に対して、GDI40を介すことなくバーコードに係る画像情報を出力可能である。
In the present embodiment, when the printer 12 records an image including a barcode, the application execution unit 20 describes (stores) the barcode identification code in a predetermined file 17a (predetermined storage area) in the storage unit 17. Then, the printer driver execution unit 21 generates a control command (control data related to the barcode) for instructing barcode recording based on the barcode identification code described in the predetermined file 17a.
According to this configuration, the image information related to the barcode can be output from the application execution unit 20 to the printer driver execution unit 21 without passing through the GDI 40 without adding any function to the GDI 40.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、プリンター12はラインサーマルプリンターであったが記録方式はこれに限らずインクジェット式、ドットインパクト式など何であってもよい。また例えば、図1に示す各機能ブロックはハードウェアとソフトウェアの協働により任意に実現可能であり、特定のハードウェア構成を示唆するものではない。また、プリンター12の各機能ブロックの機能を、プリンター12に外部接続される別の装置に持たせるようにしてもよい。また、プリンター12は、外部接続される記憶媒体に記憶させたプログラムを実行することにより、図3のフローチャートに係る動作を含む各種動作を実行するようにしてもよい。
The above-described embodiment is merely an aspect of the present invention, and can be arbitrarily modified and applied within the scope of the present invention.
For example, the printer 12 is a line thermal printer, but the recording method is not limited to this, and any method such as an ink jet method or a dot impact method may be used. Further, for example, each functional block shown in FIG. 1 can be arbitrarily realized by cooperation of hardware and software, and does not suggest a specific hardware configuration. Further, the function of each functional block of the printer 12 may be provided in another device externally connected to the printer 12. Further, the printer 12 may execute various operations including the operation according to the flowchart of FIG. 3 by executing a program stored in an externally connected storage medium.

1…記録システム、11…ホストコンピューター(制御装置)、12…プリンター(記録装置)、13…制御部、17a…ファイル(所定の記憶領域)、20…アプリケーション実行部、21…プリンタードライバー実行部、40…GDI(描画処理用のインターフェイス)。   DESCRIPTION OF SYMBOLS 1 ... Recording system, 11 ... Host computer (control apparatus), 12 ... Printer (recording apparatus), 13 ... Control part, 17a ... File (predetermined storage area), 20 ... Application execution part, 21 ... Printer driver execution part, 40 ... GDI (interface for drawing processing).

Claims (4)

記録装置に接続可能な制御装置であって、
前記記録装置に記録させる画像に関する画像情報を生成し、前記画像情報を出力するアプリケーション実行部と、
前記アプリケーション実行部から出力された前記画像情報に基づいて、前記記録装置を制御する制御データを生成するプリンタードライバー実行部と、を備え、
バーコードを含む画像を前記記録装置に記録させる場合、
前記アプリケーション実行部は、バーコードに係る前記画像情報については、描画処理用のインターフェイスを介すことなく出力し、
前記プリンタードライバー実行部は、前記アプリケーション実行部により前記描画処理用のインターフェイスを介すことなく出力されたバーコードに係る前記画像情報に基づいて、バーコードに係る前記制御データを生成する、
ことを特徴とする制御装置。
A control device connectable to the recording device,
An application execution unit that generates image information related to an image to be recorded in the recording device and outputs the image information;
A printer driver execution unit that generates control data for controlling the recording device based on the image information output from the application execution unit, and
When recording an image including a barcode on the recording device,
The application execution unit outputs the image information related to the barcode without using a drawing processing interface,
The printer driver execution unit generates the control data related to the barcode based on the image information related to the barcode output without the drawing processing interface by the application execution unit;
A control device characterized by that.
バーコードを含む画像を前記記録装置に記録させる場合、
前記アプリケーション実行部は、バーコードに係る前記画像情報を所定の記憶領域に記憶し、
前記プリンタードライバー実行部は、前記所定の記憶領域に記憶されたバーコードに係る前記画像情報に基づいて、バーコードに係る前記制御データを生成する、
ことを特徴とする請求項1に記載の制御装置。
When recording an image including a barcode on the recording device,
The application execution unit stores the image information related to the barcode in a predetermined storage area,
The printer driver execution unit generates the control data relating to the barcode based on the image information relating to the barcode stored in the predetermined storage area;
The control device according to claim 1.
記録装置に接続可能に構成され、前記記録装置に記録させる画像に関する画像情報を生成し、出力するアプリケーション実行部と、前記アプリケーション実行部から出力された前記画像情報に基づいて、前記記録装置を制御する制御データを生成するプリンタードライバー実行部と、を備える制御装置の制御方法であって、
バーコードを含む画像を前記記録装置に記録させる場合、
前記アプリケーション実行部により、バーコードに係る前記画像情報については、描画処理用のインターフェイスを介すことなく出力し、
前記プリンタードライバー実行部により、前記アプリケーション実行部により前記描画処理用のインターフェイスを介すことなく出力されたバーコードに係る前記画像情報に基づいて、バーコードに係る前記制御データを生成する、
ことを特徴とする制御装置の制御方法。
An application execution unit configured to be connectable to a recording device, generating and outputting image information related to an image to be recorded by the recording device, and controlling the recording device based on the image information output from the application execution unit A control method of a control device comprising: a printer driver execution unit that generates control data to be
When recording an image including a barcode on the recording device,
The application execution unit outputs the image information related to the barcode without going through an interface for drawing processing,
The printer driver execution unit generates the control data related to the barcode based on the image information related to the barcode output by the application execution unit without going through the interface for the drawing process.
The control method of the control apparatus characterized by the above-mentioned.
記録装置に接続可能な制御装置を制御する制御部により実行されるプログラムであって、
前記制御部を、
前記記録装置に記録させる画像に関する画像情報を生成し、出力するアプリケーション実行部と、
前記アプリケーション実行部から出力された前記画像情報に基づいて、前記記録装置を制御する制御データを生成するプリンタードライバー実行部と、として機能させると共に、
バーコードを含む画像を前記記録装置に記録させる場合、
前記アプリケーション実行部に、バーコードに係る前記画像情報については、描画処理用のインターフェイスを介すことなく出力させ、
前記プリンタードライバー実行部に、前記アプリケーション実行部により前記描画処理用のインターフェイスを介すことなく出力させたバーコードに係る前記画像情報に基づいて、バーコードに係る前記制御データを生成させる、
ことを特徴とするプログラム。
A program executed by a control unit that controls a control device connectable to the recording device,
The control unit
An application execution unit that generates and outputs image information related to an image to be recorded in the recording device;
Based on the image information output from the application execution unit, function as a printer driver execution unit that generates control data for controlling the recording apparatus,
When recording an image including a barcode on the recording device,
The application execution unit causes the image information related to the barcode to be output without using a drawing processing interface,
Causing the printer driver execution unit to generate the control data relating to the barcode based on the image information relating to the barcode output by the application execution unit without passing through the interface for the drawing process.
A program characterized by that.
JP2012134561A 2012-06-14 2012-06-14 Control device, control method of control device, and program Pending JP2013257805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012134561A JP2013257805A (en) 2012-06-14 2012-06-14 Control device, control method of control device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012134561A JP2013257805A (en) 2012-06-14 2012-06-14 Control device, control method of control device, and program

Publications (1)

Publication Number Publication Date
JP2013257805A true JP2013257805A (en) 2013-12-26

Family

ID=49954170

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012134561A Pending JP2013257805A (en) 2012-06-14 2012-06-14 Control device, control method of control device, and program

Country Status (1)

Country Link
JP (1) JP2013257805A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10657427B2 (en) 2018-02-26 2020-05-19 Canon Kabushiki Kaisha Information processing apparatus, information processing method and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10657427B2 (en) 2018-02-26 2020-05-19 Canon Kabushiki Kaisha Information processing apparatus, information processing method and storage medium

Similar Documents

Publication Publication Date Title
JP5380949B2 (en) Receipt issuing apparatus, receipt issuing system, printing apparatus, and printing apparatus control method
JP2012232431A (en) Recording device, method of controlling the same, and program
JP5728946B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
US10046577B2 (en) Printing device, printing system, and control method of a printing device
JP5842335B2 (en) Image recording apparatus, image recording apparatus control method, and program
JP5556248B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP2012113608A (en) Control device, recording system, control method of control device, and program
JP2013257805A (en) Control device, control method of control device, and program
JP5862045B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP2012123704A (en) Control apparatus, control method of control apparatus, and program
JP5754307B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP2013061835A (en) Recording control device, control method for recording device, and program
US8724148B2 (en) Recording device that can connect to a control device, control method for a recording device that can connect to a control device, and storage medium that stores a program for controlling parts of a recording device that can connect to a control device
JP6003265B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP5760705B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP5861377B2 (en) RECORDING DEVICE, RECORDING SYSTEM, AND RECORDING DEVICE CONTROL METHOD
JP2011192107A (en) Control device, recording system, control method of the control device and program
JP6127638B2 (en) Printing apparatus, printing apparatus control method, and program
JP2014054846A (en) Control device, control method for control device, and program
JP5857656B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
US20170364314A1 (en) Print data processing device, print data processing method, program, and printing system
JP6032334B2 (en) Control device and recording system
JP5987415B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP5924126B2 (en) Medium processing apparatus and POS system
JP5838742B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20150108