JP2021117805A - Program and information processing device - Google Patents

Program and information processing device Download PDF

Info

Publication number
JP2021117805A
JP2021117805A JP2020011431A JP2020011431A JP2021117805A JP 2021117805 A JP2021117805 A JP 2021117805A JP 2020011431 A JP2020011431 A JP 2020011431A JP 2020011431 A JP2020011431 A JP 2020011431A JP 2021117805 A JP2021117805 A JP 2021117805A
Authority
JP
Japan
Prior art keywords
paper size
user
printer
tray
setting
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.)
Granted
Application number
JP2020011431A
Other languages
Japanese (ja)
Other versions
JP7459524B2 (en
Inventor
裕詞 市川
Yuji Ichikawa
裕詞 市川
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 JP2020011431A priority Critical patent/JP7459524B2/en
Publication of JP2021117805A publication Critical patent/JP2021117805A/en
Application granted granted Critical
Publication of JP7459524B2 publication Critical patent/JP7459524B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimiles In General (AREA)

Abstract

To provide a technique for improving convenience in using a paper size defined by a user in a program for receiving print setting.SOLUTION: A CPU 11 of a PC 1 accepts print setting which is used for printing by a printer 2 and includes setting of a paper size, setting of two-sided printing and setting of a tray by executing a printer driver 43. The CPU 11 determines whether a user definition size is within the range of a threshold in the case where a paper size to be transferred to the printer 2 is the user definition size. The threshold is a range included in both the range of a printable paper size corresponding to a designated tray and the range of a paper size for enabling two-sided printing by the printer 2. Further, the CPU 11 accepts print setting in the case of determining to be within the range of the threshold, and does not accept the print setting in the case of determining to be outside the range of the threshold.SELECTED DRAWING: Figure 2

Description

本明細書に開示される技術分野は、印刷設定を受け付けるプログラムおよび情報処理装置に関する。 The technical fields disclosed herein relate to programs and information processing devices that accept print settings.

パーソナルコンピュータ等の情報処理装置において、プリンタでの印刷に用いる印刷設定を受け付け、その印刷設定に基づいてそのプリンタに印刷を指示する技術が知られている。例えば、特許文献1には、印刷設定を受け付けるプリンタドライバであって、文書データのページごとに用紙サイズおよび文書の向きを決定する技術が開示されている。 In an information processing device such as a personal computer, there is known a technique of accepting print settings used for printing on a printer and instructing the printer to print based on the print settings. For example, Patent Document 1 discloses a printer driver that accepts print settings and that determines a paper size and a document orientation for each page of document data.

特開2012−58817号公報Japanese Unexamined Patent Publication No. 2012-58817

印刷設定を受け付けるプログラムには、プリンタに渡す用紙サイズとして、ユーザ定義の用紙サイズを受け付け可能なものがある。ユーザ定義の用紙サイズは、ユーザが任意の用紙幅および用紙高さを決められることから、プリンタの搬送機構やトレイの都合で印刷が制限されるようなサイズが指定される可能性がある。 Some programs that accept print settings can accept a user-defined paper size as the paper size to be passed to the printer. Since the user can determine an arbitrary paper width and paper height, the user-defined paper size may be specified so that printing is restricted due to the transport mechanism of the printer or the tray.

本明細書は、印刷設定を受け付けるプログラムであって、ユーザ定義の用紙サイズを用いる際の利便性を向上させる技術を開示する。 The present specification is a program that accepts print settings, and discloses a technique for improving convenience when using a user-defined paper size.

この課題の解決を目的としてなされたプログラムは、情報処理装置のコンピュータによって実行可能であり、プリンタでの印刷に用いる印刷設定を受け付けるプログラムであって、前記プリンタは、複数のトレイと、両面印刷を実行するための搬送機構とを有し、トレイごとに印刷可能な用紙サイズの範囲があり、前記印刷設定には、用紙サイズの設定と両面印刷の実行有無とトレイの設定とが含まれ、前記コンピュータに、前記プリンタに渡す用紙サイズがユーザ定義の用紙サイズの場合に、前記ユーザ定義の用紙サイズが特定範囲内のサイズか否かを判断する判断処理を実行させ、前記特定範囲は、指定されたトレイに対応する印刷可能な用紙サイズの範囲と、前記搬送機構によって決まる両面印刷が可能な用紙サイズの範囲と、のいずれにも含まれる範囲であり、さらに前記コンピュータに、前記判断処理にて前記ユーザ定義の用紙サイズが前記特定範囲内のサイズであると判断された場合、前記ユーザ定義の用紙サイズと両面印刷の実行有と前記指定されたトレイとの組み合わせの前記印刷設定を受け付け、前記判断処理にて前記ユーザ定義の用紙サイズが前記特定範囲内のサイズでないと判断された場合、前記ユーザ定義の用紙サイズと両面印刷の実行有と前記指定されたトレイとの組み合わせの前記印刷設定を受け付けない排他処理を実行させる、ことを特徴としている。 A program made for the purpose of solving this problem is a program that can be executed by a computer of an information processing apparatus and accepts print settings used for printing on a printer, and the printer prints on a plurality of trays and double-sided printing. It has a transport mechanism for execution, and there is a range of printable paper sizes for each tray, and the print settings include setting the paper size, whether or not double-sided printing is executed, and setting the tray. When the paper size to be passed to the printer is a user-defined paper size, the computer is made to execute a determination process for determining whether or not the user-defined paper size is within a specific range, and the specific range is designated. It is a range included in both the printable paper size range corresponding to the tray and the paper size range capable of double-sided printing determined by the transport mechanism, and further, the computer is subjected to the determination process. When it is determined that the user-defined paper size is within the specific range, the print setting of the combination of the user-defined paper size and the execution of double-sided printing and the designated tray is accepted, and the print setting is accepted. When the determination process determines that the user-defined paper size is not within the specified range, the print setting of the combination of the user-defined paper size, double-sided printing execution, and the specified tray is set. It is characterized by executing exclusive processing that is not accepted.

本明細書に開示されるプログラムを実行することで、情報処理装置は、プリンタに渡す用紙サイズがユーザ定義の用紙サイズの場合でも、その用紙サイズが、指定されているトレイにて印刷可能な用紙サイズの範囲と両面印刷が可能な用紙サイズの範囲とのいずれにも含まれていれば、その用紙サイズとトレイの指定と両面印刷との組み合わせの印刷設定を受け付ける。これにより、ユーザ定義の用紙サイズであれば一律に両面印刷を実行できなくする場合と比較して、ユーザ定義の用紙サイズであっても両面印刷が実行できる機会が増え、ユーザ定義の用紙サイズを用いる際の利便性が高まる。 By executing the program disclosed in the present specification, the information processing apparatus can print on the specified tray even if the paper size passed to the printer is a user-defined paper size. If it is included in both the size range and the paper size range in which double-sided printing is possible, the print setting of the combination of the paper size and tray specification and double-sided printing is accepted. As a result, compared to the case where double-sided printing cannot be performed uniformly with a user-defined paper size, there are more opportunities to perform double-sided printing even with a user-defined paper size, and the user-defined paper size can be reduced. Convenience when using it increases.

上記プログラムの機能を実現する情報処理装置、プログラムの機能を実現するための制御方法、プログラムを格納するコンピュータにて読取可能な記憶媒体も、新規で有用である。 An information processing device that realizes the function of the program, a control method for realizing the function of the program, and a storage medium that can be read by a computer that stores the program are also new and useful.

本明細書に開示される技術によれば、印刷設定を受け付けるプログラムであって、ユーザ定義の用紙サイズを用いる際の利便性を向上させる技術が実現される。 According to the technique disclosed in the present specification, a program that accepts print settings and improves convenience when using a user-defined paper size is realized.

実施の形態にかかるPCの概略構成図である。It is a schematic block diagram of the PC which concerns on embodiment. 印刷設定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of print setting processing. 印刷設定画面の例を示す説明図である。It is explanatory drawing which shows the example of the print setting screen. 閾値決定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the threshold value determination process. 許容サイズと閾値の例を示す説明図である。It is explanatory drawing which shows the example of the permissible size and the threshold value. 用紙サイズ変更処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a paper size change process. 拡張タブ画面の例を示す説明図である。It is explanatory drawing which shows the example of the extended tab screen. 登録画面の例を示す説明図である。It is explanatory drawing which shows the example of the registration screen. 警告メッセージの例を示す説明図である。It is explanatory drawing which shows the example of a warning message. 印刷処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a print process.

以下、プログラムを具体化した実施の形態について、添付図面を参照しつつ詳細に説明する。本形態は、印刷機能を有する装置であるプリンタに接続可能なパーソナルコンピュータ(以下、「PC」とする)にて実行されるプログラムを開示するものである。 Hereinafter, embodiments in which the program is embodied will be described in detail with reference to the attached drawings. This embodiment discloses a program executed by a personal computer (hereinafter referred to as "PC") that can be connected to a printer that is a device having a printing function.

本形態のPC1は、例えば、図1に示すように、プリンタ2と互いに通信可能に接続されている。PC1は、プリンタ2に各種の機能を行わせるための各種のアプリケーションプログラム(以下、「アプリ」とする)を実行可能な装置である。PC1は、情報処理装置の一例である。PC1に代えて、例えば、スマートフォン、タブレットコンピュータであっても良い。 As shown in FIG. 1, for example, the PC 1 of this embodiment is connected to the printer 2 so as to be able to communicate with each other. The PC 1 is a device capable of executing various application programs (hereinafter referred to as "applications") for causing the printer 2 to perform various functions. PC1 is an example of an information processing device. Instead of PC1, for example, a smartphone or a tablet computer may be used.

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

CPU11は、メモリ14から読み出したプログラムに従って、また、ユーザの操作に基づいて、各種の処理を実行する。CPU11は、コンピュータの一例である。メモリ14は、例えば、HDD、フラッシュメモリであり、各種のプログラム、画像データや文書データ等のデータ、各種設定を記憶する領域として利用される。CPU11が備えるバッファも、メモリの一例である。 The CPU 11 executes various processes according to the program read from the memory 14 and based on the user's operation. The CPU 11 is an example of a computer. The memory 14 is, for example, an HDD or a flash memory, and is used as an area for storing various programs, data such as image data and document data, and various settings. The buffer included in the CPU 11 is also an example of the memory.

メモリの一例は、コンピュータが読み取り可能なストレージ媒体であってもよい。コンピュータが読み取り可能なストレージ媒体とは、non−transitoryな媒体である。non−transitoryな媒体には、上記の例の他に、CD−ROM、DVD−ROM等の記録媒体も含まれる。また、non−transitoryな媒体は、tangibleな媒体でもある。一方、インターネット上のサーバなどからダウンロードされるプログラムを搬送する電気信号は、コンピュータが読み取り可能な媒体の一種であるコンピュータが読み取り可能な信号媒体であるが、non−transitoryなコンピュータが読み取り可能なストレージ媒体には含まれない。 An example of memory may be a computer-readable storage medium. A computer-readable storage medium is a non-transitory medium. In addition to the above examples, the non-transitory medium also includes a recording medium such as a CD-ROM or a DVD-ROM. The non-transitory medium is also a tangible medium. On the other hand, an electric signal that carries a program downloaded from a server on the Internet is a computer-readable signal medium, which is a kind of computer-readable medium, but is a storage that can be read by a non-transitory computer. Not included in the medium.

通信IF16は、プリンタ2等の外部装置との通信を行うためのハードウェアを含む。通信IF16の通信方式は、無線でも有線でもよく、Wi−Fi(登録商標)、Bluetooth(登録商標)、USB、LAN等、どのような規格の方式でもよい。 The communication IF 16 includes hardware for communicating with an external device such as a printer 2. The communication method of the communication IF16 may be wireless or wired, and may be any standard method such as Wi-Fi (registered trademark), Bluetooth (registered trademark), USB, and LAN.

ユーザIF18は、情報を画面に表示するハードウェアと、ユーザによる入力操作を受け付けるハードウェアと、を含む。ユーザIF18は、表示用のディスプレイと、キーボード、マウス等との組み合わせであっても良いし、表示機能と入力受付機能とを備えるタッチパネルであっても良い。ユーザIF18は、表示デバイスの一例である。 The user IF 18 includes hardware for displaying information on a screen and hardware for accepting input operations by the user. The user IF18 may be a combination of a display for display, a keyboard, a mouse, or the like, or may be a touch panel having a display function and an input reception function. The user IF18 is an example of a display device.

本形態のPC1のメモリ14には、図1に示すように、オペレーティングシステム(以下、「OS」とする)41と、印刷アプリ42と、プリンタドライバ43と、が組み込まれている。OS41は、例えば、Windows(登録商標)、macOS(登録商標)、iOS(登録商標)、Android(登録商標)、Linux(登録商標)である。プリンタドライバ43は、プログラムの一例である。 As shown in FIG. 1, the memory 14 of the PC 1 of this embodiment incorporates an operating system (hereinafter referred to as “OS”) 41, a print application 42, and a printer driver 43. OS41 is, for example, Windows (registered trademark), macOS (registered trademark), iOS (registered trademark), Android (registered trademark), Linux (registered trademark). The printer driver 43 is an example of a program.

印刷アプリ42は、印刷に関する各種の指示を受け付けるプログラムである。印刷アプリ42は、例えば、印刷を行わせる装置の指定、印刷対象の画像の指定、印刷設定の編集指示、印刷実行の指示、を受け付ける。印刷アプリ42は、さらに、印刷対象の用紙の種類やサイズの指定、コピー部数の指定、両面印刷の指示等を受け付けてもよい。 The print application 42 is a program that accepts various instructions related to printing. The print application 42 receives, for example, designation of a device for printing, designation of an image to be printed, an instruction for editing print settings, and an instruction for printing execution. The print application 42 may further accept designation of the type and size of the paper to be printed, designation of the number of copies, instructions for double-sided printing, and the like.

プリンタドライバ43は、プリンタ2のモデルに対応するプログラムであり、プリンタ2と通信を行って、プリンタ2の動作を制御するプログラムである。プリンタドライバ43は、例えば、印刷アプリ42等にてプリンタ2が指定された状態で印刷実行の指示または印刷設定の編集指示を受け付けた場合、プリンタ2のプロパティ設定の指示を受け付けた場合、に起動される。 The printer driver 43 is a program corresponding to the model of the printer 2, and is a program that communicates with the printer 2 and controls the operation of the printer 2. The printer driver 43 is activated, for example, when a print execution instruction or a print setting edit instruction is received in a state where the printer 2 is specified by a print application 42 or the like, or when a printer 2 property setting instruction is received. Will be done.

プリンタドライバ43は、プリンタ2での印刷に関する詳細な印刷設定の編集指示、例えば、給紙トレイや排紙トレイの選択、用紙種類や用紙サイズの選択、用紙サイズとしてユーザ定義サイズの登録、両面印刷の選択、を受け付ける。また、プリンタドライバ43は、OS41から印刷ジョブを受け付けた場合、印刷ジョブにて指定されている画像データに基づいて、印刷データを生成する。 The printer driver 43 gives instructions for editing detailed print settings related to printing on the printer 2, for example, selection of a paper feed tray and an output tray, selection of a paper type and a paper size, registration of a user-defined size as a paper size, and double-sided printing. Select, accept. When the printer driver 43 receives a print job from the OS 41, the printer driver 43 generates print data based on the image data specified in the print job.

プリンタ2は、少なくとも印刷機能と、PC1との通信を行う通信機能と、を有する装置である。プリンタ2の印刷機能にて印刷可能な用紙サイズの範囲には、プリンタ2のモデルごとに所定の制限がある。なお、以下では、用紙サイズのうち、プリンタ2での用紙の搬送方向のサイズを「用紙高さ」、用紙高さに直交する方向のサイズを「用紙幅」とする。また、用紙サイズの範囲は、用紙高さの範囲と用紙幅の範囲とを含み、プリンタ2は、用紙高さと用紙幅とのいずれもが範囲内である用紙への印刷が可能である。 The printer 2 is a device having at least a printing function and a communication function for communicating with the PC 1. The range of paper sizes that can be printed by the printing function of the printer 2 has a predetermined limit for each model of the printer 2. In the following, among the paper sizes, the size in the paper transport direction in the printer 2 is referred to as “paper height”, and the size in the direction orthogonal to the paper height is referred to as “paper width”. Further, the range of the paper size includes the range of the paper height and the range of the paper width, and the printer 2 can print on the paper in which both the paper height and the paper width are within the range.

本形態のプリンタ2は、両面印刷を行うための搬送機構を有している。両面印刷を実行する場合、プリンタ2は、その搬送機構を使用して、用紙の一面への印刷後、一面に印刷済みの用紙を排出する前に用紙の搬送方向を反転させ、両面印刷用の経路を介して搬送する。さらに、プリンタ2は、一面目と同じ印刷機能を使用して用紙の他面への印刷を行い、両面に印刷済みの用紙を機外へ排出する。プリンタ2の搬送機構にて用紙の搬送方向を適切に反転可能な用紙サイズの範囲、すなわち、プリンタ2にて両面印刷を実行可能な用紙サイズの範囲は、プリンタ2のモデルごとに予め設定されている。両面印刷を実行可能な用紙サイズの範囲は、片面印刷の場合よりも狭い場合が多い。 The printer 2 of this embodiment has a transport mechanism for performing double-sided printing. When performing double-sided printing, the printer 2 uses the transport mechanism to reverse the transport direction of the paper after printing on one side of the paper and before ejecting the printed paper on one side, for double-sided printing. Transport via a route. Further, the printer 2 prints on the other side of the paper using the same printing function as the first side, and discharges the paper printed on both sides to the outside of the machine. The paper size range in which the paper transport direction can be appropriately reversed by the transport mechanism of the printer 2, that is, the paper size range in which double-sided printing can be performed by the printer 2, is preset for each model of the printer 2. There is. The range of paper sizes that can be used for double-sided printing is often narrower than that for single-sided printing.

また、本形態のプリンタ2は、複数の給紙トレイを備え、その一部として着脱可能な給紙トレイの装着が可能である。以下では、装着可能な給紙トレイを「カスタムトレイ」とする。プリンタ2の各給紙トレイには、給紙トレイのタイプごとにそれぞれ給紙可能な用紙サイズの範囲が定められている。カスタムトレイから給紙可能な用紙サイズの範囲は、プリンタ2に固定されている給紙トレイである常設トレイから給紙可能な用紙サイズの範囲とは、異なる場合がある。カスタムトレイのタイプによっては、給紙可能な用紙サイズの範囲が常設トレイに比較して狭い場合がある。なお、プリンタ2は、複数の排紙トレイを備えていても良い。 Further, the printer 2 of this embodiment is provided with a plurality of paper feed trays, and a removable paper feed tray can be attached as a part thereof. In the following, the mountable paper tray will be referred to as a "custom tray". Each paper tray of the printer 2 has a range of paper sizes that can be fed for each type of paper tray. The range of paper sizes that can be fed from the custom tray may differ from the range of paper sizes that can be fed from the permanent tray, which is the paper feed tray fixed to the printer 2. Depending on the type of custom tray, the range of paper sizes that can be fed may be narrower than that of the permanent tray. The printer 2 may include a plurality of output trays.

本形態のプリンタ2では、プリンタ2のモデルと、両面印刷の実行の有無と、用紙の給紙元である給紙トレイの指定と、の組み合わせに応じて、適切に印刷可能な用紙サイズの範囲が異なる。本形態のプリンタドライバ43は、指定された印刷設定がプリンタ2での印刷が不可能な印刷設定である場合、その印刷設定を受け付けない。 In the printer 2 of this embodiment, a range of paper sizes that can be appropriately printed according to the combination of the model of the printer 2, whether or not double-sided printing is executed, and the designation of the paper feed tray that is the paper feed source of the paper. Is different. When the specified print setting is a print setting that cannot be printed by the printer 2, the printer driver 43 of the present embodiment does not accept the print setting.

続いて、本形態のプリンタドライバ43による処理について説明する。なお、以下の処理およびフローチャートの各処理ステップは、基本的に、各プログラムに記述された命令に従ったCPU11の処理を示す。すなわち、以下の説明における「判断」、「抽出」、「選択」、「算出」、「決定」、「特定」、「取得」、「受付」、「制御」等の処理は、CPU11の処理を表している。CPU11による処理は、PC1のOS41のAPIを用いたハードウェア制御も含む。本明細書では、OS41の記載を省略して各プログラムの動作を説明する。すなわち、以下の説明において、「プログラムBがハードウェアCを制御する」という趣旨の記載は、「プログラムBがOS41のAPIを用いてハードウェアCを制御する」ことを指してもよい。また、プログラムに記述された命令に従ったCPU11の処理を、省略した文言で記載することがある。例えば、「CPU11が行う」、「プログラムが行う」のように記載することがある。 Subsequently, the processing by the printer driver 43 of this embodiment will be described. The following processing and each processing step in the flowchart basically indicate the processing of the CPU 11 according to the instructions described in each program. That is, the processing of "judgment", "extraction", "selection", "calculation", "decision", "specification", "acquisition", "acceptance", "control", etc. in the following description is the processing of the CPU 11. Represents. The processing by the CPU 11 also includes hardware control using the API of the OS 41 of the PC1. In this specification, the operation of each program will be described by omitting the description of OS 41. That is, in the following description, the description to the effect that "program B controls hardware C" may refer to "program B controls hardware C using the API of OS41". In addition, the processing of the CPU 11 according to the instructions described in the program may be described in abbreviated terms. For example, it may be described as "performed by the CPU 11" or "performed by the program".

なお、「取得」は要求を必須とはしない概念で用いる。すなわち、CPU11が要求することなくデータを受信するという処理も、「CPU11がデータを取得する」という概念に含まれる。また、本明細書中の「データ」とは、コンピュータに読取可能なビット列で表される。そして、実質的な意味内容が同じでフォーマットが異なるデータは、同一のデータとして扱われるものとする。本明細書中の「情報」についても同様である。また、「要求する」、「指示する」とは、要求していることを示す情報や、指示していることを示す情報を相手に出力することを示す概念である。また、要求していることを示す情報や指示していることを示す情報のことを、単に、「要求」、「指示」とも記載する。 Note that "acquisition" is used in a concept that does not require a request. That is, the process of receiving data without the CPU 11 requesting is also included in the concept of "the CPU 11 acquires the data". Further, the "data" in the present specification is represented by a bit string that can be read by a computer. Then, data having the same substantial meaning and contents but different formats are treated as the same data. The same applies to "information" in the present specification. Further, "requesting" and "instructing" are concepts indicating that information indicating that a request is being made or information indicating that an instruction is being given is output to the other party. In addition, the information indicating that the request is made or the information indicating that the instruction is given is simply described as "request" or "instruction".

また、CPU11による、情報Aは事柄Bであることを示しているか否かを判断する処理を、「情報Aから、事柄Bであるか否かを判断する」のように概念的に記載することがある。CPU11による、情報Aが事柄Bであることを示しているか、事柄Cであることを示しているか、を判断する処理を、「情報Aから、事柄Bであるか事柄Cであるかを判断する」のように概念的に記載することがある。 Further, the process of determining whether or not the information A indicates that the information A is the matter B by the CPU 11 is conceptually described as "determining whether or not the information A is the matter B from the information A". There is. The process of determining whether the information A indicates that the information A is the matter B or the matter C by the CPU 11 is "determined from the information A whether the information A is the matter B or the matter C." It may be described conceptually as.

以下、本形態のプリンタドライバ43による印刷設定処理の手順について、図2のフローチャートを参照して説明する。印刷設定処理は、印刷アプリ42等のアプリにてプリンタ2が選択された状態で印刷設定の編集指示を受け付けたことにより、プリンタドライバ43が起動されたことを契機に、PC1のCPU11にて実行される。なお、プリンタドライバ43が予め起動されていれば、印刷設定の編集指示を受け付けたアプリが、プリンタドライバ43に印刷設定処理の実行開始を指示する。 Hereinafter, the procedure of the print setting process by the printer driver 43 of this embodiment will be described with reference to the flowchart of FIG. The print setting process is executed by the CPU 11 of the PC 1 when the printer driver 43 is started by receiving the edit instruction of the print setting while the printer 2 is selected by the application such as the print application 42. Will be done. If the printer driver 43 has been started in advance, the application that has received the print setting edit instruction instructs the printer driver 43 to start executing the print setting process.

CPU11は、まず、選択中の印刷設定を取得する(S101)。プリンタドライバ43の起動時に、CPU11は、メモリ14のプリンタドライバ43用の記憶領域に記憶されている印刷設定を読み出し、所定のデータ構造体に記憶させる。このデータ構造体は、印刷アプリ42等のアプリとプリンタドライバ43とが共用する領域であり、アプリとプリンタドライバ43とのいずれからも編集されることがある。データ構造体は、印刷アプリ42等のアプリの実行中に限って一時的に利用される領域であり、アプリの終了時には破棄される。S101では、CPU11は、このデータ構造体に記憶されている印刷設定を読み出す。以後の処理では、CPU11は、読み出した印刷設定を参照し,編集する。 The CPU 11 first acquires the selected print setting (S101). When the printer driver 43 is started, the CPU 11 reads out the print settings stored in the storage area for the printer driver 43 of the memory 14 and stores them in a predetermined data structure. This data structure is an area shared by an application such as the print application 42 and the printer driver 43, and may be edited by either the application and the printer driver 43. The data structure is an area that is temporarily used only during the execution of an application such as the print application 42, and is destroyed when the application is terminated. In S101, the CPU 11 reads out the print settings stored in this data structure. In the subsequent processing, the CPU 11 refers to the read print setting and edits it.

一方、プリンタドライバ43用の記憶領域は、プリンタドライバ43がPC1にインストールされた際に設けられる領域であり、例えば、レジストリ、設定ファイルである。プリンタドライバ43用の記憶領域は、プリンタドライバ43や印刷アプリ42等のアプリの実行状況にかかわらず保持される領域であり、恒久的に使用される。プリンタドライバ43のインストール時には、プリンタドライバ43のインストーラ、OS41、インストール直後のプリンタドライバ43、などが、その記憶領域に各種の情報を記憶させる。プリンタドライバ43用の記憶領域に記憶される情報としては、例えば、印刷設定、モデル情報があり、インストール後に編集される情報もある。 On the other hand, the storage area for the printer driver 43 is an area provided when the printer driver 43 is installed on the PC 1, and is, for example, a registry or a setting file. The storage area for the printer driver 43 is an area that is retained regardless of the execution status of applications such as the printer driver 43 and the print application 42, and is permanently used. When the printer driver 43 is installed, the installer of the printer driver 43, the OS 41, the printer driver 43 immediately after the installation, and the like store various information in the storage area. The information stored in the storage area for the printer driver 43 includes, for example, print settings and model information, and also includes information that is edited after installation.

印刷設定は、印刷をプリンタに指示するために用いられるパラメータである。モデル情報は、このプリンタドライバ43が印刷を指示するプリンタのモデルを示す情報である。プリンタドライバ43は、例えば同じ製品シリーズ内の複数のモデルに対応するプログラムであり、プリンタドライバ43のインストール時に、使用するプリンタ(本形態ではプリンタ2)のモデル情報が記憶される。プリンタドライバ43用の記憶領域に記憶される情報に基づいて、プリンタドライバ43は、制御対象のプリンタのモデルを認識できる。 The print setting is a parameter used to instruct the printer to print. The model information is information indicating the model of the printer to which the printer driver 43 instructs printing. The printer driver 43 is, for example, a program corresponding to a plurality of models in the same product series, and model information of the printer (printer 2 in this embodiment) to be used is stored when the printer driver 43 is installed. Based on the information stored in the storage area for the printer driver 43, the printer driver 43 can recognize the model of the printer to be controlled.

そして、CPU11は、ユーザIF18に印刷設定画面を表示させ(S102)、その印刷設定画面に、S101にて取得した印刷設定を表示させる。印刷設定画面の例を図3に示す。図3の例に示す印刷設定画面51には、用紙サイズの選択欄511と、両面印刷の選択欄512と、給紙方法の選択欄513と、OKボタン514と、キャンセルボタン515と、が表示される。CPU11は、印刷設定画面51に表示させた各選択欄や各ボタンへの操作を受け付ける。 Then, the CPU 11 causes the user IF 18 to display the print setting screen (S102), and displays the print setting acquired in S101 on the print setting screen. An example of the print setting screen is shown in FIG. On the print setting screen 51 shown in the example of FIG. 3, a paper size selection field 511, a double-sided print selection field 512, a paper feed method selection field 513, an OK button 514, and a cancel button 515 are displayed. Will be done. The CPU 11 accepts operations for each selection field and each button displayed on the print setting screen 51.

なお、プリンタドライバ43は、印刷設定として多数の項目の編集を受け付け可能である。そのため、印刷設定画面51には、図3に示すように、複数のタブが設けられており、CPU11は、指定されたタブの設定画面を表示させる。S102では、CPU11は、印刷設定画面51のうち、初期画面として、基本的な印刷設定の編集を受け付ける基本タブ画面51Aを表示させる。 The printer driver 43 can accept editing of a large number of items as print settings. Therefore, as shown in FIG. 3, the print setting screen 51 is provided with a plurality of tabs, and the CPU 11 displays the setting screen of the designated tab. In S102, the CPU 11 displays the basic tab screen 51A that accepts editing of the basic print settings as the initial screen of the print setting screens 51.

そして、CPU11は、閾値決定処理を実行する(S103)。閾値決定処理は、選択中の印刷設定にて印刷可能な用紙サイズの範囲である閾値を決定する処理である。閾値決定処理の手順について、図4のフローチャートを参照して説明する。 Then, the CPU 11 executes the threshold value determination process (S103). The threshold value determination process is a process for determining a threshold value that is within the printable paper size range in the selected print setting. The procedure of the threshold value determination process will be described with reference to the flowchart of FIG.

閾値決定処理では、CPU11は、まず、プリンタ2のモデル情報及びトレイ情報を取得する(S201)。CPU11は、前述したように、プリンタドライバ43用の記憶領域に記憶される情報に基づいて、制御対象のプリンタであるプリンタ2のモデル情報を取得できる。CPU11は、S201にて取得したモデル情報に基づいて、プリンタ2のモデルに対応するモデル許容サイズ、両面許容サイズを取得する(S202)。 In the threshold value determination process, the CPU 11 first acquires the model information and the tray information of the printer 2 (S201). As described above, the CPU 11 can acquire the model information of the printer 2 which is the printer to be controlled based on the information stored in the storage area for the printer driver 43. The CPU 11 acquires the model allowable size and the double-sided allowable size corresponding to the model of the printer 2 based on the model information acquired in S201 (S202).

プリンタドライバ43用の記憶領域には、プリンタドライバ43が対応可能な複数のモデルのそれぞれについて、トレイ情報、モデル許容サイズ情報、両面許容サイズ情報、トレイ許容サイズ情報が記憶される。トレイ情報は、モデル情報によって示されるプリンタが備える給紙トレイ、及び装着可能なカスタムトレイの情報である。プリンタ2が用紙を1枚だけ差し込むことのできる差し込み口を備える場合、その差し込み口も給紙トレイの一種とする。 In the storage area for the printer driver 43, tray information, model allowable size information, double-sided allowable size information, and tray allowable size information are stored for each of the plurality of models supported by the printer driver 43. The tray information is information on the paper feed tray included in the printer and the custom tray that can be mounted, which is indicated by the model information. When the printer 2 has an insertion slot into which only one sheet of paper can be inserted, the insertion slot is also a kind of paper feed tray.

モデル許容サイズ情報は、各モデルのプリンタが片面印刷を行うことのできる用紙サイズの範囲を示す情報である。なお、用紙サイズの情報には、印刷可能な用紙サイズとして予めプリンタドライバ43が備える定型サイズの用紙名と、ユーザによって定義されて登録されたユーザ定義サイズの用紙の情報とがある。定型サイズの用紙名は、例えば、A4、10×15cm、A5、A6、Letter、Legal、A3、Ledger、である。ユーザ定義サイズの用紙の情報は、ユーザに定義された用紙名の情報と用紙サイズの情報との組である。 The model allowable size information is information indicating the range of paper sizes that the printer of each model can perform single-sided printing. The paper size information includes a standard size paper name provided in advance by the printer driver 43 as a printable paper size, and user-defined size paper information defined and registered by the user. The standard size paper names are, for example, A4, 10 × 15 cm, A5, A6, Letter, Legal, A3, and Ledger. The user-defined size paper information is a set of user-defined paper name information and paper size information.

両面許容サイズ情報は、各モデルのプリンタが両面印刷を行うことのできる用紙サイズの範囲を示す情報である。また、トレイ許容サイズ情報は、各モデルのプリンタがカスタムトレイを使用して印刷できる用紙サイズの範囲を示す情報である。なお、両面印刷のできる用紙サイズの範囲とカスタムトレイを使用して印刷できる用紙サイズの範囲との大小関係は、プリンタのモデルごとに異なる場合もある。モデル情報に基づいて、各サイズを取得することにより、1つのプログラムで複数のモデルに対応できる。 The double-sided allowable size information is information indicating the range of paper sizes that the printer of each model can perform double-sided printing. Further, the tray allowable size information is information indicating a range of paper sizes that the printer of each model can print using the custom tray. The magnitude relationship between the range of paper sizes that can be printed on both sides and the range of paper sizes that can be printed using a custom tray may differ depending on the printer model. By acquiring each size based on the model information, one program can support a plurality of models.

モデル許容サイズと両面許容サイズとトレイ許容サイズとの例を、図5に示す。モデル許容サイズが最も範囲が広く、両面許容サイズとトレイ許容サイズとは、いずれも、モデル許容サイズの範囲内である。 An example of the model allowable size, the double-sided allowable size, and the tray allowable size is shown in FIG. The model permissible size has the widest range, and both the double-sided permissible size and the tray permissible size are within the model permissible size range.

なお、トレイ情報、モデル許容サイズ情報、両面許容サイズ情報、トレイ許容サイズ情報は、プリンタドライバ43用の記憶領域に限らず、プリンタドライバ43の実行コード内に含まれていても良いし、プリンタドライバ43用の記憶領域以外の領域に記憶されていても良い。例えば、CPU11は、各情報を外部サーバからダウンロードしても良い。印刷設定やモデル情報についてもプリンタドライバ43用の記憶領域以外から取得することも可能であるが、OS41の仕組みなどとの兼ね合いから、プリンタドライバ43用の記憶領域を用いることが無難である。 The tray information, the model allowable size information, the double-sided allowable size information, and the tray allowable size information are not limited to the storage area for the printer driver 43, but may be included in the execution code of the printer driver 43, or may be included in the execution code of the printer driver 43. It may be stored in an area other than the storage area for 43. For example, the CPU 11 may download each information from an external server. It is possible to acquire print settings and model information from other than the storage area for the printer driver 43, but it is safe to use the storage area for the printer driver 43 in consideration of the mechanism of the OS 41 and the like.

CPU11は、図4のS201にて取得した情報に基づいて、プリンタ2にカスタムトレイが装着されているか否かを判断する(S203)。カスタムトレイが装着されていると判断した場合(S203:YES)、CPU11は、装着されているカスタムトレイから給紙可能な用紙サイズであるトレイ許容サイズを取得し、仮の許容サイズとする(S204)。カスタムトレイが装着されていないと判断した場合(S203:NO)、CPU11は、モデル許容サイズを仮の許容サイズとする(S205)。 The CPU 11 determines whether or not the printer 2 is equipped with the custom tray based on the information acquired in S201 of FIG. 4 (S203). When it is determined that the custom tray is installed (S203: YES), the CPU 11 acquires the tray allowable size, which is the paper size that can be fed from the installed custom tray, and sets it as a temporary allowable size (S204). ). When it is determined that the custom tray is not installed (S203: NO), the CPU 11 sets the model allowable size as a temporary allowable size (S205).

