JP6202168B2 - Printer and printer control method - Google Patents
Printer and printer control method Download PDFInfo
- Publication number
- JP6202168B2 JP6202168B2 JP2016170491A JP2016170491A JP6202168B2 JP 6202168 B2 JP6202168 B2 JP 6202168B2 JP 2016170491 A JP2016170491 A JP 2016170491A JP 2016170491 A JP2016170491 A JP 2016170491A JP 6202168 B2 JP6202168 B2 JP 6202168B2
- Authority
- JP
- Japan
- Prior art keywords
- template
- printing
- command
- printer
- 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.)
- Active
Links
Images
Description
本発明は、プリンター、及び、プリンターの制御方法に関する。 The present invention relates to a printer and a printer control method.
従来、記録装置を備えたシステムにおいて、予め作成されたテンプレートを利用して記録を行うものが知られている(例えば、特許文献1参照)。この種の記録装置は、制御側のコンピューター等から入力されるデータを、記憶しているテンプレートに従って配置することにより、ラベル等の記録を実行する。 2. Description of the Related Art Conventionally, in a system including a recording apparatus, a system that performs recording using a template created in advance is known (see, for example, Patent Document 1). This type of recording apparatus performs recording of labels and the like by arranging data input from a control computer or the like according to a stored template.
上記従来の記録装置において、ラベル等の記録物の出力表現の改善を図ろうとすると、テンプレートを変更することが考えられる。この場合、制御側のコンピューター等は記録装置が使用するテンプレートに適合するようにデータを出力する必要があるから、テンプレートを変更することは、制御側のコンピューター等のソフトウェアにも変更を加える必要がある。しかしながら、記録装置を制御するコンピューター等が会計処理等の複雑な業務システムを構成している場合等、ソフトウェアの変更が容易でない場合も多く、このような場合は、記録物の出力表現の改善を図ることは困難であった。 In the conventional recording apparatus, it is conceivable to change the template in order to improve the output expression of a recorded matter such as a label. In this case, the computer on the control side needs to output data so that it conforms to the template used by the recording device, so changing the template requires changes to the software on the computer on the control side. is there. However, there are many cases where it is not easy to change the software, such as when the computer that controls the recording device constitutes a complicated business system such as accounting processing. In such a case, the output expression of the recorded matter should be improved. It was difficult to plan.
上記課題を解決するため、本発明は、記録形態を容易に変更できるプリンター、及び、プリンターの制御方法を提供することを目的とする。 To solve the above problems, the present invention provides a printer which can easily change the recording mode, and aims to provide a control method of the printer.
上記目的を達成するために、本発明は、媒体への印刷を実行する印刷実行部と、印刷要素のデータの印刷形態を指定する情報を含むテンプレートを取得する制御部と、前記印刷実行部による前記印刷に係るデータを保持する記憶部と、を備え、前記制御部は、前記テンプレートとして第1テンプレートを取得し、前記第1テンプレートに含まれる前記印刷形態を指定する情報を変更するコマンド、もしくは、前記第1テンプレートに前記印刷形態を指定する情報を追加するコマンドを受信したとき、前記コマンドに基づいて前記第1テンプレートに対して前記印刷形態を指定する情報が変更、または追加された第2テンプレートを前記第1テンプレートに対応付けて前記記憶部に記憶し、前記第1テンプレートを指定する情報を含む印刷命令を受信した場合に、前記第2テンプレートを前記記憶部から取得し、取得した前記第2テンプレートと前記印刷命令とに基づいて前記印刷実行部を制御して印刷を実行させる、ことを特徴とする。
また、本発明は、前記記憶部は前記第1テンプレートを保持し、前記制御部は、前記印刷命令を受信したときに、前記第2テンプレートが前記記憶部に保持されていない場合は、前記第1テンプレートを取得し、前記第1テンプレート及び前記印刷命令に基づいて前記印刷実行部を制御して印刷を実行させることを特徴とする。
また、本発明は、前記第2テンプレートは、変更、または追加された前記印刷形態を指定する情報として、前記第1テンプレートにおける印刷色と異なる印刷色を指定する情報を有することを特徴とする。
また、本発明は、前記テンプレートは、前記印刷要素のデータの印刷形態を指定する情報として、前記媒体の印刷領域における前記印刷要素の位置及びサイズの少なくともいずれかを指定する情報を有することを特徴とする。
また、本発明は、前記制御部は、前記第2テンプレートを、前記第1テンプレートを構成する第1コマンド体系と異なる第2コマンド体系に変換して、前記記憶部に記憶させることを特徴とする。
また、本発明は、前記印刷命令は前記第1コマンド体系で構成され、前記第1テンプレートを指定する情報は、前記第1コマンド体系に含まれるコマンドであることを特徴とする。
また、本発明は、前記第1テンプレートの名称と前記第2テンプレートの名称とは、同一の文字列を含む、ことを特徴とする。
また、本発明は、媒体への印刷を実行する印刷実行部と、印刷要素のデータの印刷形態を指定する情報を含むテンプレートを取得する制御部と、前記印刷実行部による前記印刷に係るデータを保持する記憶部と、を備えるプリンターの制御方法であって、前記テンプレートとして第1テンプレートを取得し、前記第1テンプレートに含まれる前記印刷形態を指定する情報を変更するコマンド、もしくは、前記第1テンプレートに前記印刷形態を指定する情報を追加するコマンドを受信したとき、前記コマンドに基づいて前記第1テンプレートに対して前記印刷形態を指定する情報が変更、または追加された第2テンプレートを前記第1テンプレートに対応付けて前記記憶部に記憶し、前記第1テンプレートを指定する情報を含む印刷命令を受信した場合に、前記第2テンプレートを前記記憶部から取得し、取得した前記第2テンプレートと前記印刷命令とに基づいて前記印刷実行部を制御して印刷を実行させることを特徴とする。
上記目的を達成するために、本発明の記録装置は、記録手段と、記録要素のデータの記録形態を指定する第1テンプレートを記憶する第1の記憶手段と、前記第1テンプレートに対応付けられ、前記記録要素のデータが変更及び/または追加された第2テンプレートを記憶する第2の記憶手段と、前記第1テンプレートを指定するデータを含む記録指示が入力された場合に、指定された前記第1テンプレートに対応する前記第2テンプレートを前記第2の記憶手段から取得して前記記録手段により記録する記録制御手段と、を備えることを特徴とする。
本発明によれば、記録装置が、第1テンプレートを指定する記録指示が入力された場合に、この第1テンプレートに対応する第2テンプレートを用いて記録を行う。これにより、記録装置に入力される記録指示を変更することなく、異なる記録形態で記録するので、記録物の記録形態の変更を容易に行うことができる。
In order to achieve the above object, the present invention provides a print execution unit that executes printing on a medium, a control unit that acquires a template including information that specifies a print form of data of a print element, and the print execution unit. A storage unit that holds data relating to the printing, and the control unit acquires a first template as the template and changes a command for specifying the printing form included in the first template, or When the command for adding the information specifying the print form to the first template is received, the second information for specifying the print form for the first template is changed or added based on the command. A printing command including information for designating the first template, storing the template in the storage unit in association with the first template When receiving, acquiring the second template from the storage unit, to execute printing by controlling the printing unit based on the acquired and the second template and the print command, and wherein the.
Further, according to the present invention, the storage unit holds the first template, and the control unit receives the print command, and if the second template is not held in the storage unit, One template is acquired, and printing is executed by controlling the print execution unit based on the first template and the print command.
Further, the present invention is characterized in that the second template has information for designating a print color different from the print color in the first template as information for designating the changed or added print form.
In the invention, it is preferable that the template includes information specifying at least one of a position and a size of the print element in a print area of the medium as information specifying a print form of data of the print element. And
Further, the present invention is characterized in that the control unit converts the second template into a second command system different from the first command system constituting the first template and stores the second command system in the storage unit. .
Further, the present invention is characterized in that the print command is configured by the first command system, and the information for designating the first template is a command included in the first command system.
In addition, the present invention is characterized in that the name of the first template and the name of the second template include the same character string.
Further, the present invention provides a print execution unit that executes printing on a medium, a control unit that acquires a template that includes information that specifies a print mode of print element data, and data related to the printing by the print execution unit. A storage unit that holds the first template as the template, and a command for changing the information specifying the printing form included in the first template, or the first When a command for adding information specifying the print form to the template is received, the second template in which the information specifying the print form is changed or added to the first template based on the command is added to the second template. A print command including information specifying the first template is received in association with one template and stored in the storage unit. When acquires the second template from said storage unit, characterized in that to execute printing by controlling the printing unit based on the acquired and the second template and the print command.
In order to achieve the above object, a recording apparatus according to the present invention is associated with a recording unit, a first storage unit that stores a first template that specifies a recording form of data of a recording element, and the first template. The second storage means for storing the second template in which the data of the recording element is changed and / or added, and the recording instruction including the data specifying the first template are input. Recording control means for acquiring the second template corresponding to the first template from the second storage means and recording the second template by the recording means.
According to the present invention, when a recording instruction specifying the first template is input, the recording apparatus performs recording using the second template corresponding to the first template. Thereby, since it records with a different recording form, without changing the recording instruction | indication input into a recording device, the recording form of a recorded matter can be changed easily.
また、本発明は、上記記録装置において、指定された前記第1テンプレートに対応する前記第2テンプレートが無い場合は、前記第1の記憶手段から前記第1テンプレートを取得して記録することを特徴とする。
本発明によれば、指定された第1テンプレートに対応する第2テンプレートが無くても記録を実行できるので、全ての第1テンプレートに対応する第2テンプレートが用意されていなくてもよい。このため、一部の第1テンプレートについてのみ、第2テンプレートを使用するようにして記録形態を変更することが可能となる。従って、記録形態の変更に係る制約を緩和でき、より容易に記録形態を変更できる。
In the recording apparatus, when there is no second template corresponding to the designated first template, the first template is acquired from the first storage unit and recorded. And
According to the present invention, recording can be executed even if there is no second template corresponding to the designated first template. Therefore, the second templates corresponding to all the first templates do not have to be prepared. For this reason, it is possible to change the recording form so as to use the second template only for some of the first templates. Therefore, the restrictions related to the change of the recording form can be relaxed, and the recording form can be changed more easily.
また、本発明は、上記記録装置において、第2テンプレートは、前記記録要素のデータの記録形態を指定するデータを、第1テンプレートに対して新たに追加したものであることを特徴とする。
本発明によれば、記録に際して使用されるテンプレートを、記録形態を指定するデータを新たに追加したテンプレートに置き換えることで、入力される記録指示を変更することなく、出力表現の幅をより一層広げることができる。
Further, the present invention is characterized in that, in the recording apparatus, the second template is obtained by newly adding data designating a recording form of data of the recording element to the first template.
According to the present invention, by replacing a template used for recording with a template in which data specifying a recording form is newly added, the range of output expression is further expanded without changing an input recording instruction. be able to.
また、本発明は、上記記録装置であって、前記第2テンプレートは、前記記録要素のデータの記録形態を指定するデータとして、前記記録要素の記録色を指定するデータを含むことを特徴とする。
本発明によれば、テンプレートを、記録色を指定するデータを新たに追加したテンプレートに置き換えることで、入力される記録指示を変更することなく新たに記録色を指定することが可能になるので、出力表現の幅を一層広げることができる。
The present invention is the above recording apparatus, wherein the second template includes data specifying a recording color of the recording element as data specifying a recording form of data of the recording element. .
According to the present invention, it is possible to newly specify a recording color without changing an input recording instruction by replacing the template with a template in which data specifying the recording color is newly added. The range of output expression can be further expanded.
また、本発明は、上記記録装置において、前記第2テンプレートは、前記記録要素のデータの記録形態を指定するデータとして、記録媒体の記録領域における前記記録要素の位置及びサイズの少なくともいずれかを指定するデータを含むことを特徴とする。
本発明によれば、入力される記録指示を変更することなく、記録要素の位置やサイズを柔軟に変更でき、出力表現の幅をより一層広げることができる。
In the recording apparatus, the second template may specify at least one of a position and a size of the recording element in a recording area of a recording medium as data for specifying a recording form of the data of the recording element. It is characterized by including the data to perform.
According to the present invention, the position and size of a recording element can be flexibly changed without changing the input recording instruction, and the range of output expression can be further increased.
また、本発明は、記録手段と、記録要素のデータの記録形態を指定する第1テンプレートを記憶する第1の記憶手段と、前記第1テンプレートに対応付けられ、前記記録要素のデータが変更及び/または追加された第2テンプレートを記憶する第2の記憶手段と、前記記録手段により記録する記録制御手段と、を備える記録装置の制御方法であって、前記第1テンプレートを指定するデータを含む記録指示が入力された場合に、指定された前記第1テンプレートに対応する前記第2テンプレートを前記第2の記憶手段から取得して前記記録手段に記録させることを特徴とする。
本発明によれば、記録装置により、第1テンプレートを指定する記録指示が入力された場合に、この第1テンプレートに対応する第2テンプレートを用いて記録を行う。これにより、記録装置に入力される記録指示を変更することなく、異なる記録形態で記録することができ、記録物の記録形態の変更を容易に行うことができる。
The present invention also relates to a recording means, a first storage means for storing a first template for designating a recording form of data of the recording element, and the data of the recording element associated with the first template. And / or a recording apparatus control method comprising: a second storage unit that stores the added second template; and a recording control unit that records the added second template, and includes data specifying the first template. When a recording instruction is input, the second template corresponding to the designated first template is acquired from the second storage unit and recorded in the recording unit.
According to the present invention, when a recording instruction specifying the first template is input by the recording apparatus, recording is performed using the second template corresponding to the first template. Thereby, it is possible to record in different recording forms without changing the recording instruction input to the recording apparatus, and the recording form of the recorded matter can be easily changed.
本発明によれば、記録装置に入力される記録指示が変更されなくても、異なる記録形態によって記録を行うことが可能であり、記録物の記録形態の変更を容易に行うことができる。 According to the present invention, even if the recording instruction input to the recording apparatus is not changed, recording can be performed with different recording forms, and the recording form of the recorded matter can be easily changed.
以下、図面を参照して本発明の実施形態について説明する。
図1は、本実施形態に係る印刷システム1の構成を示す機能ブロック図である。
この図1に示すように、印刷システム1(記録システム)は、例えば、ラベルを印刷(記録)出力するシステムであり、印刷命令を印刷指示(記録指示)として出力するホストコンピューター2と、プリンター3(記録装置)と、テンプレート端末5とをネットワーク4により接続して構成される。なお、図1には、印刷システム1が備えていないプリンター6を説明のために図示している。また、印刷システム1は、POSシステムを含んでもよい。
ホストコンピューター2は、プログラムを実行するCPU、CPUにより実行される基本制御プログラムや処理されるデータを記憶するROM、CPUが実行するプログラムや処理されたデータ等を一時的に格納するRAM、プログラムやデータ等を記憶する不揮発性記憶装置等を備えて構成されるコンピューターである。ホストコンピューター2は、アプリケーションプログラム21及びデバイスドライバー23を有し、プリンター6によって印刷させる印刷命令を出力する。本実施形態では、印刷システム1により、裏面に粘着材を有する記録媒体であるラベル用紙の印刷領域に、文字や画像を印刷して、所定サイズのカットシートであるラベルを印刷出力する例について説明する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a functional block diagram illustrating a configuration of a
As shown in FIG. 1, a printing system 1 (recording system) is a system that prints (records) and outputs a label, for example. A
The
アプリケーションプログラム21は、予めプリンター6に記憶されているテンプレートを指定して印刷実行を指示する機能を有する。後述するように、印刷システム1では、予め、印刷に使用するテンプレートが複数設定され、例えばプリンター6に記憶されている。アプリケーションプログラム21は、複数のテンプレートの中から、印刷に使用するテンプレートを指定する。デバイスドライバー23は、プリンター6のハードウェア仕様およびソフトウェア仕様に対応して作成された、プリンター6を制御するためのプログラムである。アプリケーションプログラム21が印刷実行を指示すると、デバイスドライバー23は、プリンター6が解釈可能なコマンド体系(以下、第1のコマンド体系とする)のコマンドで構成される印刷命令を作成して出力する。デバイスドライバー23は、アプリケーションプログラム21によりテンプレートが指定されている場合には、指定されたテンプレートの情報を含むコマンドを生成してプリンター6に出力する。
The
印刷システム1は、実際にはプリンター6を備えておらず、ホストコンピューター2がプリンター6に対して送信する印刷命令は、プリンター3が受信して実行する。プリンター3は、後述するようにプリンター6の機能をエミュレートして、第1のコマンド体系で記述された印刷命令を解釈し、プリンター6が印刷する場合と異なる印刷形態でラベルを印刷する。つまり、印刷システム1は、ホストコンピューター2とプリンター6とを組み合わせていたシステムにおいて、プリンター6を排し、代わりにプリンター3を接続したシステムである。本実施形態では、カラー印刷機能がなく、モノクロ印刷を行うプリンター6を、カラー印刷が可能なプリンター3に置き換える例について説明する。
また、ホストコンピューター2が備えるアプリケーションプログラム21およびデバイスドライバー23は、プリンター6を使用していた状態から変更されていない。
The
Further, the
ネットワーク4は、ホストコンピューター2、プリンター3、およびテンプレート端末5を相互に通信可能に接続するネットワークであり、例えばEthernet(登録商標)規格に準拠した有線LANまたは無線LANで構成される。
また、ホストコンピューター2とプリンター3とは、USBやRS−232C規格に準拠したインターフェースを介して相互に通信可能に接続されてもよく、この場合、後述する印刷処理において、ホストコンピューター2とプリンター3とは1対1の通信を実行する。プリンター6に代えてプリンター3をホストコンピューター2に接続する場合、プリンター3のネットワークアドレスを、置き換え前のプリンター6のネットワークアドレスと同じアドレスにすれば、ホストコンピューター2において通信先のプリンターを指定する情報を変更する必要がない。また、プリンター6がホストコンピューター2に対してUSBやRS−232Cにより接続されていた場合には、同じ接続方法によりプリンター3をホストコンピューター2に接続すれば、ホストコンピューター2において通信先のプリンターを指定する情報を変更する必要がない。このようにすれば、ホストコンピューター2に対して一切の変更を加えずに、プリンター6をプリンター3に置き換えることができる。
The
In addition, the
プリンター3は、印刷ヘッドや搬送ローラー等の印刷を実行するハードウェア、および、これらのハードウェアを制御するコントローラーを備えた印刷実行部(記録手段)39を有し、この印刷実行部39は、ラベル用紙に印刷を行ってラベルを出力する。
また、プリンター3は、プリンター3の各部を制御する制御部30を有する。制御部30は、テンプレート端末5の要求に応じてテンプレートの変換処理を実行するテンプレート変換処理部31と、第1のコマンド体系のコマンドを含む印刷命令がホストコンピューター2から送信された場合に、この印刷命令中のコマンドを解釈して、印刷実行部39に印刷(記録)を実行させる印刷制御部(記録制御手段)32と、を備えている。
また、プリンター3は、プログラムやデータを不揮発的に記憶する記憶部33(記憶手段)を備えている。記憶部33の記憶領域には、それぞれテンプレートを記憶可能な第1テンプレート記憶部34(第1記憶手段)及び第2テンプレート記憶部35(第2記憶手段)と、基本テンプレート記憶部36と、が設けられる。また、記憶部33には、ラベル印刷プログラム37が記憶されている。ラベル印刷プログラム37は、プリンター6のコントローラー(図示略)が実行するプログラムと同様に動作するプログラムであって、印刷制御部32がプリンター6の動作をエミュレートするために使用する。
The
In addition, the
The
テンプレートとは、プリンター3またはプリンター6が印刷出力する印刷媒体の印刷形態(記録形態)を指定するデータの集合である。本実施形態では、印刷媒体としてラベル用紙を用いる場合について説明する。ラベル用紙は、所定サイズにカットされた粘着材付きのラベルが、長尺の剥離シート上に並べられた用紙であり、例えばロール状に巻かれてプリンター3、6内部に収容される。プリンター3、6は、1枚のラベルに1ページの文字や画像を印刷する。ここで、印刷形態としては、例えばラベルのサイズ、ラベル中の位置、1行あたりの文字数、行数、文字の装飾、フォントサイズ、フォント種類、画像のサイズ、画像の位置、上下左右のマージン等の属性が挙げられ、テンプレートは、これらの属性をそれぞれ指定するコマンドのセットである。すなわち、テンプレートは、ラベルに記録(印刷)する文字や画像といった記録要素(印刷要素)のデータの印刷形態を指定するデータを含む。
A template is a set of data that designates the printing form (recording form) of a print medium printed by the
図2は印刷システムで用いられるテンプレートの一例を示す説明図であり、(A)はテンプレートT1に含まれる情報の例を示し、(B)はテンプレートT1に基づいた印刷イメージG1の例を示す。ここで、テンプレートに基づいた印刷イメージとは、テンプレートに従ってラベル用紙に印刷を実行した場合の印刷形態を模式化したものである。
図2(A)に示すように、テンプレートT1は、ラベルの幅を指定するデータである「Label Width」の値、基準位置を指定するデータである「Home Position」の座標を含む。また、テンプレートT1は、ラベルに印刷される印刷要素として、複数の枠(枠a1〜a4)、文字列(文字列b1〜b3)の印刷形態を指定するデータを含んでいる。枠a1〜a4は、文字や画像を配置することが可能な領域であり、図2(A)に例示するように枠の位置、形状、サイズ(幅W1〜W4、高さH1〜H4)により規定される。枠a1〜a4の印刷位置は、ラベルの印刷領域(記録領域)における、ラベルの基準位置を原点とした位置座標(X1〜X4、Y1〜Y4)により指定される。また、図2(A)の例では枠a1〜a4は矩形である。矩形の枠a1〜a4は、その幅方向及び高さ方向を、ラベルの幅方向及び高さ方向に平行にして印刷することが予め規定されており、位置座標(X1〜X4、Y1〜Y4)は、それぞれ印刷イメージG1における枠a1〜a4の左上の角部の位置を表している。これらの枠に何を配置して印刷するかは別途コマンドにより指定できる。また、テンプレートT1で定義された枠のうち、何も配置されない枠があってもよく、この場合、その枠の領域には何も印刷されない。
図2(A)及び(B)の例では、枠a1〜a4には画像が配置される。枠a1〜a4は矩形形状であるため、図2(B)の印刷イメージG1において枠a1〜a4の領域には矩形の画像が印刷される。
2A and 2B are explanatory diagrams showing an example of a template used in the printing system. FIG. 2A shows an example of information included in the template T1, and FIG. 2B shows an example of a print image G1 based on the template T1. Here, the print image based on the template is a schematic representation of a print form when printing is performed on a label sheet according to the template.
As shown in FIG. 2A, the template T1 includes the value of “Label Width” that is data specifying the width of the label and the coordinates of “Home Position” that is data specifying the reference position. Further, the template T1 includes data that designates a printing form of a plurality of frames (frames a1 to a4) and character strings (character strings b1 to b3) as print elements to be printed on the label. Frames a1 to a4 are areas in which characters and images can be placed, and as illustrated in FIG. 2A, depending on the position, shape, and size (width W1 to W4, height H1 to H4) of the frame. It is prescribed. The printing positions of the frames a1 to a4 are designated by position coordinates (X1 to X4, Y1 to Y4) with the reference position of the label as the origin in the label printing area (recording area). In the example of FIG. 2A, the frames a1 to a4 are rectangular. The rectangular frames a1 to a4 are preliminarily specified to be printed with their width direction and height direction parallel to the label width direction and height direction, and position coordinates (X1 to X4, Y1 to Y4). Represents the positions of the upper left corners of the frames a1 to a4 in the print image G1, respectively. What can be placed in these frames and printed can be specified by a separate command. Further, there may be a frame in which nothing is arranged among the frames defined in the template T1, and in this case, nothing is printed in the area of the frame.
In the example of FIGS. 2A and 2B, images are arranged in the frames a1 to a4. Since the frames a1 to a4 have a rectangular shape, a rectangular image is printed in the areas of the frames a1 to a4 in the print image G1 in FIG.
また、テンプレートT1は、ラベルに印刷する文字列b1〜b3のデータ、及び、各文字列の印刷形態を指定するデータを含んでもよい。図2(A)の例では文字列b1〜b3について、文字列に含まれる文字「○○○○」、「△△△△」、「□□□□」のデータ、及び、文字列b1〜b3の印刷形態として、印刷位置(位置座標(X5〜X7、Y5〜Y7))を指定するデータ、及び、フォントサイズ(fs1〜fs3)を指定するデータを含んでいる。
また、図2(A)及び(B)に例示したテンプレートの内容を動的に変更することも可能である。すなわち、既存のテンプレートに含まれる枠に文字や画像を挿入して印刷することや、テンプレートで枠や文字列が定義されていない位置に別の文字や画像を追加して印刷することも可能である。
Further, the template T1 may include data on the character strings b1 to b3 to be printed on the label, and data for designating the printing form of each character string. In the example of FIG. 2 (A), for character strings b1 to b3, data of characters “XXX”, “ΔΔΔΔ”, “□□□□” included in the character string, and character strings b1 to b3 are included. As a printing form of b3, data specifying a printing position (position coordinates (X5 to X7, Y5 to Y7)) and data specifying a font size (fs1 to fs3) are included.
Further, the contents of the template illustrated in FIGS. 2A and 2B can be dynamically changed. In other words, characters and images can be inserted into a frame included in an existing template and printed, or another character or image can be added and printed at a position where no frame or character string is defined in the template. is there.
プリンター3が備える第1テンプレート記憶部34には、第1のコマンド体系のコマンドで構成された第1テンプレートが記憶されている。
第1テンプレートは、図2(A)、(B)に例示したテンプレートを第1のコマンド体系のコマンドを用いて記述したものである。第1テンプレートは、プリンター6が印刷に使用していたテンプレートであり、例えば、プリンター6をプリンター3に置き換える際に、プリンター6が使用していた全てのテンプレートが第1テンプレート記憶部34にコピーされる。
第2テンプレート記憶部35は、第1のコマンド体系とは異なる第2のコマンド体系で定義されたコマンドにより記述された第2テンプレートを記憶する。すなわち、第2テンプレートとは、図2(A)、(B)に例示したテンプレートを、第2のコマンド体系のコマンドで記述したものである。第2のコマンド体系は、第1のコマンド体系と共通のコマンドを含んでいてもよいし、共通でないコマンドを含んでいてもよい。また、第2のコマンド体系は、印刷形態を指定するコマンドとして、第1のコマンド体系では定義されてない属性に関するコマンドを含んでいる。
本実施形態では、第1のコマンド体系はモノクロ印刷用のコマンドで構成されており、印刷要素の印刷色(記録色)は黒及びグレースケールに限られる。これに対し、第2のコマンド体系は、16色、256色、65536色、或いは1677万色のカラー印刷に対応して、印刷要素の印刷色を指定するコマンドを含んでおり、これらのコマンドを使って印刷要素の印刷色を黒及びグレースケール以外にも指定できる。
The first
The first template is a template in which the templates illustrated in FIGS. 2A and 2B are described using commands of the first command system. The first template is a template used by the printer 6 for printing. For example, when the printer 6 is replaced with the
The second
In the present embodiment, the first command system is composed of commands for monochrome printing, and the printing colors (recording colors) of the printing elements are limited to black and gray scale. On the other hand, the second command system includes commands for specifying the printing colors of the printing elements corresponding to color printing of 16, 256 colors, 65536 colors, or 16.770 million colors. You can use it to specify printing colors for printing elements other than black and grayscale.
また、第2テンプレート記憶部35に記憶される第2テンプレートは、第1テンプレート記憶部34に記憶されている第1テンプレートのいずれかに対応づけられていて、対応する第1テンプレートとは少なくとも一部が異なる印刷形態でラベルを印刷できるよう構成されている。具体的には、第2テンプレートは、対応する第1テンプレートの印刷要素と、印刷要素の属性を指定するデータのうち、少なくとも一部が変更、追加、または削除されたテンプレートである。
本実施形態では、第1テンプレート及び第2テンプレートに名称が付されており、各々の第2テンプレートには、それぞれ対応する第1テンプレートと同じ名称が付与されている。つまり、第1テンプレート記憶部34と、第2テンプレート記憶部35には、同じ名称のテンプレートが記憶されている。ここで、第1テンプレート記憶部34に記憶された第1テンプレートの全てについて、同じ名前の第2テンプレートが第2テンプレート記憶部35に記憶されている必要はない。例えば、第1テンプレート記憶部34に記憶されたいずれかの第1テンプレートについては、同じ名前の第2テンプレートが記憶されていないことも許容される。
Further, the second template stored in the second
In the present embodiment, names are assigned to the first template and the second template, and the same name as the corresponding first template is assigned to each second template. That is, templates having the same name are stored in the first
基本テンプレート記憶部36は、プリンター3がデフォルトのテンプレートとして使用する基本テンプレートを記憶している。ホストコンピューター2が、テンプレートを指定する情報を含まない印刷命令を出力し、この印刷命令を受信した場合、印刷制御部32は、基本テンプレート記憶部36に記憶された基本テンプレートに従って、文字や画像を配置する。
The basic
テンプレート端末5は、ラベルの印刷形態を指定するテンプレートを編集する端末装置であり、例えばパーソナルコンピューターにより構成される。
図3はテンプレート変換処理に係る動作を示す説明図であり、印刷システム1におけるデータの流れを模式的に示している。また、図4はテンプレート変換処理のシーケンスを示す説明図であり、(A)はテンプレート端末5の動作を示し、(B)はプリンター3のテンプレート変換処理部31の動作を示す。これら図3及び図4に従って、テンプレート変換処理について説明する。
テンプレート変換処理では、テンプレート端末5とプリンター3とが相互にデータを送受信する。テンプレート変換処理部31は、例えばWebサーバーの機能を実行し、テンプレート端末5は、例えばWebクライアントの機能を実行する。この場合、テンプレート変換処理部31は、テンプレート端末5のアクセスに応答してテンプレート処理用のWebページのデータを送信し、このWebページに基づいてテンプレート端末5がプリンター3に対してリクエストを送信する形態で処理が行われる。なお、テンプレート端末5の機能は、プリンター5の内部に取り込んでもよい。
The
FIG. 3 is an explanatory diagram showing an operation related to the template conversion process, and schematically shows a data flow in the
In the template conversion process, the
テンプレート端末5は、ユーザーの操作により、或いは予め設定されたプログラムの動作により、プリンター3のテンプレート変換処理部31に対して、第1テンプレートの送信を要求するテンプレート要求コマンドを送信する(ステップS11)。ここで、テンプレート端末5は、第1テンプレート記憶部34に記憶された第1テンプレートのうちいずれかの送信を要求してもよいし、全ての第1テンプレートの送信を要求してもよい。プリンター3のテンプレート変換処理部31は、テンプレート端末5から送信されたテンプレート要求コマンドを受信する(ステップS21)。テンプレート変換処理部31は、第1テンプレート記憶部34からテンプレート要求コマンドにおいて送信を要求された第1テンプレートを読み出して(ステップS22)、テンプレート端末5に送信する(ステップS23)。図3に示すように、ここでは一例として、“Fragile”の名称が付された第1テンプレートがテンプレート端末5に送信される。
The
テンプレート端末5は、プリンター3から送信された第1テンプレートを受信する(ステップS12)。ここで、テンプレート端末5は、必要に応じて、印刷要素のデータ(文字のデータや画像のデータ)を別の印刷要素のデータに差し替えたり、印刷要素のデータを追加したりする。さらに、第1テンプレートで定義されていない属性について追加で設定する(ステップS13)。例えば、テンプレート端末5は、第1テンプレートにおいて、印刷要素のデータの各々に対し、カラー印刷するか否か等の属性を追加で設定する。
テンプレート端末5は、処理中の第1テンプレートに追加する属性の設定内容を確定すると(ステップS14)、この属性を含む新しいテンプレートの保存をプリンター3に行わせるためのテンプレート保存コマンドを送信する(ステップS15)。このステップS15で、テンプレート端末5は、テンプレート保存コマンドとともに、第1テンプレートを構成するコマンドに新たに追加する属性のデータ(コマンドを含む)をプリンター3に送信する。また、ステップS15では、テンプレート端末5は、属性の設定処理を行った処理後の第1テンプレートを合わせて送信してもよい。また、印刷要素のデータの編集または差し替えを行った場合には、テンプレート端末5は、処理後の印刷要素のデータを合わせて送信する。
The
When the
プリンター3のテンプレート変換処理部31は、テンプレート端末5から送信されたテンプレート保存コマンドを受信する(ステップS24)。テンプレート変換処理部31は、テンプレート端末5からテンプレート保存コマンドとともに送信されたデータに基づいて、第2のコマンド体系で定義されるコマンドにより、第2テンプレートを生成して保存する(ステップS25)。詳細には、テンプレート変換処理部31は、テンプレート端末5が処理した第1テンプレートの印刷形態に、テンプレート端末5の処理により追加や変更された属性を反映した印刷形態を、第2のコマンド体系のコマンドによって記述した第2テンプレートを生成する。また、テンプレート端末5から、テンプレートの保存要求とともに、印刷要素のデータが送信された場合には、テンプレート変換処理部31は、これらの印刷要素のデータと、そのデータの印刷形態を指定するデータを含む第2テンプレートを生成する。そして、テンプレート変換処理部31は、生成した第2テンプレートに、テンプレート端末5が処理した第1テンプレートと同じ名称を付して、第2テンプレート記憶部35に格納する。これにより、テンプレート変換処理部31がステップS25で生成した第2テンプレートが、テンプレート端末5が処理した第1テンプレートの代わりに用いられるテンプレートであることが明らかになる。
The template
以下、対応関係にある第1及び第2テンプレートと、それらのテンプレートに基づいた印刷イメージの例について説明する。
図5は対応関係にある第1テンプレートT2及び第2テンプレートT3の例を示す説明図であり、第1テンプレートT2及び第2テンプレートT3に基づく印刷イメージG2、G3を示す。
“Fragile”の名称を付与された第1テンプレートT2に基づいた印刷イメージG2は、矩形形状の枠a5である印刷要素と、それぞれ、枠a5に配置される「Fragile」という文字列b4及び「↑ up ↑」という文字列b5である印刷要素とを有している。第1テンプレートT2は、枠a5と文字列b4、b5のデータとその印刷形態を指定するデータを含んでいる。なお、第1テンプレートT2は、モノクロのプリンター6用の印刷形態を指定する第1のコマンド体系のコマンドで構成されており、枠a5と文字列b4、b5の印刷色を指定するデータは含まない。
Hereinafter, examples of the first and second templates having a correspondence relationship and examples of print images based on the templates will be described.
FIG. 5 is an explanatory diagram showing an example of the first template T2 and the second template T3 that are in a correspondence relationship, and shows print images G2 and G3 based on the first template T2 and the second template T3.
A print image G2 based on the first template T2 to which the name “Fragile” is assigned includes a print element that is a rectangular frame a5, a character string b4 “Fragile” arranged in the frame a5, and “↑”. and a printing element which is a character string b5 “up ↑”. The first template T2 includes data for a frame a5, character strings b4 and b5, and data for specifying the printing form. The first template T2 is composed of commands of a first command system that designates a printing form for the monochrome printer 6, and does not include data that designates the printing color of the frame a5 and the character strings b4 and b5. .
第1テンプレートT2と同じ“Fragile”の名称を付された第2テンプレートT3は、第1テンプレートT2の文字列b4を、割れ物である注意喚起を促す画像a6に差し替えたものである。また、第2テンプレートT3には、画像a6の印刷色を指定するデータが追加されている。この印刷色は、例えば注意喚起に適した赤が挙げられる。第2テンプレートT3に基づく印刷イメージG3は、印刷イメージG2と比較して、文字「Fragile」が省略され、代わりにカラーの画像a6が印刷される形態となっている。
このように、テンプレート端末5を利用して、プリンター6で使用されていた第1テンプレートを、プリンター3が実行可能な第2のコマンド体系のコマンドで記述された第2テンプレートに変換してプリンター3に保存することにより、プリンター3が、プリンター6では実行できなかったカラー印刷等の機能を利用することが可能になる。
The second template T3 having the same “Fragile” name as the first template T2 is obtained by replacing the character string b4 of the first template T2 with an image a6 that prompts attention that is a crack. Further, data specifying the print color of the image a6 is added to the second template T3. An example of the print color is red suitable for alerting. The print image G3 based on the second template T3 has a form in which the character “Fragile” is omitted and a color image a6 is printed instead of the print image G2.
In this way, by using the
図6は、印刷処理に係る動作を示す説明図であり、印刷システム1におけるデータの流れを模式的に示している。また、図7は、印刷処理のシーケンスを示す説明図であり、(A)はホストコンピューター2の動作を示し、(B)はプリンター3の印刷制御部32の動作を示す。
これら図6及び図7に従って、印刷処理について説明する。
印刷処理では、ホストコンピューター2とプリンター3とが相互にデータを送受信する。なお、ホストコンピューター2とプリンター3とがUSBやRS−232C等の通信路により1対1で接続されている場合には、印刷処理は、この通信路を介して実行される。
FIG. 6 is an explanatory diagram showing an operation related to the printing process, and schematically shows a data flow in the
The printing process will be described with reference to FIGS.
In the printing process, the
印刷処理は、ユーザーの操作或いは予め設定されたプログラムの動作により、ホストコンピューター2がアプリケーションプログラム21を実行することで開始される。アプリケーションプログラム21がラベルの印刷データを生成し、印刷実行を指示すると、デバイスドライバー23によって、第1テンプレートを指定するデータを含み、第1のコマンド体系に基づいた印刷命令が生成されてプリンター3に送信される(ステップS31)。なお、第1テンプレートに印刷要素のデータを追加する場合には、追加する印刷要素のデータが、印刷命令に含まれる。
The printing process is started when the
プリンター3の印刷制御部32は、ホストコンピューター2から送信された印刷命令を受信する(ステップS41)。印刷制御部32は、第2テンプレート記憶部35に格納された第2テンプレートのデータを参照し(ステップS42)、第2テンプレート記憶部35に、印刷命令により指定された第1テンプレートに対応する第2テンプレートがあるか否かを確認する(ステップS43)。すなわち、印刷制御部32は、印刷命令に含まれるテンプレートと同じ名称の第2テンプレートが、第1記憶部35にあるか否かを検索する。
印刷制御部32は、該当する第2テンプレートが第2テンプレート記憶部35にない場合には(ステップS43;No)、第1テンプレート記憶部34から、指定された第1テンプレートを読み出して(ステップS44)、ステップS46に移行する。ここで、第1テンプレート記憶部34に該当する第1テンプレートがない場合に、印刷制御部32は、基本テンプレート記憶部36から基本テンプレートを読み出してもよい。また、該当する第2テンプレートが、第2テンプレート記憶部35にあることを確認できた場合(ステップS43;Yes)、第2テンプレート記憶部35から第2テンプレートを読み出し(ステップS45)、ステップS46に移行する。
The
If there is no corresponding second template in the second template storage unit 35 (step S43; No), the
ステップS46では、印刷制御部32は、読み出したテンプレートに応じた印刷用データを生成する。例えば、印刷命令で指定されている第1テンプレートが“Fragile”の名前を付与されたものであった場合、第2テンプレート記憶部35から、同じテンプレート名“Fragile”を有するテンプレートが読み出され、印刷用データが生成される。上述したように、読み出された第2テンプレートは、第1テンプレート中、「Fragile」という文字列b4のデータが、カラー画像(記録要素)a5のデータに置き換えられたものである。
ステップS42〜S46では、印刷制御部32は、プリンター6のコマンド体系である第1のコマンド体系のコマンドを、プリンター11のコマンド体系である第2のコマンド体系のコマンドに変換して、プリンター11の記録を制御するエミュレーターとして動作する。
その後、印刷制御部32は、印刷実行部39を制御して、第2テンプレートにより指定される印刷形態に基づいて、ラベルの印刷を実行する(ステップS47)。
In step S46, the
In steps S <b> 42 to S <b> 46, the
Thereafter, the
以上のように、プリンター3は、第1テンプレートを指定する印刷命令が入力された場合に、この第1テンプレートに対応する第2テンプレートに基づいた印刷を行う。すなわち、印刷に際し、プリンター6に対する印刷命令において指定される第1テンプレートを、第2テンプレートに置き換えてプリンター3が印刷を行う。第2テンプレートは、第1テンプレートT2に対して、変更、追加、及び削除の少なくとも一つ以上が施されたテンプレートであるから、プリンター3は、第1テンプレートに基づく印刷形態とは異なる印刷形態で記録を行うことができる。このため、プリンター6をプリンター3で置き換えることにより、ホストコンピューター2が出力する印刷命令を変更することなく、プリンター6が持たない機能を利用してラベルの印刷形態の変更を容易に行うことができる。
また、ホストコンピューター2が指定した第1テンプレートに対応する第2テンプレートが無い場合、プリンター3は、指定された第1テンプレートを取得して記録するので、指定された第1テンプレートに対応する第2テンプレートが無くても印刷を実行できるようになる。従って、必ずしも、全ての第1テンプレートに対応する第2テンプレートが用意されていなくてもよい。このため、一部の第1テンプレートについてのみ、第2テンプレートを使用するようにして印刷形態を変更することが可能となり、印刷形態の変更に係る制約を緩和し、より容易に印刷形態を変更できる。
As described above, the
If there is no second template corresponding to the first template designated by the
さらに、第2テンプレートT3において、画像a6のデータの印刷形態を指定するデータとして印刷色を指定するデータが含まれる例を示したように、印刷システム1では、印刷に際して使用されるテンプレートを、印刷色を指定するデータを新たに追加した第2テンプレートに置き換えることにより、ホストコンピューター2が出力する印刷指示を変更しなくても印刷色を指定することが可能になる。これにより、ホストコンピューター2のソフトウェア構成等を変更することなく、出力表現の幅を広げることができる。本実施形態のように、例えば、モノクロのプリンター6に対応した第1テンプレートに代えて、第2テンプレートを用いることで、入力される印刷命令を変更することなく、カラー化により出力表現の幅を広げることが可能になる。
Further, in the second template T3, as shown in the example in which the data specifying the print color is included as the data specifying the print form of the data of the image a6, the
また、第2テンプレートは、印刷媒体であるラベルが有する印刷領域における枠a5、画像a6、文字列b5といったデータの位置及びサイズの少なくともいずれかを指定するデータを含む。このため、印刷に際して使用されるテンプレートを第2テンプレートに置き換えることにより、枠a5、画像a6、文字列b5の配置やサイズを柔軟に変更できるので、出力表現の幅をより一層広げることができる。 Further, the second template includes data designating at least one of the position and size of data such as a frame a5, an image a6, and a character string b5 in a print area of a label that is a print medium. Therefore, by replacing the template used for printing with the second template, the arrangement and size of the frame a5, the image a6, and the character string b5 can be flexibly changed, so that the width of the output expression can be further increased.
なお、上記説明では、図5を用いて第1及び第2テンプレートの一例について説明したが、本発明はこれに限定されない。第1テンプレートの他の例と、各第1テンプレートに対応する第2テンプレートの例について、図8〜図12を参照して説明する。 In the above description, an example of the first and second templates has been described with reference to FIG. 5, but the present invention is not limited to this. Another example of the first template and an example of the second template corresponding to each first template will be described with reference to FIGS.
図8には、第1テンプレートT2と、これに対応する第2テンプレートT4の各々に対応する印刷イメージG2、G4を例示する。この例の第1テンプレートT2、印刷イメージG2は、図5を参照して説明したものと同一である。
第2テンプレートT4は、第1テンプレートT2の印刷要素に、割れ物である注意喚起を促す画像a7のデータを印刷要素として加え、さらに、画像a7の印刷形態(印刷色及び印刷位置)を指定するデータを追加したものである。この画像a7の位置は、文字列b4や文字列b5と重ならない位置に指定されている。
このため、第2テンプレートT4に基づいた印刷イメージG4は、印刷イメージG2にないカラーの画像a7を配置したものとなる。
この図8に示す第2テンプレートT4は、画像a7のデータとその印刷形態を指定するデータを、第1テンプレートT2に新たに追加したものである。このため、ホストコンピューター2が出力した印刷命令で指定される第1テンプレートT2を、第2テンプレートT4に置き換えることにより、画像を追加して出力表現の幅を広げることができる。
FIG. 8 illustrates print images G2 and G4 corresponding to the first template T2 and the second template T4 corresponding to the first template T2. The first template T2 and the print image G2 in this example are the same as those described with reference to FIG.
The second template T4 adds the data of the image a7 that calls attention to being a crack to the printing elements of the first template T2, and further specifies the printing form (printing color and printing position) of the image a7. Is added. The position of the image a7 is designated as a position that does not overlap the character string b4 or the character string b5.
Therefore, the print image G4 based on the second template T4 is obtained by arranging a color image a7 that is not in the print image G2.
The second template T4 shown in FIG. 8 is obtained by newly adding data for the image a7 and data for specifying the printing form to the first template T2. Therefore, by replacing the first template T2 specified by the print command output by the
図9には、第1テンプレートT2と、これに対応する第2テンプレートT6の各々に対応する印刷イメージG2、G5を例示する。この例の第1テンプレートT2、印刷イメージG2は、図5を参照して説明したものと同一である。
第2テンプレートT5は、第1テンプレートT2において、文字列b4の印刷色を指定するデータが追加されたテンプレートである。このため、この第2テンプレートT5に基づいて印刷した場合の印刷イメージG5は、モノクロの印刷イメージG2の文字列b4が、例えば、赤や青といった指定色に色付けられたものとなる。
FIG. 9 illustrates print images G2 and G5 corresponding to the first template T2 and the second template T6 corresponding to the first template T2. The first template T2 and the print image G2 in this example are the same as those described with reference to FIG.
The second template T5 is a template in which data specifying the print color of the character string b4 is added to the first template T2. For this reason, the print image G5 when printed based on the second template T5 is obtained by coloring the character string b4 of the monochrome print image G2 to a designated color such as red or blue.
図10には、第1テンプレートT6と、これに対応する第2テンプレートT7との各々に対応する印刷イメージG6、G7を例示する。
第1テンプレートT6は、図5を参照して説明した第1テンプレートT2において、割れ物である注意喚起を促す画像a8のデータ(印刷要素のデータ)と、その印刷形態を指定するデータが追加されたものである。第1テンプレートT6には印刷色を指定するデータは含まれていない。
また、第1テンプレートT6に対応する第2テンプレートT7は、第1テンプレートT6において、画像a8のデータの印刷色を指定するデータを含ませたものである。
第2テンプレートT7に基づいた印刷イメージG7は、第1テンプレートT6に基づいた印刷イメージG6におけるモノクロの画像a8をカラー化して、画像a9としたものとなる。
FIG. 10 illustrates print images G6 and G7 corresponding to the first template T6 and the second template T7 corresponding to the first template T6.
In the first template T6 described with reference to FIG. 5, the first template T6 is added with data (print element data) of an image a8 that prompts a warning that is a broken object, and data that specifies the print form. Is. The first template T6 does not include data for specifying the print color.
A second template T7 corresponding to the first template T6 includes data specifying the print color of the data of the image a8 in the first template T6.
The print image G7 based on the second template T7 is obtained by coloring the monochrome image a8 in the print image G6 based on the first template T6 into an image a9.
これら図9及び図10の例に示したように、第2テンプレートT5、T7は、第1テンプレートT2、T6において、印刷要素のデータの一部について、第1テンプレートT2、T6にはない印刷形態を指定するデータを新たに追加したものである。これらの例によれば、ホストコンピューター2がプリンター6に対して出力する印刷命令で指定される第1テンプレートT2、T6に代えて、第2テンプレートT5、T7を用いることにより、出力表現の幅を一層広げることができる。
As shown in the examples of FIGS. 9 and 10, the second templates T5 and T7 have a printing form that is not in the first templates T2 and T6 in the first templates T2 and T6. This is a new addition of data that specifies. According to these examples, by using the second templates T5 and T7 instead of the first templates T2 and T6 specified by the print command output from the
図7〜図10には、第2テンプレートが、対応する第1テンプレートにおいて印刷要素の印刷形態を指定するデータの変更、追加、及び削除等を施したものとしたが、本発明はこれらの例に限定されない。
図11には、(A)第1テンプレートT8と、これに対応する(B)第2テンプレートT9と、各テンプレートに対応する印刷イメージG8、G9を例示する。
図11(A)の第1テンプレートT8は、ラベルに印刷する印刷要素として、画像40、文字41、及び枠42を含んでいる。第1テンプレートT8のデータには、画像40の画像データ、画像40のサイズ及び位置を指定するデータが含まれ、文字41の文字コード、フォント、サイズ及び位置を指定するデータが含まれる。また、枠42は文字を挿入するための枠として設けられている。第1テンプレートT8のデータには、枠42に挿入される文字のデータすなわち文字コードは含まれていないが、枠42における文字のフォント、サイズ及び位置を指定するデータが含まれる。
In FIGS. 7 to 10, the second template is obtained by changing, adding, and deleting data specifying the print form of the print element in the corresponding first template. It is not limited to.
FIG. 11 illustrates (A) a first template T8, (B) a second template T9 corresponding to the first template T8, and print images G8 and G9 corresponding to each template.
The first template T8 in FIG. 11A includes an
第1テンプレートを使用する場合、ホストコンピューター2は、印刷命令のコマンドとともに、第1テンプレートの名称を指定するデータと、枠42に挿入する文字の文字コードを含むデータとを、出力する。図11(A)の例では、枠42に住所データを挿入可能となっており、ホストコンピューター2は、第1テンプレートT8の名称“Summer”と、枠42に挿入する住所データ“123 XX Street,12345”を、印刷命令とともに出力する。
When using the first template, the
この第1テンプレートT8に対応する第2テンプレートT9は、図11(B)に示すように、印刷要素として、画像50、文字51、及び枠42を含んでいる。第2テンプレートT9のデータには、画像50の画像データと、画像50のサイズ及び位置を指定するデータが含まれ、文字51の文字コード、フォント、サイズ及び位置を指定するデータが含まれる。画像50は画像40を置き換える画像データであり、文字51は文字41を置き換えるデータである。画像50及び文字51は、ラベルのサイズに収まる範囲で配置可能であれば、画像40及び文字41とサイズ、位置、フォントが揃っている必要はなく、任意のサイズ、位置、フォントを設定できる。
さらに、プリンター3はカラー印刷が可能であるから、第2テンプレートT9は、画像50の印刷色を指定するデータ、及び、文字51の印刷色を指定するデータを含む。
As shown in FIG. 11B, the second template T9 corresponding to the first template T8 includes an
Furthermore, since the
また、第2テンプレートT9は、印刷要素として枠52を含む。枠52は第1テンプレートT8が有する枠42と同サイズ、同位置に配置され、文字を挿入可能な枠である。この枠52には、枠42と同じ文字数の文字を挿入して印刷できる。従って、ホストコンピューター2が、第1テンプレートT8の名称と枠42に挿入する文字のデータとを出力した場合に、プリンター3は、枠42に挿入する文字(ここでは住所データ)の全てを、枠52に挿入して印刷できる。このように、第2テンプレートは、ホストコンピューター2が印刷命令とともに出力するデータにより動的にデータが挿入または変更される枠については、第1テンプレートと少なくとも同じデータを挿入可能な枠を有することが好ましい。その上で、テンプレートに固定的に含まれる文字や画像については、ラベルの印刷面の印刷領域を逸脱しない範囲で、変更してもよい。例えば、印刷イメージG8がラベルの半分を占めるサイズである場合に、印刷イメージG9の印刷サイズが、1枚のラベルのほぼ全面となるようにしてもよい。
The second template T9 includes a
そして、第1テンプレートT8の印刷イメージG8と、第2テンプレートT9の印刷イメージG9とを比較すると、画像a10と画像a12、及び、文字b6と文字b7は、大きく異なっていてもよい。また、文字c2は、フォントやサイズを文字c1と一致させる必要はなく、同じ文字数を印刷できればよいので、異なるフォント、サイズとしてもよい。 When the print image G8 of the first template T8 and the print image G9 of the second template T9 are compared, the image a10 and the image a12, and the character b6 and the character b7 may be greatly different. The character c2 does not need to have the same font and size as the character c1 and can print the same number of characters, and therefore may have a different font and size.
テンプレート端末5を用いて第2テンプレートを作成する作業は、2通りの方法で行うことができる。すなわち、テンプレート端末5が第1テンプレートを読み込んで作業する方法と、第1テンプレートを流用しないで新規のテンプレートを作成する方法である。図11に示した例では文字41や画像40を、大きく異なる文字51や画像50に変更することも可能であり、このような場合には新規のテンプレートを作成する方法がより容易であるといえる。
The operation of creating the second template using the
また、印刷システム1において、ホストコンピューター2が出力する印刷命令により、プリンター3、6が記憶する別のデータがテンプレートとともに指定され、プリンター3、6が指定されたデータをテンプレートに当てはめて印刷することもできる。図12は、この印刷処理の説明図である。
第1テンプレートにおいて、印刷要素の画像データや文字データ及び各印刷要素の印刷態様を指定するデータに加え、テンプレートにはめ込んで印刷する画像データのファイル名を含ませることが可能である。プリンター6は、第1テンプレートとともに、例えば図12(A)の画像a14のデータを記憶している。そして、ホストコンピューター2が出力する印刷命令で指定された第1テンプレートが、画像a14のファイル名“sun”を含む場合、この画像a14のデータが読み出されて、第1テンプレート中の他の印刷要素とともに印刷される。
In the
In the first template, in addition to the image data and character data of the print element and the data specifying the print mode of each print element, it is possible to include the file name of image data to be printed by being embedded in the template. The printer 6 stores, for example, data of an image a14 in FIG. 12A together with the first template. When the first template specified by the print command output from the
このような第1テンプレートに対応する第2テンプレートは、画像a14のファイル名“sun”を含むよう作成される。さらに、図12(B)に示す別の画像a15に、画像a14と同じファイル名“sun”を付けて第2テンプレート記憶部35に記憶してもよい。この場合、ホストコンピューター2が出力する印刷命令及びデータを変えることなく、実際に印刷される印刷イメージG10(図12(C))の文字a16、a17及び画像a15を、もとの第1テンプレートとは異なる文字及び画像に変えることができる。また、上記の例と同様に、第2テンプレートには、文字a16、a17及び画像a15の印刷色を指定するデータを新たに含めることが可能であり、容易にカラー化したラベルを印刷できる。
また、ホストコンピューター2が出力するデータに画像データのファイル名が含まれず、第1テンプレートにファイル名が含まれる場合には、図12(B)に示すように新たに用いる画像データに同じファイル名を付ける必要はない。第2テンプレートに含まれるファイル名と同じファイル名の画像データが第2テンプレート記憶部35に記憶されていればよい。
The second template corresponding to the first template is created so as to include the file name “sun” of the image a14. Furthermore, another image a15 shown in FIG. 12B may be stored in the second
If the file name of the image data is not included in the data output from the
以上、本発明の実施形態について説明したが、本発明は、これに限定されるものではない。例えば、上記実施形態では、プリンター3が有する第2テンプレート記憶部35に記憶される第2テンプレートに、対応する第1テンプレートと同じ名称を付与することで、第1テンプレートと第2テンプレートとを対応づけた例を説明したが、本発明はこれに限定されるものではなく、第1テンプレートと第2テンプレートとの対応を定義する情報を、記憶部33や他の記憶部に記憶してもよい。この場合、印刷制御部32は、ホストコンピューター2が送信した印刷命令で指定された第1テンプレートに対応する第2テンプレートを、上記情報に基づいて選択すればよく、テンプレートの名称を同一にする必要はない。
また、上記実施形態では、印刷命令で指定された第1テンプレートに対応する第2テンプレートが第2テンプレート記憶部35に格納されていない場合に、第1テンプレートを第1テンプレート記憶部34から取得して、印刷用データを生成する構成を例に挙げて説明したが、印刷命令とともに送信されるデータの内容や、印刷命令に含まれるコマンドのパラメーター等により、第1テンプレートを用いるか第2テンプレートを用いるかを判定し、第1テンプレートと第2テンプレートとを選択的に使用して印刷用データを生成してもよい。
また、上記実施形態では、プリンター3によりラベルを印刷する場合を例に挙げて説明したが、その他の印刷媒体や記録媒体を用いて記録物を記録する場合にも本発明を適用可能であることは勿論である。
As mentioned above, although embodiment of this invention was described, this invention is not limited to this. For example, in the above embodiment, the first template and the second template are associated with each other by assigning the same name as the corresponding first template to the second template stored in the second
In the above embodiment, when the second template corresponding to the first template specified by the print command is not stored in the second
In the above embodiment, the case where the label is printed by the
また、ブロック図に示した各機能ブロックは、ハードウェアとソフトウェアとの協働により実現されるものであって、具体的なハードウェアの実装形態やソフトウェアの仕様等は任意であり、その他の細部構成についても任意に変更可能である。また、プリンター3は、印刷を実行可能なものであれば具体的な構成は特に限定されず、SIDM方式のプリンター、インクジェット式のプリンター、サーマルプリンター、レーザープリンター等、各種の装置を適用可能であり、独立して使用される機器に限らず、他の機器(ATM(Automated Teller Machine)やCD(Cash Dispenser)等)に組み込まれた装置に本発明を適用することも勿論可能である。さらに、本発明のデータ処理装置は、処理手段としての印刷制御部32を備えたプリンター3に限定されず、プリンター3とは別に設けられたコンピューター等の装置によって、印刷用のデータを生成する場合に、当該装置に本発明のデータ処理装置を適用することも可能である。
Each functional block shown in the block diagram is realized by cooperation between hardware and software, and the specific hardware implementation form, software specifications, etc. are arbitrary, and other details The configuration can be arbitrarily changed. The specific configuration of the
1…印刷システム、2…ホストコンピューター、3…プリンター(記録装置)、34…第1テンプレート記憶部(第1の記憶手段)、32…印刷制御部(記録制御手段)、35…第2テンプレート記憶部(第2の記憶手段)、39…印刷実行部(記録手段)、T2、T6、T8…第1テンプレート、T3、T4、T5、T7、T9…第2テンプレート。
DESCRIPTION OF
Claims (8)
印刷要素のデータの印刷形態を指定する情報を含むテンプレートを取得する制御部と、
前記印刷実行部による前記印刷に係るデータを保持する記憶部と、を備え、
前記制御部は、
前記テンプレートとして第1テンプレートを取得し、前記第1テンプレートに含まれる前記印刷形態を指定する情報を変更するコマンド、もしくは、前記第1テンプレートに前記印刷形態を指定する情報を追加するコマンドを受信したとき、前記コマンドに基づいて前記第1テンプレートに対して前記印刷形態を指定する情報が変更、または追加された第2テンプレートを前記第1テンプレートに対応付けて前記記憶部に記憶し、
前記第1テンプレートを指定する情報を含む印刷命令を受信した場合に、前記第2テンプレートを前記記憶部から取得し、取得した前記第2テンプレートと前記印刷命令とに基づいて前記印刷実行部を制御して印刷を実行させる、
ことを特徴とするプリンター。 A print execution unit that executes printing on a medium ;
A control unit for obtaining a template including information for specifying a print form of data of the print element ;
A storage unit for holding data related to the printing by the printing execution unit,
The controller is
The first template is acquired as the template, and the command for changing the information specifying the printing form included in the first template or the command for adding the information specifying the printing form to the first template is received. A second template in which information specifying the printing form is changed or added to the first template based on the command is stored in the storage unit in association with the first template;
When receiving a print command including information for designating the first template to obtain a pre-Symbol second template from said storage unit, said printing unit based on the acquired and the second template and the print command Control to execute printing,
Printer that features a call.
前記記憶部は前記第1テンプレートを保持し、
前記制御部は、前記印刷命令を受信したときに、前記第2テンプレートが前記記憶部に保持されていない場合は、前記第1テンプレートを取得し、前記第1テンプレート及び前記印刷命令に基づいて前記印刷実行部を制御して印刷を実行させることを特徴とするプリンター。 The printer according to claim 1,
The storage unit holds the first template,
Wherein, upon receiving the print command, when said second template is not held in the storage unit, it acquires the previous SL first template, based on the first template and the print command printer, characterized in that to execute printing by controlling the printing unit.
前記第2テンプレートは、変更、または追加された前記印刷形態を指定する情報として、前記第1テンプレートにおける印刷色と異なる印刷色を指定する情報を有することを特徴とするプリンター。 The printer according to any one of claims 1 and 2 ,
The second template is changed or as information for specifying the added the printing form, the printer characterized by having information to specify a print color different from the print color of the first template.
前記テンプレートは、前記印刷要素のデータの印刷形態を指定する情報として、前記媒体の印刷領域における前記印刷要素の位置及びサイズの少なくともいずれかを指定する情報を有することを特徴とするプリンター。 The printer according to any one of claims 1 to 3 ,
Printer Before Kite Plates as information specifying the print form of the data of the printing element, characterized in that it comprises information specifying at least one of the position and size of the printing element in the printing area of the medium .
前記制御部は、前記第2テンプレートを、前記第1テンプレートを構成する第1コマンド体系と異なる第2コマンド体系に変換して、前記記憶部に記憶させることを特徴とするプリンター。The printer, wherein the control unit converts the second template into a second command system different from the first command system constituting the first template, and stores the second command system in the storage unit.
前記印刷命令は前記第1コマンド体系で構成され、The print command is composed of the first command system,
前記第1テンプレートを指定する情報は、前記第1コマンド体系に含まれるコマンドであることを特徴とするプリンター。The printer is characterized in that the information specifying the first template is a command included in the first command system.
前記第1テンプレートの名称と前記第2テンプレートの名称とは、同一の文字列を含む、ことを特徴とするプリンター。The name of the first template and the name of the second template include the same character string.
前記テンプレートとして第1テンプレートを取得し、前記第1テンプレートに含まれる前記印刷形態を指定する情報を変更するコマンド、もしくは、前記第1テンプレートに前記印刷形態を指定する情報を追加するコマンドを受信したとき、前記コマンドに基づいて前記第1テンプレートに対して前記印刷形態を指定する情報が変更、または追加された第2テンプレートを前記第1テンプレートに対応付けて前記記憶部に記憶し、
前記第1テンプレートを指定する情報を含む印刷命令を受信した場合に、前記第2テンプレートを前記記憶部から取得し、取得した前記第2テンプレートと前記印刷命令とに基づいて前記印刷実行部を制御して印刷を実行させる
ことを特徴とするプリンターの制御方法。 A print execution unit that executes printing on a medium, a control unit that acquires a template that includes information for specifying a print mode of data of a print element, a storage unit that holds data related to the printing by the print execution unit , A method for controlling a printer comprising :
The first template is acquired as the template, and the command for changing the information specifying the printing form included in the first template or the command for adding the information specifying the printing form to the first template is received. A second template in which information specifying the printing form is changed or added to the first template based on the command is stored in the storage unit in association with the first template;
When receiving a print command including information for designating the first template to obtain a pre-Symbol second template from said storage unit, said printing unit based on the acquired and the second template and the print command A method for controlling a printer , characterized in that printing is performed under control.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016170491A JP6202168B2 (en) | 2016-09-01 | 2016-09-01 | Printer and printer control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016170491A JP6202168B2 (en) | 2016-09-01 | 2016-09-01 | Printer and printer control method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012189077A Division JP5998753B2 (en) | 2012-08-29 | 2012-08-29 | Recording apparatus and method for controlling recording apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2017024418A JP2017024418A (en) | 2017-02-02 |
JP6202168B2 true JP6202168B2 (en) | 2017-09-27 |
Family
ID=57950344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016170491A Active JP6202168B2 (en) | 2016-09-01 | 2016-09-01 | Printer and printer control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6202168B2 (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0839887A (en) * | 1994-07-28 | 1996-02-13 | Fujitsu Ltd | Multicolor printing device |
JP2002014792A (en) * | 2000-06-28 | 2002-01-18 | Hitachi Ltd | Color print system for monochromatic document |
JP2003118169A (en) * | 2001-10-11 | 2003-04-23 | Toshiba Tec Corp | Programmable bar code reader |
JP2009064243A (en) * | 2007-09-06 | 2009-03-26 | Seiko Epson Corp | Document management device, document management method, and document management program |
JP2010099849A (en) * | 2008-10-21 | 2010-05-06 | Seiko Epson Corp | Printing apparatus, controlling method and controlling program for printing apparatus |
-
2016
- 2016-09-01 JP JP2016170491A patent/JP6202168B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2017024418A (en) | 2017-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2006228066A (en) | Printing system and document management system | |
US9830540B2 (en) | Printing device and control method of printing device | |
JP6024168B2 (en) | Data processing apparatus, recording apparatus, and control method for data processing apparatus | |
JP4627683B2 (en) | Printing system, printing system control method and program | |
JP6213624B2 (en) | Recording apparatus and method for controlling recording apparatus | |
JP6202168B2 (en) | Printer and printer control method | |
US8908226B2 (en) | Information processing device, control method of an information processing device, and storage medium storing a program executed by a control unit of the information processing device | |
JP5974737B2 (en) | Recording apparatus and method for controlling recording apparatus | |
JP5998753B2 (en) | Recording apparatus and method for controlling recording apparatus | |
JP6766396B2 (en) | Print control system | |
JP6060774B2 (en) | Printing apparatus, printing apparatus control method, and program | |
JP2005222267A (en) | Print controller, print control method, program and recording medium remote management system | |
JP2000284922A (en) | Printer and printing system | |
JP2017087732A (en) | Printing device, control method of printing device, and program | |
JP2014197309A (en) | Print control unit, printer, data processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20170801 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170731 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170814 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6202168 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |