JP2024016507A - program - Google Patents
program Download PDFInfo
- Publication number
- JP2024016507A JP2024016507A JP2022118676A JP2022118676A JP2024016507A JP 2024016507 A JP2024016507 A JP 2024016507A JP 2022118676 A JP2022118676 A JP 2022118676A JP 2022118676 A JP2022118676 A JP 2022118676A JP 2024016507 A JP2024016507 A JP 2024016507A
- Authority
- JP
- Japan
- Prior art keywords
- paper
- information
- printer
- items
- 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
Links
- 238000000034 method Methods 0.000 claims abstract description 81
- 238000007639 printing Methods 0.000 claims abstract description 40
- 230000008569 process Effects 0.000 claims description 63
- 230000010365 information processing Effects 0.000 claims description 22
- 238000012545 processing Methods 0.000 claims description 22
- 230000005540 biological transmission Effects 0.000 claims description 3
- 230000008859 change Effects 0.000 claims description 3
- 208000033748 Device issues Diseases 0.000 claims 2
- 238000012937 correction Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000001514 detection method Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000001070 adhesive effect Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000007790 scraping Methods 0.000 description 1
- 238000004381 surface treatment Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
Description
本明細書に開示される技術分野は、用紙の情報を指定可能なプリンタの制御に用いるプログラムに関する。 The technical field disclosed herein relates to a program that is used to control a printer that can specify paper information.
従来、用紙の情報を指定可能なプリンタが知られている。例えば特許文献1には、給紙装置から給紙された用紙のサイズを検出し、検出された用紙サイズと、投入された印刷ジョブに指定される用紙サイズとが一致すれば、その一致した用紙サイズを給紙装置の用紙サイズに設定し、一致しなければ、給紙装置の用紙サイズを「不明」に設定する構成が開示されている。さらに特許文献1には、用紙サイズが一致しない場合に、エラーを報知する構成も開示されている。
Conventionally, printers that can specify paper information are known. For example, in
用紙の情報を指定可能なプリンタを外部デバイスから利用する場合にも、外部デバイスにおいて、印刷ジョブに指定される用紙の情報、すなわち外部デバイスにて指定された用紙の情報と、プリンタ本体に指定された用紙の情報と、が整合するか否かを判断し、整合することを条件として印刷ジョブをプリンタに渡すことで、プリンタ本体では、指定された用紙の情報に基づく印刷が担保された状態にできる。しかしながら、ユーザによっては厳密に用紙の情報が一致しなくても類似の用紙への印刷を許容する場合がある。そのような場合にも一律に印刷ジョブの投入を制限してしまうと、使い勝手が悪くなる。 Even when using a printer that allows paper information to be specified from an external device, the external device can combine the paper information specified in the print job, that is, the paper information specified by the external device, and the paper information specified in the printer itself. By determining whether or not the specified paper information matches, and passing the print job to the printer on the condition that they match, the printer is guaranteed to print based on the specified paper information. can. However, some users may allow printing on similar paper even if the paper information does not exactly match. Even in such a case, if the submission of print jobs is uniformly restricted, it will be inconvenient to use.
上述した課題の解決を目的としてなされたプログラムは、用紙の情報を指定可能なプリンタの制御に用いるプログラムであって、前記プログラムは、情報処理装置のコンピュータに、前記情報処理装置にインストールされたアプリケーションプログラムから、前記プリンタに印刷を実行させる印刷指示があり、印刷対象の画像データと、用紙の情報を含む印刷設定と、が渡された場合に、前記プリンタに指定されている用紙の情報である第1用紙情報を、前記プリンタから取得する取得処理と、前記取得処理にて取得された前記第1用紙情報と、前記アプリケーションプログラムから渡された前記印刷設定に含まれる用紙の情報である第2用紙情報と、が整合するか否かを判定する判定処理と、を実行させ、前記用紙の情報には、複数の項目があり、前記項目ごとに、前記判定処理での判定対象とするか否かの設定が可能であり、前記判定処理では、前記複数の項目のうち、判定対象に設定された項目について、整合するか否かを判定し、判定対象に設定されなかった項目について、整合するか否かを判定せず、さらに前記情報処理装置の前記コンピュータに、前記判定処理にて前記第1用紙情報と前記第2用紙情報とが整合すると判定された場合に、前記アプリケーションプログラムから渡された前記画像データに基づく印刷を行わせる印刷コマンドを、前記プリンタに送信する印刷送信処理を実行させる、ように構成される。 A program designed to solve the above-mentioned problems is a program used to control a printer that can specify paper information, and the program is installed in a computer of an information processing device with an application installed in the information processing device. This is the paper information specified for the printer when there is a print instruction from the program that causes the printer to execute printing, and image data to be printed and print settings including paper information are passed. an acquisition process that acquires first paper information from the printer, the first paper information acquired in the acquisition process, and second paper information that is paper information included in the print settings passed from the application program. The paper information includes a plurality of items, and each item is determined whether or not to be determined in the determination process. In the determination process, it is determined whether or not items set as determination targets among the plurality of items match, and whether or not items that are not set as determination targets are matched. is passed from the application program to the computer of the information processing apparatus when it is determined in the determination process that the first paper information and the second paper information match. The printer is configured to execute a print transmission process of transmitting a print command to the printer to perform printing based on the image data.
本明細書に開示されるプログラムによれば、情報処理装置は、印刷指示があった際、プリンタ本体に指定されている第1用紙情報と、アプリケーションプログラムから渡された印刷指示に含まれる第2用紙情報と、が整合すると判定された場合に、印刷コマンドをプリンタに送信する。さらに、情報処理装置は、第1用紙情報と第2用紙情報との整合の判定対象となる項目の設定が可能であり、判定対象でない項目について整合の判定を行わない。これにより、用紙の整合判定の自由度が高まり、プリンタ本体に指定された用紙の情報と整合しない印刷ジョブのプリンタへの投入を制限しつつ、必要以上の項目についての判定が回避される。その結果として、例えば、プリンタ本体に指定されている用紙の情報と印刷指示に含まれる用紙の情報とが、判定対象とされていない項目について整合していないとしても、その印刷ジョブをプリンタに投入できる可能性が高まる。 According to the program disclosed in this specification, when an information processing apparatus receives a print instruction, the information processing apparatus uses the first paper information specified in the printer body and the second paper information included in the print instruction passed from the application program. If it is determined that the paper information and the paper information match, a print command is sent to the printer. Furthermore, the information processing apparatus can set items to be determined for consistency between the first sheet information and the second sheet information, and does not perform consistency determination for items that are not to be determined. This increases the degree of freedom in determining paper alignment, restricts the input of print jobs that do not match the paper information specified in the printer body into the printer, and avoids determining more items than necessary. As a result, for example, even if the paper information specified in the printer itself and the paper information included in the print instruction do not match for items that are not subject to judgment, the print job will still be submitted to the printer. The possibility of doing so increases.
上記プログラムが組み込まれる情報処理装置、上記プログラムの機能を実現するための制御方法、上記プログラムを格納するコンピュータにて読取可能な記憶媒体も、新規で有用である。 An information processing device incorporating the program, a control method for realizing the functions of the program, and a computer-readable storage medium storing the program are also new and useful.
本明細書に開示される技術によれば、用紙の情報を指定可能なプリンタに外部デバイスから印刷ジョブを投入する場合に、外部デバイスのユーザがそのプリンタを利用し易い技術が実現される。 According to the technology disclosed in this specification, when a print job is submitted from an external device to a printer that can specify paper information, a technology is realized that allows a user of the external device to easily use the printer.
以下、プログラムを具体化した実施の形態について、添付図面を参照しつつ詳細に説明する。本明細書では、ラベルプリンタに接続可能なパーソナルコンピュータ(以下、「PC」とする)にて実行されるプログラムを開示する。 Hereinafter, embodiments embodying the program will be described in detail with reference to the accompanying drawings. This specification discloses a program that is executed on a personal computer (hereinafter referred to as "PC") that can be connected to a label printer.
本形態の印刷システム100は、図1に示すように、PC1と、ラベルプリンタ3と、を備えている。PC1は、情報処理装置の一例である。ラベルプリンタ3は、プリンタの一例である。
The
PC1は、図1に示すように、CPU11と、メモリ12と、を含むコントローラ10を備えている。CPU11は、コンピュータの一例である。また、PC1は、ユーザインタフェース(以下、「ユーザIF」とする)13と、通信インタフェース(以下、「通信IF」とする)14と、を備え、これらがコントローラ10に電気的に接続されている。なお、図1中のコントローラ10は、PC1の制御に利用されるハードウェアやソフトウェアを纏めた総称であって、実際にPC1に存在する単一のハードウェアを表すとは限らない。
The PC 1 includes a
CPU11は、メモリ12から読み出したプログラムに従って、また、ユーザの操作に基づいて、各種の処理を実行する。メモリ12には、各種のプログラムや各種のデータが記憶されている。メモリ12は、各種の処理が実行される際の作業領域としても利用される。CPU11が備えるバッファも、メモリの一例である。なお、メモリ12の一例は、PC1に内蔵されるROM、RAM、HDD等に限らず、CPU11が読み取り可能かつ書き込み可能なストレージ媒体、例えば、CD-ROM、DVD-ROM等の記録媒体であっても良い。
The
ユーザIF13は、ユーザに情報を報知するための画面を表示するハードウェアと、ユーザによる操作を受け付けるハードウェアと、を含む。なお、ユーザIF13は、情報を表示可能なディスプレイと、入力受付機能を有するマウスやキーボード等と、の組み合わせであっても良いし、表示機能と入力受付機能とを備えるタッチパネルを含んでも良い。
The
通信IF14は、ラベルプリンタ3等の外部装置と通信を行うためのハードウェアを含む。通信IF14の通信規格は、イーサネット(登録商標)、Wi-Fi(登録商標)、USBなどである。PC1は、複数の通信規格に対応する複数の通信IF14を備えていてもよい。
The communication IF 14 includes hardware for communicating with external devices such as the
PC1のメモリ12には、オペレーティングシステム(以下、「OS」とする)21と、編集アプリケーションプログラム(以下、「編集アプリ」とする)22と、プリンタドライバ23と、用紙情報データベース(以下、「用紙情報DB」とする)25と、登録ツール26と、が記憶されている。編集アプリ22は、情報処理装置にインストールされたアプリケーションプログラムの一例であり、プリンタドライバ23は、プログラムの一例である。OS21は、例えば、Windows(登録商標)、macOS(登録商標)、Linux(登録商標)、iOS(登録商標)、Android(登録商標)である。
The
編集アプリ22は、例えば、印刷対象となる画像や文書の作成や編集、印刷、保存等の指示を受け付けるプログラムである。編集アプリ22は、例えば、マイクロソフト(登録商標)製のワードやパワーポイントなどであっても良いし、ラベルプリンタ3のベンダから提供されるアプリであっても良い。本形態の編集アプリ22は、ユーザIF13を介して、ラベルの印刷に関するユーザの指示、例えば、印刷対象の画像データの指定、印刷設定の編集指示、印刷実行の指示、を受け付け可能である。
The
プリンタドライバ23は、ラベルプリンタ3に対応するプログラムであり、ラベルプリンタ3と通信を行って、ラベルプリンタ3を制御する機能を有する。プリンタドライバ23は、例えば、編集アプリ22等にてラベルプリンタ3での印刷実行の指示を受け付けた場合に、印刷対象として指定されている画像データに基づいて印刷データを生成する。編集アプリ22等からプリンタドライバ23に渡される印刷指示には、画像データと印刷設定とが含まれ、印刷設定には、印刷対象の用紙の情報が含まれる。
The
用紙情報DB25は、ラベルプリンタ3にて印刷媒体として使用される各種の用紙についての用紙の情報を、記憶するデータベースである。ラベルプリンタ3にて使用される印刷媒体はラベルであり、用紙の情報には、ラベルのサイズや形状などのラベルの特性に関する情報が含まれる。用紙の情報には複数の項目が含まれ、これらの項目の情報が1つのプリセットデータとして用紙情報DB25に記憶される。
The
登録ツール26は、ユーザによるプリセットデータの登録指示を受け付け、受け付けたプリセットデータを用紙情報DB25に記憶するプログラムである。登録ツール26は、例えば、図2に示すような登録画面250をユーザIF13に表示させ、ユーザの入力を受け付ける。登録画面250には、例えば、用紙名欄251と、用紙種選択欄252と、用紙サイズ選択欄253と、が含まれる。用紙名欄251は、用紙名の入力を受け付ける欄である。
The
用紙種選択欄252は、用紙種類の選択を受け付ける欄である。用紙種類は、剥離紙の形状を示す剥離紙情報と、ラベル紙の形状を示す形状情報と、を組み合わせた情報である。本形態のラベルプリンタ3は、ロール状に巻かれたラベル紙であるロール紙を収容可能であり、ロール紙が収容されている場合には、そのロール紙を印刷媒体として利用する。また、ラベルプリンタ3は、折り畳んだ状態のラベル紙であるファンフォールド紙を印刷媒体として利用できる。ロール紙とファンフォールド紙とは、いずれも、連続した帯状の剥離紙上にラベル紙が重ね合わされた状態の印刷媒体である。剥離紙情報は、ロール紙であるかファンフォールド紙であるかを示す情報である。形状情報は、例えば、連続した長尺状の無定長ラベルと、あらかじめ所定の形状にカットされたダイカットラベルと、あらかじめ所定の間隔で所定のマークが付与されているマークラベルと、のいずれかを示す情報である。なお、剥離紙情報と形状情報とは、個別に設定可能な情報であっても良い。
The paper type selection field 252 is a field that accepts selection of paper type. The paper type is information that is a combination of release paper information indicating the shape of the release paper and shape information indicating the shape of the label paper. The
用紙サイズ選択欄253は、作成するラベルのサイズを示す情報であり、幅と長さとの項目を含む。幅は、ラベルプリンタ3における用紙の搬送方向に直交する方向のラベルのサイズであり、長さは、用紙の搬送方向のラベルのサイズである。なお、幅は、ラベルの形状にかかわらず、ラベル自体の幅を示す情報である一方、長さは、無定長ラベルであれば自由に選択可能であり、ダイカットラベルやマークラベルであれば、ラベルの形状に応じて決定される。
The paper size selection field 253 is information indicating the size of the label to be created, and includes items for width and length. The width is the size of the label in the direction perpendicular to the paper transport direction in the
用紙種選択欄252にてダイカットラベルが選択された場合、例えば、図2に示すように、用紙サイズ選択欄253には、剥離紙上でのラベル同士の間隔を示す項目であるラベル間の距離の選択欄が追加で表示され、ユーザの入力を受け付ける。また、用紙種選択欄252にてマークラベルが選択された場合、用紙サイズ選択欄253には、マーク自体の幅を示す項目であるマーク幅と、用紙の先端からマークまでの距離を示す項目であるオフセットと、の選択欄が追加で表示され、ユーザの入力を受け付ける。 When die-cut labels are selected in the paper type selection field 252, for example, as shown in FIG. A selection field is additionally displayed to accept user input. In addition, when mark label is selected in the paper type selection field 252, the paper size selection field 253 includes a mark width, which is an item indicating the width of the mark itself, and an item indicating the distance from the leading edge of the paper to the mark. A selection field for a certain offset is additionally displayed to accept user input.
用紙の情報には、用紙種類や用紙サイズ以外にも、例えば、余白の情報、各種の補正値の情報、センサの設定情報、ロール紙の場合にはロールの形状を示す情報、がさらに含まれていても良い。ラベル紙には様々な紙質や紙厚のものがあり、登録ツール26は、用紙の紙質に応じた良好な印刷物が得られるための補正値の情報を受け付け可能であっても良い。また、ラベルプリンタ3は、ダイカットラベルやマークラベルを適切に搬送するために複数のセンサを備えており、登録ツール26は、各センサの設定に関する情報を受け付け可能であっても良い。登録ツール26は、補正値やセンサの情報を受け付けた場合、受け付けた情報を当該用紙の情報に組み込むことができる。
Paper information includes, in addition to the paper type and paper size, for example, margin information, various correction value information, sensor setting information, and in the case of roll paper, information indicating the roll shape. You can leave it there. Label paper comes in various paper qualities and paper thicknesses, and the
紙質に関する補正値としては、例えば、搬送誤差を補正するための搬送調節量、インクの滲みやすさを補正するためのドット削り量、ラベル紙に吐出したインクの乾きやすさに基づく印刷保証速度、適切な印刷濃度が得られるための印刷濃度調整値、が含まれる。センサの設定に関する情報としては、例えば、使用するセンサの選択、各センサの検出レベルに関する補正値、が含まれる。 Correction values related to paper quality include, for example, the amount of transport adjustment to correct transport errors, the amount of dot scraping to correct the ease with which ink bleeds, the guaranteed print speed based on the ease with which ink ejected onto label paper dries, A print density adjustment value for obtaining an appropriate print density is included. Information regarding sensor settings includes, for example, selection of sensors to be used and correction values regarding detection levels of each sensor.
なお、登録ツール26は、複数の項目の補正値の情報を組み合わせた補正値セットを、紙質の情報に関連付けて有していても良い。この場合、登録ツール26は、例えば、図2に示すように、紙質の選択を受け付け、選択された紙質に対応する補正値セットを当該用紙の情報に組み込むとしても良い。
Note that the
登録ツール26は、登録画面250中のOKボタンへの操作等により登録指示を受け付けた場合、表示中の用紙の情報を用紙情報DB25に記憶する。例えば、図2に示す「用紙A」の情報の登録指示を受け付けることで、図3に示すように用紙情報DB25に「用紙A」の用紙名に関連付けられた用紙の情報が、1つのプリセットデータとして記憶される。
When the
用紙情報DB25に記憶される各プリセットデータは、例えば、図3に示すように、用紙名と、用紙種類と、幅と、長さと、を含む複数の項目の情報を含む。用紙名は、用紙情報DB25に記憶される各プリセットデータを識別する識別情報の一例である。
Each preset data stored in the
本形態のラベルプリンタ3は、少なくとも印刷機能と通信機能とを有し、例えば、インクジェット方式でのモノクロ印刷によって、ラベル紙への印刷が可能なプリンタである。ラベルプリンタ3は、図1に示したように、用紙情報テーブル31と、操作パネル32と、指定用紙情報33と、を備えている。操作パネル32は、例えば、タッチパネルを含み、ユーザに情報を報知するための画面を表示するハードウェアと、ユーザによる操作を受け付けるハードウェアと、を含む。
The
用紙情報テーブル31は、ラベルプリンタ3にて印刷媒体として利用可能な用紙の情報を記憶するテーブルである。例えば、PC1は、用紙情報DB25に登録されているプリセットデータをラベルプリンタ3に送信して、用紙情報テーブル31への記憶を指示することができる。これにより、ラベルプリンタ3は、用紙情報DB25と共通のプリセットデータを用紙情報テーブル31に登録可能である。なお、ラベルプリンタ3は、操作パネル32を介して用紙の情報の入力を受け付け、用紙情報テーブル31に記憶できても良い。また、用紙情報テーブル31に記憶される用紙の情報は、用紙情報DB25のプリセットデータと同じ内容の情報であっても良いし、用紙情報DB25のプリセットデータの一部の情報であっても良い。
The paper information table 31 is a table that stores information on paper that can be used as print media in the
指定用紙情報33は、ラベルプリンタ3に指定されている1種類の用紙の情報であり、プリンタ本体に指定されている用紙の情報の一例である。本形態のラベルプリンタ3は、例えば、用紙がセットされてカバーが閉止された場合に、操作パネル32を介して、セットされた用紙の情報に関するユーザの指定を受け付ける。ユーザは、例えば、用紙情報テーブル31に記憶されている複数の用紙の情報のうち、セットした用紙を示す用紙名を選択して指定することができる。ラベルプリンタ3は、ユーザによって指定された用紙の情報を指定用紙情報33として記憶する。なお、ラベルプリンタ3は、カバーが閉止された場合以外にも、任意のタイミングでのユーザの指示によって、用紙の指定を受け付け可能である。
The designated
ラベルプリンタ3は、複数のセンサを備えており、新たな用紙がセットされた場合、セットされた用紙をセンサの位置まで搬送して検出することで、セットされた用紙の情報の一部を特定できる。本形態のラベルプリンタ3は、操作パネル32を介して受け付けた用紙の情報と、センサの検出値に基づく用紙の情報と、を比較し、それらが不一致であると判断した場合にはエラーを報知して、受け付けた情報を指定用紙情報33に記憶しない。つまり、指定用紙情報33は、少なくとも、センサによる検出結果と矛盾しないとラベルプリンタ3にて判断された用紙の情報である。
The
続いて、印刷システム100での印刷手順について、図4のシーケンス図を参照して説明する。なお、以下に説明する各プログラムの手順や処理ステップは、基本的に、各プログラムに記述された命令に従ったCPU11の処理を示す。すなわち、以下の説明における「判断」、「抽出」、「選択」、「決定」、「取得」、「受付」等の処理は、CPU11の処理を表している。CPU11による処理は、OSのAPIを用いたハードウェア制御も含む。本明細書では、OSの記載を省略して各プログラムの動作を説明する。また、「取得」は要求を必須とはしない概念で用いる。
Next, the printing procedure in the
本形態の印刷システム100では、ユーザは、ラベルの作成を行う場合、PC1にて編集アプリ22を利用する。つまり、ユーザの操作によって、編集アプリ22が起動される(A01)。編集アプリ22は、印刷対象の画像を編集するための編集画面を、ユーザIF13に表示させ(A02)、ユーザによる各種の指示を受け付ける。ユーザは、例えば、編集画面にて印刷対象の画像の編集を行うことができる(A03)。
In the
編集アプリ22は、A02にて表示させた編集画面にて、印刷設定の指示や印刷実行の指示を受け付け可能である。編集アプリ22は、ユーザによる印刷設定の指示を受け付ける(A11)と、プリンタドライバ23を起動する(A12)。プリンタドライバ23は、印刷設定画面をユーザIF13に表示させ(A13)、ユーザによる設定指示を受け付ける。印刷設定画面は、設定画面の一例であり、A13は、手動設定処理の一例である。プリンタドライバ23は、表示させた印刷設定画面にて、印刷用紙の指定を含む印刷設定の指示を受け付け可能である。
The
例えば、図5に示すように、印刷設定画面50には、用紙名選択欄51と、幅選択欄52と、長さ選択欄53と、ラベル間の距離の選択欄54と、部数選択欄55と、用紙不一致チェック項目欄56と、が含まれる。プリンタドライバ23は、例えば、用紙名選択欄51にて用紙名の選択指示を受け付けると、用紙情報DB25を読み出して、登録済みの各プリセットデータの用紙名のリストを取得して、ユーザIF13に取得したリストを表示する。
For example, as shown in FIG. 5, the print setting screen 50 includes a paper name selection field 51, a width selection field 52, a length selection field 53, a distance selection field 54 between labels, and a number of copies selection field 55. and a paper mismatch check item column 56. For example, when the
図5に示す印刷設定画面50は、用紙名選択欄51にて「用紙A」が選択された場合の各情報の例である。「用紙A」の情報は、図2に示した登録画面250にて「用紙A」の情報として登録された用紙の情報であり、図3に示した用紙情報DB25に「用紙A」の用紙名と関連付けて記憶されているプリセットデータである。プリンタドライバ23は、用紙名選択欄51にて選択された用紙名に関連付けられているプリセットデータを用紙情報DB25から読み出し、読み出した情報を初期値として印刷設定画面50を表示する。
The print setting screen 50 shown in FIG. 5 is an example of each information when "Paper A" is selected in the paper name selection field 51. The "Paper A" information is paper information registered as "Paper A" information on the registration screen 250 shown in FIG. 2, and the paper name of "Paper A" is stored in the
印刷設定画面50に表示される項目は、用紙の種類によって異なる。「用紙A」の用紙種類は、図3や図2に示したようにダイカットラベルであり、図5に示す印刷設定画面50には「ラベル間の距離」の選択を受け付ける選択欄54が含まれている。なお、プリンタドライバ23は、印刷設定画面50にて新規用紙の登録指示を受け付け可能であっても良い。また、プリンタドライバ23は、用紙情報DB25から読み出した情報から変更された場合、用紙名をクリアしても良い。
The items displayed on the print setting screen 50 differ depending on the type of paper. The paper type of "Paper A" is a die-cut label as shown in FIGS. 3 and 2, and the print setting screen 50 shown in FIG. 5 includes a selection column 54 that accepts the selection of "distance between labels." ing. Note that the
用紙不一致チェック項目欄56は、後述する整合判定処理にて判定対象とする項目の選択を受け付ける欄である。プリンタドライバ23は、A13では、判定対象として、例えば、用紙種と幅と長さとが選択されている状態の用紙不一致チェック項目欄56を含む印刷設定画面50を表示する。印刷設定画面50にて判定対象の項目の選択を受け付けることで、印刷ジョブごとに判定対象とするか否かを選択できる。
The paper mismatch check item column 56 is a column that accepts selection of items to be determined in a consistency determination process to be described later. At A13, the
ユーザは、表示中の印刷設定画面50にて用紙の情報や部数の情報、判定対象とする項目の情報を含む印刷設定を設定し、OKボタンへの操作によって印刷設定を決定する(A14)。プリンタドライバ23は、決定した印刷設定の情報を、編集アプリ22に渡す(A15)。編集アプリ22は、A02にて表示した編集画面に、受け取った印刷設定の情報を反映させて表示する。編集アプリ22は、例えば、印刷設定に含まれる用紙の情報に合わせて、印刷対象の画像の編集領域の形状を変更する。
The user sets print settings including paper information, number of copies information, and information on items to be determined on the currently displayed print settings screen 50, and determines the print settings by operating the OK button (A14). The
編集アプリ22は、表示中の編集画面にて、ユーザによる印刷実行の指示を受け付けると(A17)、印刷対象の画像データと印刷設定の情報とを含む印刷指示の情報をプリンタドライバ23に渡す(A18)。編集アプリ22から渡される印刷設定の情報は、用紙の情報を含む。A18にて受け取る情報に含まれる用紙の情報は、第2用紙情報の一例である。
When the
プリンタドライバ23は、印刷指示の情報を受け付けると、ラベルプリンタ3から用紙の情報を取得する(A21)。A21は、取得処理の一例である。具体的には、プリンタドライバ23は、ラベルプリンタ3にて指定されている指定用紙情報33を要求し、ラベルプリンタ3は、プリンタドライバ23の要求に応じて、指定用紙情報33を送信する。A21にて取得される用紙の情報は、第1用紙情報の一例である。なお、前述したように、指定用紙情報33は、センサによる用紙の検出結果と矛盾しない情報である。
Upon receiving the print instruction information, the
次に、プリンタドライバ23は、整合判定処理を実行する(A22)。整合判定処理は、A18にて編集アプリ22から受け取った印刷設定に含まれる用紙の情報と、A21にてラベルプリンタ3から受信した用紙の情報と、が整合するか否かを判定する処理である。整合判定処理は、プリンタドライバ23の記載に基づいて、PC1のCPU11にて実行される。整合判定処理の手順について、図6のフローチャートを参照して説明する。
Next, the
CPU11は、まず、印刷設定の用紙種類と、ラベルプリンタ3から取得した用紙種類と、が一致しているか否かを判断する(S101)。用紙種類は、剥離紙情報と形状情報とを組み合わせた情報であり、必須の判定項目である。用紙種類が一致していないと判断した場合(S101:NO)、CPU11は、不整合であると判定して(S102)、整合判定処理を終了する。プリンタドライバ23にて指定されている用紙種類の用紙が、ラベルプリンタ3にセットされていない場合、そのままの状態で印刷を実行すると適切な印刷結果とならない可能性が高い。
The
なお、CPU11は、必須の判定項目として、用紙種類のみでなく、幅の整合も確認しても良い。例えば、印刷設定の用紙の幅が、ラベルプリンタ3から取得した用紙の幅よりも大きい場合、CPU11は、不整合であると判定しても良い。
Note that the
用紙種類が一致していると判断した場合(S101:YES)、CPU11は、整合の判定に用いる判定対象の項目を決定する(S111)。用紙の情報には、用紙種類の他にも複数の項目の情報が含まれ、それらの項目の中には、完全には整合していなくても印刷可能な項目もある。判定対象の項目を多くすると、詳細な判定が可能となる一方、ユーザにとっては違いを許容可能な項目についても判定され、その結果、不整合と判定されることになる。一方で、判定対象の項目を少なくすると、些細な違いは容認される一方、その用紙に最適な印刷とならない可能性がある。
If it is determined that the paper types match (S101: YES), the
本形態のプリンタドライバ23は、前述した印刷設定画面50にて判定対象の項目の選択を受け付けるだけでなく、所定の条件を満たした場合、その条件に対応する所定の項目を、自動的に、判定対象の項目である判定項目とする。プリンタドライバ23は、例えば、図7に示すように、判定項目を決定するための所定の条件を複数備えている。
The
プリンタドライバ23は、例えば、編集アプリ22から受け取った印刷設定に含まれる印刷部数の情報が所定の部数閾値よりも大きい場合に、S111にて、判定対象とすることができる全ての項目を、自動的に判定対象とする。プリンタドライバ23は、例えば、部数の設定が100部以上である場合、印刷設定画面50にて判定対象の項目として選択されていなくても、全項目を判定項目とする。この場合の全項目は、特定の項目の一例である。部数が多い場合に、特定の項目を自動的に判定対象に設定するS111は、第1自動設定処理の一例である。
For example, if the information about the number of copies to be printed included in the print settings received from the
不適切な印刷設定で多部数の印刷が行われると、低品質の印刷物が大量に作成される可能性があり、損害が大きくなる可能性が高い。プリンタドライバ23は、部数が多い場合に、印刷設定画面50にて判定対象の項目として選択されていなくても、自動的に判定項目を多くするので、不適切な印刷が多数行われてしまう可能性を軽減できる。
If a large number of copies are printed with inappropriate print settings, a large number of low-quality prints may be produced, which is likely to result in significant damage. When the number of copies is large, the
なお、プリンタドライバ23は、印刷設定の部数が多く、全項目を判定項目とした後に、ユーザによる判定項目の変更指示を受け付け可能であっても良い。プリンタドライバ23は、例えば、印刷指示を受け付けた後であって、印刷コマンドをラベルプリンタ3に送信する前に、判定対象とできる項目の一覧をユーザIF13に表示させ、ユーザによる選択を受け付けても良い。ただし、ユーザが誤った設定とした場合に不適切な印刷となるリスクも高まることから、部数の多い印刷指示を受け付けたことに応じて自動的に全項目を判定項目とすれば、そのリスクを軽減することができる。
Note that the
また、プリンタドライバ23は、印刷設定画面50にて用紙種類として特定の用紙種が設定された場合、その用紙種に対応する項目を自動的に判定項目とする。用紙種類として特定の用紙種が設定されている場合に、対応する項目を判定項目とするS111は、第2自動設定処理の一例である。プリンタドライバ23は、例えば、用紙種類としてダイカットラベルが選択された場合、ラベル間の距離を判定項目として自動的に決定する。この場合のダイカットラベルは、特定の用紙種の一例であり、ラベル間の距離は、対応項目の一例である。また、プリンタドライバ23は、例えば、用紙種類としてマークラベルが選択された場合、オフセットとマーク幅とを判定項目として自動的に決定する。この場合のマークラベルは、特定の用紙種の一例であり、オフセットとマーク幅は、対応項目の一例である。
Further, when a specific paper type is set as the paper type on the print setting screen 50, the
特定の用紙種のみに対応する対応項目については、その特定の用紙種が設定されている場合に判定対象とした方が好ましい。プリンタドライバ23は、印刷設定画面50にて判定対象の項目として選択されていなくても、選択された用紙種に対応する対応項目を自動的に判定項目に決定するので、ユーザが個別に指定する手間を省くことができる。
It is preferable that corresponding items that correspond only to a specific paper type be subjected to determination when the specific paper type is set. The
また、プリンタドライバ23は、図4のA21にてラベルプリンタ3から取得した用紙の情報が特定の用紙を示す情報である場合、S111にて、特定の用紙に対応する項目を、自動的に判定対象とする。この場合のS111は、第3自動設定処理の一例である。例えば、ラベルプリンタ3に設定されている用紙の情報が、耐候性の大きい用紙や強接着性を有する用紙等、高価な用紙を示す情報である場合、プリンタドライバ23は、全項目を判定項目とする。この例では、高価な用紙である条件は、特定条件の一例であり、全項目は、特定条件に対応する項目の一例である。
Further, if the paper information acquired from the
また、例えば、ラベルプリンタ3に設定されている用紙の情報が、特殊な紙質を示す情報である場合、プリンタドライバ23は、紙質に関する補正値を判定項目とする。例えば、ラベルプリンタ3に設定されている用紙の情報が、その特殊な表面材質を有する用紙や表面加工が施されている用紙である場合、プリンタドライバ23は、紙質に関する補正値を判定項目とする。この例では、特殊な紙質である条件は、特定条件の一例であり、紙質に関する補正値の各項目は、特定条件に対応する項目の一例である。また、例えば、ラベルプリンタ3に設定されている用紙の情報が、紙厚が所定の範囲外である用紙を示す情報である場合、プリンタドライバ23は、センサに関する設定値を判定項目としても良い。この例では、紙厚が所定の範囲外である条件は、特定条件の一例であり、センサに関する設定値の各項目は、特定条件に対応する項目の一例である。
Further, for example, if the paper information set in the
ラベルプリンタ3に指定された用紙の情報が特定条件を満たす場合に、その特定条件に対応する項目について判定対象とすれば、良好な印刷となる可能性が高い。本形態のプリンタドライバ23は、そのような項目を自動的に判定対象に設定するので、無駄な印刷を回避できる可能性が高まる。なお、用紙に関する特定条件の情報、および、その用紙に対応する判定項目の情報は、プリンタドライバ23が有していても良いし、用紙情報DB25や用紙情報テーブル31に記憶されていても良いし、これらとは別に記憶されていても良いし、ラベルプリンタ3から取得した情報に基づいてサーバ等に問い合わせて取得しても良い。
When the information on the paper specified for the
プリンタドライバ23は、図7に示す全ての条件について、判定項目の自動的な設定を行っても良いし、どの条件を採用するかについて、ユーザの設定を受け付け可能であっても良い。
The
整合判定処理の説明に戻る。S111にて判定項目を決定した後、CPU11は、判定対象の項目ごとに、印刷設定に含まれる用紙の情報とラベルプリンタ3から受信した用紙の情報との整合を判定する(S112)。S112は、判定処理の一例である。そして、CPU11は、これらの情報が整合すると判定した否かを判断する(S113)。整合の判定は、完全一致であっても良いし、許容範囲があっても良い。
Returning to the description of the consistency determination process. After determining the determination items in S111, the
整合しないと判定した場合(S113:NO)、CPU11は、S102に進み、不整合と判定して、整合判定処理を終了する。つまり、CPU11は、判定項目が他に有っても、残りの項目についての判定を行わない。判定項目のうち1つでも不整合であれば、設定されている用紙への印刷を行うことは好ましくないことから、それ以上の判定の処理は、不要である。
If it is determined that they do not match (S113: NO), the
整合すると判定した場合(S113:YES)、CPU11は、判定項目が他にも有るか否かを判断する(S114)。有ると判断した場合(S114:YES)、CPU11は、S112に戻り、他の判定項目について整合を判定する。他に無いと判断した場合(S114:NO)、すなわち、決定した全ての判定項目について整合と判定した場合、CPU11は、この用紙の情報を整合と判定して(S115)、整合判定処理を終了する。
If it is determined that they match (S113: YES), the
図4の印刷手順の説明に戻る。プリンタドライバ23は、A22での整合判定処理にて整合と判定された場合(alt:[整合する])、A18にて編集アプリ22から受け取った画像データと印刷設定とに基づいて、印刷データを生成する(A31)。さらに、プリンタドライバ23は、生成した印刷データを印刷を指示する印刷コマンドとともに、ラベルプリンタ3に送信する(A32)。A32は、印刷送信処理の一例である。
Returning to the explanation of the printing procedure in FIG. 4. If the
ラベルプリンタ3は、PC1から印刷コマンドを受信した場合、印刷データに基づいて、印刷を実行する(A33)。これにより、ラベルが作成される。少なくとも判定項目については、印刷設定の用紙情報とラベルプリンタ3に指定されている用紙の情報とが整合しているので、想定外の印刷品質のラベルが作成される可能性は小さい。
When the
一方、A22での整合判定処理にて不整合と判定された場合(alt:[整合しない])、プリンタドライバ23は、不整合処理を実行する(A35)。不整合処理は、印刷設定とラベルプリンタ3での設定とで用紙の情報が整合していない場合に、ラベルプリンタ3にセットされている用紙の交換を促すための処理である。不整合処理の手順について、図8のフローチャートを参照して説明する。
On the other hand, if a mismatch is determined in the match determination process at A22 (alt: [does not match]), the
不整合処理では、CPU11は、ユーザIF13を介して、用紙の情報が不整合である旨の報知を行う(S201)。CPU11は、例えば、ラベルプリンタ3で指定されている用紙の用紙名、不整合であった項目名およびその項目の値、をユーザIF13に表示させても良い。ラベルプリンタ3で設定されている用紙の情報と印刷設定の用紙の情報とが整合しない場合に、PC1で報知することで、PC1のユーザがラベルプリンタ3での印刷ができないことを直ぐに把握できる。
In the mismatch process, the
次に、CPU11は、ラベルプリンタ3に通知させるための通知メッセージを作成する(S202)。CPU11は、ラベルプリンタ3の近くにいるユーザに通知するためのメッセージを、ラベルプリンタ3の操作パネル32にて表示可能な態様で作成する。ラベルプリンタ3に通知させる内容を、プリンタドライバ23で作成することで、ラベルプリンタ3に各種のメッセージを用意させる必要が無く、通知内容の自由度が高まる。プリンタドライバ23は、通知内容について、ユーザの指示を受け付け可能であっても良い。
Next, the
CPU11は、例えば、図9に示すように、ラベルプリンタ3にセットされている用紙の交換を促すメッセージ61と、交換先の用紙を示す情報62と、交換後の用紙情報の設定指示63と、を含む通知メッセージ60を作成する。
For example, as shown in FIG. 9, the
CPU11は、交換先の用紙を示す情報62として、パッケージの色や柄、ロール紙のロール径や芯径、等の用紙の特徴を記載したメッセージを含む案内文をあらかじめ有していても良い。その場合、CPU11は、あらかじめ有しているメッセージを情報62として組み込んだ通知メッセージ60を作成する。また、CPU11は、案内文を有していない用紙についての通知メッセージを作成する場合、印刷設定に含まれる用紙の情報の一部を含む通知メッセージを作成する。CPU11は、用紙の情報のうち、例えば、用紙種類、幅や長さ等のラベル紙の外見から分かる情報を含むメッセージを作成すると良い。
The
また、CPU11は、交換後の用紙情報の設定指示63として、例えば、用紙情報テーブル31に記憶されているプリセットデータのうち、印刷設定に含まれる用紙の情報に対応する、プリセットデータの用紙名を含むメッセージを作成する。プリセットデータの用紙名をラベルプリンタ3に送信して通知させることで、ラベルプリンタ3の近くにいるユーザは、用紙をセットした後、その用紙名を用いて容易に用紙情報を設定できる。
Further, as the setting
CPU11は、S202にて作成した通知メッセージ60の情報と、通知メッセージ60を操作パネル32に表示させる指示と、を含む通知コマンドを、ラベルプリンタ3に送信する(S203)。通知コマンドを受信したラベルプリンタ3は、操作パネル32に通知メッセージ60を表示させる。これにより、ラベルプリンタ3の近くにいるユーザに、適切な用紙への交換を促すことができる。
The
なお、ラベルプリンタ3が音声出力の機能を有している場合、CPU11は、S203にて、ラベルプリンタ3に音声での通知を行わせるコマンドをも送信しても良い。その場合、CPU11は、S202にて音声情報をも作成し、S203では作成した音声情報を通知コマンドとともにラベルプリンタ3に送信する。
Note that if the
また、ラベルプリンタ3が操作パネル32への表示用の各種の表示情報を有していても良い。その場合、プリンタドライバ23は、通知メッセージ60を作成して送信する代わりに、表示情報を特定する特定情報をラベルプリンタ3に送信し、ラベルプリンタ3は、記憶している表示情報のうち、受信した特定情報に対応する表示情報を読み出して、操作パネル32に表示するとしても良い。
Further, the
通知コマンドの送信を実行後、CPU11は、用紙の情報の整合判定を再度実行するリトライを行うか否かを判断する(S205)。リトライするか否かの情報は、例えば、ユーザの指示によってあらかじめプリンタドライバ23に設定されていても良い。また、CPU11は、例えば、S201の報知の際に、リトライするか否かの指示を受け付けるボタンを表示させ、ユーザの指示を受け付けても良い。
After transmitting the notification command, the
リトライすると判断した場合(S205:YES)、CPU11は、リトライを実行するタイミングであるか否かを判断する(S211)。ラベルプリンタ3にセットされている用紙の交換には、ある程度の時間が必要であることから、CPU11は、例えば、所定の時間間隔を空けて、定期的に用紙の情報の整合を判定するリトライを実行する。リトライの時間間隔は、固定時間であっても良いし、例えば、交換対象となる用紙の情報ごとに異なる可変時間であっても良い。
If it is determined that a retry is to be performed (S205: YES), the
リトライのタイミングではないと判断した場合(S211:NO)、CPU11は、タイムアウトか否かを判断する(S212)。タイムアウト時間は、例えば、3分であり、固定時間であっても良いし、ユーザによる設定を受け付け可能な可変時間であっても良い。タイムアウトではないと判断した場合(S212:NO)、CPU11は、S211に戻り、リトライのタイミングであるか否かを判断する。
When determining that it is not time to retry (S211: NO), the
リトライのタイミングであると判断した場合(S211:YES)、CPU11は、ラベルプリンタ3に設定されている用紙の情報を、ラベルプリンタ3から再度取得する(S213)。そして、新たに取得された用紙の情報と印刷設定の用紙の情報との整合を判定するために、CPU11は、図6に示した整合判定処理を再度実行する(S214)。具体的には、CPU11は、判定対象の項目を決定して、項目ごとに整合を判定する。そして、CPU11は、整合と判定されたか否かを判断する(S215)。
If it is determined that it is time to retry (S211: YES), the
なお、プリンタドライバ23は、リトライ時に再度、ユーザによる判定項目の指定を受け付けても良いし、1回目の整合判定処理にて不整合と判定された場合に判定対象に決定した項目を記憶して、2回目からは、S111に代えて記憶されている判定項目を用いるとしても良い。つまり、リトライ時の判定項目は、初回の判定時と同じでも良いし、異なっていても良い。
Note that the
また、プリンタドライバ23は、S213にて取得した用紙の情報が、初回の取得処理(図4のA21)にて取得された用紙の情報と同じであれば、S214をスキップして整合判定処理を行なわず、S215に進んで不整合と判定するとしても良い。
Further, if the paper information acquired in S213 is the same as the paper information acquired in the first acquisition process (A21 in FIG. 4), the
再度の判定によっても不整合と判定された場合(S215:NO)、CPU11は、警告音を発生させる指示を含む警告コマンドを、ラベルプリンタ3に送信する(S217)。そして、CPU11は、S211に戻り、リトライのタイミングを待って、再度、ラベルプリンタ3から用紙の情報を取得する。
If it is determined that there is a mismatch after the second determination (S215: NO), the
S203にて通知コマンドを送信した後、再度取得した用紙の情報によっても、印刷設定の用紙の情報と整合していない場合、プリンタドライバ23は、ラベルプリンタ3に警告音を出力させる。これにより、ラベルプリンタ3の近くにいるユーザが通知に気付き易くなり、用紙が交換される可能性が高まる。なお、プリンタドライバ23は、S213~S215を所定回繰り返した後も整合しないと判定された場合に、S217に進むとしても良い。また、プリンタドライバ23は、S217にて、警告音の出力に加えて、警告ランプを点灯あるいは点滅させても良い。
After transmitting the notification command in S203, if the paper information obtained again does not match the paper information in the print settings, the
一方、リトライによって整合と判定された場合(S215:YES)、CPU11は、ユーザIF13を介して、ラベルプリンタ3にて用紙が交換されたことを報知する(S221)。用紙が交換されたことを報知することで、PC1のユーザは、所望の用紙への印刷が可能になったことを直ぐに把握できる。
On the other hand, if it is determined that the sheets match after the retry (S215: YES), the
そして、CPU11は、図4のA18にて編集アプリ22から受信した画像データと印刷設定とに基づいて、印刷データを生成する(S222)。さらに、CPU11は、生成した印刷データと、印刷の実行を指示する印刷コマンドと、をラベルプリンタ3に送信する(S223)。これにより、ラベルプリンタ3は、受信した印刷データに基づいて、セットされている用紙に画像を印刷する。
Then, the
本形態のプリンタドライバ23は、リトライする設定となっている場合、用紙の情報の不整合では画像データを破棄せず、その後、適切な用紙の情報がラベルプリンタ3に設定された場合に、自動的に印刷コマンドを送信する。このようにすれば、ユーザが再度同じ印刷指示を入力する手間を省くことができる。
If the
リトライしないと判断した場合(S205:NO)、または、タイムアウトであると判断した場合(S212:YES)、CPU11は、図4のA18にて編集アプリ22から受信した画像データを破棄する(S231)。S231は、破棄処理の一例である。タイムアウトの場合、CPU11は、ユーザIF13を介して、その旨を報知しても良い。
If it is determined not to retry (S205: NO) or if it is determined that it has timed out (S212: YES), the
用紙の交換指示を通知したとしても、直ぐに交換されるとは限らない。また、画像データをメモリに保持し続けるとメモリの負荷が高まることから、プリンタドライバ23は、リトライしない場合やタイムアウトの場合、画像データをメモリから破棄して、処理を終了する。これにより、メモリの負荷が軽減される。
Even if a paper replacement instruction is notified, it does not necessarily mean that the paper will be replaced immediately. Further, if the image data continues to be held in the memory, the load on the memory increases, so if the
S223またはS231の後、CPU11は、不整合処理を終了し、図4の印刷手順に戻って、A35を終了する。これにより、プリンタドライバ23は、処理を終了する。A18にてプリンタドライバ23に渡された印刷指示の処理が終了したことで、編集アプリ22は、ユーザの指示を受け付け可能となる。
After S223 or S231, the
以上、詳細に説明したように、本形態のプリンタドライバ23は、ラベルプリンタ3に印刷コマンドを送信可能なプログラムであり、ラベルプリンタ3に指定されている用紙情報と、編集アプリ22から渡された用紙情報と、の比較における判定対象を項目ごとに設定可能にする。これにより、プリンタドライバ23は、ラベルプリンタ3にて指定された用紙情報と整合しない印刷コマンドの投入を制限しつつ、必要以上の項目についての判定を回避するので、類似する用紙情報が印刷ジョブに設定されている場合でもその印刷ジョブを投入できる可能性を高められる。
As described above in detail, the
なお、本実施の形態は単なる例示にすぎず、本発明を何ら限定するものではない。従って本発明は当然に、その要旨を逸脱しない範囲内で種々の改良、変形が可能である。例えば、PC1に代えて、例えば、スマートフォン、タブレットコンピュータを用いることもできる。また、ラベルプリンタ3の印刷方式は、インクジェット方式に限らず、例えば、熱転写方式、電子写真方式、感熱方式でも良いし、カラー印刷が可能な装置であっても良い。また、印刷媒体の用紙は、ラベル紙に限らず、例えば、普通紙のロール紙やファンフォールド紙でも良いし、カット紙であっても良い。
Note that this embodiment is merely an example, and does not limit the present invention in any way. Therefore, it goes without saying that various improvements and modifications can be made to the present invention without departing from the spirit thereof. For example, instead of the
また、本形態では、用紙種類を必須項目とし、用紙種類が一致していない場合は、整合判定処理のS101にて不整合と判定するとしたが、これに限らない。つまり、用紙種類の情報についても、プリンタドライバ23は、判定対象の項目とするか否かの指定を受け付け可能であっても良い。その場合、ロール紙かファンフォールド紙かを示す剥離紙情報と、無定長ラベルかダイカットラベルかマークラベルかを示す形状情報と、を個別の項目として指定可能であっても良い。
Furthermore, in this embodiment, the paper type is an essential item, and if the paper types do not match, it is determined that the mismatch occurs in step S101 of the alignment determination process, but the invention is not limited to this. In other words, the
また、本形態のプリンタドライバ23は、整合判定処理のS113にて、判定対象の項目のうちの1項目でも不整合であった場合には、不整合と判定して残りの項目についての判定を行わないとしたが、全ての項目を判定しても良い。そして、プリンタドライバ23は、例えば、不整合と判定した項目の一覧を表示しても良いし、全ての項目について項目ごとの判定結果を表示しても良い。
Furthermore, in S113 of the consistency determination process, if even one of the items to be determined is inconsistent, the
また、本形態では、プリンタドライバ23は、リトライする場合に画像データを保持し、リトライによってS215にて整合と判断された場合には、S222~S223を実行し自動的に印刷コマンドを再送するとしたが、再送はしなくても良い。プリンタドライバ23は、リトライするか否かに関わらず画像データを破棄しても良く、リトライによって整合と判定された場合には、用紙が交換されたことを報知するのみでも良い。
In addition, in this embodiment, the
また、本形態では、リトライするか否かを選択できるとしたが、できなくても良い。例えば、プリンタドライバ23は、用紙の情報が不整合であれば、不整合処理のS201~S203を実行した後、S231に進んで画像データを破棄し、処理を終了するとしても良い。あるいは、プリンタドライバ23は、用紙の情報が不整合であれば、リトライするように構成されていても良い。
Furthermore, in this embodiment, it is possible to select whether or not to retry, but this may not be possible. For example, if the paper information does not match, the
また、各図に示した表示画面は、いずれも一例であり、図中の文言や各情報の配置、ボタンの形状等は、図示の例に限らない。印刷設定画面50は、用紙不一致チェック項目欄56を設ける代わりに、例えば、図10に示すように、項目ごとに判定対象とするか否かを受け付けるチェックボックスが設けられていてもよい。また、プリンタドライバ23は、印刷設定画面50にて多数の部数の設定を受け付けた場合に、設定可能な全項目を自動的に判定項目とするとしても良い。
Further, the display screens shown in each figure are merely examples, and the wording, arrangement of each information, shape of buttons, etc. in the figures are not limited to the illustrated examples. Instead of providing the paper mismatch check item column 56, the print setting screen 50 may be provided with a check box that accepts whether or not each item is to be determined, as shown in FIG. 10, for example. Further, when the
また、例えば、PC1は、登録ツール26にて判定対象の項目とするか否かの指定を受け付け可能であっても良い。その場合、登録ツール26は、判定対象とする項目の情報を、プリセットデータに含めて記憶し、プリンタドライバ23は、読み出したプリセットデータに含まれる情報に基づいて、印刷設定画面50の用紙不一致チェック項目欄56を表示すると良い。
Further, for example, the
また、本形態では、不整合と判定された場合に、ラベルプリンタ3に通知コマンドを送信するとしたが、しなくても良い。プリンタドライバ23は、例えば、不整合処理のS201にて、ユーザIF13を介して不整合を報知した後、ラベルプリンタ3に通知させるか否かの選択を受け付けても良い。そして、通知しない場合には、プリンタドライバ23は、S231に進んで画像データを破棄するとしても良い。また、例えば、ユーザは、報知された情報に基づいて、整合判定に用いる判定項目を変更することもできる。
Furthermore, in this embodiment, when it is determined that there is a mismatch, the notification command is sent to the
また、本形態では、プリンタドライバ23の処理として説明したが、これに限らない。例えば、PC1は、OSがあらかじめ印刷用の汎用プログラムを備えており、プリンタドライバを利用しない、いわゆるドライバレスの構成であっても良い。そして、PC1には、OSの備える汎用プログラムとは別に、所定のプリンタ用のアプリケーションプログラムが組み込まれていても良い。その場合、PC1は、そのアプリケーションプログラムに基づいて用紙の情報の整合を判定しても良い。
Furthermore, although the present embodiment has been described as processing by the
また、実施の形態に開示されている任意のフローチャートにおいて、任意の複数のステップにおける複数の処理は、処理内容に矛盾が生じない範囲で、任意に実行順序を変更できる、または並列に実行できる。 Furthermore, in any of the flowcharts disclosed in the embodiments, the execution order of a plurality of processes in any plurality of steps can be arbitrarily changed or executed in parallel as long as there is no inconsistency in the processing contents.
また、実施の形態に開示されている処理は、単一のCPU、複数のCPU、ASICなどのハードウェア、またはそれらの組合せで実行されてもよい。また、実施の形態に開示されている処理は、その処理を実行するためのプログラムを記録した記録媒体、または方法等の種々の態様で実現することができる。 Furthermore, the processing disclosed in the embodiments may be executed by a single CPU, multiple CPUs, hardware such as an ASIC, or a combination thereof. Further, the processes disclosed in the embodiments can be realized in various forms such as a recording medium recording a program for executing the processes, or a method.
1 PC
3 ラベルプリンタ
11 CPU
13 ユーザIF
1 PC
3
13 User IF
Claims (9)
前記プログラムは、情報処理装置のコンピュータに、
前記情報処理装置にインストールされたアプリケーションプログラムから、前記プリンタに印刷を実行させる印刷指示があり、印刷対象の画像データと、用紙の情報を含む印刷設定と、が渡された場合に、
前記プリンタに指定されている用紙の情報である第1用紙情報を、前記プリンタから取得する取得処理と、
前記取得処理にて取得された前記第1用紙情報と、前記アプリケーションプログラムから渡された前記印刷設定に含まれる用紙の情報である第2用紙情報と、が整合するか否かを判定する判定処理と、を実行させ、前記用紙の情報には、複数の項目があり、前記項目ごとに、前記判定処理での判定対象とするか否かの設定が可能であり、前記判定処理では、前記複数の項目のうち、判定対象に設定された項目について、整合するか否かを判定し、判定対象に設定されなかった項目について、整合するか否かを判定せず、
さらに前記情報処理装置の前記コンピュータに、
前記判定処理にて前記第1用紙情報と前記第2用紙情報とが整合すると判定された場合に、
前記アプリケーションプログラムから渡された前記画像データに基づく印刷を行わせる印刷コマンドを、前記プリンタに送信する印刷送信処理を実行させる、
ように構成されるプログラム。 A program used to control a printer that can specify paper information,
The program is sent to a computer of an information processing device,
When there is a print instruction to cause the printer to execute printing from an application program installed in the information processing device, and image data to be printed and print settings including paper information are passed,
an acquisition process of acquiring first paper information, which is information on paper designated for the printer, from the printer;
a determination process for determining whether or not the first paper information acquired in the acquisition process matches second paper information that is paper information included in the print settings passed from the application program; The information on the paper includes a plurality of items, and it is possible to set each item as a determination target in the determination process. Among the items, the items set as judgment targets are determined whether they match or not, and the items not set as judgment targets are not determined whether they match,
Furthermore, the computer of the information processing device,
If it is determined in the determination process that the first paper information and the second paper information match,
causing a print sending process to send to the printer a print command that causes printing to be performed based on the image data passed from the application program;
A program configured as follows.
前記情報処理装置の前記コンピュータに、
前記判定処理にて前記第1用紙情報と前記第2用紙情報とが整合しないと判定された場合に、
前記印刷送信処理を実行させず、前記アプリケーションプログラムから渡された前記画像データを破棄する破棄処理を実行させる、
ように構成されるプログラム。 In the program according to claim 1,
The computer of the information processing device,
If it is determined in the determination process that the first paper information and the second paper information do not match,
causing a discard process to discard the image data passed from the application program without executing the print transmission process;
A program configured as follows.
前記情報処理装置の前記コンピュータに、
前記印刷設定に含まれる部数が閾値よりも多い場合に、前記複数の項目のうち特定の項目を前記判定処理での判定対象に設定する第1自動設定処理を実行させる、
ように構成されるプログラム。 In the program according to claim 1,
The computer of the information processing device,
If the number of copies included in the print settings is greater than a threshold, executing a first automatic setting process for setting a specific item among the plurality of items as a determination target in the determination process;
A program configured as follows.
前記情報処理装置の前記コンピュータに、
前記情報処理装置にインストールされた前記アプリケーションプログラムから、前記プリンタに印刷を実行させる前記印刷指示があり、印刷対象の前記画像データと、用紙の情報を含む前記印刷設定と、が渡された場合に、
前記判定処理を実行させる前に、前記第1自動設定処理を実行させる、
ように構成されるプログラム。 In the program according to claim 3,
The computer of the information processing device,
When the application program installed in the information processing device issues the print instruction to cause the printer to print, and the image data to be printed and the print settings including paper information are passed; ,
executing the first automatic setting process before executing the determination process;
A program configured as follows.
前記用紙の情報の項目の1つには、用紙種類があり、
前記情報処理装置の前記コンピュータに、
前記用紙種類に特定の用紙種が設定されている場合に、前記複数の項目のうち前記特定の用紙種に対応する項目である対応項目を前記判定処理での判定対象に設定する第2自動設定処理を実行させる、
ように構成されるプログラム。 In the program according to claim 1,
One of the paper information items includes the paper type;
The computer of the information processing device,
a second automatic setting for setting a corresponding item, which is an item corresponding to the specific paper type among the plurality of items, as a determination target in the determination process when a specific paper type is set in the paper type; execute the process,
A program configured as follows.
前記情報処理装置の前記コンピュータに、
前記用紙の情報を含む前記印刷設定の変更を受け付ける設定画面を、前記情報処理装置のユーザインタフェースに表示させる手動設定処理を実行させ、
前記設定画面を介して前記印刷設定の変更を受け付け、前記用紙種類に前記特定の用紙種が設定された場合に、前記第2自動設定処理を実行させる、
ように構成されるプログラム。 In the program according to claim 5,
The computer of the information processing device,
performing manual setting processing that causes a user interface of the information processing device to display a settings screen that accepts changes to the print settings including information on the paper;
accepting a change in the print settings via the settings screen, and executing the second automatic setting process when the specific paper type is set as the paper type;
A program configured as follows.
前記情報処理装置の前記コンピュータに、
前記情報処理装置にインストールされた前記アプリケーションプログラムから、前記プリンタに印刷を実行させる前記印刷指示があり、印刷対象の前記画像データと、用紙の情報を含む前記印刷設定と、が渡された場合に、
前記取得処理を実行させた後、前記判定処理を実行させる前に、第3自動設定処理を実行させ、
前記第3自動設定処理では、前記取得処理にて取得された前記第1用紙情報が特定条件を満たす場合に、前記特定条件に対応する項目について、前記判定処理での判定対象に設定する、
ように構成されるプログラム。 In the program according to claim 1,
The computer of the information processing device,
When the application program installed in the information processing device issues the print instruction to cause the printer to print, and the image data to be printed and the print settings including paper information are passed; ,
After executing the acquisition process and before executing the determination process, executing a third automatic setting process,
In the third automatic setting process, if the first paper information acquired in the acquisition process satisfies a specific condition, an item corresponding to the specific condition is set as a determination target in the determination process.
A program configured as follows.
前記情報処理装置には、前記用紙の情報について前記複数の項目が関連付けられたプリセットデータが記憶されている場合があり、前記プリセットデータには、項目ごとに前記判定処理での判定対象か否かの設定が付される場合があり、前記アプリケーションプログラムから渡される前記印刷設定には、前記プリセットデータを含めることが可能であり、
前記判定処理では、前記アプリケーションプログラムから前記プリセットデータが渡された場合、前記プリセットデータに付された設定に基づいて、項目ごとに整合するか否かを判定する、
ように構成されるプログラム。 In the program according to claim 1,
The information processing device may store preset data in which the plurality of items are associated with respect to the information on the paper, and the preset data includes information on whether or not each item is a target of determination in the determination process. settings may be attached, and the print settings passed from the application program may include the preset data;
In the determination process, when the preset data is passed from the application program, it is determined whether or not each item matches based on settings attached to the preset data.
A program configured as follows.
前記プリンタは、ラベルプリンタであり、
前記用紙の情報には、ラベルの特性に関する情報が含まれ、
前記判定処理では、
前記第1用紙情報に含まれるラベルの特性に関する情報と、前記第2用紙情報に含まれるラベルの特性に関する情報と、が整合するか否かを判定する、
ように構成されるプログラム。 The program according to any one of claims 1 to 8,
The printer is a label printer,
The paper information includes information regarding label characteristics;
In the determination process,
determining whether information regarding the characteristics of the label included in the first paper information and information regarding the characteristics of the label included in the second paper information match;
A program configured as follows.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022118676A JP2024016507A (en) | 2022-07-26 | 2022-07-26 | program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022118676A JP2024016507A (en) | 2022-07-26 | 2022-07-26 | program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2024016507A true JP2024016507A (en) | 2024-02-07 |
Family
ID=89806278
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2022118676A Pending JP2024016507A (en) | 2022-07-26 | 2022-07-26 | program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2024016507A (en) |
-
2022
- 2022-07-26 JP JP2022118676A patent/JP2024016507A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4416801B2 (en) | Information processing apparatus and information processing method | |
JP2005070859A (en) | Data processor, printing device, print control method, computer readable storage medium with program stored thereon and its program | |
US8736870B2 (en) | Print control apparatus and method | |
US8760695B2 (en) | Image processing apparatus, image processing method, and computer readable medium | |
US20150254541A1 (en) | Print instruction apparatus, printing system, print instruction method, and non-transitory computer readable medium | |
JP2020030514A (en) | Print instructing device, printing system and program | |
US11650776B2 (en) | Non-transitory computer-readable recording medium, and printing system | |
US8405872B2 (en) | Method and apparatus for printing on custom media using an image production device | |
US20160269593A1 (en) | Document production system having automatic adjustment of content to fit the page margin of a pre-printed media | |
JP2024016507A (en) | program | |
JP4915330B2 (en) | Printing control device, printing device, and program | |
JP2024016506A (en) | program | |
JP2005088364A (en) | Printer | |
US11300916B2 (en) | Printing apparatus and method for controlling printing apparatus | |
JP2006302262A (en) | Print system, print controller, and printer driver | |
JP7234647B2 (en) | Program and Information Processing Equipment | |
US11244215B2 (en) | Methods and systems for printing a document having pages with different margins | |
US20230333790A1 (en) | Non-transitory computer-readable recording medium | |
WO2022138317A1 (en) | Support program | |
JP7354655B2 (en) | Programs and information processing equipment | |
JP7192516B2 (en) | Program and Information Processing Equipment | |
US10887481B2 (en) | Image forming apparatus and non-transitory computer readable medium storing program | |
US20240073342A1 (en) | Computer-readable storage medium and method for displaying information about sheet characteristics | |
JP2024076758A (en) | Label printer environment setting device, environment setting program, and environment setting method | |
JP6950324B2 (en) | Printing equipment and printing method |