S204またはS205の後、CPU11は、選択中の印刷設定にて両面印刷が選択されているか否かを判断する(S206)。両面印刷が選択されていないと判断した場合(S206:NO)、CPU11は、S204またはS205にて決定した仮の許容サイズを、閾値に決定する(S209)。 After S204 or S205, the CPU 11 determines whether or not double-sided printing is selected in the selected print setting (S206). When it is determined that double-sided printing is not selected (S206: NO), the CPU 11 determines the provisional allowable size determined in S204 or S205 as a threshold value (S209).

一方、両面印刷が選択されていると判断した場合(S206:YES)、CPU11は、カスタムトレイが選択されているか否かを判断する(S210)。カスタムトレイが選択されていないと判断した場合(S210:NO)、CPU11は、両面許容サイズを閾値に決定する(S211)。カスタムトレイが選択されていると判断した場合(S210:YES)、CPU11は、両面許容サイズとトレイ許容サイズとの両方に含まれる範囲を閾値に決定する(S212)。 On the other hand, when it is determined that double-sided printing is selected (S206: YES), the CPU 11 determines whether or not the custom tray is selected (S210). When it is determined that the custom tray is not selected (S210: NO), the CPU 11 determines the double-sided allowable size as a threshold value (S211). When it is determined that the custom tray is selected (S210: YES), the CPU 11 determines a range included in both the double-sided allowable size and the tray allowable size as a threshold value (S212).

S212では、CPU11は、閾値の下限を、両面許容サイズの下限とトレイ許容サイズの下限との大きい方とし、閾値の上限を、両面許容サイズの上限とトレイ許容サイズの上限との小さい方とする。例えば、図5に示した例では、S212にて決定される閾値は、図中下部に示す範囲となる。具体的には、許容される用紙名は、「A4」と「Letter」であり、許容されるユーザ定義サイズは、用紙幅が128.9−215.9mmの範囲内で、かつ、用紙高さが209.5−297.4mmの範囲内のサイズである。 In S212, the CPU 11 sets the lower limit of the threshold value to be the larger of the lower limit of the double-sided allowable size and the lower limit of the tray allowable size, and sets the upper limit of the threshold value to be the smaller of the upper limit of the double-sided allowable size and the upper limit of the tray allowable size. .. For example, in the example shown in FIG. 5, the threshold value determined in S212 is in the range shown in the lower part of the figure. Specifically, the allowable paper names are "A4" and "Letter", and the allowable user-defined size is that the paper width is within the range of 128.9-215.9 mm and the paper height is high. Is a size within the range of 209.5-297.4 mm.

S209、S211、S212の何れかにて閾値を決定した後、CPU11は、閾値決定処理を終了して、印刷設定処理に戻る。S209、S211、S212の何れかにて決定される閾値は、特定範囲の一例である。 After determining the threshold value in any of S209, S211 and S212, the CPU 11 ends the threshold value determination process and returns to the print setting process. The threshold value determined by any of S209, S211 and S212 is an example of a specific range.

図3の印刷設定処理の説明に戻る。印刷設定処理では、S103の閾値決定処理の後、CPU11は、選択中の用紙サイズが閾値決定処理にて決定した閾値の範囲内に含まれるか否かを判断する(S104)。S104は、判断処理の一例である。例えば、図3に示した印刷設定画面51では、用紙サイズとして定型サイズの「A4」が選択中であり、前述した閾値決定処理のS209、S211、S212のいずれにて閾値が決定されたとしても、「A4」は、許容される用紙名に含まれる。 Returning to the description of the print setting process of FIG. In the print setting process, after the threshold value determination process of S103, the CPU 11 determines whether or not the selected paper size is included in the threshold value range determined by the threshold value determination process (S104). S104 is an example of the determination process. For example, on the print setting screen 51 shown in FIG. 3, even if the standard size “A4” is selected as the paper size and the threshold value is determined by any of the above-mentioned threshold value determination processes S209, S211 and S212. , "A4" is included in the permissible paper names.

用紙サイズが閾値の範囲内に含まれると判断した場合(S104:YES)、CPU11は、表示中の印刷設定画面51への入力操作を受け付ける。CPU11は、印刷設定画面51にてOKボタン514への操作を受け付けたか否かを判断する(S105)。OKボタン514への操作を受け付けていないと判断した場合(S105:NO)、CPU11は、キャンセルボタン515への操作を受け付けたか否かを判断する(S106)。キャンセルボタン515への操作を受け付けていないと判断した場合(S106:NO)、CPU11は、印刷設定の変更操作を受け付けたか否かを判断する(S107)。印刷設定の変更操作も受け付けていないと判断した場合(S107:NO)、CPU11は、OKボタン514への操作、または、キャンセルボタン515への操作、または、印刷設定の変更操作のいずれかを受け付けるまで待機する。 When it is determined that the paper size is within the threshold range (S104: YES), the CPU 11 accepts an input operation on the print setting screen 51 being displayed. The CPU 11 determines whether or not the operation to the OK button 514 has been accepted on the print setting screen 51 (S105). When it is determined that the operation to the OK button 514 is not accepted (S105: NO), the CPU 11 determines whether or not the operation to the cancel button 515 is accepted (S106). When it is determined that the operation to the cancel button 515 is not accepted (S106: NO), the CPU 11 determines whether or not the operation for changing the print setting is accepted (S107). If it is determined that the print setting change operation is not accepted (S107: NO), the CPU 11 accepts either the OK button 514 operation, the cancel button 515 operation, or the print setting change operation. Wait until.

