JP2022052998A - Program and print control method - Google Patents

Program and print control method Download PDF

Info

Publication number
JP2022052998A
JP2022052998A JP2020159562A JP2020159562A JP2022052998A JP 2022052998 A JP2022052998 A JP 2022052998A JP 2020159562 A JP2020159562 A JP 2020159562A JP 2020159562 A JP2020159562 A JP 2020159562A JP 2022052998 A JP2022052998 A JP 2022052998A
Authority
JP
Japan
Prior art keywords
print
driver
request
information
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2020159562A
Other languages
Japanese (ja)
Inventor
一輝 大橋
Kazuteru Ohashi
岳人 栗林
Taketo Kuribayashi
祐樹 池田
Yuki Ikeda
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2020159562A priority Critical patent/JP2022052998A/en
Publication of JP2022052998A publication Critical patent/JP2022052998A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

To realize a function, such as calculating printing quantity, for various printers.SOLUTION: A program is executed by a computer of a print control apparatus on which a printer driver having a driver file and configured to transmit a print command to a printer runs on an operating system. The program is embedded between the operating system and the printer driver, and causes the computer to receive a print request from the operating system of the print control apparatus, transmit the print request to the driver file of the printer driver, receive a response to the print request transmitted to the driver file from the driver file, transmit the response received from the driver file to the operating system, and acquire print information based on the print request.SELECTED DRAWING: Figure 2

Description

本開示は、プログラム、および、印刷制御方法に関する。 The present disclosure relates to a program and a print control method.

従来、印刷装置の印刷枚数に応じた課金を行う等の目的で、印刷装置の印刷量等の印刷情報を管理する手法が提案された。例えば、特許文献1には、プリンタドライバプログラムにより、印刷情報の設定や印刷量を算出する構成が開示されている。 Conventionally, a method of managing print information such as the printing amount of a printing device has been proposed for the purpose of charging according to the number of printed sheets of the printing device. For example, Patent Document 1 discloses a configuration in which a printer driver program is used to set print information and calculate a print amount.

特開2007-141100号公報Japanese Unexamined Patent Publication No. 2007-141100

特許文献1記載の構成は、印刷量を算出する機能等をプリンタドライバプログラムが有している必要がある。この構成を実現するためには、印刷量の算出に係る機能をプリンタドライバごとに付加する必要がある。このため、印刷量の算出等を行う対象となる全ての印刷装置に対して、印刷量の算出に係る機能が付加されたドライバプログラムが提供されなければならず、既に印刷量の算出に係る機能が付加されていないドライバプログラムが上市された多様な印刷装置に適用することは困難である。 The configuration described in Patent Document 1 requires that the printer driver program has a function of calculating the print amount and the like. In order to realize this configuration, it is necessary to add a function related to the calculation of the print amount for each printer driver. Therefore, a driver program to which a function related to the calculation of the print amount is added must be provided to all the printing devices to be calculated such as the print amount, and the function related to the calculation of the print amount has already been provided. It is difficult to apply a driver program without the addition to various printing devices on the market.

上記課題を解決する一態様は、ドライバーファイルを有し、印刷装置に印刷コマンドを送信するプリンタードライバーが、オペレーティングシステム上で動作する印刷制御装置のコンピューターに実行されるプログラムであって、前記オペレーティングシステムと前記プリンタードライバーとの間に組み込まれ、前記コンピューターに、前記印刷制御装置の前記オペレーティングシステムから印刷要求を受信させ、前記印刷要求を前記プリンタードライバーが有する前記ドライバーファイルに送信させ、前記ドライバーファイルに送信された前記印刷要求に対する応答を前記ドライバーファイルから受信させ、前記ドライバーファイルから受信された前記応答を前記オペレーティングシステムに送信させ、前記印刷要求に基づく印刷情報を取得させる、プログラムである。 One aspect of solving the above-mentioned problems is a program in which a printer driver having a driver file and transmitting a print command to a printing device is executed on a computer of a printing control device running on an operating system. And the printer driver, the computer is made to receive a print request from the operating system of the print control device, the print request is transmitted to the driver file of the printer driver, and the driver file is used. It is a program that receives a response to the transmitted print request from the driver file, transmits the response received from the driver file to the operating system, and acquires print information based on the print request.

上記課題を解決する別の一態様は、ドライバーファイルを有し、印刷装置に印刷コマンドを送信するプリンタードライバーがインストールされる印刷制御装置が実行する印刷制御方法であって、前記印刷制御装置のオペレーティングシステムとプリンタードライバーとの間にモジュールが予め組み込まれ、前記モジュールによって、前記オペレーティングシステムからの印刷要求を取得し、取得した前記印刷要求を前記プリンタードライバーに送信し、前記プリンタードライバーから送信された応答を受信して前記オペレーティングシステムに送信し、前記モジュールによって前記印刷要求に基づき印刷情報を取得する、印刷制御方法である。 Another aspect of solving the above problem is a print control method executed by a print control device having a driver file and a printer driver for transmitting a print command to the print device, which is an operating of the print control device. A module is pre-installed between the system and the printer driver, and the module acquires a print request from the operating system, sends the acquired print request to the printer driver, and a response sent from the printer driver. Is received and transmitted to the operating system, and print information is acquired by the module based on the print request, which is a print control method.

印刷システムの構成を示す図。The figure which shows the structure of a printing system. 端末制御部の機能の説明図。Explanatory diagram of the function of the terminal control unit. プリンタードライバーの生成とインストールに関する動作を示すフローチャート。A flowchart showing the operation related to the generation and installation of the printer driver. 端末装置の動作を示すフローチャート。A flowchart showing the operation of the terminal device.

図1は、印刷システム1000の構成を示す図である。
図1に示すように、印刷システム1000は、端末装置1、印刷装置2、および、サーバー3を備える。端末装置1は、印刷制御装置の一例に対応する。
FIG. 1 is a diagram showing a configuration of a printing system 1000.
As shown in FIG. 1, the printing system 1000 includes a terminal device 1, a printing device 2, and a server 3. The terminal device 1 corresponds to an example of a print control device.

端末装置1は、PC(Personal Computer)である。端末装置1は、デスクトップ型でもラップトップ型でもタブレット型でもよい。端末装置1は、ローカルネットワークLNを介して印刷装置2と通信可能に接続され、グローバルネットワークGNを介してサーバー3と通信可能に接続される。
グローバルネットワークGNは、専用回線や、公衆回線網、インターネット等を含んで構成される。
The terminal device 1 is a PC (Personal Computer). The terminal device 1 may be a desktop type, a laptop type, or a tablet type. The terminal device 1 is communicably connected to the printing device 2 via the local network LN, and is communicably connected to the server 3 via the global network GN.
The global network GN includes a dedicated line, a public line network, the Internet, and the like.

印刷装置2は、印刷媒体に画像を印刷する装置である。印刷媒体の種類に制限はなく、所定サイズのカット紙、ロール紙、合成樹脂製のシート等が挙げられる。印刷装置2の印刷方式について制限はなく、ドットインパクト式、熱昇華式、サーマル式等の印刷方式を採用できる。印刷装置2の印刷方式は、インクジェット式である。 The printing device 2 is a device that prints an image on a printing medium. The type of print medium is not limited, and examples thereof include cut paper, roll paper, and synthetic resin sheets of a predetermined size. There is no limitation on the printing method of the printing device 2, and a printing method such as a dot impact type, a thermal sublimation type, or a thermal type can be adopted. The printing method of the printing device 2 is an inkjet method.

端末装置1には、図示しない他の印刷装置が1又は複数接続されてもよい。他の印刷装置は、印刷装置2とはメーカー、或いは機種が異なってもよい。 One or more printing devices (not shown) may be connected to the terminal device 1. The manufacturer or model of the other printing device may be different from that of the printing device 2.

端末装置1は、ローカルネットワークLNを介して印刷装置2に印刷コマンドCOを出力し、印刷を実行させる。端末装置1は、印刷装置2が実行する印刷に関する印刷情報DAを、グローバルネットワークGNを介してサーバー3に送信する。 The terminal device 1 outputs a print command CO to the printing device 2 via the local network LN to execute printing. The terminal device 1 transmits the print information DA related to printing executed by the printing device 2 to the server 3 via the global network GN.

印刷装置2は、印刷装置制御部20、印刷装置通信部21、および印刷部22を備える。
印刷装置制御部20は、CPUやMPU等のプログラムを実行するプロセッサーである。印刷装置制御部20は、プログラムを読み出して実行し、ハードウェアおよびソフトウェアにより各種処理を実行する。印刷装置制御部20は、プロセッサーが実行するプログラムや、プロセッサーが処理するデータを記憶する不図示のメモリーを備えてもよい。
The printing device 2 includes a printing device control unit 20, a printing device communication unit 21, and a printing unit 22.
The printing device control unit 20 is a processor that executes programs such as a CPU and an MPU. The printing device control unit 20 reads and executes the program, and executes various processes by hardware and software. The printing device control unit 20 may include a program executed by the processor and a memory (not shown) for storing data processed by the processor.

印刷装置通信部21は、所定の通信規格で通信を行う通信インターフェイスである。印刷装置通信部21は、印刷装置制御部20の制御に従ってローカルネットワークLNを介して端末装置1と通信する。印刷装置通信部21は、USB(Universal Serial Bus)ケーブルを介して端末装置1とUSB接続し、端末装置1と通信してもよい。 The printing device communication unit 21 is a communication interface that communicates according to a predetermined communication standard. The printing device communication unit 21 communicates with the terminal device 1 via the local network LN under the control of the printing device control unit 20. The printing device communication unit 21 may be connected to the terminal device 1 via USB via a USB (Universal Serial Bus) cable and may communicate with the terminal device 1.

印刷部22は、印刷媒体に対して画像を印刷する印刷機構である。印刷部22の印刷機構は、インクを吐出する印刷ヘッド、および、印刷媒体を搬送する搬送機構を含む。印刷部22は、印刷媒体の位置やサイズを検出する各種のセンサー、印刷ヘッドを走査させるヘッド走査機構等を備えてもよい。 The printing unit 22 is a printing mechanism that prints an image on a printing medium. The printing mechanism of the printing unit 22 includes a printing head that ejects ink and a conveying mechanism that conveys a printing medium. The printing unit 22 may be provided with various sensors for detecting the position and size of the printing medium, a head scanning mechanism for scanning the printing head, and the like.

印刷装置制御部20は、印刷装置通信部21を制御して、端末装置1が送信する印刷コマンドCOを受信する。印刷装置制御部20は、印刷コマンドCOに従って印刷部22を制御し、印刷媒体に対する印刷を実行させる。 The printing device control unit 20 controls the printing device communication unit 21 to receive the printing command CO transmitted by the terminal device 1. The printing device control unit 20 controls the printing unit 22 according to the printing command CO to execute printing on the printing medium.

サーバー3は、端末装置1から印刷情報DAを受信する。サーバー3は、端末装置1から受信した印刷情報DAを、端末装置1または印刷装置2に対応づけて記憶する。サーバー3は、印刷情報DAに基づいて、印刷装置2が実行した印刷に関する課金情報の算出等を実行してもよい。 The server 3 receives the print information DA from the terminal device 1. The server 3 stores the print information DA received from the terminal device 1 in association with the terminal device 1 or the printing device 2. The server 3 may execute calculation of billing information related to printing executed by the printing apparatus 2 based on the print information DA.

印刷情報DAは、端末装置1が印刷装置2に印刷させるページ数、描画種類、ページ設定の少なくともいずれか1つの情報を含む。ページ数は、印刷装置2が印刷する印刷媒体の枚数である。描画種類は、印刷装置2が実行する印刷処理の種類を差す。印刷処理は、カラー印刷であるか、モノクロ印刷であるか、写真印刷であるか、一般文書印刷であるか、インクの消費量を節約する印刷モードであるか、印刷解像度、印刷濃度等である。ページ設定は、印刷媒体のサイズ、両面印刷であるか、片面印刷であるか等である。印刷情報DAは、上記のほか、印刷装置2の印刷コストに影響する各種の情報を含むことができる。 The print information DA includes at least one of information such as the number of pages to be printed by the terminal device 1 on the printing device 2, the drawing type, and the page setting. The number of pages is the number of printing media printed by the printing device 2. The drawing type refers to the type of printing process executed by the printing device 2. The printing process is color printing, monochrome printing, photo printing, general document printing, printing mode that saves ink consumption, printing resolution, printing density, and the like. .. The page settings are the size of the print medium, whether it is double-sided printing, single-sided printing, and the like. In addition to the above, the print information DA can include various types of information that affect the printing cost of the printing apparatus 2.

端末装置1は、端末制御部10、第1端末通信部11、第2端末通信部12、表示部13、および入力部14を備える。 The terminal device 1 includes a terminal control unit 10, a first terminal communication unit 11, a second terminal communication unit 12, a display unit 13, and an input unit 14.

第1端末通信部11は、所定の通信規格で通信を行う通信インターフェイスである。、第1端末通信部11は、端末制御部10の制御に従って、グローバルネットワークGNを介して接続するサーバー3と通信する。第1端末通信部11は、送信装置の一例に対応する。 The first terminal communication unit 11 is a communication interface that communicates according to a predetermined communication standard. , The first terminal communication unit 11 communicates with the server 3 connected via the global network GN under the control of the terminal control unit 10. The first terminal communication unit 11 corresponds to an example of a transmission device.

第2端末通信部12は、所定の通信規格で通信を行う通信インターフェイスである。、第2端末通信部12は、端末制御部10の制御に従って、ローカルネットワークLNを介して接続する印刷装置2と通信する。 The second terminal communication unit 12 is a communication interface that communicates according to a predetermined communication standard. , The second terminal communication unit 12 communicates with the printing device 2 connected via the local network LN under the control of the terminal control unit 10.

表示部13は、LED(Light Emitting Diode)やOLED(Organic Light Emitting Diode)などで構成されるディスプレイであり、端末制御部10の制御に従って、所定の態様で情報の表示を実行する。表示部13は、端末装置1と接続する外部機器でもよい。 The display unit 13 is a display composed of an LED (Light Emitting Diode), an OLED (Organic Light Emitting Diode), or the like, and displays information in a predetermined manner according to the control of the terminal control unit 10. The display unit 13 may be an external device connected to the terminal device 1.

入力部14は、端末装置1に設けられた操作スイッチや、タッチパネル、マウス、キーボード等の入力手段と接続し、ユーザーの入力操作を検出し、検出結果を端末制御部10に出力する入力インターフェイスである。端末制御部10は、入力部14からの入力に基づいて、入力操作に対応する処理を実行する。 The input unit 14 is an input interface that connects to an operation switch provided in the terminal device 1 and an input means such as a touch panel, a mouse, and a keyboard, detects an input operation of a user, and outputs a detection result to the terminal control unit 10. be. The terminal control unit 10 executes a process corresponding to the input operation based on the input from the input unit 14.

端末制御部10は、端末プロセッサー100、および、端末記憶部110を備える。端末プロセッサー100は、CPUやMPU等のプログラムを実行するプロセッサーであり、端末装置1を制御するコンピューターの一例に対応する。
端末プロセッサー100は、端末記憶部110に記憶されたプログラムを読み出し、ハードウェアおよびソフトウェアにより各種処理を実行する。
The terminal control unit 10 includes a terminal processor 100 and a terminal storage unit 110. The terminal processor 100 is a processor that executes programs such as a CPU and an MPU, and corresponds to an example of a computer that controls a terminal device 1.
The terminal processor 100 reads out the program stored in the terminal storage unit 110 and executes various processes by hardware and software.

端末記憶部110は、端末プロセッサー100が実行するプログラム、および、端末プロセッサー100が処理するデータを不揮発的に記憶するメモリーである。端末記憶部110は、オペレーティングシステム111、生成アプリ112、および、プリンタードライバー113を記憶する。以下の説明では、オペレーティングシステムをOSと略記する。端末記憶部110は、揮発性の記憶領域を備え、端末プロセッサー100のワークエリアを構成してもよい。 The terminal storage unit 110 is a memory that non-volatilely stores a program executed by the terminal processor 100 and data processed by the terminal processor 100. The terminal storage unit 110 stores the operating system 111, the generation application 112, and the printer driver 113. In the following description, the operating system is abbreviated as OS. The terminal storage unit 110 may include a volatile storage area and form a work area of the terminal processor 100.

端末プロセッサー100は、オペレーティングシステム111を実行するOS実行部101、生成アプリ112を実行する生成アプリ実行部102、および、プリンタードライバー113を実行するドライバー実行部103として機能する。 The terminal processor 100 functions as an OS execution unit 101 that executes the operating system 111, a generation application execution unit 102 that executes the generation application 112, and a driver execution unit 103 that executes the printer driver 113.

オペレーティングシステム111は、端末制御部10の基本的な制御機能を有するプログラムである。
OS実行部101は、オペレーティングシステム111を実行して、第1端末通信部11および第2端末通信部12を用いる通信機能、表示部13を用いる表示機能、入力部14による入力を受け付ける入力検出機能を提供する。OS実行部101は、上記の機能により、アプリケーションプログラムを実行するプラットフォームを形成する。
The operating system 111 is a program having a basic control function of the terminal control unit 10.
The OS execution unit 101 executes the operating system 111, has a communication function using the first terminal communication unit 11 and the second terminal communication unit 12, a display function using the display unit 13, and an input detection function for receiving input from the input unit 14. I will provide a. The OS execution unit 101 forms a platform for executing an application program by the above functions.

生成アプリ112は、文書や画像のデータを生成するアプリケーションプログラムである。生成アプリ実行部102は、OS実行部101が実行するオペレーティングシステム111上で生成アプリ112を動作させ、ユーザーの操作に従って文書データや画像データを生成する。生成アプリ実行部102は、ユーザーにより文書や画像の印刷が指示された場合に、印刷データAPを生成する。印刷データAPについては後述する。 The generation application 112 is an application program that generates data of a document or an image. The generation application execution unit 102 operates the generation application 112 on the operating system 111 executed by the OS execution unit 101, and generates document data and image data according to the user's operation. The generation application execution unit 102 generates a print data AP when a user instructs to print a document or an image. The print data AP will be described later.

プリンタードライバー113は、オペレーティングシステム111上で動作し、印刷装置2が実行する印刷コマンドCOを生成し、印刷コマンドCOを印刷装置2に送信するプログラムである。ドライバー実行部103は、プリンタードライバー113を実行して、印刷装置2の仕様に対応する印刷コマンドCOを生成する。印刷コマンドCOは、印刷装置2が実行可能なコマンドと、印刷装置2が印刷媒体に印刷する文字や画像のデータとを含む。印刷コマンドCOは、ページ数、描画種類、印刷設定等を指定するデータを含む。また、プリンタードライバー113は、印刷コマンドCOを印刷装置2に送信した後、印刷コマンドCOに基づく印刷結果RSを印刷装置2から受信する。プリンタードライバー113は、後述する1または複数のドライバーファイル152、1または複数の機能ファイル153を有する。 The printer driver 113 is a program that operates on the operating system 111, generates a print command CO to be executed by the printing device 2, and sends the print command CO to the printing device 2. The driver execution unit 103 executes the printer driver 113 to generate a print command CO corresponding to the specifications of the printing device 2. The print command CO includes a command that can be executed by the printing device 2 and data of characters and images printed on the printing medium by the printing device 2. The print command CO includes data for specifying the number of pages, drawing type, print settings, and the like. Further, the printer driver 113 sends the print command CO to the printing device 2, and then receives the print result RS based on the print command CO from the printing device 2. The printer driver 113 has one or a plurality of driver files 152, which will be described later, and one or a plurality of functional files 153.

端末装置1が1または複数の他の印刷装置を制御する場合、端末装置1には、1または複数の他の印刷装置のそれぞれに対応する1または複数の他のプリンタードライバーがインストールされる。 When the terminal device 1 controls one or more other printing devices, one or more other printer drivers corresponding to each of the one or more other printing devices are installed in the terminal device 1.

図2は、端末制御部10の機能の説明図である。ドライバー実行部103は、情報取得モジュール151、ドライバーファイル152、機能ファイル153、を有する。 FIG. 2 is an explanatory diagram of the function of the terminal control unit 10. The driver execution unit 103 has an information acquisition module 151, a driver file 152, and a function file 153.

OS実行部101は、生成アプリ実行部102が印刷データAPを出力したことを検知して、印刷データAPに基づいて印刷要求PQを生成し、ドライバー実行部103に出力する。印刷要求PQは、印刷装置2に対する印刷を指示する印刷命令、印刷装置2により印刷される文字や画像のデータ、および、印刷設定を指定するデータを含む。印刷設定を指定するデータとは、印刷媒体のサイズを指定するデータ、フォントを指定するデータ、印刷解像度を指定するデータ、画質を指定するデータ、文字や画像の位置およびサイズを指定するデータ、余白の位置およびサイズを指定するデータ等を含む。 The OS execution unit 101 detects that the generation application execution unit 102 outputs the print data AP, generates a print request PQ based on the print data AP, and outputs the print request PQ to the driver execution unit 103. The print request PQ includes a print command for instructing printing to the printing device 2, data of characters and images printed by the printing device 2, and data for designating print settings. The data that specifies the print settings are the data that specifies the size of the print medium, the data that specifies the font, the data that specifies the print resolution, the data that specifies the image quality, the data that specifies the position and size of characters and images, and the margins. Contains data that specifies the position and size of.

1または複数のドライバーファイル152は、印刷装置2に対応する印刷コマンドCOを生成する機能、印刷コマンドCOを印刷装置2に送信する機能、および印刷装置2から印刷コマンドCOに基づく印刷結果RSを受信する機能を有する。
ドライバー実行部103は、ドライバーファイル152を用いて、OS実行部101が出力した印刷要求PQに基づく印刷コマンドCOを生成する。すなわち、ドライバー実行部103は、印刷要求PQから文字や画像のデータ、および、印刷設定を指定するデータを取得する。ドライバー実行部103は、ドライバーファイル152により、印刷要求PQから取得したデータに従ってレンダリング等のデータ処理を実行し、印刷装置2が実行可能な印刷コマンドCOを生成する。ドライバー実行部103はドライバーファイル152の実行時に、必要に応じて機能ファイル153を呼び出し、データ処理を行う。1または複数の機能ファイル153は、文字データや画像データに関するデータ処理機能を有する。機能ファイル153は、ドライバーファイル152が有していないデータ処理機能を補完する。1つのドライバーファイル152から複数の機能ファイル153を用いることが可能である。ドライバーファイル152から呼び出し可能な機能ファイル153の数は制限されない。
The one or more driver files 152 have a function of generating a print command CO corresponding to the printing device 2, a function of transmitting the printing command CO to the printing device 2, and receiving a print result RS based on the printing command CO from the printing device 2. Has the function of printing.
The driver execution unit 103 uses the driver file 152 to generate a print command CO based on the print request PQ output by the OS execution unit 101. That is, the driver execution unit 103 acquires character and image data and data for designating print settings from the print request PQ. The driver execution unit 103 executes data processing such as rendering according to the data acquired from the print request PQ by the driver file 152, and generates a print command CO that can be executed by the printing device 2. When the driver file 152 is executed, the driver execution unit 103 calls the function file 153 as necessary and performs data processing. The one or more functional files 153 have a data processing function related to character data and image data. The function file 153 complements the data processing function that the driver file 152 does not have. It is possible to use a plurality of function files 153 from one driver file 152. The number of functional files 153 that can be called from the driver file 152 is not limited.

ドライバー実行部103によって生成された印刷コマンドCOは、OS実行部101の機能により、印刷装置2に送信される。 The print command CO generated by the driver execution unit 103 is transmitted to the printing device 2 by the function of the OS execution unit 101.

ドライバーファイル152および機能ファイル153は、印刷装置2のベンダー等が提供するプリンタードライバー113に含まれるファイルである。ドライバーファイル152および機能ファイル153と、オペレーティングシステム111とプリンタードライバー113との間に組み込まれた情報取得モジュール151が端末装置1にインストールされる。 The driver file 152 and the function file 153 are files included in the printer driver 113 provided by the vendor of the printing apparatus 2 or the like. The driver file 152 and the function file 153, and the information acquisition module 151 incorporated between the operating system 111 and the printer driver 113 are installed in the terminal device 1.

図2に示すように、端末制御部10は情報取得モジュール151が組み込まれている。端末装置1には、情報取得モジュール151とプリンタードライバー113がインストールされる。 As shown in FIG. 2, the terminal control unit 10 incorporates an information acquisition module 151. The information acquisition module 151 and the printer driver 113 are installed in the terminal device 1.

情報取得モジュール151は、ドライバー実行部103により実行されるプログラムであり、モジュールの一例に対応する。
情報取得モジュール151は、OS実行部101とドライバーファイル152との間に組み込まれて介在し、OS実行部101が出力する印刷に係わる要求である要求RQ、および印刷要求PQを取得してドライバーファイル152に渡す。また、情報取得モジュール151は、ドライバーファイル152が要求RQおよび印刷要求PQに対する応答を出力した場合に、応答を取得してOS実行部101に出力する。OS実行部101とドライバーファイル152との間で入出力される情報を仲介する。図2で示すように、OS実行部101、ドライバーファイル152、および機能ファイル153を、情報取得モジュール151が動作させることができる。
The information acquisition module 151 is a program executed by the driver execution unit 103, and corresponds to an example of the module.
The information acquisition module 151 is incorporated and intervenes between the OS execution unit 101 and the driver file 152, and acquires the request RQ and the print request PQ, which are print-related requests output by the OS execution unit 101, and is a driver file. Pass to 152. Further, when the driver file 152 outputs a response to the request RQ and the print request PQ, the information acquisition module 151 acquires the response and outputs the response to the OS execution unit 101. It mediates the information input / output between the OS execution unit 101 and the driver file 152. As shown in FIG. 2, the information acquisition module 151 can operate the OS execution unit 101, the driver file 152, and the function file 153.

要求RQは、印刷装置2に関する仕様に係る情報の取得要求である。印刷装置2に関する仕様に係る情報としては、両面印刷機構の有無、ソーター等の後処理装置の有無、使用するインクの数や種類、対応するコマンド体系等の情報などがある。本実施形態で、要求RQは、ドライバー実行部103に対してDDI(Device Driver Interface)関数サポート情報IFを求める情報である。DDI関数サポート情報IFは、ドライバーファイル152により実行可能なDDI描画関数の種類や内容を示す情報である。ドライバー実行部103は、要求RQに対する応答として、DDI関数サポート情報IFをOS実行部101に送信する。このDDI関数サポート情報IFを参照することにより、OS実行部101は、ドライバーファイル152が実行可能な処理を特定する。 The request RQ is a request for acquiring information related to the specifications related to the printing apparatus 2. Information related to the specifications related to the printing device 2 includes information such as the presence / absence of a double-sided printing mechanism, the presence / absence of a post-processing device such as a sorter, the number and types of inks used, and the corresponding command system. In the present embodiment, the request RQ is information for requesting the DDI (Device Driver Interface) function support information IF from the driver execution unit 103. The DDI function support information IF is information indicating the type and contents of the DDI drawing function that can be executed by the driver file 152. The driver execution unit 103 transmits the DDI function support information IF to the OS execution unit 101 as a response to the request RQ. By referring to this DDI function support information IF, the OS execution unit 101 identifies the processing that can be executed by the driver file 152.

例えば、DDI関数サポート情報IFは、ドライバーファイル152が所定フォーマットの画像データの拡大処理および縮小処理を実行可能か否かを示す。この場合、OS実行部101は、ドライバーファイル152が所定フォーマットの画像データの拡大処理および縮小処理を実行できない場合には、OS実行部101の機能によって画像データの拡大処理および縮小処理を実行する。 For example, the DDI function support information IF indicates whether or not the driver file 152 can execute enlargement processing and reduction processing of image data in a predetermined format. In this case, when the driver file 152 cannot execute the enlargement processing and the reduction processing of the image data in the predetermined format, the OS execution unit 101 executes the enlargement processing and the reduction processing of the image data by the function of the OS execution unit 101.

OS実行部101は、DDI関数サポート情報IFを、ドライバーファイル152に対応づけて保持してもよい。ドライバー実行部103が複数のドライバーファイル152を有している場合、OS実行部101は、各々のドライバーファイル152が送信するDDI関数サポート情報IFを保持する。これにより、OS実行部101は、各ドライバーファイル152の機能に合わせて処理を実行できる。 The OS execution unit 101 may hold the DDI function support information IF in association with the driver file 152. When the driver execution unit 103 has a plurality of driver files 152, the OS execution unit 101 holds the DDI function support information IF transmitted by each driver file 152. As a result, the OS execution unit 101 can execute the process according to the function of each driver file 152.

OS実行部101は、生成アプリ実行部102が出力する印刷データAPをもとに印刷要求PQを生成し、ドライバー実行部103に出力する。OS実行部101は、印刷コマンドCOを生成する処理において、ドライバーファイル152によって実行できない処理が含まれる場合には、該当する処理を施した印刷要求PQを生成する。OS実行部101は、ドライバーファイル152が実行できない処理の有無を、DDI関数サポート情報IFに基づき判断する。 The OS execution unit 101 generates a print request PQ based on the print data AP output by the generation application execution unit 102, and outputs the print request PQ to the driver execution unit 103. When the process for generating the print command CO includes a process that cannot be executed by the driver file 152, the OS execution unit 101 generates a print request PQ to which the corresponding process is applied. The OS execution unit 101 determines whether or not the driver file 152 cannot be executed based on the DDI function support information IF.

情報取得モジュール151は、OS実行部101が出力する要求QRもしくは印刷要求PQからデータを抽出して印刷情報DAを生成する。印刷情報DAは、上述したように、印刷装置2が実行する印刷に関するコストの算出に使用可能な情報である。
情報取得モジュール151は、OS実行部101およびドライバーファイル152を機能させ、印刷装置2の印刷コストの算出に関わる印刷情報DAを取得する機能を有する。
The information acquisition module 151 extracts data from the request QR or print request PQ output by the OS execution unit 101 to generate print information DA. As described above, the print information DA is information that can be used to calculate the cost related to printing performed by the printing apparatus 2.
The information acquisition module 151 has a function of operating the OS execution unit 101 and the driver file 152 to acquire print information DA related to the calculation of the print cost of the printing apparatus 2.

プリンタードライバー113は、印刷装置2のベンダー等により提供されるプリンター用のドライバープログラムであり、情報取得モジュール151が組み込まれるプログラムである。プリンタードライバー113は、印刷装置2のベンダー等が提供するドライバーファイル152および機能ファイル153を有し、情報取得モジュール151が組み込まれる。 The printer driver 113 is a driver program for a printer provided by a vendor of the printing apparatus 2 or the like, and is a program in which the information acquisition module 151 is incorporated. The printer driver 113 has a driver file 152 and a function file 153 provided by the vendor of the printing apparatus 2, etc., and incorporates the information acquisition module 151.

図3は、情報取得モジュール151が組み込まれるプリンタードライバー113の生成とインストールに関する動作を示すフローチャートである。図3は、端末装置1が情報取得モジュール151が組み込まれるプリンタードライバー113の生成を行う工程を示す。図3では、プリンタードライバー113のインストールキットに予め情報取得モジュール151を組み込み、プリンタードライバー113のインストールキットで端末装置1にインストールし、情報取得モジュール151が組み込まれたプリンタードライバーを生成する工程を示している。 FIG. 3 is a flowchart showing an operation related to generation and installation of the printer driver 113 in which the information acquisition module 151 is incorporated. FIG. 3 shows a process in which the terminal device 1 generates a printer driver 113 in which the information acquisition module 151 is incorporated. FIG. 3 shows a process of incorporating the information acquisition module 151 in the printer driver 113 installation kit in advance, installing the information acquisition module 151 in the terminal device 1 with the printer driver 113 installation kit, and generating a printer driver in which the information acquisition module 151 is incorporated. There is.

端末制御部10は、印刷装置2のベンダー等が提供するプリンタードライバー113のインストールキットに情報取得モジュール151を組み込む処理として、予めプリンタードライバー113のインストールキットに含まれるINFファイルを書き換える処理を行う(ステップST11-ST13)。 The terminal control unit 10 performs a process of rewriting the INF file included in the printer driver 113 installation kit in advance as a process of incorporating the information acquisition module 151 into the printer driver 113 installation kit provided by the vendor of the printing device 2 (step). ST11-ST13).

INFファイルは、コンピューターにソフトウェアをインストールするときの設定が記述されたシステム定義ファイルである。INFファイルは、インストール時に実行する処理を定める1または複数のディレクティブ、および、インストール時の処理の内容を定義する1または複数のシステム定義セクションを含む。 The INF file is a system definition file that describes the settings for installing software on a computer. The INF file contains one or more directives that define what to do during installation, and one or more system definition sections that define what to do during installation.

端末装置1にプリンタードライバー113がインストールされるときには、端末装置1は、プリンタードライバー113のインストールキットをソースメディアに記憶させる。ソースメディアは、端末記憶部110、または、端末装置1に外部接続される記憶装置である。
INFファイルは、CopyFilesディレクティブを含む。CopyFilesディレクティブは、INFファイルの所定のセクションに含まれる情報であり、ソースメディアから端末装置1に転送される1または複数のファイルを指定する。
When the printer driver 113 is installed in the terminal device 1, the terminal device 1 stores the installation kit of the printer driver 113 in the source media. The source media is a terminal storage unit 110 or a storage device externally connected to the terminal device 1.
The INF file contains the CopyFiles directive. The CopyFiles directive is information contained in a predetermined section of the INF file and specifies one or more files to be transferred from the source media to the terminal device 1.

INFファイルは、SourceDisksFilesセクションを含む。SourceDisksFilesセクションは、ソースメディアから端末装置1に転送される1または複数のファイルの場所を指定する情報を含む。
INFファイルは、設定項目としてDriverFileを含む。DriverFileには、要求RQ及び印刷要求PQを解釈するモジュールを指定する情報が設定される。OS実行部101は、DriverFileの設定に従って要求RQ及び印刷要求PQの宛先を特定し、要求RQ及び印刷要求PQを送信する。
The INF file contains a SourceDiscsFiles section. The SourceDiscsFiles section contains information that specifies the location of one or more files that are transferred from the source media to the terminal device 1.
The INF file includes the DriverFile as a setting item. Information that specifies a module that interprets the request RQ and the print request PQ is set in the DriverFile. The OS execution unit 101 specifies the destination of the request RQ and the print request PQ according to the setting of the Driver File, and transmits the request RQ and the print request PQ.

