JP2024016507A - program - Google Patents

program Download PDF

Info

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
print
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
Application number
JP2022118676A
Other languages
Japanese (ja)
Inventor
孝志 西崎
Takashi Nishizaki
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2022118676A priority Critical patent/JP2024016507A/en
Publication of JP2024016507A publication Critical patent/JP2024016507A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a technique for allowing a user of an external device to easily use a printer on which sheet information can be designated, when a print job is submitted from the external device to the printer.
SOLUTION: According to a printer driver 23, a PC 1 is configured to: acquire, when receiving a print instruction from an editing application 22 and receiving image data and print settings including sheet information, sheet information designated for a label printer 3 from the label printer 3; determine whether or not the acquired sheet information is coincident with the sheet information received from the editing application 22; and transmits, when the coincidence is determined, a print command to perform printing based on the image data received from the editing application 22 to the label printer 3. The sheet information includes multiple items each capable of being set as to whether or not the item is set as a determination object. The PC 1 determines whether or not the items set as the determination object are coincident, and does not determine whether or not the items not set as the determination object are coincident.
SELECTED DRAWING: Figure 4
COPYRIGHT: (C)2024,JPO&INPIT

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 Patent Document 1, the size of paper fed from a paper feeding device is detected, and if the detected paper size matches the paper size specified in the input print job, the matching paper size is A configuration is disclosed in which the size is set to the paper size of the paper feeder, and if they do not match, the paper size of the paper feeder is set to "unknown." Furthermore, Patent Document 1 also discloses a configuration that notifies an error when the paper sizes do not match.

特開2002-19212号公報Japanese Patent Application Publication No. 2002-19212

用紙の情報を指定可能なプリンタを外部デバイスから利用する場合にも、外部デバイスにおいて、印刷ジョブに指定される用紙の情報、すなわち外部デバイスにて指定された用紙の情報と、プリンタ本体に指定された用紙の情報と、が整合するか否かを判断し、整合することを条件として印刷ジョブをプリンタに渡すことで、プリンタ本体では、指定された用紙の情報に基づく印刷が担保された状態にできる。しかしながら、ユーザによっては厳密に用紙の情報が一致しなくても類似の用紙への印刷を許容する場合がある。そのような場合にも一律に印刷ジョブの投入を制限してしまうと、使い勝手が悪くなる。 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.

実施の形態にかかる印刷システムの概略構成図である。1 is a schematic configuration diagram of a printing system according to an embodiment. 用紙登録画面の例を示す説明図である。FIG. 3 is an explanatory diagram showing an example of a paper registration screen. 用紙情報DBの例を示す説明図である。FIG. 3 is an explanatory diagram showing an example of a paper information DB. 印刷システムでの印刷手順を示すシーケンス図である。FIG. 2 is a sequence diagram showing a printing procedure in the printing system. 印刷設定画面の例を示す説明図である。FIG. 3 is an explanatory diagram showing an example of a print setting screen. 整合判定処理の手順を示すフローチャートである。3 is a flowchart showing a procedure for matching determination processing. 自動的に決定される判定項目の例を示す説明図である。FIG. 3 is an explanatory diagram showing an example of automatically determined determination items. 不整合処理の手順を示すフローチャートである。3 is a flowchart illustrating a procedure of inconsistency processing. 通知メッセージの例を示す説明図である。It is an explanatory diagram showing an example of a notification message. 印刷設定画面の例を示す説明図である。FIG. 3 is an explanatory diagram showing an example of a print setting screen.