印刷設定の変更操作を受け付けたと判断した場合(S107:YES)、CPU11は、受け付けた操作が用紙サイズの変更操作であるか、両面/片面の変更またはトレイ選択の操作であるか、それ以外の操作であるかを判断する(S108)。CPU11は、印刷設定の変更操作として、例えば、印刷設定画面51(図3参照)中の各選択欄511、512、513へのユーザの操作を受け付ける。CPU11は、操作を受け付けた欄にて選択可能な選択肢の一覧を表示させ、表示させた選択肢からの選択を受け付ける。 When it is determined that the print setting change operation has been accepted (S107: YES), the CPU 11 has received the paper size change operation, the double-sided / single-sided change operation, or the tray selection operation, or any other operation. It is determined whether it is an operation (S108). As an operation for changing the print setting, the CPU 11 accepts, for example, a user's operation on the selection fields 511, 512, and 513 in the print setting screen 51 (see FIG. 3). The CPU 11 displays a list of selectable options in the column for accepting the operation, and accepts the selection from the displayed options.

用紙サイズの選択欄511への操作を受け付けた場合、CPU11は、例えば、「A4」等の定型サイズの用紙名、登録済みのユーザ定義サイズの用紙名、ユーザ定義サイズの登録、の各選択肢を含む複数の選択肢をユーザIF18に表示させる。表示させた選択肢のいずれかを選択する操作を受け付けた場合、CPU11は、S108にて、用紙サイズの変更操作を受け付けたと判断する。 When the operation to the paper size selection field 511 is accepted, the CPU 11 selects, for example, a standard size paper name such as "A4", a registered user-defined size paper name, and a user-defined size registration. Display a plurality of options including the user IF18. When the operation of selecting one of the displayed options is accepted, the CPU 11 determines in S108 that the operation of changing the paper size has been accepted.

なお、ユーザ定義サイズの登録指示は、用紙サイズの選択欄511の選択肢に含まれる代わりに、用紙サイズの選択欄511とは別の項目として受け付けても良い。例えば、ユーザ定義サイズの登録指示を受け付ける単独の受け付けボタンが、印刷設定画面51に含まれていても良い。この場合、ユーザ定義サイズの登録指示を単独のボタンにて受け付けた場合にも、CPU11は、S108にて、用紙サイズの変更操作を受け付けたと判断する。 The user-defined size registration instruction may be accepted as a separate item from the paper size selection field 511, instead of being included in the options of the paper size selection field 511. For example, the print setting screen 51 may include a single acceptance button that accepts a user-defined size registration instruction. In this case, even when the user-defined size registration instruction is received by a single button, the CPU 11 determines that the paper size change operation has been accepted in S108.

また、印刷設定画面51にて、例えば、両面印刷の選択欄512への操作を受け付けた場合、CPU11は、S108にて、両面/片面の変更の操作を受け付けたと判断する。両面印刷の選択欄512への操作を受け付けた場合、CPU11は、例えば、片面印刷、両面印刷、小冊子印刷の選択肢をユーザIF18に表示させて、いずれかの選択を受け付ける。小冊子印刷は、綴じるためにページ順を変更した印刷であり、両面印刷の一種である。 Further, when the operation to the selection field 512 for double-sided printing is accepted on the print setting screen 51, for example, the CPU 11 determines that the double-sided / single-sided change operation is accepted in S108. When the operation to the selection field 512 for double-sided printing is accepted, the CPU 11 displays, for example, options for single-sided printing, double-sided printing, and booklet printing on the user IF18, and accepts any selection. Booklet printing is a type of double-sided printing in which the page order is changed for binding.

また、印刷設定画面51にて、例えば、給紙方法の選択欄513への操作を受け付けた場合、CPU11は、S108にて、トレイ選択の操作を受け付けたと判断する。給紙方法の選択欄513への操作を受け付けた場合、CPU11は、プリンタ2に装着されている各給紙トレイの情報を、選択肢としてユーザIF18に表示させて、いずれかの選択を受け付ける。例えば、プリンタ2にカスタムトレイが装着されていれば、カスタムトレイも選択肢として表示される。給紙方法の選択欄513に各選択肢が表示された印刷設定画面51は、トレイ選択画面の一例である。印刷設定の変更操作が給紙方法の選択欄513への操作である場合のS107は、トレイ選択処理の一例である。 Further, when the operation to the paper feed method selection field 513 is accepted on the print setting screen 51, for example, the CPU 11 determines that the tray selection operation is accepted in S108. When the operation to the paper feed method selection field 513 is accepted, the CPU 11 displays the information of each paper feed tray mounted on the printer 2 on the user IF18 as an option, and accepts one of the selections. For example, if the printer 2 is equipped with a custom tray, the custom tray is also displayed as an option. The print setting screen 51 in which each option is displayed in the paper feed method selection field 513 is an example of the tray selection screen. S107 when the operation for changing the print setting is the operation for the selection field 513 of the paper feed method is an example of the tray selection process.

また、印刷設定画面51への操作を受け付けた場合であっても、用紙サイズの選択欄511への操作でも、面印刷の選択欄512への操作でも、給紙方法の選択欄513への操作でもない操作であれば、CPU11は、S108にて、その他の操作を受け付けたと判断する。 Further, even when the operation on the print setting screen 51 is accepted, the operation on the paper size selection field 511, the operation on the side print selection field 512, or the operation on the paper feed method selection field 513 is performed. If the operation is not the same, the CPU 11 determines that the other operation has been accepted in S108.

用紙サイズの変更操作を受け付けたと判断した場合(S108:用紙サイズの変更)、CPU11は、用紙サイズ変更処理を実行する(S109)。用紙サイズ変更処理は、ユーザの操作に基づいて、プリンタ2に渡す用紙サイズを変更する処理である。 When it is determined that the paper size change operation has been accepted (S108: change of paper size), the CPU 11 executes the paper size change process (S109). The paper size change process is a process of changing the paper size to be passed to the printer 2 based on the user's operation.

用紙サイズ変更処理の手順について、図7のフローチャートを参照して説明する。用紙サイズ変更処理では、CPU11は、まず、ユーザIF18に用紙サイズの選択肢の一覧を表示させ(S301)、表示させた各選択肢への選択指示を受け付ける。用紙サイズの選択肢には、例えば、「A4」等の各種の定型サイズ、登録済みのユーザ定義サイズ、ユーザ定義サイズの登録、が含まれる。用紙サイズの選択欄511、519に各選択肢が表示された印刷設定画面51は、用紙サイズ選択画面の一例である。S301は、用紙サイズ選択肢表示処理の一例である。 The procedure of the paper size change process will be described with reference to the flowchart of FIG. In the paper size change process, the CPU 11 first causes the user IF 18 to display a list of paper size options (S301), and receives a selection instruction for each of the displayed options. The paper size options include, for example, various standard sizes such as "A4", a registered user-defined size, and registration of a user-defined size. The print setting screen 51 in which each option is displayed in the paper size selection fields 511 and 519 is an example of the paper size selection screen. S301 is an example of the paper size option display process.

CPU11は、表示させた選択肢から、ユーザ定義サイズの登録指示を受け付けたか否かを判断する(S302)。ユーザ定義サイズの登録指示を受け付けていないと判断した場合(S302:NO)、CPU11は、登録済みのユーザ定義サイズの選択指示を受け付けたか否かを判断する(S303)。登録済みのユーザ定義サイズの選択指示を受け付けていないと判断した場合(S303:NO)、CPU11は、その他の用紙サイズの選択を受け付けたか否かを判断する(S304)。その他の用紙サイズの選択も受け付けていないと判断した場合(S304:NO)、CPU11は、いずれかの選択を受け付けるまで待機する。 The CPU 11 determines whether or not the user-defined size registration instruction has been accepted from the displayed options (S302). When it is determined that the user-defined size registration instruction has not been accepted (S302: NO), the CPU 11 determines whether or not the registered user-defined size selection instruction has been accepted (S303). When it is determined that the registration instruction for selecting the registered user-defined size is not accepted (S303: NO), the CPU 11 determines whether or not the selection of other paper sizes is accepted (S304). If it is determined that the selection of other paper sizes is not accepted (S304: NO), the CPU 11 waits until any selection is accepted.

ユーザ定義サイズの登録指示を受け付けたと判断した場合(S302:YES)、CPU11は、ユーザIF18に登録画面を表示させる(S305)。登録画面の例を図8に示す。図8に示す登録画面52には、例えば、用紙サイズ名の入力欄521、サイズの単位の選択欄522、用紙幅の入力欄523、用紙高さの入力欄524、OKボタン525、キャンセルボタン526、が表示される。なお、サイズの単位のデフォルトの設定は、OS41にて決定されている。登録画面52は、サイズ登録画面の一例であり、S305は、用紙サイズ受付処理の一例である。 When it is determined that the user-defined size registration instruction has been accepted (S302: YES), the CPU 11 causes the user IF 18 to display the registration screen (S305). An example of the registration screen is shown in FIG. On the registration screen 52 shown in FIG. 8, for example, a paper size name input field 521, a size unit selection field 522, a paper width input field 523, a paper height input field 524, an OK button 525, and a cancel button 526 are displayed. , Is displayed. The default setting of the size unit is determined by OS41. The registration screen 52 is an example of the size registration screen, and S305 is an example of the paper size reception process.

用紙幅の入力欄523と用紙高さの入力欄524とには、サイズの単位の選択欄522にて選択中の単位による受け付け可能な数値範囲が表示され、いずれの欄も範囲外の数値は受け付けない。なお、用紙幅の入力欄523と用紙高さの入力欄524とにおける受け付け可能な数値範囲は、プリンタ2にて印刷可能な最大の範囲であるモデル許容サイズ、すなわち、常設トレイを使用した片面印刷を実行可能な用紙サイズの範囲である。 In the paper width input field 523 and the paper height input field 524, the numerical range that can be accepted by the unit selected in the size unit selection field 522 is displayed, and the numerical values outside the range are displayed in any of the fields. I will not accept it. The acceptable numerical range in the paper width input field 523 and the paper height input field 524 is the model allowable size, which is the maximum range that can be printed by the printer 2, that is, single-sided printing using a permanent tray. Is the range of paper sizes that can be executed.

そして、CPU11は、表示中の登録画面にて、登録指示を受け付けたか否かを判断する(S306)。登録指示は、用紙幅の入力欄523と用紙高さの入力欄524との入力を受け付けた後のOKボタン525への操作によって受け付ける。登録指示を受け付けていないと判断した場合(S306:NO)、CPU11は、キャンセルボタン526への操作によってキャンセル指示を受け付けたか否かを判断する(S307)。 Then, the CPU 11 determines whether or not the registration instruction has been accepted on the displayed registration screen (S306). The registration instruction is received by operating the OK button 525 after receiving the input of the paper width input field 523 and the paper height input field 524. When it is determined that the registration instruction is not accepted (S306: NO), the CPU 11 determines whether or not the cancel instruction has been accepted by operating the cancel button 526 (S307).

キャンセル指示も受け付けていないと判断した場合(S307:NO)、CPU11は、登録指示またはキャンセル指示を受け付けるまで待機する。キャンセル指示を受け付けたと判断した場合(S307:YES)、CPU11は、登録画面52の表示を中止して、S302に戻り、用紙サイズの選択肢の一覧表示中への選択指示を受け付ける。 If it is determined that the cancellation instruction is not accepted (S307: NO), the CPU 11 waits until the registration instruction or the cancellation instruction is accepted. When it is determined that the cancellation instruction has been accepted (S307: YES), the CPU 11 stops the display of the registration screen 52, returns to S302, and accepts the selection instruction while displaying the list of paper size options.

一方、登録指示を受け付けたと判断した場合(S306:YES)、CPU11は、登録画面52に表示中の用紙サイズをユーザ定義サイズとして登録する(S308)。登録指示を受け付けた場合、CPU11は、表示中の用紙名と用紙サイズとの情報を、ユーザ定義サイズの用紙情報として、プリンタドライバ43用の記憶領域に記憶する。プリンタドライバ43用の記憶領域は、編集対象の印刷設定を一時的に記憶しているデータ構造体とは異なり、恒久的な領域である。登録されたユーザ定義サイズの情報は、印刷アプリ42等のアプリやプリンタドライバ43の次回以降の実行時にも参照可能であり、S301等で用紙サイズの選択肢の1つとして表示される。 On the other hand, when it is determined that the registration instruction has been accepted (S306: YES), the CPU 11 registers the paper size displayed on the registration screen 52 as the user-defined size (S308). When the registration instruction is received, the CPU 11 stores the information of the displayed paper name and the paper size in the storage area for the printer driver 43 as the paper information of the user-defined size. The storage area for the printer driver 43 is a permanent area, unlike the data structure that temporarily stores the print settings to be edited. The registered user-defined size information can be referred to when the application such as the print application 42 or the printer driver 43 is executed next time or later, and is displayed as one of the paper size options in S301 or the like.

S308の後、または、用紙サイズの選択肢から登録済みのユーザ定義サイズが選択されたと判断した場合(S303:YES)、CPU11は、編集中の印刷設定での用紙サイズを選択または登録されたユーザ定義サイズとする(S309)。なお、編集中の印刷設定での用紙サイズは、印刷設定画面51(図3参照)中の用紙サイズの選択欄511にて選択されている用紙サイズであり、印刷設定として決定された場合には、前述したデータ構造体に記憶される印刷設定中の用紙サイズとなる。 After S308, or when it is determined that the registered user-defined size is selected from the paper size options (S303: YES), the CPU 11 selects or registers the paper size in the print setting being edited. The size is set to (S309). The paper size in the print setting during editing is the paper size selected in the paper size selection field 511 on the print setting screen 51 (see FIG. 3), and when it is determined as the print setting, it is determined. , The paper size in the print setting stored in the above-mentioned data structure.