ステップST11で、端末制御部10は、情報取得モジュール151を組み込む処理として、INFファイルのCopyFilesディレクティブの記述に、情報取得モジュール151を指定する記述を追加する。ステップST12で、端末制御部10は、INFファイルのSourceDisksFilesセクションに、情報取得モジュール151を組み込む処理として、情報取得モジュール151を指定する記述を追加する。
ステップST11-ST12の処理によって、端末装置1にプリンタードライバー113がインストールされたときに、ソースメディアから情報取得モジュール151が端末記憶部110にコピーされる。ソースメディアには、予め情報取得モジュール151が記憶されている。
In step ST11, the terminal control unit 10 adds a description for designating the information acquisition module 151 to the description of the CopyFiles directive in the INF file as a process for incorporating the information acquisition module 151. In step ST12, the terminal control unit 10 adds a description to specify the information acquisition module 151 as a process of incorporating the information acquisition module 151 into the SourceDiscsFiles section of the INF file.
By the process of steps ST11-ST12, when the printer driver 113 is installed in the terminal device 1, the information acquisition module 151 is copied from the source media to the terminal storage unit 110. The information acquisition module 151 is stored in the source media in advance.

ステップST13で、端末制御部10は、INFファイルのDriverFileに情報取得モジュール151を設定する。これにより、プリンタードライバー113が端末装置1にインストールされると、OS実行部101が要求RQおよび印刷要求PQ等を送信する宛先が情報取得モジュール151に設定される。 In step ST13, the terminal control unit 10 sets the information acquisition module 151 in the DriverFile of the INF file. As a result, when the printer driver 113 is installed in the terminal device 1, the destination to which the OS execution unit 101 sends the request RQ, the print request PQ, and the like is set in the information acquisition module 151.

ステップST14で、端末制御部10は、ステップST11-ST13の変更を反映したインストールキットを生成する。ステップST14で生成されるインストールキットを用いて、プリンタードライバー113を端末装置1にインストールすることができる。このように、ステップST11-ST14は、情報取得モジュール151を組み込んだプリンタードライバーのインストールキットを生成する工程である。 In step ST14, the terminal control unit 10 generates an installation kit that reflects the changes in steps ST11-ST13. The printer driver 113 can be installed in the terminal device 1 by using the installation kit generated in step ST14. As described above, step ST11-ST14 is a step of generating an installation kit of the printer driver incorporating the information acquisition module 151.

ステップST15で、端末制御部10は、ステップST11-ST14で生成されたインストールキットを用いて、端末装置1にプリンタードライバー113をインストールする。 In step ST15, the terminal control unit 10 installs the printer driver 113 in the terminal device 1 using the installation kit generated in steps ST11-ST14.

ステップST11-ST14は、端末装置1に限らず、他のコンピューターが実行してもよい。他のコンピューターがステップST14で生成した情報取得モジュール151を組み込まれたインストールキットが、ソースメディアに格納され、端末装置1にインストールされる。
ステップST15で生成される情報取得モジュール151を組み込まれたインストールキットは、プリンタードライバー113が端末装置1にインストールされた後に、端末プロセッサー100が、情報取得モジュール151およびドライバーファイル152を実行可能であればよい。インストールキット自体が、情報取得モジュール151およびドライバーファイル152と同一のファイルを含まなくてもよい。
Steps ST11-ST14 are not limited to the terminal device 1, and may be executed by another computer. An installation kit incorporating the information acquisition module 151 generated by another computer in step ST14 is stored in the source media and installed in the terminal device 1.
An installation kit incorporating the information acquisition module 151 generated in step ST15 is provided if the terminal processor 100 can execute the information acquisition module 151 and the driver file 152 after the printer driver 113 is installed in the terminal device 1. good. The installation kit itself does not have to include the same files as the information acquisition module 151 and the driver file 152.

端末装置1にプリンタードライバー113が生成された情報取得モジュール151を組み込まれたインストールキットを用いてインストールされた場合、図2に示すように、ドライバー実行部103が情報取得モジュール151を備える。OS実行部101が要求RQや印刷要求PQを送信する送信先が情報取得モジュール151となる。 When the printer driver 113 is installed in the terminal device 1 by using an installation kit incorporating the information acquisition module 151, the driver execution unit 103 includes the information acquisition module 151 as shown in FIG. The destination to which the OS execution unit 101 transmits the request RQ and the print request PQ is the information acquisition module 151.

図2および図4を参照して、端末装置1の動作を説明する。図4は、端末制御部10の動作を示すフローチャートである。 The operation of the terminal device 1 will be described with reference to FIGS. 2 and 4. FIG. 4 is a flowchart showing the operation of the terminal control unit 10.

生成アプリ実行部102は、ユーザーの操作に従って印刷データAPを生成し、出力する(ステップST21)。
OS実行部101は、生成アプリ実行部102が印刷データAPを出力したことを検知して、印刷処理を開始する(ステップST22)。OS実行部101は、プリンタードライバー113のインストール時にINFファイルで指定された宛先に、DDI関数サポート情報IFを求める要求RQを送信する(ステップST23)。ステップST23の宛先は、情報取得モジュール151である。要求RQは、サポート情報要求の一例に対応する。
The generation application execution unit 102 generates and outputs a print data AP according to a user operation (step ST21).
The OS execution unit 101 detects that the generation application execution unit 102 outputs the print data AP, and starts the print process (step ST22). The OS execution unit 101 transmits a request RQ for requesting the DDI function support information IF to the destination specified in the INF file when the printer driver 113 is installed (step ST23). The destination of step ST23 is the information acquisition module 151. The request RQ corresponds to an example of a support information request.

情報取得モジュール151は、要求RQを受信し(ステップST24)、ドライバーファイル152に対して要求RQを送信し、DDI関数サポート情報IFを求める(ステップST25)。情報取得モジュール151がドライバーファイル152に対して送信する要求RQは、OS実行部101が情報取得モジュール151に送信した要求RQと同様のフォーマットを有することが好ましい。情報取得モジュール151は、OS実行部101から受信した要求RQを、ドライバーファイル152に出力する。 The information acquisition module 151 receives the request RQ (step ST24), transmits the request RQ to the driver file 152, and obtains the DDI function support information IF (step ST25). The request RQ transmitted by the information acquisition module 151 to the driver file 152 preferably has the same format as the request RQ transmitted by the OS execution unit 101 to the information acquisition module 151. The information acquisition module 151 outputs the request RQ received from the OS execution unit 101 to the driver file 152.

ドライバー実行部103は、ドライバーファイル152によって情報取得モジュール151から要求RQを受信し、要求RQへの応答としてDDI関数サポート情報IFを出力する(ステップST26)。DDI関数サポート情報IFは、サポート情報の一例に対応する。 The driver execution unit 103 receives the request RQ from the information acquisition module 151 by the driver file 152, and outputs the DDI function support information IF as a response to the request RQ (step ST26). The DDI function support information IF corresponds to an example of support information.

情報取得モジュール151は、ドライバーファイル152が出力したDDI関数サポート情報IFを取得して保持し(ステップST27)、DDI関数サポート情報IFをOS実行部101に出力する(ステップST28)。情報取得モジュール151がOS実行部101に出力するDDI関数サポート情報IFは、ドライバーファイル152が出力したDDI関数サポート情報IFと同様であることが好ましい。情報取得モジュール151が、ドライバーファイル152から受信したDDI関数サポート情報IFをOS実行部101に出力する。OS実行部101は、ドライバーファイル152から直接、DDI関数サポート情報IFを受信した場合と同様の動作を実行できる。 The information acquisition module 151 acquires and holds the DDI function support information IF output by the driver file 152 (step ST27), and outputs the DDI function support information IF to the OS execution unit 101 (step ST28). The DDI function support information IF output by the information acquisition module 151 to the OS execution unit 101 is preferably the same as the DDI function support information IF output by the driver file 152. The information acquisition module 151 outputs the DDI function support information IF received from the driver file 152 to the OS execution unit 101. The OS execution unit 101 can execute the same operation as when the DDI function support information IF is directly received from the driver file 152.

OS実行部101は、DDI関数サポート情報IFを参照し、印刷データAPに基づき印刷要求PQを生成し、ドライバー実行部103に出力する(ステップST29)。印刷要求PQの宛先は、インストール時にINFファイルにより指定された宛先であり、情報取得モジュール151である。 The OS execution unit 101 refers to the DDI function support information IF, generates a print request PQ based on the print data AP, and outputs the print request PQ to the driver execution unit 103 (step ST29). The destination of the print request PQ is the destination specified by the INF file at the time of installation, and is the information acquisition module 151.