以下、プログラムを具体化した実施の形態について、添付図面を参照しつつ詳細に説明する。本明細書では、ラベルプリンタに接続可能なパーソナルコンピュータ(以下、「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 printing system 100 of this embodiment includes a PC 1 and a label printer 3, as shown in FIG. PC1 is an example of an information processing device. The label printer 3 is an example of a printer.

PC1は、図1に示すように、CPU11と、メモリ12と、を含むコントローラ10を備えている。CPU11は、コンピュータの一例である。また、PC1は、ユーザインタフェース(以下、「ユーザIF」とする)13と、通信インタフェース(以下、「通信IF」とする)14と、を備え、これらがコントローラ10に電気的に接続されている。なお、図1中のコントローラ10は、PC1の制御に利用されるハードウェアやソフトウェアを纏めた総称であって、実際にPC1に存在する単一のハードウェアを表すとは限らない。 The PC 1 includes a controller 10 including a CPU 11 and a memory 12, as shown in FIG. The CPU 11 is an example of a computer. The PC 1 also includes a user interface (hereinafter referred to as “user IF”) 13 and a communication interface (hereinafter referred to as “communication IF”) 14, which are electrically connected to the controller 10. . Note that the controller 10 in FIG. 1 is a general term for hardware and software used to control the PC 1, and does not necessarily represent a single piece of hardware that actually exists in the PC 1.

CPU11は、メモリ12から読み出したプログラムに従って、また、ユーザの操作に基づいて、各種の処理を実行する。メモリ12には、各種のプログラムや各種のデータが記憶されている。メモリ12は、各種の処理が実行される際の作業領域としても利用される。CPU11が備えるバッファも、メモリの一例である。なお、メモリ12の一例は、PC1に内蔵されるROM、RAM、HDD等に限らず、CPU11が読み取り可能かつ書き込み可能なストレージ媒体、例えば、CD-ROM、DVD-ROM等の記録媒体であっても良い。 The CPU 11 executes various processes according to programs read from the memory 12 and based on user operations. The memory 12 stores various programs and various data. The memory 12 is also used as a work area when various processes are executed. The buffer included in the CPU 11 is also an example of memory. Note that an example of the memory 12 is not limited to a ROM, RAM, HDD, etc. built into the PC 1, but also a storage medium readable and writable by the CPU 11, such as a recording medium such as a CD-ROM or a DVD-ROM. Also good.

ユーザIF13は、ユーザに情報を報知するための画面を表示するハードウェアと、ユーザによる操作を受け付けるハードウェアと、を含む。なお、ユーザIF13は、情報を表示可能なディスプレイと、入力受付機能を有するマウスやキーボード等と、の組み合わせであっても良いし、表示機能と入力受付機能とを備えるタッチパネルを含んでも良い。 The user IF 13 includes hardware that displays a screen for notifying the user of information and hardware that accepts operations by the user. Note that the user IF 13 may be a combination of a display capable of displaying information and a mouse, keyboard, or the like that has an input reception function, or may include a touch panel that has a display function and an input reception function.

通信IF14は、ラベルプリンタ3等の外部装置と通信を行うためのハードウェアを含む。通信IF14の通信規格は、イーサネット(登録商標)、Wi-Fi(登録商標)、USBなどである。PC1は、複数の通信規格に対応する複数の通信IF14を備えていてもよい。 The communication IF 14 includes hardware for communicating with external devices such as the label printer 3. The communication standard of the communication IF 14 is Ethernet (registered trademark), Wi-Fi (registered trademark), USB, etc. The PC 1 may include multiple communication IFs 14 that support multiple communication standards.

PC1のメモリ12には、オペレーティングシステム(以下、「OS」とする)21と、編集アプリケーションプログラム(以下、「編集アプリ」とする)22と、プリンタドライバ23と、用紙情報データベース(以下、「用紙情報DB」とする)25と、登録ツール26と、が記憶されている。編集アプリ22は、情報処理装置にインストールされたアプリケーションプログラムの一例であり、プリンタドライバ23は、プログラムの一例である。OS21は、例えば、Windows(登録商標)、macOS(登録商標)、Linux(登録商標)、iOS(登録商標)、Android(登録商標)である。 The memory 12 of the PC 1 includes an operating system (hereinafter referred to as "OS") 21, an editing application program (hereinafter referred to as "editing application") 22, a printer driver 23, and a paper information database (hereinafter referred to as "paper An information DB) 25 and a registration tool 26 are stored. The editing application 22 is an example of an application program installed in the information processing device, and the printer driver 23 is an example of the program. The OS 21 is, for example, Windows (registered trademark), macOS (registered trademark), Linux (registered trademark), iOS (registered trademark), or Android (registered trademark).

編集アプリ22は、例えば、印刷対象となる画像や文書の作成や編集、印刷、保存等の指示を受け付けるプログラムである。編集アプリ22は、例えば、マイクロソフト(登録商標)製のワードやパワーポイントなどであっても良いし、ラベルプリンタ3のベンダから提供されるアプリであっても良い。本形態の編集アプリ22は、ユーザIF13を介して、ラベルの印刷に関するユーザの指示、例えば、印刷対象の画像データの指定、印刷設定の編集指示、印刷実行の指示、を受け付け可能である。 The editing application 22 is, for example, a program that accepts instructions for creating, editing, printing, saving, etc. images and documents to be printed. The editing application 22 may be, for example, Word or PowerPoint manufactured by Microsoft (registered trademark), or may be an application provided by the vendor of the label printer 3. The editing application 22 of this embodiment is capable of accepting user instructions regarding label printing, such as designation of image data to be printed, instruction to edit print settings, and instruction to execute printing, via the user IF 13.

プリンタドライバ23は、ラベルプリンタ3に対応するプログラムであり、ラベルプリンタ3と通信を行って、ラベルプリンタ3を制御する機能を有する。プリンタドライバ23は、例えば、編集アプリ22等にてラベルプリンタ3での印刷実行の指示を受け付けた場合に、印刷対象として指定されている画像データに基づいて印刷データを生成する。編集アプリ22等からプリンタドライバ23に渡される印刷指示には、画像データと印刷設定とが含まれ、印刷設定には、印刷対象の用紙の情報が含まれる。 The printer driver 23 is a program corresponding to the label printer 3 and has a function of communicating with the label printer 3 and controlling the label printer 3. For example, when the printer driver 23 receives an instruction to execute printing on the label printer 3 using the editing application 22 or the like, the printer driver 23 generates print data based on the image data specified as the print target. The print instruction passed from the editing application 22 or the like to the printer driver 23 includes image data and print settings, and the print settings include information about the paper to be printed.

用紙情報DB25は、ラベルプリンタ3にて印刷媒体として使用される各種の用紙についての用紙の情報を、記憶するデータベースである。ラベルプリンタ3にて使用される印刷媒体はラベルであり、用紙の情報には、ラベルのサイズや形状などのラベルの特性に関する情報が含まれる。用紙の情報には複数の項目が含まれ、これらの項目の情報が1つのプリセットデータとして用紙情報DB25に記憶される。 The paper information DB 25 is a database that stores paper information regarding various types of paper used as print media in the label printer 3. The print medium used in the label printer 3 is a label, and the paper information includes information regarding label characteristics such as the size and shape of the label. The paper information includes a plurality of items, and the information on these items is stored in the paper information DB 25 as one piece of preset data.

登録ツール26は、ユーザによるプリセットデータの登録指示を受け付け、受け付けたプリセットデータを用紙情報DB25に記憶するプログラムである。登録ツール26は、例えば、図2に示すような登録画面250をユーザIF13に表示させ、ユーザの入力を受け付ける。登録画面250には、例えば、用紙名欄251と、用紙種選択欄252と、用紙サイズ選択欄253と、が含まれる。用紙名欄251は、用紙名の入力を受け付ける欄である。 The registration tool 26 is a program that accepts a user's instruction to register preset data and stores the accepted preset data in the paper information DB 25. The registration tool 26 causes the user IF 13 to display a registration screen 250 as shown in FIG. 2, for example, and receives user input. The registration screen 250 includes, for example, a paper name field 251, a paper type selection field 252, and a paper size selection field 253. The paper name column 251 is a column that accepts input of a paper name.

用紙種選択欄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 label printer 3 of this embodiment can accommodate roll paper, which is label paper wound into a roll, and when the roll paper is accommodated, the roll paper is used as a printing medium. Further, the label printer 3 can use fanfold paper, which is folded label paper, as a printing medium. Roll paper and fanfold paper are both print media in which label paper is superimposed on a continuous strip of release paper. Release paper information is information indicating whether the paper is roll paper or fanfold paper. The shape information may be, for example, a continuous long label with an indefinite length, a die-cut label that is cut into a predetermined shape, or a mark label that has predetermined marks attached at predetermined intervals. This is information indicating. Note that the release paper information and the shape information may be information that can be set individually.

用紙サイズ選択欄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 label printer 3, and the length is the size of the label in the paper transport direction. Note that the width is information that indicates the width of the label itself regardless of the shape of the label, while the length can be freely selected if it is an indefinite length label, and if it is a die-cut label or a mark label, Determined according to the shape of the label.

用紙種選択欄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 registration tool 26 may be able to accept information on correction values for obtaining good printed matter according to the paper quality. Further, the label printer 3 is equipped with a plurality of sensors in order to appropriately convey die-cut labels and marked labels, and the registration tool 26 may be able to receive information regarding the settings of each sensor. When the registration tool 26 receives correction values and sensor information, it can incorporate the received information into the information on the paper.

紙質に関する補正値としては、例えば、搬送誤差を補正するための搬送調節量、インクの滲みやすさを補正するためのドット削り量、ラベル紙に吐出したインクの乾きやすさに基づく印刷保証速度、適切な印刷濃度が得られるための印刷濃度調整値、が含まれる。センサの設定に関する情報としては、例えば、使用するセンサの選択、各センサの検出レベルに関する補正値、が含まれる。 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 registration tool 26 may have a correction value set that is a combination of correction value information for a plurality of items in association with paper quality information. In this case, the registration tool 26 may accept the selection of paper quality and incorporate a correction value set corresponding to the selected paper quality into the information about the paper, as shown in FIG. 2, for example.

登録ツール26は、登録画面250中のOKボタンへの操作等により登録指示を受け付けた場合、表示中の用紙の情報を用紙情報DB25に記憶する。例えば、図2に示す「用紙A」の情報の登録指示を受け付けることで、図3に示すように用紙情報DB25に「用紙A」の用紙名に関連付けられた用紙の情報が、1つのプリセットデータとして記憶される。 When the registration tool 26 receives a registration instruction by operating the OK button on the registration screen 250, etc., the registration tool 26 stores information about the sheet being displayed in the sheet information DB 25. For example, by accepting an instruction to register the information of "Paper A" shown in FIG. 2, the paper information associated with the paper name "Paper A" is stored in the paper information DB 25 as one preset data as shown in FIG. is stored as.

用紙情報DB25に記憶される各プリセットデータは、例えば、図3に示すように、用紙名と、用紙種類と、幅と、長さと、を含む複数の項目の情報を含む。用紙名は、用紙情報DB25に記憶される各プリセットデータを識別する識別情報の一例である。 Each preset data stored in the paper information DB 25 includes information on a plurality of items including a paper name, paper type, width, and length, as shown in FIG. 3, for example. The paper name is an example of identification information that identifies each preset data stored in the paper information DB 25.

本形態のラベルプリンタ3は、少なくとも印刷機能と通信機能とを有し、例えば、インクジェット方式でのモノクロ印刷によって、ラベル紙への印刷が可能なプリンタである。ラベルプリンタ3は、図1に示したように、用紙情報テーブル31と、操作パネル32と、指定用紙情報33と、を備えている。操作パネル32は、例えば、タッチパネルを含み、ユーザに情報を報知するための画面を表示するハードウェアと、ユーザによる操作を受け付けるハードウェアと、を含む。 The label printer 3 of this embodiment is a printer that has at least a printing function and a communication function, and is capable of printing on label paper by monochrome printing using an inkjet method, for example. As shown in FIG. 1, the label printer 3 includes a paper information table 31, an operation panel 32, and designated paper information 33. The operation panel 32 includes, for example, a touch panel, hardware that displays a screen for notifying the user of information, and hardware that accepts operations by the user.

用紙情報テーブル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 label printer 3. For example, the PC 1 can send the preset data registered in the paper information DB 25 to the label printer 3 and instruct the label printer 3 to store it in the paper information table 31. Thereby, the label printer 3 can register preset data common to the paper information DB 25 in the paper information table 31. Note that the label printer 3 may be able to accept input of paper information via the operation panel 32 and store it in the paper information table 31. Further, the paper information stored in the paper information table 31 may have the same content as the preset data in the paper information DB 25, or may be part of the preset data in the paper information DB 25.

指定用紙情報33は、ラベルプリンタ3に指定されている1種類の用紙の情報であり、プリンタ本体に指定されている用紙の情報の一例である。本形態のラベルプリンタ3は、例えば、用紙がセットされてカバーが閉止された場合に、操作パネル32を介して、セットされた用紙の情報に関するユーザの指定を受け付ける。ユーザは、例えば、用紙情報テーブル31に記憶されている複数の用紙の情報のうち、セットした用紙を示す用紙名を選択して指定することができる。ラベルプリンタ3は、ユーザによって指定された用紙の情報を指定用紙情報33として記憶する。なお、ラベルプリンタ3は、カバーが閉止された場合以外にも、任意のタイミングでのユーザの指示によって、用紙の指定を受け付け可能である。 The designated paper information 33 is information about one type of paper designated for the label printer 3, and is an example of information about the paper designated for the printer body. For example, when paper is set and the cover is closed, the label printer 3 of this embodiment accepts a user's designation regarding information about the set paper via the operation panel 32. For example, the user can select and specify a paper name indicating the set paper from among the plurality of paper information stored in the paper information table 31. The label printer 3 stores information about the paper designated by the user as designated paper information 33. It should be noted that the label printer 3 can accept a paper designation based on a user's instruction at any timing other than when the cover is closed.

ラベルプリンタ3は、複数のセンサを備えており、新たな用紙がセットされた場合、セットされた用紙をセンサの位置まで搬送して検出することで、セットされた用紙の情報の一部を特定できる。本形態のラベルプリンタ3は、操作パネル32を介して受け付けた用紙の情報と、センサの検出値に基づく用紙の情報と、を比較し、それらが不一致であると判断した場合にはエラーを報知して、受け付けた情報を指定用紙情報33に記憶しない。つまり、指定用紙情報33は、少なくとも、センサによる検出結果と矛盾しないとラベルプリンタ3にて判断された用紙の情報である。 The label printer 3 is equipped with multiple sensors, and when new paper is set, the set paper is conveyed to the sensor position and detected, thereby identifying part of the information on the set paper. can. The label printer 3 of this embodiment compares the paper information received via the operation panel 32 and the paper information based on the sensor detection value, and notifies an error if it is determined that they do not match. Then, the received information is not stored in the designated paper information 33. In other words, the designated paper information 33 is at least information about paper that is determined by the label printer 3 to be consistent with the detection result by the sensor.

続いて、印刷システム100での印刷手順について、図4のシーケンス図を参照して説明する。なお、以下に説明する各プログラムの手順や処理ステップは、基本的に、各プログラムに記述された命令に従ったCPU11の処理を示す。すなわち、以下の説明における「判断」、「抽出」、「選択」、「決定」、「取得」、「受付」等の処理は、CPU11の処理を表している。CPU11による処理は、OSのAPIを用いたハードウェア制御も含む。本明細書では、OSの記載を省略して各プログラムの動作を説明する。また、「取得」は要求を必須とはしない概念で用いる。 Next, the printing procedure in the printing system 100 will be explained with reference to the sequence diagram of FIG. 4. Note that the procedures and processing steps of each program described below basically indicate processing by the CPU 11 according to instructions written in each program. That is, processes such as "judgment", "extraction", "selection", "determination", "acquisition", and "reception" in the following description represent the processing of the CPU 11. The processing by the CPU 11 also includes hardware control using the OS API. In this specification, the operation of each program will be explained without describing the OS. Furthermore, "acquisition" is used as a concept that does not require a request.

本形態の印刷システム100では、ユーザは、ラベルの作成を行う場合、PC1にて編集アプリ22を利用する。つまり、ユーザの操作によって、編集アプリ22が起動される(A01)。編集アプリ22は、印刷対象の画像を編集するための編集画面を、ユーザIF13に表示させ(A02)、ユーザによる各種の指示を受け付ける。ユーザは、例えば、編集画面にて印刷対象の画像の編集を行うことができる(A03)。 In the printing system 100 of this embodiment, the user uses the editing application 22 on the PC 1 when creating a label. That is, the editing application 22 is activated by the user's operation (A01). The editing application 22 causes the user IF 13 to display an editing screen for editing the image to be printed (A02), and receives various instructions from the user. For example, the user can edit the image to be printed on the editing screen (A03).

編集アプリ22は、A02にて表示させた編集画面にて、印刷設定の指示や印刷実行の指示を受け付け可能である。編集アプリ22は、ユーザによる印刷設定の指示を受け付ける(A11)と、プリンタドライバ23を起動する(A12)。プリンタドライバ23は、印刷設定画面をユーザIF13に表示させ(A13)、ユーザによる設定指示を受け付ける。印刷設定画面は、設定画面の一例であり、A13は、手動設定処理の一例である。プリンタドライバ23は、表示させた印刷設定画面にて、印刷用紙の指定を含む印刷設定の指示を受け付け可能である。 The editing application 22 can receive instructions for print settings and instructions for executing printing on the editing screen displayed at A02. When the editing application 22 receives a print setting instruction from the user (A11), the editing application 22 starts the printer driver 23 (A12). The printer driver 23 displays a print setting screen on the user IF 13 (A13) and receives setting instructions from the user. The print setting screen is an example of a setting screen, and A13 is an example of manual setting processing. The printer driver 23 can accept print setting instructions including specification of printing paper on the displayed print setting screen.

例えば、図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 printer driver 23 receives an instruction to select a paper name in the paper name selection column 51, it reads the paper information DB 25, obtains a list of paper names for each registered preset data, and sends the list to the user IF 13. Display the list of results.

図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 paper information DB 25 shown in FIG. This is preset data stored in association with. The printer driver 23 reads preset data associated with the paper name selected in the paper name selection column 51 from the paper information DB 25, and displays the print setting screen 50 using the read information as an initial value.

印刷設定画面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 printer driver 23 may be able to accept a new paper registration instruction on the print setting screen 50. Further, the printer driver 23 may clear the paper name when the information read from the paper information DB 25 has been changed.

用紙不一致チェック項目欄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 printer driver 23 displays a print setting screen 50 including a paper mismatch check item field 56 in which, for example, paper type, width, and length are selected as determination targets. By accepting selections of items to be determined on the print setting screen 50, it is possible to select whether or not to be determined for each print job.

ユーザは、表示中の印刷設定画面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 printer driver 23 passes information on the determined print settings to the editing application 22 (A15). The editing application 22 reflects and displays the received print setting information on the editing screen displayed at A02. The editing application 22 changes the shape of the editing area of the image to be printed, for example, in accordance with the paper information included in the print settings.

編集アプリ22は、表示中の編集画面にて、ユーザによる印刷実行の指示を受け付けると(A17)、印刷対象の画像データと印刷設定の情報とを含む印刷指示の情報をプリンタドライバ23に渡す(A18)。編集アプリ22から渡される印刷設定の情報は、用紙の情報を含む。A18にて受け取る情報に含まれる用紙の情報は、第2用紙情報の一例である。 When the editing application 22 receives an instruction to execute printing from the user on the currently displayed editing screen (A17), the editing application 22 passes information on the printing instruction including image data to be printed and print setting information to the printer driver 23 ( A18). The print setting information passed from the editing application 22 includes paper information. The paper information included in the information received in A18 is an example of second paper information.

プリンタドライバ23は、印刷指示の情報を受け付けると、ラベルプリンタ3から用紙の情報を取得する(A21)。A21は、取得処理の一例である。具体的には、プリンタドライバ23は、ラベルプリンタ3にて指定されている指定用紙情報33を要求し、ラベルプリンタ3は、プリンタドライバ23の要求に応じて、指定用紙情報33を送信する。A21にて取得される用紙の情報は、第1用紙情報の一例である。なお、前述したように、指定用紙情報33は、センサによる用紙の検出結果と矛盾しない情報である。 Upon receiving the print instruction information, the printer driver 23 acquires paper information from the label printer 3 (A21). A21 is an example of acquisition processing. Specifically, the printer driver 23 requests designated paper information 33 specified by the label printer 3, and the label printer 3 transmits the designated paper information 33 in response to the request from the printer driver 23. The paper information acquired in A21 is an example of first paper information. Note that, as described above, the designated paper information 33 is information that does not contradict the paper detection result by the sensor.

次に、プリンタドライバ23は、整合判定処理を実行する(A22)。整合判定処理は、A18にて編集アプリ22から受け取った印刷設定に含まれる用紙の情報と、A21にてラベルプリンタ3から受信した用紙の情報と、が整合するか否かを判定する処理である。整合判定処理は、プリンタドライバ23の記載に基づいて、PC1のCPU11にて実行される。整合判定処理の手順について、図6のフローチャートを参照して説明する。 Next, the printer driver 23 executes matching determination processing (A22). The consistency determination process is a process for determining whether or not the paper information included in the print settings received from the editing application 22 in A18 matches the paper information received from the label printer 3 in A21. . The consistency determination process is executed by the CPU 11 of the PC 1 based on the description of the printer driver 23. The procedure for matching determination processing will be explained with reference to the flowchart of FIG.

CPU11は、まず、印刷設定の用紙種類と、ラベルプリンタ3から取得した用紙種類と、が一致しているか否かを判断する(S101)。用紙種類は、剥離紙情報と形状情報とを組み合わせた情報であり、必須の判定項目である。用紙種類が一致していないと判断した場合(S101:NO)、CPU11は、不整合であると判定して(S102)、整合判定処理を終了する。プリンタドライバ23にて指定されている用紙種類の用紙が、ラベルプリンタ3にセットされていない場合、そのままの状態で印刷を実行すると適切な印刷結果とならない可能性が高い。 The CPU 11 first determines whether the paper type in the print settings matches the paper type acquired from the label printer 3 (S101). The paper type is information that combines release paper information and shape information, and is an essential determination item. If it is determined that the paper types do not match (S101: NO), the CPU 11 determines that there is a mismatch (S102), and ends the matching determination process. If paper of the paper type specified by the printer driver 23 is not set in the label printer 3, if printing is performed in that state, there is a high possibility that an appropriate print result will not be obtained.

なお、CPU11は、必須の判定項目として、用紙種類のみでなく、幅の整合も確認しても良い。例えば、印刷設定の用紙の幅が、ラベルプリンタ3から取得した用紙の幅よりも大きい場合、CPU11は、不整合であると判定しても良い。 Note that the CPU 11 may check not only the paper type but also width matching as an essential determination item. For example, if the width of the paper in the print settings is larger than the width of the paper obtained from the label printer 3, the CPU 11 may determine that there is a mismatch.

用紙種類が一致していると判断した場合(S101:YES)、CPU11は、整合の判定に用いる判定対象の項目を決定する(S111)。用紙の情報には、用紙種類の他にも複数の項目の情報が含まれ、それらの項目の中には、完全には整合していなくても印刷可能な項目もある。判定対象の項目を多くすると、詳細な判定が可能となる一方、ユーザにとっては違いを許容可能な項目についても判定され、その結果、不整合と判定されることになる。一方で、判定対象の項目を少なくすると、些細な違いは容認される一方、その用紙に最適な印刷とならない可能性がある。 If it is determined that the paper types match (S101: YES), the CPU 11 determines an item to be determined for use in determining matching (S111). The paper information includes information on a plurality of items in addition to the paper type, and some of these items may be printable even if they are not completely consistent. When the number of items to be determined is increased, detailed determination becomes possible, but items whose differences are acceptable to the user are also determined, and as a result, they are determined to be inconsistent. On the other hand, if the number of items to be determined is reduced, minor differences may be accepted, but printing may not be optimal for the paper.

本形態のプリンタドライバ23は、前述した印刷設定画面50にて判定対象の項目の選択を受け付けるだけでなく、所定の条件を満たした場合、その条件に対応する所定の項目を、自動的に、判定対象の項目である判定項目とする。プリンタドライバ23は、例えば、図7に示すように、判定項目を決定するための所定の条件を複数備えている。 The printer driver 23 of this embodiment not only accepts the selection of items to be determined on the print setting screen 50 described above, but also automatically selects a predetermined item corresponding to the condition when a predetermined condition is met. The judgment item is the item to be judged. For example, as shown in FIG. 7, the printer driver 23 includes a plurality of predetermined conditions for determining determination items.

プリンタドライバ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 editing application 22 is larger than a predetermined number of copies threshold, the printer driver 23 automatically selects all items that can be subject to determination in S111. be subject to judgment. For example, if the number of copies is set to 100 or more, the printer driver 23 determines all items as determination items even if they are not selected as determination target items on the print setting screen 50. All items in this case are an example of specific items. S111, in which a specific item is automatically set as a determination target when the number of copies is large, is an example of the first automatic setting process.

不適切な印刷設定で多部数の印刷が行われると、低品質の印刷物が大量に作成される可能性があり、損害が大きくなる可能性が高い。プリンタドライバ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 printer driver 23 automatically increases the number of determination items even if the items are not selected as determination targets on the print setting screen 50, which may result in a large number of inappropriate prints. It can reduce sex.

なお、プリンタドライバ23は、印刷設定の部数が多く、全項目を判定項目とした後に、ユーザによる判定項目の変更指示を受け付け可能であっても良い。プリンタドライバ23は、例えば、印刷指示を受け付けた後であって、印刷コマンドをラベルプリンタ3に送信する前に、判定対象とできる項目の一覧をユーザIF13に表示させ、ユーザによる選択を受け付けても良い。ただし、ユーザが誤った設定とした場合に不適切な印刷となるリスクも高まることから、部数の多い印刷指示を受け付けたことに応じて自動的に全項目を判定項目とすれば、そのリスクを軽減することができる。 Note that the printer driver 23 may have a large number of copies of print settings, and may be able to accept an instruction from the user to change the determination items after all items are set as determination items. For example, after receiving the print instruction and before sending the print command to the label printer 3, the printer driver 23 displays a list of items that can be determined on the user IF 13 and accepts the selection by the user. good. However, if the user makes incorrect settings, the risk of inappropriate printing increases, so if all items are automatically set as judgment items in response to receiving a print instruction with a large number of copies, this risk can be reduced. It can be reduced.

また、プリンタドライバ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 printer driver 23 automatically sets the item corresponding to the paper type as the determination item. When a specific paper type is set as the paper type, S111 in which the corresponding item is used as the determination item is an example of the second automatic setting process. For example, when die-cut labels are selected as the paper type, the printer driver 23 automatically determines the distance between labels as a determination item. The die-cut label in this case is an example of a specific paper type, and the distance between labels is an example of a corresponding item. Furthermore, for example, when mark label is selected as the paper type, the printer driver 23 automatically determines the offset and mark width as determination items. In this case, the mark label is an example of a specific paper type, and the offset and mark width are examples of corresponding items.

特定の用紙種のみに対応する対応項目については、その特定の用紙種が設定されている場合に判定対象とした方が好ましい。プリンタドライバ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 printer driver 23 automatically determines the corresponding item corresponding to the selected paper type as a determination item even if it is not selected as a determination target item on the print setting screen 50, so the user can specify it individually. You can save time and effort.

また、プリンタドライバ23は、図4のA21にてラベルプリンタ3から取得した用紙の情報が特定の用紙を示す情報である場合、S111にて、特定の用紙に対応する項目を、自動的に判定対象とする。この場合のS111は、第3自動設定処理の一例である。例えば、ラベルプリンタ3に設定されている用紙の情報が、耐候性の大きい用紙や強接着性を有する用紙等、高価な用紙を示す情報である場合、プリンタドライバ23は、全項目を判定項目とする。この例では、高価な用紙である条件は、特定条件の一例であり、全項目は、特定条件に対応する項目の一例である。 Further, if the paper information acquired from the label printer 3 in A21 of FIG. 4 is information indicating a specific paper, the printer driver 23 automatically determines the item corresponding to the specific paper in S111. set to target. S111 in this case is an example of the third automatic setting process. For example, if the paper information set in the label printer 3 is information indicating expensive paper, such as paper with high weather resistance or paper with strong adhesive properties, the printer driver 23 sets all items as judgment items. do. In this example, the condition that paper is expensive is an example of a specific condition, and the all items are examples of items that correspond to the specific condition.

また、例えば、ラベルプリンタ3に設定されている用紙の情報が、特殊な紙質を示す情報である場合、プリンタドライバ23は、紙質に関する補正値を判定項目とする。例えば、ラベルプリンタ3に設定されている用紙の情報が、その特殊な表面材質を有する用紙や表面加工が施されている用紙である場合、プリンタドライバ23は、紙質に関する補正値を判定項目とする。この例では、特殊な紙質である条件は、特定条件の一例であり、紙質に関する補正値の各項目は、特定条件に対応する項目の一例である。また、例えば、ラベルプリンタ3に設定されている用紙の情報が、紙厚が所定の範囲外である用紙を示す情報である場合、プリンタドライバ23は、センサに関する設定値を判定項目としても良い。この例では、紙厚が所定の範囲外である条件は、特定条件の一例であり、センサに関する設定値の各項目は、特定条件に対応する項目の一例である。 Further, for example, if the paper information set in the label printer 3 is information indicating a special paper quality, the printer driver 23 uses a correction value related to the paper quality as a determination item. For example, if the paper information set in the label printer 3 is paper with a special surface material or surface treatment, the printer driver 23 uses a correction value related to the paper quality as a determination item. . In this example, the condition of special paper quality is an example of a specific condition, and each item of the correction value regarding paper quality is an example of an item corresponding to the specific condition. Further, for example, if the paper information set in the label printer 3 is information indicating paper whose paper thickness is outside a predetermined range, the printer driver 23 may use the setting value regarding the sensor as the determination item. In this example, the condition that the paper thickness is outside the predetermined range is an example of a specific condition, and each item of setting values regarding the sensor is an example of an item that corresponds to the specific condition.

ラベルプリンタ3に指定された用紙の情報が特定条件を満たす場合に、その特定条件に対応する項目について判定対象とすれば、良好な印刷となる可能性が高い。本形態のプリンタドライバ23は、そのような項目を自動的に判定対象に設定するので、無駄な印刷を回避できる可能性が高まる。なお、用紙に関する特定条件の情報、および、その用紙に対応する判定項目の情報は、プリンタドライバ23が有していても良いし、用紙情報DB25や用紙情報テーブル31に記憶されていても良いし、これらとは別に記憶されていても良いし、ラベルプリンタ3から取得した情報に基づいてサーバ等に問い合わせて取得しても良い。 When the information on the paper specified for the label printer 3 satisfies a specific condition, if the item corresponding to the specific condition is targeted for determination, there is a high possibility that good printing will be achieved. Since the printer driver 23 of this embodiment automatically sets such items as determination targets, it is more likely that unnecessary printing can be avoided. Note that the information on the specific conditions regarding the paper and the information on the determination items corresponding to the paper may be included in the printer driver 23, or may be stored in the paper information DB 25 or the paper information table 31. , may be stored separately from these, or may be obtained by inquiring a server or the like based on information obtained from the label printer 3.

プリンタドライバ23は、図7に示す全ての条件について、判定項目の自動的な設定を行っても良いし、どの条件を採用するかについて、ユーザの設定を受け付け可能であっても良い。 The printer driver 23 may automatically set determination items for all the conditions shown in FIG. 7, or may be able to accept user settings regarding which conditions are to be adopted.

整合判定処理の説明に戻る。S111にて判定項目を決定した後、CPU11は、判定対象の項目ごとに、印刷設定に含まれる用紙の情報とラベルプリンタ3から受信した用紙の情報との整合を判定する(S112)。S112は、判定処理の一例である。そして、CPU11は、これらの情報が整合すると判定した否かを判断する(S113)。整合の判定は、完全一致であっても良いし、許容範囲があっても良い。 Returning to the description of the consistency determination process. After determining the determination items in S111, the CPU 11 determines whether the paper information included in the print settings matches the paper information received from the label printer 3 for each determination target item (S112). S112 is an example of determination processing. Then, the CPU 11 determines whether or not these pieces of information match (S113). The determination of matching may be a complete match or a permissible range.

整合しないと判定した場合(S113:NO)、CPU11は、S102に進み、不整合と判定して、整合判定処理を終了する。つまり、CPU11は、判定項目が他に有っても、残りの項目についての判定を行わない。判定項目のうち1つでも不整合であれば、設定されている用紙への印刷を行うことは好ましくないことから、それ以上の判定の処理は、不要である。 If it is determined that they do not match (S113: NO), the CPU 11 proceeds to S102, determines that there is a mismatch, and ends the match determination process. In other words, even if there are other determination items, the CPU 11 does not perform determination on the remaining items. If there is a mismatch in even one of the determination items, it is not preferable to print on the set paper, so further determination processing is unnecessary.

整合すると判定した場合(S113:YES)、CPU11は、判定項目が他にも有るか否かを判断する(S114)。有ると判断した場合(S114:YES)、CPU11は、S112に戻り、他の判定項目について整合を判定する。他に無いと判断した場合(S114:NO)、すなわち、決定した全ての判定項目について整合と判定した場合、CPU11は、この用紙の情報を整合と判定して(S115)、整合判定処理を終了する。 If it is determined that they match (S113: YES), the CPU 11 determines whether there are any other determination items (S114). If it is determined that there is a match (S114: YES), the CPU 11 returns to S112 and determines whether other determination items match. If it is determined that there is no other item (S114: NO), that is, if all the determined determination items are determined to be consistent, the CPU 11 determines that the information on this sheet is consistent (S115), and ends the consistency determination process. do.

図4の印刷手順の説明に戻る。プリンタドライバ23は、A22での整合判定処理にて整合と判定された場合(alt:[整合する])、A18にて編集アプリ22から受け取った画像データと印刷設定とに基づいて、印刷データを生成する(A31)。さらに、プリンタドライバ23は、生成した印刷データを印刷を指示する印刷コマンドとともに、ラベルプリンタ3に送信する(A32)。A32は、印刷送信処理の一例である。 Returning to the explanation of the printing procedure in FIG. 4. If the printer driver 23 determines that there is a match in the match determination process at A22 (alt: [match]), the printer driver 23 prints the print data based on the image data and print settings received from the editing application 22 at A18. Generate (A31). Further, the printer driver 23 transmits the generated print data to the label printer 3 along with a print command instructing printing (A32). A32 is an example of print transmission processing.

ラベルプリンタ3は、PC1から印刷コマンドを受信した場合、印刷データに基づいて、印刷を実行する(A33)。これにより、ラベルが作成される。少なくとも判定項目については、印刷設定の用紙情報とラベルプリンタ3に指定されている用紙の情報とが整合しているので、想定外の印刷品質のラベルが作成される可能性は小さい。 When the label printer 3 receives the print command from the PC 1, it executes printing based on the print data (A33). This creates a label. At least regarding the determination items, the paper information in the print settings matches the paper information specified in the label printer 3, so there is little possibility that a label with unexpected print quality will be created.

一方、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 printer driver 23 executes a mismatch process (A35). The mismatch process is a process for prompting the user to replace the paper set in the label printer 3 when the print settings and the settings on the label printer 3 do not match the paper information. The procedure of mismatch processing will be explained with reference to the flowchart of FIG. 8.

不整合処理では、CPU11は、ユーザIF13を介して、用紙の情報が不整合である旨の報知を行う(S201)。CPU11は、例えば、ラベルプリンタ3で指定されている用紙の用紙名、不整合であった項目名およびその項目の値、をユーザIF13に表示させても良い。ラベルプリンタ3で設定されている用紙の情報と印刷設定の用紙の情報とが整合しない場合に、PC1で報知することで、PC1のユーザがラベルプリンタ3での印刷ができないことを直ぐに把握できる。 In the mismatch process, the CPU 11 notifies the user that the paper information is mismatched via the user IF 13 (S201). For example, the CPU 11 may cause the user IF 13 to display the name of the paper specified by the label printer 3, the name of the mismatched item, and the value of the item. When the paper information set in the label printer 3 and the paper information in the print settings do not match, the user of the PC 1 can immediately understand that printing cannot be performed with the label printer 3 by notifying the PC 1.

次に、CPU11は、ラベルプリンタ3に通知させるための通知メッセージを作成する(S202)。CPU11は、ラベルプリンタ3の近くにいるユーザに通知するためのメッセージを、ラベルプリンタ3の操作パネル32にて表示可能な態様で作成する。ラベルプリンタ3に通知させる内容を、プリンタドライバ23で作成することで、ラベルプリンタ3に各種のメッセージを用意させる必要が無く、通知内容の自由度が高まる。プリンタドライバ23は、通知内容について、ユーザの指示を受け付け可能であっても良い。 Next, the CPU 11 creates a notification message to notify the label printer 3 (S202). The CPU 11 creates a message to notify a user near the label printer 3 in a form that can be displayed on the operation panel 32 of the label printer 3. By creating the content to be notified to the label printer 3 by the printer driver 23, there is no need to prepare various messages for the label printer 3, and the degree of freedom in the notification content is increased. The printer driver 23 may be able to accept instructions from the user regarding the content of the notification.

CPU11は、例えば、図9に示すように、ラベルプリンタ3にセットされている用紙の交換を促すメッセージ61と、交換先の用紙を示す情報62と、交換後の用紙情報の設定指示63と、を含む通知メッセージ60を作成する。 For example, as shown in FIG. 9, the CPU 11 sends a message 61 prompting the user to replace the paper set in the label printer 3, information 62 indicating the paper to be replaced, and an instruction 63 to set paper information after replacement. A notification message 60 containing the following information is created.

CPU11は、交換先の用紙を示す情報62として、パッケージの色や柄、ロール紙のロール径や芯径、等の用紙の特徴を記載したメッセージを含む案内文をあらかじめ有していても良い。その場合、CPU11は、あらかじめ有しているメッセージを情報62として組み込んだ通知メッセージ60を作成する。また、CPU11は、案内文を有していない用紙についての通知メッセージを作成する場合、印刷設定に含まれる用紙の情報の一部を含む通知メッセージを作成する。CPU11は、用紙の情報のうち、例えば、用紙種類、幅や長さ等のラベル紙の外見から分かる情報を含むメッセージを作成すると良い。 The CPU 11 may have in advance, as the information 62 indicating the paper to be replaced, a guide message including a message describing paper characteristics such as the color and pattern of the package, the roll diameter and core diameter of the roll paper. In that case, the CPU 11 creates a notification message 60 incorporating a pre-existing message as information 62. Further, when creating a notification message for a paper sheet that does not have a guide text, the CPU 11 creates a notification message that includes part of the paper information included in the print settings. The CPU 11 preferably creates a message that includes information about the paper, such as information that can be determined from the appearance of the label paper, such as paper type, width, and length.

また、CPU11は、交換後の用紙情報の設定指示63として、例えば、用紙情報テーブル31に記憶されているプリセットデータのうち、印刷設定に含まれる用紙の情報に対応する、プリセットデータの用紙名を含むメッセージを作成する。プリセットデータの用紙名をラベルプリンタ3に送信して通知させることで、ラベルプリンタ3の近くにいるユーザは、用紙をセットした後、その用紙名を用いて容易に用紙情報を設定できる。 Further, as the setting instruction 63 for paper information after replacement, the CPU 11 may, for example, specify the paper name of the preset data that corresponds to the paper information included in the print settings among the preset data stored in the paper information table 31. Create a message that includes By transmitting and notifying the paper name of the preset data to the label printer 3, a user near the label printer 3 can easily set paper information using the paper name after setting the paper.

CPU11は、S202にて作成した通知メッセージ60の情報と、通知メッセージ60を操作パネル32に表示させる指示と、を含む通知コマンドを、ラベルプリンタ3に送信する(S203)。通知コマンドを受信したラベルプリンタ3は、操作パネル32に通知メッセージ60を表示させる。これにより、ラベルプリンタ3の近くにいるユーザに、適切な用紙への交換を促すことができる。 The CPU 11 transmits a notification command including information on the notification message 60 created in S202 and an instruction to display the notification message 60 on the operation panel 32 to the label printer 3 (S203). The label printer 3 that has received the notification command displays a notification message 60 on the operation panel 32. Thereby, a user near the label printer 3 can be prompted to replace the paper with an appropriate one.

なお、ラベルプリンタ3が音声出力の機能を有している場合、CPU11は、S203にて、ラベルプリンタ3に音声での通知を行わせるコマンドをも送信しても良い。その場合、CPU11は、S202にて音声情報をも作成し、S203では作成した音声情報を通知コマンドとともにラベルプリンタ3に送信する。 Note that if the label printer 3 has a voice output function, the CPU 11 may also transmit a command to cause the label printer 3 to make a voice notification in S203. In that case, the CPU 11 also creates audio information in S202, and sends the created audio information to the label printer 3 together with the notification command in S203.

また、ラベルプリンタ3が操作パネル32への表示用の各種の表示情報を有していても良い。その場合、プリンタドライバ23は、通知メッセージ60を作成して送信する代わりに、表示情報を特定する特定情報をラベルプリンタ3に送信し、ラベルプリンタ3は、記憶している表示情報のうち、受信した特定情報に対応する表示情報を読み出して、操作パネル32に表示するとしても良い。 Further, the label printer 3 may have various display information for display on the operation panel 32. In that case, instead of creating and transmitting the notification message 60, the printer driver 23 transmits specific information specifying the display information to the label printer 3, and the label printer 3 receives the received display information from among the stored display information. Display information corresponding to the specified information may be read out and displayed on the operation panel 32.

通知コマンドの送信を実行後、CPU11は、用紙の情報の整合判定を再度実行するリトライを行うか否かを判断する(S205)。リトライするか否かの情報は、例えば、ユーザの指示によってあらかじめプリンタドライバ23に設定されていても良い。また、CPU11は、例えば、S201の報知の際に、リトライするか否かの指示を受け付けるボタンを表示させ、ユーザの指示を受け付けても良い。 After transmitting the notification command, the CPU 11 determines whether to perform a retry of determining whether the information on the paper is consistent (S205). Information as to whether or not to retry may be set in advance in the printer driver 23 according to a user's instruction, for example. Further, the CPU 11 may display a button for accepting an instruction as to whether or not to retry, for example, when notifying in S201, and may accept the user's instruction.

リトライすると判断した場合(S205:YES)、CPU11は、リトライを実行するタイミングであるか否かを判断する(S211)。ラベルプリンタ3にセットされている用紙の交換には、ある程度の時間が必要であることから、CPU11は、例えば、所定の時間間隔を空けて、定期的に用紙の情報の整合を判定するリトライを実行する。リトライの時間間隔は、固定時間であっても良いし、例えば、交換対象となる用紙の情報ごとに異なる可変時間であっても良い。 If it is determined that a retry is to be performed (S205: YES), the CPU 11 determines whether or not it is time to perform a retry (S211). Since it takes a certain amount of time to replace the paper set in the label printer 3, the CPU 11 periodically performs a retry to determine whether the information on the paper is consistent, for example, at predetermined time intervals. Execute. The retry time interval may be a fixed time, or may be a variable time that differs depending on the information on the paper to be replaced, for example.

リトライのタイミングではないと判断した場合(S211:NO)、CPU11は、タイムアウトか否かを判断する(S212)。タイムアウト時間は、例えば、3分であり、固定時間であっても良いし、ユーザによる設定を受け付け可能な可変時間であっても良い。タイムアウトではないと判断した場合(S212:NO)、CPU11は、S211に戻り、リトライのタイミングであるか否かを判断する。 When determining that it is not time to retry (S211: NO), the CPU 11 determines whether a timeout has occurred (S212). The timeout time is, for example, 3 minutes, and may be a fixed time or a variable time that can be set by the user. If it is determined that the timeout has not occurred (S212: NO), the CPU 11 returns to S211 and determines whether it is time to retry.

リトライのタイミングであると判断した場合(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 CPU 11 acquires the paper information set in the label printer 3 again from the label printer 3 (S213). Then, in order to determine the consistency between the newly acquired paper information and the paper information in the print settings, the CPU 11 re-executes the consistency determination process shown in FIG. 6 (S214). Specifically, the CPU 11 determines the items to be determined, and determines consistency for each item. Then, the CPU 11 determines whether or not it is determined that there is a match (S215).

なお、プリンタドライバ23は、リトライ時に再度、ユーザによる判定項目の指定を受け付けても良いし、1回目の整合判定処理にて不整合と判定された場合に判定対象に決定した項目を記憶して、2回目からは、S111に代えて記憶されている判定項目を用いるとしても良い。つまり、リトライ時の判定項目は、初回の判定時と同じでも良いし、異なっていても良い。 Note that the printer driver 23 may accept the user's designation of the determination item again at the time of retry, or may store the item determined to be the determination target when it is determined that there is a mismatch in the first consistency determination process. , From the second time onwards, the stored determination items may be used instead of S111. In other words, the determination items at the time of retry may be the same as those at the time of first time determination, or may be different.

また、プリンタドライバ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 printer driver 23 skips S214 and performs the matching determination process. Alternatively, the process may proceed to S215 and determine that there is a mismatch.

再度の判定によっても不整合と判定された場合(S215:NO)、CPU11は、警告音を発生させる指示を含む警告コマンドを、ラベルプリンタ3に送信する(S217)。そして、CPU11は、S211に戻り、リトライのタイミングを待って、再度、ラベルプリンタ3から用紙の情報を取得する。 If it is determined that there is a mismatch after the second determination (S215: NO), the CPU 11 transmits a warning command including an instruction to generate a warning sound to the label printer 3 (S217). Then, the CPU 11 returns to S211, waits for a retry timing, and acquires paper information from the label printer 3 again.

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 printer driver 23 causes the label printer 3 to output a warning sound. This makes it easier for a user near the label printer 3 to notice the notification, increasing the possibility that the paper will be replaced. Note that the printer driver 23 may proceed to S217 if it is determined that there is no match even after repeating S213 to S215 a predetermined number of times. Further, in S217, the printer driver 23 may cause a warning lamp to turn on or flash in addition to outputting a warning sound.

一方、リトライによって整合と判定された場合(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 CPU 11 notifies via the user IF 13 that the paper has been replaced in the label printer 3 (S221). By notifying that the paper has been replaced, the user of the PC 1 can immediately know that printing on the desired paper is now possible.

そして、CPU11は、図4のA18にて編集アプリ22から受信した画像データと印刷設定とに基づいて、印刷データを生成する(S222)。さらに、CPU11は、生成した印刷データと、印刷の実行を指示する印刷コマンドと、をラベルプリンタ3に送信する(S223)。これにより、ラベルプリンタ3は、受信した印刷データに基づいて、セットされている用紙に画像を印刷する。 Then, the CPU 11 generates print data based on the image data and print settings received from the editing application 22 at A18 in FIG. 4 (S222). Further, the CPU 11 transmits the generated print data and a print command instructing execution of printing to the label printer 3 (S223). Thereby, the label printer 3 prints an image on the set paper based on the received print data.

本形態のプリンタドライバ23は、リトライする設定となっている場合、用紙の情報の不整合では画像データを破棄せず、その後、適切な用紙の情報がラベルプリンタ3に設定された場合に、自動的に印刷コマンドを送信する。このようにすれば、ユーザが再度同じ印刷指示を入力する手間を省くことができる。 If the printer driver 23 of this embodiment is set to retry, the image data will not be discarded if the paper information mismatches, and if the appropriate paper information is subsequently set in the label printer 3, the printer driver 23 will automatically discard the image data. Send a print command directly. In this way, it is possible to save the user the trouble of inputting the same print instruction again.

リトライしないと判断した場合(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 CPU 11 discards the image data received from the editing application 22 at A18 in FIG. 4 (S231). . S231 is an example of discard processing. In the case of timeout, the CPU 11 may notify that fact via the user IF 13.

用紙の交換指示を通知したとしても、直ぐに交換されるとは限らない。また、画像データをメモリに保持し続けるとメモリの負荷が高まることから、プリンタドライバ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 printer driver 23 does not retry or times out, it discards the image data from the memory and ends the process. This reduces memory load.

S223またはS231の後、CPU11は、不整合処理を終了し、図4の印刷手順に戻って、A35を終了する。これにより、プリンタドライバ23は、処理を終了する。A18にてプリンタドライバ23に渡された印刷指示の処理が終了したことで、編集アプリ22は、ユーザの指示を受け付け可能となる。 After S223 or S231, the CPU 11 ends the mismatch processing, returns to the printing procedure in FIG. 4, and ends A35. Thereby, the printer driver 23 ends the process. Since the processing of the print instruction passed to the printer driver 23 in A18 has been completed, the editing application 22 can now accept instructions from the user.

以上、詳細に説明したように、本形態のプリンタドライバ23は、ラベルプリンタ3に印刷コマンドを送信可能なプログラムであり、ラベルプリンタ3に指定されている用紙情報と、編集アプリ22から渡された用紙情報と、の比較における判定対象を項目ごとに設定可能にする。これにより、プリンタドライバ23は、ラベルプリンタ3にて指定された用紙情報と整合しない印刷コマンドの投入を制限しつつ、必要以上の項目についての判定を回避するので、類似する用紙情報が印刷ジョブに設定されている場合でもその印刷ジョブを投入できる可能性を高められる。 As described above in detail, the printer driver 23 of this embodiment is a program that can send print commands to the label printer 3, and it uses the paper information specified to the label printer 3 and the paper information passed from the editing application 22. It is possible to set the judgment target for each item in comparison with paper information. As a result, the printer driver 23 restricts the input of print commands that do not match the paper information specified in the label printer 3, and avoids making judgments about unnecessary items, so that similar paper information can be added to the print job. Even if the print job is set, the possibility of submitting the print job can be increased.

なお、本実施の形態は単なる例示にすぎず、本発明を何ら限定するものではない。従って本発明は当然に、その要旨を逸脱しない範囲内で種々の改良、変形が可能である。例えば、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 PC 1, a smartphone or a tablet computer may be used. Further, the printing method of the label printer 3 is not limited to the inkjet method, and may be, for example, a thermal transfer method, an electrophotographic method, a thermal method, or an apparatus capable of color printing. Further, the paper of the print medium is not limited to label paper, and may be, for example, roll paper of plain paper, fanfold paper, or cut paper.

また、本形態では、用紙種類を必須項目とし、用紙種類が一致していない場合は、整合判定処理の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 printer driver 23 may also be able to accept a designation as to whether paper type information is to be determined as an item or not. In that case, release paper information indicating whether the paper is roll paper or fanfold paper, and shape information indicating whether the label is an indefinite length label, die-cut label, or mark label, may be specified as separate items.

また、本形態のプリンタドライバ23は、整合判定処理のS113にて、判定対象の項目のうちの1項目でも不整合であった場合には、不整合と判定して残りの項目についての判定を行わないとしたが、全ての項目を判定しても良い。そして、プリンタドライバ23は、例えば、不整合と判定した項目の一覧を表示しても良いし、全ての項目について項目ごとの判定結果を表示しても良い。 Furthermore, in S113 of the consistency determination process, if even one of the items to be determined is inconsistent, the printer driver 23 of this embodiment determines that there is a mismatch and makes determinations for the remaining items. Although not performed, all items may be determined. Then, the printer driver 23 may display, for example, a list of items determined to be inconsistent, or may display the determination results for each item for all items.

また、本形態では、プリンタドライバ23は、リトライする場合に画像データを保持し、リトライによってS215にて整合と判断された場合には、S222~S223を実行し自動的に印刷コマンドを再送するとしたが、再送はしなくても良い。プリンタドライバ23は、リトライするか否かに関わらず画像データを破棄しても良く、リトライによって整合と判定された場合には、用紙が交換されたことを報知するのみでも良い。 In addition, in this embodiment, the printer driver 23 retains the image data when retrying, and if it is determined that there is consistency in S215 after retrying, it executes S222 to S223 and automatically resends the print command. However, there is no need to resend it. The printer driver 23 may discard the image data regardless of whether or not to retry, or may only notify that the paper has been replaced if it is determined that the paper matches after the retry.

また、本形態では、リトライするか否かを選択できるとしたが、できなくても良い。例えば、プリンタドライバ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 printer driver 23 may execute the mismatch processing in S201 to S203, and then proceed to S231, discard the image data, and end the process. Alternatively, the printer driver 23 may be configured to retry if the paper information is inconsistent.

また、各図に示した表示画面は、いずれも一例であり、図中の文言や各情報の配置、ボタンの形状等は、図示の例に限らない。印刷設定画面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 printer driver 23 receives settings for a large number of copies on the print setting screen 50, the printer driver 23 may automatically select all settable items as determination items.

また、例えば、PC1は、登録ツール26にて判定対象の項目とするか否かの指定を受け付け可能であっても良い。その場合、登録ツール26は、判定対象とする項目の情報を、プリセットデータに含めて記憶し、プリンタドライバ23は、読み出したプリセットデータに含まれる情報に基づいて、印刷設定画面50の用紙不一致チェック項目欄56を表示すると良い。 Further, for example, the PC 1 may be able to accept a designation using the registration tool 26 as to whether or not the item is to be determined. In that case, the registration tool 26 stores information on the items to be determined in the preset data, and the printer driver 23 checks the paper mismatch on the print setting screen 50 based on the information included in the read preset data. It is preferable to display the item field 56.

また、本形態では、不整合と判定された場合に、ラベルプリンタ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 label printer 3, but this need not be done. For example, in step S201 of the mismatch process, the printer driver 23 may notify the user of the mismatch via the user IF 13, and then accept a selection as to whether or not the label printer 3 should be notified. If not notified, the printer driver 23 may proceed to S231 and discard the image data. Furthermore, for example, the user can also change the determination items used for matching determination based on the notified information.

また、本形態では、プリンタドライバ23の処理として説明したが、これに限らない。例えば、PC1は、OSがあらかじめ印刷用の汎用プログラムを備えており、プリンタドライバを利用しない、いわゆるドライバレスの構成であっても良い。そして、PC1には、OSの備える汎用プログラムとは別に、所定のプリンタ用のアプリケーションプログラムが組み込まれていても良い。その場合、PC1は、そのアプリケーションプログラムに基づいて用紙の情報の整合を判定しても良い。 Furthermore, although the present embodiment has been described as processing by the printer driver 23, the present invention is not limited to this. For example, the PC 1 may have a so-called driverless configuration in which the OS includes a general-purpose printing program in advance and does not use a printer driver. The PC 1 may also include an application program for a predetermined printer, in addition to the general-purpose program included in the OS. In that case, the PC 1 may determine whether the paper information matches based on the application program.

また、実施の形態に開示されている任意のフローチャートにおいて、任意の複数のステップにおける複数の処理は、処理内容に矛盾が生じない範囲で、任意に実行順序を変更できる、または並列に実行できる。 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 Label printer 11 CPU
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に記載するプログラムにおいて、
前記情報処理装置の前記コンピュータに、
前記判定処理にて前記第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に記載するプログラムにおいて、
前記情報処理装置の前記コンピュータに、
前記印刷設定に含まれる部数が閾値よりも多い場合に、前記複数の項目のうち特定の項目を前記判定処理での判定対象に設定する第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.
請求項3に記載するプログラムにおいて、
前記情報処理装置の前記コンピュータに、
前記情報処理装置にインストールされた前記アプリケーションプログラムから、前記プリンタに印刷を実行させる前記印刷指示があり、印刷対象の前記画像データと、用紙の情報を含む前記印刷設定と、が渡された場合に、
前記判定処理を実行させる前に、前記第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に記載するプログラムにおいて、
前記用紙の情報の項目の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.
請求項5に記載するプログラムにおいて、
前記情報処理装置の前記コンピュータに、
前記用紙の情報を含む前記印刷設定の変更を受け付ける設定画面を、前記情報処理装置のユーザインタフェースに表示させる手動設定処理を実行させ、
前記設定画面を介して前記印刷設定の変更を受け付け、前記用紙種類に前記特定の用紙種が設定された場合に、前記第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.
請求項1に記載するプログラムにおいて、
前記情報処理装置の前記コンピュータに、
前記情報処理装置にインストールされた前記アプリケーションプログラムから、前記プリンタに印刷を実行させる前記印刷指示があり、印刷対象の前記画像データと、用紙の情報を含む前記印刷設定と、が渡された場合に、
前記取得処理を実行させた後、前記判定処理を実行させる前に、第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.
請求項1に記載するプログラムにおいて、
前記情報処理装置には、前記用紙の情報について前記複数の項目が関連付けられたプリセットデータが記憶されている場合があり、前記プリセットデータには、項目ごとに前記判定処理での判定対象か否かの設定が付される場合があり、前記アプリケーションプログラムから渡される前記印刷設定には、前記プリセットデータを含めることが可能であり、
前記判定処理では、前記アプリケーションプログラムから前記プリセットデータが渡された場合、前記プリセットデータに付された設定に基づいて、項目ごとに整合するか否かを判定する、
ように構成されるプログラム。
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から請求項8のいずれか1つに記載するプログラムにおいて、
前記プリンタは、ラベルプリンタであり、
前記用紙の情報には、ラベルの特性に関する情報が含まれ、
前記判定処理では、
前記第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.
JP2022118676A 2022-07-26 2022-07-26 program Pending JP2024016507A (en)

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)

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