さらに、CPU11は、印刷設定にて片面印刷が選択されているか否かを判断する(S310)。片面印刷が選択されていると判断した場合(S310:YES)、CPU11は、S309にて決定した用紙サイズが、閾値決定処理のS202にて取得した両面許容サイズに含まれるか否かを判断する(S311)。そして、用紙サイズが両面許容サイズの範囲外であると判断した場合(S311:NO)、CPU11は、印刷設定画面51中の両面印刷の選択肢および小冊子印刷の選択肢をグレーアウトする(S312)。S312では、両面印刷の選択肢および小冊子印刷の選択を受け付けないようにすれば良く、例えば、それらの選択肢を表示させないとしても良いし、両面印刷の選択欄512自体をグレーアウトしても良い。 Further, the CPU 11 determines whether or not single-sided printing is selected in the print settings (S310). When it is determined that single-sided printing is selected (S310: YES), the CPU 11 determines whether or not the paper size determined in S309 is included in the double-sided allowable size acquired in S202 of the threshold value determination process. (S311). Then, when it is determined that the paper size is out of the range of the double-sided allowable size (S311: NO), the CPU 11 grays out the double-sided printing option and the booklet printing option in the print setting screen 51 (S312). In S312, the options for double-sided printing and the selection for booklet printing may not be accepted. For example, those options may not be displayed, or the double-sided printing selection field 512 itself may be grayed out.

印刷設定が片面印刷であって、選択された用紙サイズが両面印刷を実行不可能なサイズであれば、予め両面印刷の選択肢を選択不能に表示させることで、実行不可能な設定が選択されることを予防できる。 If the print setting is single-sided printing and the selected paper size is a size that makes double-sided printing infeasible, the infeasible setting is selected by displaying the double-sided printing options in advance so that they cannot be selected. You can prevent that.

また、用紙サイズの選択肢から、その他の用紙サイズの選択を受け付けたと判断した場合(S304:YES)、CPU11は、編集中の印刷設定での用紙サイズを選択されたサイズとする(S313)。S312またはS313の後、または、片面印刷ではないと判断した場合(S310:NO)、または、用紙サイズが両面許容サイズに含まれると判断した場合(S311:YES)、CPU11は、用紙サイズ変更処理を終了して、印刷設定処理に戻る。 If it is determined from the paper size options that the selection of another paper size has been accepted (S304: YES), the CPU 11 sets the paper size in the print setting being edited to the selected size (S313). After S312 or S313, when it is determined that the printing is not single-sided printing (S310: NO), or when it is determined that the paper size is included in the double-sided allowable size (S311: YES), the CPU 11 performs the paper size change processing. Exits and returns to the print setting process.

なお、用紙サイズの変更操作は、印刷設定画面51(図3参照)中の用紙サイズの選択欄511への操作に限らない。印刷設定画面51には、図3に示したように、「基本」、「拡張」等の複数のタブが含まれ、CPU11は、タブへの操作も受け付ける。印刷設定画面51中で拡張タブが選択された場合、CPU11は、基本タブ画面51Aに含まれない印刷設定の編集を受け付ける拡張タブ画面を、ユーザIF18に表示させる。 The operation of changing the paper size is not limited to the operation of the paper size selection field 511 on the print setting screen 51 (see FIG. 3). As shown in FIG. 3, the print setting screen 51 includes a plurality of tabs such as "basic" and "extended", and the CPU 11 also accepts operations on the tabs. When the extended tab is selected in the print setting screen 51, the CPU 11 causes the user IF 18 to display an extended tab screen that accepts editing of print settings not included in the basic tab screen 51A.

拡張タブ画面の例を図6に示す。図6の例に示す拡張タブ画面51Bには、画像を拡大ないし縮小して印刷させる設定であるスケーリングの設定を受け付けるボタンが含まれる。拡張タブ画面51Bには、スケーリングの設定を受け付ける選択ボタンとして、例えば、「オフ」516、「用紙に合わせる」517、「フリー」518、の各ボタンが表示される。拡張タブ画面51Bは、スケーリング設定画面の一例であり、拡張タブ画面51B中で受け付けるスケーリングの設定は、スケーリングの実行有無の設定の一例である。印刷設定の変更操作が拡張タブ画面51B中の各ボタンへの操作である場合のS107は、スケーリング設定処理の一例である。 An example of the extended tab screen is shown in FIG. The extended tab screen 51B shown in the example of FIG. 6 includes a button that accepts a scaling setting that is a setting for printing an image by enlarging or reducing it. On the extended tab screen 51B, for example, "off" 516, "fit to paper" 517, and "free" 518 are displayed as selection buttons for accepting scaling settings. The extended tab screen 51B is an example of a scaling setting screen, and the scaling setting accepted in the extended tab screen 51B is an example of setting whether or not to execute scaling. S107 when the operation for changing the print setting is an operation for each button in the extended tab screen 51B is an example of the scaling setting process.

「オフ」516は、スケーリングを行わない設定を受け付けるボタンである。「オフ」516が選択された場合、CPU11は、画像の拡大も縮小も行わない。拡張タブ画面51Bにて「オフ」516が選択された場合、CPU11は、S108にて、用紙サイズの変更操作を受け付けていないと判断する。 “Off” 516 is a button that accepts a setting that does not perform scaling. When "Off" 516 is selected, the CPU 11 does not zoom in or out on the image. When "Off" 516 is selected on the extended tab screen 51B, the CPU 11 determines in S108 that the paper size change operation is not accepted.

「用紙に合わせる」517は、画像データのサイズを、用紙のサイズに合わせて、拡大または縮小する設定を受け付けるボタンである。スケーリングの設定として「用紙に合わせる」517が選択された場合、CPU11は、図6に示すように、用紙サイズの選択欄519にてさらに、プリンタ2にて印刷に使用する用紙サイズの選択を受け付ける。 "Fit to paper" 517 is a button that accepts a setting for enlarging or reducing the size of the image data according to the size of the paper. When "Fit to Paper" 517 is selected as the scaling setting, the CPU 11 further accepts the selection of the paper size to be used for printing by the printer 2 in the paper size selection field 519 as shown in FIG. ..

用紙サイズの選択欄519への操作を受け付けると、CPU11は、基本タブ画面51Aの用紙サイズの選択欄511と同様の複数の選択肢をユーザIF18に表示させ、選択を受け付ける。用紙サイズの選択欄519に表示される用紙サイズの選択肢には、定型サイズの用紙名、登録済みのユーザ定義サイズの用紙名、の各選択肢が含まれる。用紙サイズの選択欄519にて受け付ける用紙サイズは、スケーリング用の用紙サイズの一例である。用紙サイズの選択欄519でもユーザ定義サイズの登録指示を受け付けても良い。 When the operation to the paper size selection field 519 is accepted, the CPU 11 causes the user IF 18 to display a plurality of options similar to the paper size selection field 511 of the basic tab screen 51A, and accepts the selection. The paper size options displayed in the paper size selection field 519 include each option of a standard size paper name and a registered user-defined size paper name. The paper size accepted in the paper size selection field 519 is an example of the paper size for scaling. The paper size selection field 519 may also accept a user-defined size registration instruction.

用紙サイズの選択欄519にて用紙サイズの選択を受け付けた場合、CPU11は、基本タブ画面51Aの用紙サイズの選択欄511における選択内容にかかわらず、用紙サイズの選択欄519で選択された用紙サイズを、印刷に使用する用紙の用紙サイズとしてプリンタ2に渡す。以下、スケーリング用の用紙サイズを、「スケーリング用紙サイズ」とする。スケーリング用紙サイズは、前述したデータ構造体に記憶される印刷設定に、例えば、「スケーリング用紙サイズ」として書き込まれる数値である。 When the selection of the paper size is accepted in the paper size selection field 519, the CPU 11 selects the paper size in the paper size selection field 519 regardless of the selection contents in the paper size selection field 511 of the basic tab screen 51A. Is passed to the printer 2 as the paper size of the paper used for printing. Hereinafter, the paper size for scaling will be referred to as "scaling paper size". The scaling paper size is a numerical value written as, for example, "scaling paper size" in the print settings stored in the data structure described above.

例えば、画像データのサイズがA4であり、用紙サイズの選択欄519にて選択されたスケーリング用紙サイズがA5であれば、プリンタドライバ43は、印刷アプリ42等から印刷対象の画像としてA4サイズの画像の画像データを受け取り、画像を縮小した印刷データとA5サイズの用紙への印刷の指示とを含むコマンドをプリンタ2に渡す。用紙サイズの選択欄519への操作を受け付けた場合、CPU11は、S108にて、用紙サイズの変更操作を受け付けたと判断する。 For example, if the size of the image data is A4 and the scaling paper size selected in the paper size selection field 519 is A5, the printer driver 43 uses the print application 42 or the like to print an A4 size image as an image to be printed. Receives the image data of the above, and passes a command including print data obtained by reducing the image and instructions for printing on A5 size paper to the printer 2. When the operation to the paper size selection field 519 is accepted, the CPU 11 determines in S108 that the operation to change the paper size has been accepted.

「フリー」518は、受け付け可能な範囲内の数値によって、拡大または縮小の割合の設定を受け付けるボタンである。「フリー」518が選択された場合、プリンタ2に渡す用紙サイズは、基本タブ画面51Aの用紙サイズの選択欄511における選択内容のままである。拡張タブ画面51Bにて「フリー」518が選択された場合、CPU11は、S108にて、用紙サイズの変更操作を受け付けていないと判断する。 The "free" 518 is a button that accepts the setting of the enlargement or reduction ratio depending on the numerical value within the acceptable range. When "free" 518 is selected, the paper size to be passed to the printer 2 remains the selected content in the paper size selection field 511 of the basic tab screen 51A. When "free" 518 is selected on the extended tab screen 51B, the CPU 11 determines in S108 that the paper size change operation is not accepted.

図3の印刷設定処理の説明に戻る。印刷設定処理では、S109の用紙サイズ変更処理にて用紙サイズが変更された後、CPU11は、S104に戻って、変更後の用紙サイズが閾値決定処理にて決定した閾値の範囲内に含まれるか否かを判断する。 Returning to the description of the print setting process of FIG. In the print setting process, after the paper size is changed by the paper size change process of S109, the CPU 11 returns to S104 and is the changed paper size included in the threshold range determined by the threshold value determination process? Judge whether or not.

また、受け付けた変更操作が、両面/片面の変更またはトレイ選択の操作であると判断した場合(S108:両面/片面、トレイ選択)、CPU11は、S103に戻って、閾値決定処理を実行する。両面/片面の設定やトレイが変更された場合、閾値が変わる可能性がある。そこで、変更後の設定での閾値を決定して、新たな閾値にて用紙サイズの範囲の判断を行う。2回目以降の閾値決定処理では、装着されているトレイが変更されていない場合には、S201〜S205をスキップして、S206の判断から実行しても良い。 If it is determined that the received change operation is a double-sided / single-sided change or tray selection operation (S108: double-sided / single-sided, tray selection), the CPU 11 returns to S103 and executes the threshold value determination process. If the double-sided / single-sided setting or tray is changed, the threshold may change. Therefore, the threshold value in the changed setting is determined, and the paper size range is determined by the new threshold value. In the second and subsequent threshold determination processes, if the mounted tray has not been changed, S201 to S205 may be skipped and the execution may be performed from the judgment of S206.

いずれかの設定の変更により、選択中の用紙サイズが閾値の範囲外となったと判断した場合(S104:NO)、CPU11は、警告メッセージをユーザIF18に表示させる(S110)。警告メッセージは、選択中の用紙サイズが印刷設定に対して不適切であることをユーザに警告するメッセージである。S110は、報知処理の一例である。 When it is determined that the selected paper size is out of the threshold range by changing any of the settings (S104: NO), the CPU 11 displays a warning message on the user IF 18 (S110). The warning message is a message that warns the user that the selected paper size is inappropriate for the print settings. S110 is an example of notification processing.

例えば、図5に示した例で両面かつカスタムトレイが選択されている場合、閾値は、許容される用紙名は、「A4」と「Letter」であり、許容される用紙サイズは、用紙幅が128.9−215.9mmの範囲内で、かつ、用紙高さが209.5−297.4mmの範囲内のサイズである。用紙サイズの変更操作によって、ユーザ定義サイズの用紙が選択された場合、ユーザ定義サイズの用紙の用紙名は、「A4」等の定型サイズの用紙名ではなく、許容される用紙名に含まれることはない。この場合、CPU11は、選択されたユーザ定義サイズの用紙サイズの数値が、前述した閾値決定処理にて決定された閾値の範囲内に含まれるか否かを判断する。例えば、用紙幅88.9mmの用紙や、用紙高さ430.6mmの用紙が選択されている場合、これらのサイズは閾値の範囲外であり、CPU11は、S104にてNOと判断する。一方、用紙幅が128.9mmで用紙高さが209.5mmの用紙は閾値の範囲内であり、CPU11は、S104にてYESと判断する。 For example, when the double-sided and custom tray is selected in the example shown in FIG. 5, the threshold value is that the allowable paper names are "A4" and "Letter", and the allowable paper size is the paper width. The size is within the range of 128.9-215.9 mm and the paper height is within the range of 209.5-297.4 mm. When a user-defined size paper is selected by the paper size change operation, the paper name of the user-defined size paper is included in the allowable paper name, not the standard size paper name such as "A4". There is no. In this case, the CPU 11 determines whether or not the numerical value of the paper size of the selected user-defined size is included in the range of the threshold value determined by the above-mentioned threshold value determination process. For example, when a paper having a paper width of 88.9 mm or a paper having a paper height of 430.6 mm is selected, these sizes are out of the threshold range, and the CPU 11 determines NO in S104. On the other hand, the paper having a paper width of 128.9 mm and a paper height of 209.5 mm is within the threshold range, and the CPU 11 determines YES in S104.