情報取得モジュール151は、印刷要求PQを受信する(ステップST30)。情報取得モジュール151は、印刷要求PQから印刷情報DAを取得し(ステップST31)、印刷情報DAをサーバー3に送信する(ステップST32)。 The information acquisition module 151 receives the print request PQ (step ST30). The information acquisition module 151 acquires the print information DA from the print request PQ (step ST31) and transmits the print information DA to the server 3 (step ST32).

ステップST31で、情報取得モジュール151は、印刷要求PQから抽出した情報を印刷情報DAとしてもよい。或いは、情報取得モジュール151は、印刷要求PQに含まれる指示やコマンドを解析して、ページ数、描画種類、ページ設定等を求め、印刷情報DAを生成してもよい。情報取得モジュール151は、印刷要求PQからDDI描画関数を呼び出すコマンドを検出し、Public Devmodeのカラー情報から描画種類を特定する処理、StartPage関数が呼ばれる回数からページ数を算出する処理、TextOut等の描画命令の数からページ数を算出する処理等を実行してもよい。 In step ST31, the information acquisition module 151 may use the information extracted from the print request PQ as the print information DA. Alternatively, the information acquisition module 151 may analyze instructions and commands included in the print request PQ to obtain the number of pages, drawing type, page settings, and the like, and generate print information DA. The information acquisition module 151 detects a command to call the DDI drawing function from the print request PQ, processes to specify the drawing type from the color information of the Public Devmode, processes to calculate the number of pages from the number of times the StartPage function is called, and draws such as TextOut. A process of calculating the number of pages from the number of commands may be executed.

OS実行部101または情報取得モジュール151は、ステップST32で印刷情報DAを送信する送信先として、サーバー3を指定する情報を予め記憶している。サーバー3を指定する情報は、情報取得モジュール151が組み込まれたプリンタードライバー113のインストールキットを用いて端末装置1にインストールする際に、設定される。 The OS execution unit 101 or the information acquisition module 151 stores in advance information that specifies the server 3 as a transmission destination for transmitting the print information DA in step ST32. The information that specifies the server 3 is set when the information acquisition module 151 is installed in the terminal device 1 by using the installation kit of the printer driver 113 incorporated.

情報取得モジュール151は、印刷要求PQをドライバーファイル152に送信する(ステップST33)。ドライバー実行部103は、ドライバーファイル152により、印刷装置2に対応する印刷コマンドCOを生成する(ステップST34)。情報取得モジュール151は、OS実行部101から印刷要求PQを情報取得モジュール151に送信する。情報取得モジュール151は、OS実行部101から直接、印刷要求PQを受信した場合と同様の処理を行える。ドライバーファイル152は、印刷コマンドCOを生成するデータ処理で、必要に応じて、機能ファイル153を呼び出す。機能ファイル153は、ドライバーファイル152に対し、文字データや画像データに関するデータ処理機能を提供する。 The information acquisition module 151 transmits the print request PQ to the driver file 152 (step ST33). The driver execution unit 103 generates a print command CO corresponding to the printing device 2 by using the driver file 152 (step ST34). The information acquisition module 151 transmits a print request PQ from the OS execution unit 101 to the information acquisition module 151. The information acquisition module 151 can perform the same processing as when the print request PQ is directly received from the OS execution unit 101. The driver file 152 is a data process that generates a print command CO, and calls a function file 153 as necessary. The function file 153 provides the driver file 152 with a data processing function related to character data and image data.

ドライバーファイル152は、生成した印刷コマンドCOを印刷装置2に送信する(ステップST35)。ドライバーファイル152は、印刷コマンドCOを印刷装置2に送信した場合に印刷装置2から受信する印刷結果RSを、応答として、情報取得モジュール151に出力する。印刷結果RSは印刷要求PQに対する応答の一例に対応する。情報取得モジュール151は、ドライバーファイル152から印刷結果RSを受信して、OS実行部101に印刷結果RSを送信する(ステップST36)情報取得モジュール151は、ドライバーファイル152から受信した印刷結果RSを、OS実行部101に送信する。 The driver file 152 transmits the generated print command CO to the printing device 2 (step ST35). The driver file 152 outputs the print result RS received from the print device 2 when the print command CO is sent to the print device 2 to the information acquisition module 151 as a response. The print result RS corresponds to an example of a response to the print request PQ. The information acquisition module 151 receives the print result RS from the driver file 152 and transmits the print result RS to the OS execution unit 101 (step ST36). The information acquisition module 151 receives the print result RS received from the driver file 152. It is transmitted to the OS execution unit 101.

端末装置1は、所定の条件に該当する場合に、図4に示す一部の処理を省略可能である。一例として、OS実行部101は、端末装置1の電源が投入されてから最初に印刷処理を実行する場合、ステップST21-ST36を実行し、2回目以後の印刷処理では、ステップST21、ST22、および、ステップST29-ST36を実行する。 The terminal device 1 can omit a part of the processing shown in FIG. 4 when a predetermined condition is satisfied. As an example, the OS execution unit 101 executes steps ST21-ST36 when the print process is first executed after the power of the terminal device 1 is turned on, and steps ST21, ST22, and the second and subsequent print processes. , Steps ST29-ST36 are executed.

以上説明したように、情報取得モジュール151は、印刷装置2に印刷コマンドCOを送信するドライバーファイル152がオペレーティングシステム111上で動作する端末装置1の端末プロセッサー100に実行されるプログラムである。情報取得モジュール151は、オペレーティングシステム111とドライバーファイル152との間に組み込まれる。情報取得モジュール151は、端末プロセッサー100に、OS実行部101が実行するオペレーティングシステム111から印刷要求PQを受け取らせる。情報取得モジュール151は、端末プロセッサー100に、印刷要求PQをドライバーファイル152に送信させる。情報取得モジュール151は、端末プロセッサー100に、印刷要求PQに対する応答をドライバーファイル152から受信させる。情報取得モジュール151は、端末プロセッサー100に、応答をOS実行部101に送信させる。情報取得モジュール151は、端末プロセッサー100に、印刷要求PQに基づく印刷情報DAを取得させる。 As described above, the information acquisition module 151 is a program in which the driver file 152 for transmitting the print command CO to the printing device 2 is executed by the terminal processor 100 of the terminal device 1 running on the operating system 111. The information acquisition module 151 is embedded between the operating system 111 and the driver file 152. The information acquisition module 151 causes the terminal processor 100 to receive the print request PQ from the operating system 111 executed by the OS execution unit 101. The information acquisition module 151 causes the terminal processor 100 to transmit the print request PQ to the driver file 152. The information acquisition module 151 causes the terminal processor 100 to receive a response to the print request PQ from the driver file 152. The information acquisition module 151 causes the terminal processor 100 to send a response to the OS execution unit 101. The information acquisition module 151 causes the terminal processor 100 to acquire the print information DA based on the print request PQ.

情報取得モジュール151を組み込み、印刷装置2に対応して作成されたプリンタードライバー113に含まれるドライバーファイル152を用いて、印刷要求PQから、印刷装置2が実行する印刷に関する印刷情報DAを取得できる。プリンタードライバー113に印刷情報を取得する機能を有していない場合に、情報取得モジュール115が印刷情報DAを取得し、印刷装置2が実行する印刷処理に関して、印刷量を算出し、印刷コストの算出や課金を行うことが可能となる。印刷装置2のベンダー等により作成されたドライバーファイル152を用いる端末装置1に、印刷情報DAを取得する機能を実装できる。従って、印刷装置2の機種や仕様に制限されることなく、様々な種類の印刷装置2を対象として、印刷量の算出等の機能を実現できる。 By incorporating the information acquisition module 151 and using the driver file 152 included in the printer driver 113 created corresponding to the printing device 2, the print information DA related to printing executed by the printing device 2 can be acquired from the print request PQ. When the printer driver 113 does not have the function of acquiring print information, the information acquisition module 115 acquires the print information DA, calculates the print amount for the print process executed by the printing apparatus 2, and calculates the print cost. And billing becomes possible. A function for acquiring print information DA can be implemented in a terminal device 1 using a driver file 152 created by a vendor of the printing device 2 or the like. Therefore, without being limited by the model and specifications of the printing device 2, it is possible to realize functions such as calculation of the printing amount for various types of printing devices 2.

情報取得モジュール151は、OS実行部101から印刷命令を含む印刷要求PQを端末プロセッサー100に受け取らせる。これにより、印刷要求PQから印刷に関する種々の情報を抽出し、これらの情報を印刷情報DAとして取得できる。 The information acquisition module 151 causes the terminal processor 100 to receive a print request PQ including a print command from the OS execution unit 101. As a result, various information related to printing can be extracted from the print request PQ, and these information can be acquired as print information DA.