警告メッセージの例を図9に示す。図9の例の警告メッセージ53には、選択中の給紙トレイの情報である「トレイ1」531、両面印刷が選択されていることを示す「両面印刷」532、許容される数値範囲533、数値の表記に用いる単位534、及び、OKボタン535が含まれる。単位534は、例えば、図8に示した登録画面52中のサイズの単位の選択欄522にて選択された単位、あるいは、デフォルトの単位である。数値範囲533は、選択中の印刷設定における閾値の上限及び下限を単位534の単位にて表記した数値である。警告メッセージ53として、トレイの選択と両面印刷の設定との組み合わせによって印刷可能な用紙サイズの範囲を報知するので、ユーザは印刷可能な用紙サイズを選択できる。 An example of a warning message is shown in FIG. The warning message 53 in the example of FIG. 9 includes "Tray 1" 531 which is information on the selected paper tray, "Double-sided printing" 532 indicating that double-sided printing is selected, and an allowable numerical range 533. The unit 534 used for notation of numerical values and the OK button 535 are included. The unit 534 is, for example, the unit selected in the size unit selection field 522 in the registration screen 52 shown in FIG. 8, or the default unit. The numerical range 533 is a numerical value in which the upper limit and the lower limit of the threshold value in the selected print setting are expressed in the unit of 534. As the warning message 53, the range of the printable paper size is notified by the combination of the tray selection and the double-sided printing setting, so that the user can select the printable paper size.

図3の印刷設定処理の説明に戻る。S110では、CPU11は、警告メッセージを表示させた後、図9に示したOKボタン535への操作を受け付けるまで待機する。その後、CPU11は、最後に受け付けた設定変更をキャンセルし、変更前の状態に戻す(S111)。S111は、排他処理の一例である。例えば、トレイの変更操作を受け付けたことで用紙サイズが許容範囲外となった場合、CPU11は、印刷設定を変更前のトレイに戻す。変更によって許容範囲外になった設定を元に戻すことで、表示中の印刷設定は許容範囲内の関係となる。 Returning to the description of the print setting process of FIG. In S110, after displaying the warning message, the CPU 11 waits until the operation to the OK button 535 shown in FIG. 9 is accepted. After that, the CPU 11 cancels the last received setting change and returns to the state before the change (S111). S111 is an example of exclusive processing. For example, when the paper size is out of the permissible range due to the acceptance of the tray change operation, the CPU 11 returns the print setting to the tray before the change. By restoring the settings that are out of the permissible range due to the change, the print settings being displayed are within the permissible range.

S111の後、または、受け付けた変更操作が、用紙サイズの変更、両面/片面の変更、トレイ選択のいずれでもないと判断した場合(S108:その他)、CPU11は、S105〜S107の判断に戻り、いずれかの指示を受け付けるまで待機する。 After S111, or when it is determined that the accepted change operation is not any of paper size change, double-sided / single-sided change, and tray selection (S108: other), the CPU 11 returns to the determination of S105 to S107. Wait until one of the instructions is accepted.

そして、OKボタン514への操作を受け付けたと判断した場合(S105:YES)、CPU11は、表示中の印刷設定画面51の各設定を印刷設定として決定し(S112)、決定した印刷設定をデータ構造体に書き込んで、印刷設定処理を終了する。スケーリングが設定されている場合には、CPU11は、スケーリング用紙サイズもデータ構造体に書き込む。なお、CPU11は、S112にて決定した印刷設定をプリンタドライバ43用の記憶領域に記憶させても良い。 Then, when it is determined that the operation to the OK button 514 is accepted (S105: YES), the CPU 11 determines each setting of the print setting screen 51 being displayed as a print setting (S112), and determines the determined print setting as a data structure. Write to the body and finish the print setting process. If scaling is set, the CPU 11 also writes the scaling paper size to the data structure. The CPU 11 may store the print setting determined in S112 in the storage area for the printer driver 43.

一方、キャンセルボタン515への操作を受け付けたと判断した場合(S106:YES)、CPU11は、表示中の印刷設定画面51にて受け付けた各設定をキャンセルし、印刷設定を起動時の設定に戻して(S113)、印刷設定処理を終了する。すなわち、CPU11は、編集された印刷設定をデータ構造体やプリンタドライバ43用の記憶領域に書き込まず、編集結果を破棄する。 On the other hand, when it is determined that the operation to the cancel button 515 has been accepted (S106: YES), the CPU 11 cancels each setting accepted on the print setting screen 51 being displayed, and returns the print setting to the setting at the time of startup. (S113), the print setting process is terminated. That is, the CPU 11 does not write the edited print settings to the data structure or the storage area for the printer driver 43, and discards the edited result.

なお、プリンタドライバ43は、印刷アプリ42等のアプリからの指示に限らず、例えば、OS41、プリンタドライバ43のメーカが提供する関連ツール、から印刷設定の編集指示を受け付けた場合にも、印刷設定処理を実行する。この場合、CPU11は、S112にて決定した印刷設定をプリンタドライバ43用の記憶領域に記憶させる。つまり、編集後の印刷設定は、恒久的なものとなる。なお、OS41または各種の関連ツールやアプリが、プリンタドライバ43用の記憶領域に編集後の印刷設定を記憶させても良い。 Note that the printer driver 43 is not limited to instructions from an application such as the print application 42, but also print settings even when an edit instruction for print settings is received from, for example, OS 41 or a related tool provided by the manufacturer of the printer driver 43. Execute the process. In this case, the CPU 11 stores the print setting determined in S112 in the storage area for the printer driver 43. That is, the print settings after editing are permanent. Note that the OS 41 or various related tools or applications may store the edited print settings in the storage area for the printer driver 43.

ここまで、印刷アプリ42等にて印刷設定の編集指示を受け付けた場合のプリンタドライバ43の動作について説明した。印刷アプリ42等のアプリからプリンタドライバ43が起動されたことにより、CPU11が印刷設定処理を実行した場合、S112またはS113の後に印刷設定処理を終了した後も、印刷アプリ42等が終了されるまで、データ構造体は保持される。印刷アプリ42等は、プリンタドライバ43による印刷設定処理の終了の通知を受け取った後、当該アプリにて受け付け可能な各種の指示を受け付ける。 Up to this point, the operation of the printer driver 43 when an editing instruction for printing settings is received by the printing application 42 or the like has been described. When the printer driver 43 is started from an application such as the print application 42, when the CPU 11 executes the print setting process, even after the print setting process is completed after S112 or S113, until the print application 42 or the like is terminated. , The data structure is retained. After receiving the notification of the end of the print setting process by the printer driver 43, the print application 42 or the like receives various instructions that can be accepted by the application.

印刷アプリ42等によっては、印刷設定として、ユーザ定義サイズの用紙サイズの指定、両面印刷の設定、トレイの選択を受け付ける場合もある。なお、印刷アプリ42等は、印刷対象の装置としてプリンタ2が選択された場合、プリンタドライバ43からプリンタ2の能力を取得し、その範囲内での印刷設定を受け付ける。印刷アプリ42等にて受け付け可能な用紙サイズの範囲は、プリンタ2での常設トレイを使用した片面印刷の範囲である場合が多い。そして、印刷アプリ42等は、印刷設定の編集指示を受け付けることなく、印刷の実行指示を受け付ける場合もある。印刷アプリ42等にてプリンタ2での印刷実行の指示を受け付けた場合にも、プリンタドライバ43は起動される。 Depending on the print application 42 or the like, as print settings, a user-defined size paper size specification, double-sided printing setting, and tray selection may be accepted. When the printer 2 is selected as the device to be printed, the print application 42 or the like acquires the capability of the printer 2 from the printer driver 43 and accepts print settings within that range. The range of paper sizes that can be accepted by the print application 42 or the like is often the range of single-sided printing using the permanent tray of the printer 2. Then, the print application 42 or the like may accept the print execution instruction without accepting the edit instruction of the print setting. The printer driver 43 is also activated when the print application 42 or the like receives an instruction to execute printing on the printer 2.

次に、本形態のプリンタドライバ43による印刷処理の手順について、図10のフローチャートを参照して説明する。印刷処理は、印刷アプリ等にてプリンタ2での印刷実行の指示を受け付け、OS41からプリンタドライバ43に印刷ジョブが入力されたことを契機に、PC1のCPU11にて実行される。 Next, the procedure of the printing process by the printer driver 43 of this embodiment will be described with reference to the flowchart of FIG. The print process is executed by the CPU 11 of the PC 1 when a print application or the like receives an instruction to execute printing on the printer 2 and a print job is input from the OS 41 to the printer driver 43.

印刷処理では、CPU11は、まず、印刷アプリ42等のアプリとプリンタドライバ43とで共用されるデータ構造体から印刷設定を取得する(S401)。なお、印刷アプリ42等のアプリでは、印刷設定の編集指示を受け付けることなく、つまり、前述した印刷設定処理を実行せずに印刷実行の指示を受け付ける場合がある。その場合でも、CPU11は、印刷設定処理の開始時と同様に、プリンタドライバ43用の記憶領域に記憶されている印刷設定を読み出してデータ構造体に記憶させ、S401では、そのデータ構造体から印刷設定を取得する。 In the print process, the CPU 11 first acquires print settings from a data structure shared by an application such as the print application 42 and the printer driver 43 (S401). An application such as the print application 42 may accept a print execution instruction without receiving an edit instruction of the print setting, that is, without executing the print setting process described above. Even in that case, the CPU 11 reads out the print settings stored in the storage area for the printer driver 43 and stores them in the data structure in the same manner as at the start of the print setting process, and in S401, prints from the data structure. Get the settings.

そして、CPU11は、印刷設定にて、用紙サイズとしてユーザ定義サイズが指定されているか否かを判断する(S402)。スケーリング設定が有効とされている場合には、CPU11は、スケーリング用紙サイズがユーザ定義サイズであるか否かを判断する。 Then, the CPU 11 determines whether or not a user-defined size is specified as the paper size in the print settings (S402). When the scaling setting is enabled, the CPU 11 determines whether or not the scaling paper size is a user-defined size.

ユーザ定義サイズが指定されていると判断した場合(S402:YES)、CPU11は、前述した閾値決定処理(図4参照)を実行する(S403)。CPU11は、印刷設定にて指定されているユーザ定義サイズの用紙サイズが、トレイの選択や両面印刷の設定との組み合わせが許容範囲内となるサイズであるか否かを判断する(S404)。 When it is determined that the user-defined size is specified (S402: YES), the CPU 11 executes the threshold value determination process (see FIG. 4) described above (S403). The CPU 11 determines whether or not the paper size of the user-defined size specified in the print setting is within the permissible range in combination with the tray selection and the double-sided printing setting (S404).

許容範囲外であると判断した場合(S404:NO)、CPU11は、印刷設定を片面印刷に変更する(S405)。なお、CPU11は、例えば、片面印刷に変更することで用紙サイズが許容範囲内となる場合にS405を行う。また、トレイを変更することで用紙サイズが許容範囲内となる場合には、CPU11は、S405に代えて、トレイを変更しても良い。入力された印刷ジョブに設定されていた印刷設定をそのままプリンタ2に渡すことはせず、S405にて印刷設定を変更することで、CPU11は、プリンタ2にて印刷不可能な印刷指示をプリンタ2に送信しない。 If it is determined that the print setting is out of the permissible range (S404: NO), the CPU 11 changes the print setting to single-sided printing (S405). The CPU 11 performs S405 when, for example, the paper size is within the permissible range by changing to single-sided printing. If the paper size is within the permissible range by changing the tray, the CPU 11 may change the tray instead of S405. The print settings set for the input print job are not passed to the printer 2 as they are, but by changing the print settings in S405, the CPU 11 issues a print instruction that cannot be printed by the printer 2. Do not send to.

なお、S405では、CPU11は、印刷設定を変更したことを示すメッセージを表示させても良いし、ユーザの承認を得た場合に印刷設定を変更するとしても良い。また、S405では、CPU11は、印刷設定を変更する代わりに、印刷設定が不適切であることを示すメッセージ,例えば、図9に示した警告メッセージ53を表示して、印刷処理を終了し、印刷しないとしても良い。ユーザ定義サイズの用紙が選択された場合に、用紙の搬送エラーを回避するために一律に両面印刷を実行できなくするのではなく、両面印刷可能な用紙サイズの範囲を表示することで、ユーザの利便性を高めることができる。 In S405, the CPU 11 may display a message indicating that the print setting has been changed, or may change the print setting when the user's approval is obtained. Further, in S405, instead of changing the print setting, the CPU 11 displays a message indicating that the print setting is inappropriate, for example, a warning message 53 shown in FIG. 9, ends the printing process, and prints. You don't have to. When user-defined size paper is selected, the user's range of paper sizes that can be printed on both sides is displayed instead of uniformly disabling double-sided printing to avoid paper transport errors. Convenience can be enhanced.

S405の後、または、許容範囲内であると判断した場合(S404:YES)、または、ユーザ定義サイズが選択されていないと判断した場合(S402:NO)、CPU11は、印刷ジョブにて指定されている画像データに基づいて印刷データを作成する(S406)。なお、印刷設定においてスケーリングの実行が指定されている場合、CPU11は、指定されたサイズの印刷物が作成されるように、スケーリング後の印刷データを作成する。さらに、CPU11は、作成した印刷データをプリンタ2に送信して(S407)、印刷処理を終了する。 After S405, when it is determined that it is within the permissible range (S404: YES), or when it is determined that the user-defined size is not selected (S402: NO), the CPU 11 is specified in the print job. Print data is created based on the image data (S406). When the execution of scaling is specified in the print settings, the CPU 11 creates the printed data after scaling so that the printed matter of the specified size is created. Further, the CPU 11 transmits the created print data to the printer 2 (S407), and ends the print process.

以上、詳細に説明したように、本形態のプリンタドライバ43を備えるPC1は、編集指示を受け付けた印刷設定やOS41から入力された印刷ジョブの印刷設定に、ユーザ定義の用紙サイズと両面印刷の実行有とトレイの指定とが含まれる場合に、その組み合わせでの印刷が実行可能か否かによって、その印刷設定を受け付けるか否かを決定する。これにより、ユーザ定義の用紙サイズの際に一律に両面印刷を実行できなくする場合と比較して、ユーザ定義の用紙サイズであっても両面印刷が実行できる機会が増え、ユーザ定義の用紙サイズを用いる際の利便性が高まる。 As described in detail above, the PC1 equipped with the printer driver 43 of this embodiment executes the user-defined paper size and double-sided printing in the print settings for receiving the edit instruction and the print settings for the print job input from the OS 41. When the presence and the designation of the tray are included, it is determined whether or not to accept the print setting depending on whether or not printing in the combination is feasible. As a result, compared to the case where double-sided printing cannot be performed uniformly when using a user-defined paper size, there are more opportunities to perform double-sided printing even with a user-defined paper size, and the user-defined paper size can be reduced. Convenience when using it increases.

さらに、本形態のプリンタドライバ43は、印刷設定画面51にて用紙サイズの設定やトレイの選択を受け付けた際や、登録画面52にてユーザ定義の用紙サイズの登録を受け付けた際に、用紙サイズと両面印刷の実行有とトレイの選択との組み合わせの可否を判断するので、不適切な設定を早期に回避できる。また、本形態のプリンタドライバ43は、印刷ジョブを受け付けた際にもユーザ定義の用紙サイズと両面印刷の実行有とトレイの選択との組み合わせの可否を判断するので、不適切な設定がプリンタ2に渡ることを回避できる。 Further, the printer driver 43 of this embodiment has a paper size when the print setting screen 51 accepts the paper size setting and the tray selection, or when the registration screen 52 accepts the user-defined paper size registration. Since it is determined whether or not the combination of double-sided printing and tray selection is possible, inappropriate settings can be avoided at an early stage. Further, since the printer driver 43 of this embodiment determines whether or not the user-defined paper size, the presence / absence of double-sided printing, and the selection of the tray can be combined even when the print job is accepted, an inappropriate setting is set for the printer 2. You can avoid crossing over.

さらに、本形態では、用紙サイズと両面印刷の実行有とトレイの選択との組み合わせが実行不可能な組み合わせであった場合、ユーザ定義の用紙サイズが選択される前の用紙サイズに戻す、または、両面印刷の実行有の設定を受け付けなくするので、不適切な設定を回避できる。 Further, in this embodiment, if the combination of the paper size, the execution of double-sided printing, and the selection of the tray is an infeasible combination, the user-defined paper size is returned to the paper size before being selected, or Since the setting with execution of double-sided printing is not accepted, inappropriate setting can be avoided.

さらに、本形態では、用紙サイズと両面印刷の実行有とトレイの選択との組み合わせが実行不可能な組み合わせである場合、警告メッセージ53中に実行可能な用紙サイズの範囲を表示するので、適切な用紙サイズの入力が期待できる。 Further, in this embodiment, when the combination of the paper size, the execution of double-sided printing, and the selection of the tray is an infeasible combination, the range of the paper size that can be executed is displayed in the warning message 53, which is appropriate. You can expect to enter the paper size.

さらに、本形態では、スケーリングのオプションにも対応するので、ユーザ定義の用紙サイズを用いる際の利便性がより高まる。スケーリングの実行有無が変更されると、プリンタ2に渡す用紙サイズが変更される可能性があるため、スケーリングの実行有無が変更されるタイミングで判断し直すことで、不適切な設定をより早期に回避できる。 Further, in this embodiment, since the scaling option is also supported, the convenience when using the user-defined paper size is further enhanced. If the presence / absence of scaling execution is changed, the paper size to be passed to the printer 2 may be changed. Therefore, by re-judging at the timing when the presence / absence of scaling execution is changed, inappropriate settings can be set earlier. Can be avoided.

なお、本形態は単なる例示にすぎず、本発明を何ら限定するものではない。したがって本発明は当然に、その要旨を逸脱しない範囲内で種々の改良、変形が可能である。例えば、プリンタ2は、印刷単機能の装置に限らず、例えば、原稿読取機能やFAX送受信機能を備えている装置であっても良い。本形態は、プリンタ2に代えて、複合機、コピー機、FAX装置等に接続されるPC1にも適用可能である。また、PC1には、2台以上のプリンタが接続されていても良い。 It should be noted that this embodiment is merely an example and does not limit the present invention in any way. Therefore, as a matter of course, the present invention can be improved and modified in various ways without departing from the gist thereof. For example, the printer 2 is not limited to a device having a single printing function, and may be, for example, a device having a document reading function and a fax transmission / reception function. This embodiment can be applied to a PC 1 connected to a multifunction device, a copier, a fax machine, or the like instead of the printer 2. Further, two or more printers may be connected to the PC1.

また、各図に示した画面の構成は、いずれも一例であり、図示の例に限らない。例えば、印刷設定画面51の基本タブ画面51Aでは、用紙サイズと両面印刷と給紙トレイとの全ての選択を受け付けるとしたが、一部の選択は別の画面で受け付けてもよいし、それぞれ別の画面であっても良い。 Further, the screen configurations shown in each figure are merely examples, and are not limited to the illustrated examples. For example, the basic tab screen 51A of the print setting screen 51 accepts all selections of paper size, double-sided printing, and paper feed tray, but some selections may be accepted on different screens or separately. The screen may be.

また、例えば、プリンタ2には、排紙トレイによって排紙可能な用紙サイズに制限があっても良く、その場合、プリンタドライバ43は、指定された排紙トレイによる制限も加味して閾値を決定しても良い。CPU11は、例えば、排紙可能な用紙サイズを超える用紙サイズの設定を受け付けないとしても良い。 Further, for example, the printer 2 may have a limitation on the paper size that can be ejected by the output tray. In that case, the printer driver 43 determines the threshold value in consideration of the limitation by the designated output tray. You may. The CPU 11 may not accept the setting of the paper size exceeding the paper size that can be ejected, for example.

また、本形態では、用紙サイズの選択欄511、519への操作を受け付けた場合に、用紙サイズが許容範囲内であるか否かを判断するとしたが、用紙サイズの選択欄511、519への操作によって、登録済みのユーザ定義サイズの選択指示またはユーザ定義サイズの登録指示のいずれかを受け付けた場合のみ判断するとしても良い。あるいは、何らかの印刷設定の変更指示を受け付けた場合には、どの変更指示であっても、用紙サイズが許容範囲内であるか否かの判断を行うとしても良い。 Further, in the present embodiment, when the operation to the paper size selection fields 511 and 319 is accepted, it is determined whether or not the paper size is within the permissible range. The determination may be made only when either the registered user-defined size selection instruction or the user-defined size registration instruction is accepted by the operation. Alternatively, when an instruction to change some print settings is received, it may be determined whether or not the paper size is within the allowable range regardless of the change instruction.

また、本形態では、印刷設定の組み合わせが許容範囲外であると判断した場合、直前の変更を元に戻すとしたが、これに限らない。例えば、直前の変更をデフォルトに戻すとしても良いし、全ての変更を元に戻すとしてもよい。 Further, in the present embodiment, when it is determined that the combination of print settings is out of the permissible range, the previous change is undone, but the present invention is not limited to this. For example, the last change may be undone to the default, or all changes may be undone.

また、本形態では、印刷設定の編集指示または印刷ジョブの入力を受け付けた場合に、印刷設定の組み合わせを判断するとしたが、例えば、印刷アプリ42等からの問い合わせに応じて、印刷可能な用紙サイズの範囲を応答する場合にも、他の印刷設定との組み合わせに応じて、応答する用紙サイズの範囲を決定しても良い。 Further, in this embodiment, it is determined that the combination of print settings is determined when an edit instruction of print settings or an input of a print job is received. However, for example, a printable paper size is received in response to an inquiry from a print application 42 or the like. When responding to the range of, the range of the paper size to be responded to may be determined according to the combination with other print settings.

また、本形態では、プリンタドライバ43の処理として説明したが、本発明のプログラムは、プリンタドライバに限らない。プリンタドライバに代えて汎用の印刷プログラムを備えるOSが搭載された、いわゆるドライバレスの構成を有するPCにも適用可能である。本発明は、例えば、汎用の印刷プログラムとは別にPCに組み込まれる印刷に関するプログラム、汎用の印刷プログラムと協働して印刷設定を受け付けるプログラム、にも適用可能である。 Further, in the present embodiment, the processing of the printer driver 43 has been described, but the program of the present invention is not limited to the printer driver. It can also be applied to a PC having a so-called driverless configuration in which an OS having a general-purpose printing program is installed instead of a printer driver. The present invention is also applicable to, for example, a program related to printing incorporated in a PC separately from a general-purpose print program, and a program that accepts print settings in cooperation with a general-purpose print program.

また、各実施の形態に開示されている任意のフローチャートにおいて、任意の複数のステップにおける複数の処理は、処理内容に矛盾が生じない範囲で、任意に実行順序を変更できる、または並列に実行できる。 Further, in the arbitrary flowchart disclosed in each embodiment, the plurality of processes in the arbitrary plurality of steps can be arbitrarily changed in the execution order or executed in parallel as long as the processing contents do not conflict with each other. ..

また、各実施の形態に開示されている処理は、単一のCPU、複数のCPU、ASICなどのハードウェア、またはそれらの組合せで実行されてもよい。また、実施の形態に開示されている処理は、その処理を実行するためのプログラムを記録した記録媒体、または方法等の種々の態様で実現することができる。 Further, the processes disclosed in each embodiment may be executed by a single CPU, a plurality of CPUs, hardware such as an ASIC, or a combination thereof. In addition, the process disclosed in the embodiment can be realized in various aspects such as a recording medium or a method in which a program for executing the process is recorded.

1 PC
2 プリンタ
11 CPU
16 通信IF
18 ユーザIF
41 OS
43 プリンタドライバ
1 PC
2 Printer 11 CPU
16 Communication IF
18 User IF
41 OS
43 Printer driver

Claims (12)