印刷情報DAは、印刷装置に印刷させるページ数、描画種類、ページ設定のうち、少なくともいずれかを含む。印刷装置2の印刷量や印刷コストの算出に係る情報を含む印刷情報DAを取得できる。 The print information DA includes at least one of the number of pages to be printed by the printing device, the drawing type, and the page setting. The print information DA including the information related to the calculation of the print amount and the print cost of the print apparatus 2 can be acquired.

端末装置1は、サーバー3と接続し、情報取得モジュール151は、端末装置1が備える第1端末通信部11により、印刷要求PQに基づき取得された印刷情報DAを予め設定されたサーバー3に送信させる。印刷装置2の印刷量や印刷コストの算出等に係る印刷情報DAを、サーバー3によって収集することができる。サーバー3を用いて、印刷装置2の使用に対する課金等を行うことができる。 The terminal device 1 is connected to the server 3, and the information acquisition module 151 transmits the print information DA acquired based on the print request PQ to the preset server 3 by the first terminal communication unit 11 included in the terminal device 1. Let me. The server 3 can collect the print information DA related to the calculation of the print amount and the print cost of the print device 2. The server 3 can be used to charge for the use of the printing device 2.

情報取得モジュール151は、OS実行部101がDDI関数サポート情報IFを要求する要求RQを送信したときに、要求RQを受信させ、OS実行部101から受信された要求RQをドライバーファイル152に送信させる。ドライバーファイル152を動作させてDDI関数サポート情報IFを取得できる。印刷装置2のベンダー等により作成されたドライバーファイル152を、情報取得モジュール151が存在しない場合と同様に動作させて、印刷装置2に印刷を実行させることができる。 When the OS execution unit 101 transmits the request RQ requesting the DDI function support information IF, the information acquisition module 151 causes the request RQ to be received and the request RQ received from the OS execution unit 101 to be transmitted to the driver file 152. .. The driver file 152 can be operated to acquire the DDI function support information IF. The driver file 152 created by the vendor of the printing device 2 or the like can be operated in the same manner as when the information acquisition module 151 does not exist, so that the printing device 2 can perform printing.

情報取得モジュール151は、ドライバーファイル152に送信された要求RQに基づいてドライバーファイル152が送信するDDI関数サポート情報IFを、ドライバーファイル152から受信させる。情報取得モジュール151は、ドライバーファイル152から受信させたDDI関数サポート情報IFをOS実行部101に送信させる。ドライバーファイル152を動作させて、DDI関数サポート情報IFを出力させ、DDI関数サポート情報IFをOS実行部101に取得させることができる。印刷装置2のベンダー等により作成されたドライバーファイル152と、OS実行部101とを、情報取得モジュール151が存在しない場合と同様に動作させて、印刷装置2に印刷を実行させることができる。 The information acquisition module 151 receives the DDI function support information IF transmitted by the driver file 152 based on the request RQ transmitted to the driver file 152 from the driver file 152. The information acquisition module 151 causes the OS execution unit 101 to transmit the DDI function support information IF received from the driver file 152. The driver file 152 can be operated to output the DDI function support information IF, and the OS execution unit 101 can acquire the DDI function support information IF. The driver file 152 created by the vendor of the printing device 2 and the OS execution unit 101 can be operated in the same manner as when the information acquisition module 151 does not exist, so that the printing device 2 can perform printing.

印刷制御方法によれば、情報取得モジュール151によって、印刷装置2に対応して作成されたドライバーファイル152を用いて、印刷要求PQから、印刷装置2が実行する印刷に関する印刷情報DAを取得できる。印刷情報DAを取得する機能を有していないプリンタードライバー113を使用して、印刷装置2が実行する印刷処理に関して、印刷量を算出し、印刷コストの算出や課金を行うことが可能となる。情報取得モジュールによって、印刷装置2のベンダー等により作成されたドライバーファイル152を用いる端末装置1に、印刷情報DAを取得する機能を実装できる。印刷装置2の機種や仕様に制限されることなく、様々な種類の印刷装置2を対象として、印刷量の算出等の機能を実現できる。 According to the print control method, the information acquisition module 151 can acquire the print information DA related to the printing executed by the print apparatus 2 from the print request PQ by using the driver file 152 created corresponding to the print apparatus 2. Using the printer driver 113 that does not have the function of acquiring the print information DA, it is possible to calculate the print amount, calculate the print cost, and charge the print process executed by the printing device 2. The information acquisition module can implement a function of acquiring print information DA in the terminal device 1 using the driver file 152 created by the vendor of the printing device 2 or the like. Without being limited by the model and specifications of the printing device 2, it is possible to realize functions such as calculation of the printing amount for various types of printing device 2.

上記印刷制御方法で、情報取得モジュール151は、端末装置1が備える第1端末通信部11により、印刷要求PQに基づき取得した印刷情報DAを予め設定されたサーバー3に送信する。印刷装置2の印刷量や印刷コストの算出等に役立つ印刷情報DAを、サーバー3によって収集することができる。サーバー3を用いて、印刷装置2の利用に対する課金等を行うことができる。 In the above print control method, the information acquisition module 151 transmits the print information DA acquired based on the print request PQ to the preset server 3 by the first terminal communication unit 11 included in the terminal device 1. The server 3 can collect print information DA useful for calculating the print amount and the print cost of the print device 2. The server 3 can be used to charge for the use of the printing device 2.

上述した実施形態は、一態様を示すものであり、任意に変形および応用が可能である。
情報取得モジュール151が1つのプリンタードライバー113に対応して端末装置1に情報取得モジュール151が組み込まれたインストールキットを用いてインストールされた構成を例示したが、これに限定されない。端末装置1に、1または複数の他の印刷装置に対応する1または複数の他のプリンタードライバーがインストールされた構成で、端末制御部10は、他のプリンタードライバーに対して、それぞれ情報取得モジュール151を組み込んでもよい。或いは、端末制御部10は、複数の他のプリンタードライバーに対応して1つの情報取得モジュール151を有する構成であってもよい。
情報取得モジュール151をプリンタードライバー113のインストールキットに組み込んでプリンタードライバー113をインストールする構成に限定されない。プリンタードライバー113がインストールされた端末装置1に情報取得モジュール151のインストールキットを用いて、情報取得モジュール151をインストールし、プリンタードライバー113に情報取得モジュール151を組み込んでもよい。
The above-described embodiment shows one aspect, and can be arbitrarily modified and applied.
The configuration in which the information acquisition module 151 is installed by using an installation kit in which the information acquisition module 151 is incorporated in the terminal device 1 corresponding to one printer driver 113 is exemplified, but the present invention is not limited thereto. In a configuration in which one or a plurality of other printer drivers corresponding to one or a plurality of other printing devices are installed in the terminal device 1, the terminal control unit 10 has an information acquisition module 151 for each of the other printer drivers. May be incorporated. Alternatively, the terminal control unit 10 may have a configuration having one information acquisition module 151 corresponding to a plurality of other printer drivers.
The configuration is not limited to the configuration in which the information acquisition module 151 is incorporated into the printer driver 113 installation kit to install the printer driver 113. The information acquisition module 151 may be installed in the terminal device 1 in which the printer driver 113 is installed by using the installation kit of the information acquisition module 151, and the information acquisition module 151 may be incorporated in the printer driver 113.

印刷装置2は、スキャン機能やファクシミリ機能等の印刷機能以外の機能を有する複合機であってもよい。 The printing device 2 may be a multifunction device having a function other than the printing function such as a scanning function and a facsimile function.

端末制御部10は、複数のプロセッサーで構成されてもよく、ROM、RAM、その他の周辺回路とともに統合されたチップで構成されてもよい。 The terminal control unit 10 may be composed of a plurality of processors, or may be composed of a chip integrated with a ROM, RAM, and other peripheral circuits.

図1に示した構成は一例であって、端末装置1は特に限定されない。図1の各部に対応するハードウェアが実装される必要はなく、ソフトウェアで実現される機能の一部をハードウェアとしてもよく、或いは、ハードウェアで実現される機能の一部をソフトウェアで実現してもよい。その他、端末装置1、印刷装置2、およびサーバー3の他の各部の細部構成について、任意に変更可能である。 The configuration shown in FIG. 1 is an example, and the terminal device 1 is not particularly limited. It is not necessary to implement the hardware corresponding to each part of FIG. 1, and some of the functions realized by the software may be realized by the hardware, or some of the functions realized by the hardware may be realized by the software. You may. In addition, the detailed configuration of each of the terminal device 1, the printing device 2, and the server 3 can be arbitrarily changed.