情報処理装置のコンピュータによって実行可能であり、プリンタでの印刷に用いる印刷設定を受け付けるプログラムであって、前記プリンタは、複数のトレイと、両面印刷を実行するための搬送機構とを有し、トレイごとに印刷可能な用紙サイズの範囲があり、前記印刷設定には、用紙サイズの設定と両面印刷の実行有無とトレイの設定とが含まれ、
前記コンピュータに、
前記プリンタに渡す用紙サイズがユーザ定義の用紙サイズの場合に、前記ユーザ定義の用紙サイズが特定範囲内のサイズか否かを判断する判断処理を実行させ、前記特定範囲は、指定されたトレイに対応する印刷可能な用紙サイズの範囲と、前記搬送機構によって決まる両面印刷が可能な用紙サイズの範囲と、のいずれにも含まれる範囲であり、
さらに前記コンピュータに、
前記判断処理にて前記ユーザ定義の用紙サイズが前記特定範囲内のサイズであると判断された場合、前記ユーザ定義の用紙サイズと両面印刷の実行有と前記指定されたトレイとの組み合わせの前記印刷設定を受け付け、前記判断処理にて前記ユーザ定義の用紙サイズが前記特定範囲内のサイズでないと判断された場合、前記ユーザ定義の用紙サイズと両面印刷の実行有と前記指定されたトレイとの組み合わせの前記印刷設定を受け付けない排他処理を実行させる、
ことを特徴とするプログラム。
A program that can be executed by a computer of an information processing device and accepts print settings used for printing on a printer. The printer has a plurality of trays and a transport mechanism for executing double-sided printing, and the trays. There is a range of paper sizes that can be printed for each, and the print settings include setting the paper size, whether to execute double-sided printing, and setting the tray.
On the computer
When the paper size to be passed to the printer is a user-defined paper size, a determination process for determining whether or not the user-defined paper size is within a specific range is executed, and the specific range is placed in a designated tray. It is a range included in both the corresponding printable paper size range and the double-sided printable paper size range determined by the transport mechanism.
Furthermore, to the computer
When the determination process determines that the user-defined paper size is within the specific range, the printing of the combination of the user-defined paper size, double-sided printing, and the designated tray. When the setting is accepted and the judgment process determines that the user-defined paper size is not within the specific range, the combination of the user-defined paper size, double-sided printing, and the specified tray. Executes exclusive processing that does not accept the print settings of
A program characterized by that.
請求項1に記載するプログラムにおいて、
前記コンピュータに、
前記プリンタに渡す用紙サイズを複数の用紙サイズの選択肢の中から選択させる用紙サイズ選択画面を、前記情報処理装置の表示デバイスに表示させる用紙サイズ選択肢表示処理を実行させ、前記複数の用紙サイズの選択肢には、前記ユーザ定義の用紙サイズが含まれ、
前記コンピュータに、
前記用紙サイズ選択画面にて前記ユーザ定義の用紙サイズが選択された場合に、前記判断処理および前記排他処理を実行させる、
ことを特徴とするプログラム。
In the program according to claim 1,
On the computer
The paper size selection screen for selecting the paper size to be passed to the printer from a plurality of paper size options is displayed on the display device of the information processing apparatus, and the paper size selection display process is executed to select the plurality of paper sizes. Includes the user-defined paper size
On the computer
When the user-defined paper size is selected on the paper size selection screen, the determination process and the exclusive process are executed.
A program characterized by that.
請求項2に記載するプログラムにおいて、
前記排他処理では、
前記判断処理にて前記ユーザ定義の用紙サイズが前記特定範囲内のサイズでないと判断された場合、前記ユーザ定義の用紙サイズと両面印刷の実行有と前記指定されたトレイとの組み合わせの前記印刷設定を受け付けず、前記用紙サイズ選択画面で選択されている用紙サイズを、前記ユーザ定義の用紙サイズが入力される前に戻す、
ことを特徴とするプログラム。
In the program described in claim 2,
In the exclusive processing,
When it is determined by the determination process that the user-defined paper size is not within the specific range, the print setting of the combination of the user-defined paper size, double-sided printing, and the specified tray. Is not accepted, and the paper size selected on the paper size selection screen is returned to before the user-defined paper size is input.
A program characterized by that.
請求項2に記載するプログラムにおいて、
前記排他処理では、
前記判断処理にて前記ユーザ定義の用紙サイズが前記特定範囲内のサイズであると判断された場合、両面印刷の実行有の設定を受け付け可能とし、前記判断処理にて前記ユーザ定義の用紙サイズが前記特定範囲内のサイズでないと判断された場合、両面印刷の実行有の設定を受け付け不可とする、
ことを特徴とするプログラム。
In the program described in claim 2,
In the exclusive processing,
When it is determined in the determination process that the user-defined paper size is within the specific range, it is possible to accept the setting of performing double-sided printing, and the user-defined paper size is determined in the determination process. If it is determined that the size is not within the specified range, the setting with execution of double-sided printing will not be accepted.
A program characterized by that.
請求項2から請求項4のいずれか1つに記載するプログラムにおいて、
前記コンピュータに、
用紙幅および用紙高さを入力させ、入力された用紙幅および用紙高さの組み合わせを前記ユーザ定義の用紙サイズとして登録する登録指示を受け付けるサイズ登録画面を、前記表示デバイスに表示させる用紙サイズ受付処理を実行させ、
前記コンピュータに、
前記サイズ登録画面にて前記登録指示を受け付けた場合にも、前記判断処理および前記排他処理を実行させる、
ことを特徴とするプログラム。
In the program according to any one of claims 2 to 4.
On the computer
A paper size acceptance process for displaying a size registration screen on the display device for inputting a paper width and a paper height and registering a combination of the input paper width and the paper height as the user-defined paper size. To execute,
On the computer
Even when the registration instruction is received on the size registration screen, the determination process and the exclusive process are executed.
A program characterized by that.
請求項2から請求項5のいずれか1つに記載するプログラムにおいて、
前記コンピュータに、
トレイを選択させるトレイ選択画面を、前記表示デバイスに表示させるトレイ選択処理を実行させ、
さらに前記コンピュータに、
前記トレイ選択画面にて現在選択されているトレイから別のトレイの選択を受け付けた場合にも、前記判断処理および前記排他処理を実行させる、
ことを特徴とするプログラム。
In the program according to any one of claims 2 to 5.
On the computer
The tray selection process for displaying the tray selection screen on the display device is executed to select the tray.
Furthermore, to the computer
Even when the selection of another tray is accepted from the tray currently selected on the tray selection screen, the determination process and the exclusive process are executed.
A program characterized by that.
請求項1に記載するプログラムにおいて、
前記コンピュータに、
前記情報処理装置のオペレーティングシステムから印刷ジョブが入力された場合に、前記判断処理および前記排他処理を実行させ、
前記排他処理では、前記判断処理にて前記ユーザ定義の用紙サイズが前記特定範囲内のサイズであると判断された場合、前記ユーザ定義の用紙サイズと両面印刷の実行有と前記指定されたトレイとの組み合わせの前記印刷設定を受け付けて、当該組み合わせの印刷設定を前記プリンタに渡し、前記判断処理にて前記ユーザ定義の用紙サイズが前記特定範囲内のサイズでないと判断された場合、前記ユーザ定義の用紙サイズと両面印刷の実行有と前記指定されたトレイとの組み合わせの前記印刷設定を受け付けず、当該組み合わせの印刷設定を前記プリンタに渡さない、
ことを特徴とするプログラム。
In the program according to claim 1,
On the computer
When a print job is input from the operating system of the information processing device, the determination process and the exclusive process are executed.
In the exclusive process, when the user-defined paper size is determined to be within the specific range by the determination process, the user-defined paper size and the designated tray are used for double-sided printing. When the print setting of the combination is accepted, the print setting of the combination is passed to the printer, and the determination process determines that the user-defined paper size is not within the specific range, the user-defined paper size is determined. The print setting of the combination of the paper size and the execution of double-sided printing and the specified tray is not accepted, and the print setting of the combination is not passed to the printer.
A program characterized by that.
請求項1から請求項7のいずれか1つに記載するプログラムにおいて、
前記コンピュータに、
前記判断処理にて前記ユーザ定義の用紙サイズが前記特定範囲内のサイズでないと判断された場合、前記特定範囲を示す情報を報知する報知処理を実行させる、
ことを特徴とするプログラム。
In the program according to any one of claims 1 to 7.
On the computer
When the determination process determines that the user-defined paper size is not within the specific range, a notification process for notifying information indicating the specific range is executed.
A program characterized by that.
請求項1から請求項8のいずれか1つに記載するプログラムにおいて、
プリンタのモデルごとに、トレイごとに対応する印刷可能な用紙サイズの範囲と、両面印刷の搬送機構によって決まる両面印刷が可能な用紙サイズの範囲と、が設けられ、
前記判断処理では、
前記プリンタのモデルを取得し、取得したモデルに対応する前記特定範囲を用いて判断する、
ことを特徴とするプログラム。
In the program according to any one of claims 1 to 8.
For each printer model, a range of printable paper sizes corresponding to each tray and a range of paper sizes capable of double-sided printing determined by the double-sided printing transfer mechanism are provided.
In the judgment process,
The model of the printer is acquired, and the determination is made using the specific range corresponding to the acquired model.
A program characterized by that.
請求項1から請求項9のいずれか1つに記載するプログラムにおいて、
前記印刷設定には、スケーリングの実行有無とスケーリング用の用紙サイズの設定とがさらに含まれ、
前記判断処理では、
スケーリングの実行有が指定されており、スケーリング用の用紙サイズが設定されている場合、前記印刷設定のうち前記スケーリング用の用紙サイズが前記プリンタに渡す用紙サイズとなり、スケーリングの実行無が指定されている場合、前記印刷設定の用紙サイズの設定が前記プリンタに渡す用紙サイズとなる、
ことを特徴とするプログラム。
In the program according to any one of claims 1 to 9.
The print settings further include whether or not scaling is executed and the setting of the paper size for scaling.
In the judgment process,
When the presence or absence of scaling execution is specified and the paper size for scaling is set, the paper size for scaling in the print settings becomes the paper size to be passed to the printer, and no execution of scaling is specified. If so, the paper size setting of the print setting becomes the paper size to be passed to the printer.
A program characterized by that.
請求項10に記載するプログラムにおいて、
前記コンピュータに、
スケーリングの実行有無とスケーリング用の用紙サイズの設定とを受け付けるスケーリング設定画面を、前記情報処理装置の表示デバイスに表示させるスケーリング設定処理を実行させ、
さらに前記コンピュータに、
前記スケーリング設定画面にて前記スケーリングの実行有無が変更される度に、前記判断処理および前記排他処理を実行させる、
ことを特徴とするプログラム。
In the program according to claim 10.
On the computer
The scaling setting process for displaying the scaling setting screen that accepts the presence / absence of scaling execution and the setting of the paper size for scaling on the display device of the information processing apparatus is executed.
Furthermore, to the computer
Each time the scaling execution presence / absence is changed on the scaling setting screen, the determination process and the exclusive process are executed.
A program characterized by that.
通信インタフェースと、
コンピュータと、
を備える情報処理装置であって、
前記通信インタフェースを介してプリンタと接続可能であり、前記プリンタは、複数のトレイと、両面印刷を実行するための搬送機構とを有し、トレイごとに印刷可能な用紙サイズの範囲があり、前記プリンタでの印刷に用いる印刷設定には、用紙サイズの設定と両面印刷の実行有無とトレイの設定とが含まれ、
前記コンピュータは、
前記プリンタに渡す用紙サイズがユーザ定義の用紙サイズの場合に、前記ユーザ定義の用紙サイズが特定範囲内のサイズか否かを判断する判断処理を実行し、前記特定範囲は、指定されたトレイに対応する印刷可能な用紙サイズの範囲と、前記搬送機構によって決まる両面印刷が可能な用紙サイズの範囲と、のいずれにも含まれる範囲であり、
さらに前記コンピュータは、
前記判断処理にて前記ユーザ定義の用紙サイズが前記特定範囲内のサイズであると判断された場合、前記ユーザ定義の用紙サイズと両面印刷の実行有と前記指定されたトレイとの組み合わせの前記印刷設定を受け付け、前記判断処理にて前記ユーザ定義の用紙サイズが前記特定範囲内のサイズでないと判断された場合、前記ユーザ定義の用紙サイズと両面印刷の実行有と前記指定されたトレイとの組み合わせの前記印刷設定を受け付けない排他処理を実行する、
ことを特徴とする情報処理装置。
Communication interface and
With a computer
It is an information processing device equipped with
The printer can be connected to a printer via the communication interface, and the printer has a plurality of trays and a transport mechanism for performing double-sided printing, and each tray has a range of printable paper sizes. The print settings used for printing on the printer include the paper size setting, whether to perform double-sided printing, and the tray setting.
The computer
When the paper size to be passed to the printer is a user-defined paper size, a determination process for determining whether or not the user-defined paper size is within a specific range is executed, and the specific range is placed in a designated tray. It is a range included in both the corresponding printable paper size range and the double-sided printable paper size range determined by the transport mechanism.
Furthermore, the computer
When the determination process determines that the user-defined paper size is within the specific range, the printing of the combination of the user-defined paper size, double-sided printing, and the designated tray. When the setting is accepted and the judgment process determines that the user-defined paper size is not within the specific range, the combination of the user-defined paper size, double-sided printing, and the specified tray. Executes exclusive processing that does not accept the print settings of
An information processing device characterized by this.
JP2020011431A 2020-01-28 2020-01-28 Programs and information processing equipment Active JP7459524B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020011431A JP7459524B2 (en) 2020-01-28 2020-01-28 Programs and information processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020011431A JP7459524B2 (en) 2020-01-28 2020-01-28 Programs and information processing equipment

Publications (2)

Publication Number Publication Date
JP2021117805A true JP2021117805A (en) 2021-08-10
JP7459524B2 JP7459524B2 (en) 2024-04-02

Family

ID=77174980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020011431A Active JP7459524B2 (en) 2020-01-28 2020-01-28 Programs and information processing equipment

Country Status (1)

Country Link
JP (1) JP7459524B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023145636A1 (en) * 2022-01-27 2023-08-03 ブラザー工業株式会社 Support program
CN116719487A (en) * 2022-10-10 2023-09-08 荣耀终端有限公司 Method and device for sending print job

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1086476A (en) * 1996-09-18 1998-04-07 Nec Corp Page printer
JP2007320766A (en) * 2006-06-05 2007-12-13 Ricoh Co Ltd Image forming device for printing non-standard form paper size
JP2008102905A (en) * 2006-09-20 2008-05-01 Seiko Epson Corp Printer control method, printer driver program, storage medium
JP2016146167A (en) * 2015-01-29 2016-08-12 キヤノン株式会社 Printing system, control method of printing system and program
JP2017033050A (en) * 2015-07-29 2017-02-09 キヤノン株式会社 Information processing device, control method, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1086476A (en) * 1996-09-18 1998-04-07 Nec Corp Page printer
JP2007320766A (en) * 2006-06-05 2007-12-13 Ricoh Co Ltd Image forming device for printing non-standard form paper size
JP2008102905A (en) * 2006-09-20 2008-05-01 Seiko Epson Corp Printer control method, printer driver program, storage medium
JP2016146167A (en) * 2015-01-29 2016-08-12 キヤノン株式会社 Printing system, control method of printing system and program
JP2017033050A (en) * 2015-07-29 2017-02-09 キヤノン株式会社 Information processing device, control method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023145636A1 (en) * 2022-01-27 2023-08-03 ブラザー工業株式会社 Support program
CN116719487A (en) * 2022-10-10 2023-09-08 荣耀终端有限公司 Method and device for sending print job

Also Published As

Publication number Publication date
JP7459524B2 (en) 2024-04-02

Similar Documents

Publication Publication Date Title
JP7494958B2 (en) Program and printing system
JP2021117805A (en) Program and information processing device
JP2021010061A (en) Preview screen control device, control method, and program
JP2007210237A (en) Image-forming apparatus
US10298786B2 (en) Method for performing job by using widget, and image forming apparatus for performing the same
JP6933077B2 (en) Program and printing system
JP2007253597A (en) Printer
JP7024270B2 (en) Program and printing system
JP2021140393A (en) Program and information processing apparatus
JP7392519B2 (en) Programs, installers, and information processing equipment
JP2003320740A5 (en)
US8848235B2 (en) Systems and methods for displaying a print preview
JP5023958B2 (en) Image processing apparatus, image processing method, and image processing program
JP7388227B2 (en) Programs and information processing equipment
JP2011133995A (en) Print control unit and program
JP7413814B2 (en) Programs and information processing equipment
JP2022129877A (en) Program and information processing device
JP2019081318A (en) Image formation system and perforation formation program
JP7250650B2 (en) image forming device
JP7251228B2 (en) Image forming apparatus and program
JP7075049B2 (en) Image forming device, job execution system and job execution method
JP7122922B2 (en) Image forming apparatus, image forming system, and image forming method
JP2023094960A (en) Program and information processing device
JP2021026267A (en) Program and information processing device
JP2008281666A (en) Image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230906

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230912

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231030

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240109

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240126

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20240220

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240304

R150 Certificate of patent or registration of utility model

Ref document number: 7459524

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150