図3および図4に示す処理単位は、端末装置1の動作の理解を容易にするために、主な処理内容に応じて分割したものであり、処理単位の分割の仕方や名称によって、限定されることはない。処理内容に応じて、さらに多くのステップ単位に分割してもよい。1つのステップ単位がさらに多くの処理を含むように分割してもよい。また、そのステップの順番は、趣旨に支障のない範囲で適宜に入れ替えてもよい。 The processing units shown in FIGS. 3 and 4 are divided according to the main processing contents in order to facilitate understanding of the operation of the terminal device 1, and are limited by the method and name of division of the processing units. There is no such thing. It may be divided into more step units depending on the processing content. One step unit may be divided so as to include more processing. Further, the order of the steps may be appropriately changed as long as the purpose is not hindered.

1…端末装置(印刷制御装置)、2…印刷装置、3…サーバー、10…端末制御部、11…第1端末通信部(送信装置)、12…第2端末通信部、14…入力部、20…印刷装置制御部、21…印刷装置通信部、22…印刷部、100…端末プロセッサー、101…OS実行部、102…生成アプリ実行部、103…ドライバー実行部、110…端末記憶部、111…オペレーティングシステム、112…生成アプリ、113…プリンタードライバー、151…情報取得モジュール(モジュール)、152…ドライバーファイル、153…機能ファイル、1000…印刷システム、AP…印刷データ、CO…印刷コマンド、DA…印刷情報、GN…グローバルネットワーク、IF…DDI関数サポート情報(サポート情報)、LN…ローカルネットワーク、PQ…印刷要求、RQ…要求(サポート情報要求)、RS…印刷結果(応答)。 1 ... Terminal device (print control device), 2 ... Printing device, 3 ... Server, 10 ... Terminal control unit, 11 ... First terminal communication unit (transmission device), 12 ... Second terminal communication unit, 14 ... Input unit, 20 ... Printing device control unit, 21 ... Printing device communication unit, 22 ... Printing unit, 100 ... Terminal processor, 101 ... OS execution unit, 102 ... Generation application execution unit, 103 ... Driver execution unit, 110 ... Terminal storage unit, 111 ... operating system, 112 ... generation application, 113 ... printer driver, 151 ... information acquisition module (module), 152 ... driver file, 153 ... functional file, 1000 ... printing system, AP ... print data, CO ... print command, DA ... Print information, GN ... global network, IF ... DDI function support information (support information), LN ... local network, PQ ... print request, RQ ... request (support information request), RS ... print result (response).

Claims (8)

ドライバーファイルを有し、印刷装置に印刷コマンドを送信するプリンタードライバーが、オペレーティングシステム上で動作する印刷制御装置のコンピューターに実行されるプログラムであって、
前記オペレーティングシステムと前記プリンタードライバーとの間に組み込まれ、
前記コンピューターに、
前記印刷制御装置の前記オペレーティングシステムから印刷要求を受信させ、
前記印刷要求を前記プリンタードライバーが有する前記ドライバーファイルに送信させ、
前記ドライバーファイルに送信された前記印刷要求に対する応答を前記ドライバーファイルから受信させ、
前記ドライバーファイルから受信された前記応答を前記オペレーティングシステムに送信させ、
前記印刷要求に基づく印刷情報を取得させる、プログラム。
A printer driver that has a driver file and sends print commands to the printer is a program that runs on the computer of the print controller running on the operating system.
Incorporated between the operating system and the printer driver,
On the computer
A print request is received from the operating system of the print control device, and the print request is received.
Send the print request to the driver file of the printer driver.
The response to the print request sent to the driver file is received from the driver file.
Send the response received from the driver file to the operating system.
A program for acquiring print information based on the print request.
前記印刷要求は、前記オペレーティングシステムからの印刷命令を含む、請求項1記載のプログラム。 The program of claim 1, wherein the print request comprises a print instruction from the operating system. 前記印刷情報は、前記印刷装置に印刷させるページ数、描画種類、ページ設定のうち、少なくとも1つの情報を含む、請求項1または2記載のプログラム。 The program according to claim 1 or 2, wherein the print information includes at least one information among the number of pages to be printed by the printing device, the drawing type, and the page setting. 前記印刷制御装置は、サーバーと接続し、
前記印刷要求に基づき取得された前記印刷情報を前記サーバーに送信させる、請求項1から3のいずれか1項に記載のプログラム。
The print control device is connected to the server and
The program according to any one of claims 1 to 3, wherein the print information acquired based on the print request is transmitted to the server.
前記オペレーティングシステムが前記印刷装置のサポート情報を要求するサポート情報要求を送信したときに、前記サポート情報要求を受信させ、
前記オペレーティングシステムから受信された前記サポート情報要求を前記ドライバーファイルに送信させる、請求項1から4のいずれか1項に記載のプログラム。
When the operating system sends a support information request requesting support information for the printing device, the support information request is received.
The program according to any one of claims 1 to 4, which causes the driver file to transmit the support information request received from the operating system.
前記ドライバーファイルに送信された前記サポート情報要求に基づいて前記ドライバーファイルが送信するサポート情報を、前記ドライバーファイルから受信させ、
前記ドライバーファイルから受信させた前記サポート情報を前記オペレーティングシステムに送信させる、請求項5記載のプログラム。
The support information transmitted by the driver file based on the support information request transmitted to the driver file is received from the driver file.
The program according to claim 5, wherein the support information received from the driver file is transmitted to the operating system.
ドライバーファイルを有し、印刷装置に印刷コマンドを送信するプリンタードライバーがインストールされる印刷制御装置が実行する印刷制御方法であって、
前記印刷制御装置のオペレーティングシステムとプリンタードライバーとの間にモジュールが予め組み込まれ、
前記モジュールによって、前記オペレーティングシステムからの印刷要求を取得し、
取得した前記印刷要求を前記プリンタードライバーに送信し、
前記プリンタードライバーから送信された応答を受信して前記オペレーティングシステムに送信し、
前記モジュールによって前記印刷要求に基づき印刷情報を取得する、印刷制御方法。
A print control method executed by a print control device that has a driver file and installs a printer driver that sends print commands to the print device.
A module is pre-installed between the operating system of the print control device and the printer driver.
The module gets the print request from the operating system and
The acquired print request is sent to the printer driver,
Receives the response sent from the printer driver and sends it to the operating system.
A print control method for acquiring print information based on the print request by the module.
前記印刷制御装置は、サーバーと接続し、
前記モジュールは前記印刷要求に基づき取得した前記印刷情報を前記サーバーに送信する、請求項7記載の印刷制御方法。
The print control device is connected to the server and
The print control method according to claim 7, wherein the module transmits the print information acquired based on the print request to the server.
JP2020159562A 2020-09-24 2020-09-24 Program and print control method Pending JP2022052998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020159562A JP2022052998A (en) 2020-09-24 2020-09-24 Program and print control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020159562A JP2022052998A (en) 2020-09-24 2020-09-24 Program and print control method

Publications (1)

Publication Number Publication Date
JP2022052998A true JP2022052998A (en) 2022-04-05

Family

ID=80962918

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020159562A Pending JP2022052998A (en) 2020-09-24 2020-09-24 Program and print control method

Country Status (1)

Country Link
JP (1) JP2022052998A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024080029A1 (en) * 2022-10-11 2024-04-18 キヤノン株式会社 Printing device and control method therefor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024080029A1 (en) * 2022-10-11 2024-04-18 キヤノン株式会社 Printing device and control method therefor

Similar Documents

Publication Publication Date Title
KR20210021078A (en) Information processing device, control method and program
JP2000190573A (en) Method for controlling printing and printing system
US8605316B2 (en) Information processing apparatus and control method thereof, and storage medium
JP2009187553A (en) Method for printing text-only content of pdf document
US8699045B2 (en) Information processing apparatus, information processing method, and storage medium
JP3733284B2 (en) Information processing apparatus, printing system, and command generation method
US20080184013A1 (en) Print setting instructing device, information processor, printing process system, print setting instructing system, print setting instructing method, and computer readable medium
JP2022052998A (en) Program and print control method
JP2012192686A (en) Image formation apparatus and method for generating print setting information
CN114253487B (en) Recording medium, printing control method, and printing control device
US8908227B2 (en) Image forming apparatus, image forming system, image data processing method, program, and storage medium
KR20050108902A (en) Printing method for saving print option
JP5173354B2 (en) Printing system and printing program
US20100177347A1 (en) Image forming processing controller and method and computer-readable medium thereof
JP2007102378A (en) Driver program
JP3806249B2 (en) Printing instruction device
JP2019128691A (en) Control program and program group
JP5551532B2 (en) Print setting device
US20220317943A1 (en) Control method and information processing apparatus
JPH10187390A (en) Information processor, data processing method for information processor and recording medium storing program that can be read by computer
JP2000322223A (en) Print system, control method therefor, and storage medium
JP2009289121A (en) Information processor, output device, output processing method and program
KR100485790B1 (en) Printing system for displaying print data stored in a printer and method for controlling the same
KR100565792B1 (en) Font data recording method for print
JP2014000791A (en) Image forming apparatus and image forming program

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20210914

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20211101