JP2012150534A - Print control device, print control method, and computer program - Google Patents

Print control device, print control method, and computer program Download PDF

Info

Publication number
JP2012150534A
JP2012150534A JP2011006623A JP2011006623A JP2012150534A JP 2012150534 A JP2012150534 A JP 2012150534A JP 2011006623 A JP2011006623 A JP 2011006623A JP 2011006623 A JP2011006623 A JP 2011006623A JP 2012150534 A JP2012150534 A JP 2012150534A
Authority
JP
Japan
Prior art keywords
print
printer
control instruction
image forming
forming apparatus
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
JP2011006623A
Other languages
Japanese (ja)
Inventor
Takahiko Nishida
貴彦 西田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2011006623A priority Critical patent/JP2012150534A/en
Publication of JP2012150534A publication Critical patent/JP2012150534A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a print control device that performs print control in accordance with a request from a user device even in a network environment where a print control device cannot communicate directly with an image forming apparatus.SOLUTION: A print server 104 receives a print control request to a printer 107 from a client terminal 101. If the previous instruction method of print control to the printer 107 is a pull type, the print server 104 determines a current instruction method of print control to be a pull type, and issues a print control instruction to the printer 107 via the client terminal 101.

Description

本発明は、印刷制御装置、印刷制御方法およびコンピュータプログラムに関する。   The present invention relates to a print control apparatus, a print control method, and a computer program.

インターネット上のサーバにて動作する各種アプリケーションを用いたサービス(クラウドサービス)を利用可能な、クラウドコンピューティングシステムと呼ばれる技術が提案されている。クラウドサービスが普及しているビジネス環境下で、印刷制御装置として機能するプリントサーバも、インターネット上のプリントサービスとしての機能を提供することが求められている。   A technology called a cloud computing system that can use a service (cloud service) using various applications that operate on a server on the Internet has been proposed. In a business environment in which cloud services are widespread, a print server that functions as a print control apparatus is also required to provide a function as a print service on the Internet.

すなわち、大規模なデータセンター上に配置されたプリントサーバを用いて、クラウドサービスとしてプリントサービスを提供する印刷システムが考えられる。このような印刷システムでは、顧客ごとのハードウェアの管理が不要となる。また、サーバの負荷に応じてリソースを容易に追加することができる。このため、近年、プリントサーバから直接プリンタへ印刷データを送信する従来のプッシュ型のプリント方式に加え、プル型のプリント方式が利用されている。プル型のプリント方式は、プリンタが、プリントサーバからインターネットおよびブラウザを経由して印刷データを取得するプリント方式である。従って、プル型のプリンタ制御でプッシュ型のプリンタ制御と同等の機能を実現する印刷システムが望まれている。   That is, a printing system that provides a print service as a cloud service using a print server arranged on a large-scale data center can be considered. Such a printing system eliminates the need for hardware management for each customer. Moreover, resources can be easily added according to the load on the server. For this reason, in recent years, a pull-type printing method has been used in addition to a conventional push-type printing method in which print data is directly transmitted from a print server to a printer. The pull-type printing method is a printing method in which a printer acquires print data from a print server via the Internet and a browser. Therefore, a printing system that realizes a function equivalent to that of push type printer control by pull type printer control is desired.

イントラネット内にプリントサーバとプリンタが存在する従来の印刷システムでは、プリントサーバは、プッシュ型のプリント方式に従ってプリンタ制御コマンドを送信することで、ユーザのリクエストに応じたプリンタの制御(印刷中止、印刷停止等)を行う。   In a conventional printing system in which a print server and a printer exist in an intranet, the print server sends a printer control command according to a push-type printing method, thereby controlling the printer according to the user's request (print stop, print stop). Etc.).

なお、特許文献1は、共にサーバ手順、ブラウザ手順を持つクライアント端末とネットワークプリンタとがHTTPを用いて通信するネットワークプリンタの制御方法を開示している。HTTPは、HyperText Transfer Protocolの略称である。   Patent Document 1 discloses a network printer control method in which a client terminal having both a server procedure and a browser procedure communicates with a network printer using HTTP. HTTP is an abbreviation for HyperText Transfer Protocol.

特開平11−024870号公報JP 11-024870 A

しかし、インターネット上でクラウドサービスを提供する印刷システムでは、プリントサーバ(印刷制御装置)とプリンタ(画像形成装置)とが、ファイアウォール越しに配置されている場合、以下の問題がある。すなわち、印刷制御装置は、ファイアウォールを越えて画像形成装置に通信することができないので、直接画像形成装置へ印刷制御指示をすることができない。従って、ユーザ装置からの印刷制御リクエスト(印刷中止、印刷停止等)があっても、印刷制御装置は、画像形成装置へ印刷制御指示を行うことができない。   However, in a printing system that provides a cloud service on the Internet, when a print server (printing control device) and a printer (image forming device) are arranged over a firewall, there are the following problems. That is, the print control apparatus cannot communicate with the image forming apparatus through the firewall, and therefore cannot directly issue a print control instruction to the image forming apparatus. Therefore, even if there is a print control request (print stop, print stop, etc.) from the user device, the print control device cannot issue a print control instruction to the image forming apparatus.

また、特許文献1が開示する技術では、クライアント端末とネットワークプリンタそれぞれが、サーバ/クライアントの役割を果たすことで、双方向通信をする必要がある。しかし、クライアント端末とネットワークプリンタとの間にファイアウォールが設けられている環境の下では、クライアント端末とネットワークプリンタとの通信自体ができない場合がある。この場合に、ファイアウォールの外部ポートを開放すると、ネットワークのセキュリティレベルを下げてしまうおそれがある。   Further, in the technology disclosed in Patent Document 1, it is necessary for the client terminal and the network printer to perform bidirectional communication by playing the role of a server / client. However, in an environment where a firewall is provided between the client terminal and the network printer, communication between the client terminal and the network printer may not be possible. In this case, if the external port of the firewall is opened, the network security level may be lowered.

本発明は、印刷制御装置から直接画像形成装置に通信できないネットワーク環境下においても、ユーザ装置からのリクエストに応じた印刷制御を実行する印刷制御装置の提供を目的とする。   An object of the present invention is to provide a print control apparatus that executes print control in response to a request from a user apparatus even in a network environment where the print control apparatus cannot communicate directly with an image forming apparatus.

本発明の一実施形態の印刷制御装置は、ネットワークを介して、ユーザ装置が備えるWebブラウザから、画像形成装置が実行する印刷処理の制御に関する要求である印刷制御要求を受信する印刷制御要求受信手段と、前記ネットワークを介して、前記印刷制御要求に対応する制御指示を前記画像形成装置に対して行う制御指示手段とを備える。前記制御指示手段は、過去に成功した前記画像形成装置に対する制御指示の方式の履歴情報を参照して、該履歴情報が示す、過去に成功した前記画像形成装置に対する制御指示の方式と同じ方式で該画像形成装置に対する制御指示を行う。   A print control apparatus according to an embodiment of the present invention includes a print control request receiving unit that receives a print control request, which is a request related to control of print processing executed by an image forming apparatus, from a Web browser included in a user apparatus via a network. And a control instruction unit that issues a control instruction corresponding to the print control request to the image forming apparatus via the network. The control instruction means refers to the history information of the control instruction method for the image forming apparatus that has been successful in the past, and is the same method as the control instruction method for the image forming apparatus that has been successful in the past indicated by the history information. A control instruction is given to the image forming apparatus.

本発明の印刷制御装置によれば、ファイアウォールによってアクセスが制限されたエリアに配置され、印刷制御装置から直接通信できない画像形成装置に対しても、Webブラウザを介して印刷制御指示を行うことができる。これにより、ファイアウォールの外部ポートを開放することなく、セキュリティを維持したまま画像形成装置に対する印刷制御をすることができる。   According to the print control apparatus of the present invention, it is possible to issue a print control instruction via a Web browser even to an image forming apparatus that is arranged in an area where access is restricted by a firewall and cannot directly communicate from the print control apparatus. . As a result, it is possible to perform print control on the image forming apparatus while maintaining security without opening the external port of the firewall.

本実施形態の印刷システムの全体構成例を示す図である。1 is a diagram illustrating an example of the overall configuration of a printing system according to an embodiment. 本実施形態の印刷システムのハードウェア構成例を示す図である。It is a figure which shows the hardware structural example of the printing system of this embodiment. 本実施形態の印刷システムの機能を説明する図である。It is a figure explaining the function of the printing system of this embodiment. プリントサーバとプルプリントアプリケーションの詳細な構成例である。3 is a detailed configuration example of a print server and a pull print application. Webブラウザが表示するUI画面の例を説明する図である。It is a figure explaining the example of UI screen which a web browser displays. 印刷制御処理を説明するシーケンス図の例であるIt is an example of a sequence diagram explaining a print control process プリントサーバの動作処理を説明するフローチャートである。6 is a flowchart illustrating an operation process of a print server. Webブラウザとプリンタの動作処理例を説明する図である。It is a figure explaining the example of an operation process of a web browser and a printer. 印刷制御処理を説明するシーケンス図の例である。It is an example of a sequence diagram illustrating a print control process. Webページのhtml構成を示す図である。It is a figure which shows the html structure of a web page. プリントサーバの動作処理を説明するフローチャートである。6 is a flowchart illustrating an operation process of a print server. Webブラウザの動作処理例を説明するフローチャートである。It is a flowchart explaining the example of operation processing of a Web browser. プリンタの動作処理例を説明するフローチャートである。6 is a flowchart illustrating an example of operation processing of a printer.

図1は、本実施形態の印刷システムの全体構成例を示す図である。図1に示す印刷システムは、複数のクライアント端末(101乃至103)、プリントサーバ104、複数のプリンタ(105乃至108)を備える。   FIG. 1 is a diagram illustrating an example of the overall configuration of a printing system according to the present embodiment. The printing system shown in FIG. 1 includes a plurality of client terminals (101 to 103), a print server 104, and a plurality of printers (105 to 108).

プリントサーバ104は、本実施形態の印刷制御装置である。また、プリンタは、本実施形態の画像形成装置である。プリントサーバ104とクライアント端末とプリンタとは、ネットワーク(109乃至111)を介して接続されている。もちろん、クライアント端末、プリンタがそれぞれ1台であってもよい。クライアント端末101乃至103は、同様の構成を有する。また、プリンタ105乃至108は、同様の構成を有する。   The print server 104 is a print control apparatus according to the present embodiment. A printer is the image forming apparatus of the present embodiment. The print server 104, the client terminal, and the printer are connected via a network (109 to 111). Of course, there may be one client terminal and one printer. The client terminals 101 to 103 have the same configuration. The printers 105 to 108 have the same configuration.

ネットワーク109乃至111は、例えば、インターネット等のLAN(Local Area
Network)、WAN(World Wide Network)である。ネットワーク109乃至111が、電話回線、専用デジタル回線、ATM(Asynchronous Transfer Mode)回線、フレームリレー回線、ケーブルテレビ回線、データ放送用無線回線等の通信ネットワークであってもよい。この通信ネットワークが、これらの回線の組み合わせによって実現されるものであってもよい。また、クライアント端末からプリントサーバ104とプリンタへの通信手段と、プリンタからプリントサーバ104への通信手段が異なっていてもよい。
The networks 109 to 111 are, for example, a LAN (Local Area) such as the Internet.
Network) and WAN (World Wide Network). The networks 109 to 111 may be communication networks such as a telephone line, a dedicated digital line, an ATM (Asynchronous Transfer Mode) line, a frame relay line, a cable TV line, and a data broadcasting wireless line. This communication network may be realized by a combination of these lines. Further, the communication means from the client terminal to the print server 104 and the printer and the communication means from the printer to the print server 104 may be different.

クライアント端末は、ユーザが操作するユーザ装置である。クライアント端末は、例えば、デスクトップパソコン、ノートパソコン、モバイルパソコン、PDA(Personal Digital Assistants)等である。クライアント端末が、プログラムの実行環境が内蔵された携帯電話であってもよい。クライアント端末には、Webブラウザを備える。Webブラウザは、World Wide Webの利用に供するブラウザである。このWebブラウザは、ネットワーク109を介して、プリントサーバ104に対して、印刷制御要求を送信する。   The client terminal is a user device operated by a user. The client terminal is, for example, a desktop personal computer, notebook personal computer, mobile personal computer, PDA (Personal Digital Assistants), or the like. The client terminal may be a mobile phone with a built-in program execution environment. The client terminal includes a web browser. The web browser is a browser used for using the World Wide Web. This Web browser transmits a print control request to the print server 104 via the network 109.

印刷制御要求は、プリンタが実行する印刷処理の制御に関する要求である。印刷制御要求は、例えば、印刷処理を求める印刷要求、印刷処理の中止を求める印刷中止要求、印刷先のプリンタの変更を求める印刷先変更要求を含む。また、印刷先変更要求は、第1のプリンタが実行中の印刷処理の中止と第2のプリンタによる該印刷処理の実行とを求める要求を含む。   The print control request is a request related to control of print processing executed by the printer. The print control request includes, for example, a print request for print processing, a print stop request for canceling print processing, and a print destination change request for changing the printer of the print destination. The print destination change request includes a request for canceling the printing process being executed by the first printer and executing the printing process by the second printer.

クライアント端末は、外部からのアクセスが制限されたローカルエリアに配置されており、ネットワーク109からファイアウォールで遮断されている。また、プリンタのいずれかは、外部からのアクセスが制限されたローカルエリアに配置されており、ネットワーク109からファイアウォールで遮断されている。   The client terminal is disposed in a local area where access from the outside is restricted, and is blocked from the network 109 by a firewall. One of the printers is disposed in a local area where access from the outside is restricted, and is blocked from the network 109 by a firewall.

プリントサーバ104は、クライアント端末のWebブラウザから印刷制御要求を受けると、この印刷制御要求に対応するプリンタに対して、印刷制御指示を行う。プリンタは、プリントサーバ104から受けた印刷制御指示に従った動作を実行する。   When the print server 104 receives a print control request from the Web browser of the client terminal, the print server 104 issues a print control instruction to the printer corresponding to the print control request. The printer executes an operation according to the print control instruction received from the print server 104.

本実施形態において、プリントサーバは、クラウドに設けられている。クラウドとは、クラウドコンピューティング環境におけるサーバ群が配置される領域のことである。クラウドコンピューティング環境においては、ユーザはコンピュータ処理をネットワーク経由でサービスとして利用する。クラウドに設けられたプリントサーバ104から発する要求によりファイアウォール内部にアクセスすることはできない。従って、プリントサーバ104は、クライアント端末からの要求の応答を返すことによって、クライアント端末に対して通信を行う。   In the present embodiment, the print server is provided in the cloud. The cloud is an area where servers in a cloud computing environment are arranged. In a cloud computing environment, a user uses computer processing as a service via a network. The firewall cannot be accessed by a request issued from the print server 104 provided in the cloud. Accordingly, the print server 104 communicates with the client terminal by returning a response to the request from the client terminal.

また、プリントサーバ104は、ネットワーク109からファイアウォールで遮断されているプリンタに対しては、印刷制御要求をしたクライアント端末を介して印刷制御指示を行う。以下では、クライアント端末経由でプリントサーバからプリンタに対して印刷制御指示を行う印刷制御指示方式をプル型の印刷制御指示方式と記述する。また、プリントサーバ104から直接画像形成装置(プリンタ)に対して印刷制御指示を行う印刷制御指示方式をプッシュ型の印刷制御指示方式と記述する。   The print server 104 issues a print control instruction to the printer that is blocked from the network 109 by the firewall via the client terminal that has issued the print control request. Hereinafter, a print control instruction method for issuing a print control instruction from the print server to the printer via the client terminal is described as a pull-type print control instruction method. A print control instruction method in which a print control instruction is directly issued from the print server 104 to the image forming apparatus (printer) is described as a push-type print control instruction method.

プリントサーバ104は、ネットワーク109からファイアウォールで遮断されていないプリンタに対しては、プリントサーバ104から発する要求により直接印刷制御指示を行うことができる。本実施形態の印刷制御方法は、図1に示す印刷システムによって実現される。また、本実施形態のコンピュータプログラムは、この印刷制御方法をコンピュータに実行させる。   The print server 104 can directly issue a print control instruction to a printer that is not blocked by the firewall from the network 109 by a request issued from the print server 104. The printing control method of the present embodiment is realized by the printing system shown in FIG. Further, the computer program of the present embodiment causes the computer to execute this print control method.

図2は、本実施形態の印刷システムのハードウェア構成例を示す図である。図2では、プリントサーバ104、クライアント端末101、プリンタ107のハードウェア構成例について説明する。なお、クライアント端末のハードウェア構成は、プリントサーバ104のハードウェア構成と同様である。   FIG. 2 is a diagram illustrating a hardware configuration example of the printing system according to the present embodiment. In FIG. 2, a hardware configuration example of the print server 104, the client terminal 101, and the printer 107 will be described. Note that the hardware configuration of the client terminal is the same as the hardware configuration of the print server 104.

プリントサーバ104は、CPU202、RAM203、ROM204、HDD205、ディスプレイ206、キーボード207、インタフェース208を備える。CPUは、Central Processing Unitの略称である。ROMは、Read
Only Memoryの略称である。HDDは、Hard Disk Driveの略称である。CPU202乃至インタフェース208は、システムバス201に接続されている。
The print server 104 includes a CPU 202, RAM 203, ROM 204, HDD 205, display 206, keyboard 207, and interface 208. CPU is an abbreviation for Central Processing Unit. ROM is Read
It is an abbreviation for “Only Memory”. HDD is an abbreviation for Hard Disk Drive. The CPU 202 to the interface 208 are connected to the system bus 201.

CPU202は、装置全体の制御を行う。CPU202は、HDD205に格納されているアプリケーションプログラム、OS等を実行し、RAM203にプログラムの実行に必要な情報、ファイル等を一時的に格納する制御を行う。OSは、Operating
Systemの略称である。
The CPU 202 controls the entire apparatus. The CPU 202 executes an application program, OS, and the like stored in the HDD 205, and performs control to temporarily store information, files, and the like necessary for executing the program in the RAM 203. OS is Operating
Abbreviation for System.

ROM204は、基本I/O(Input/Output)プログラム等のプログラム、印刷処理の際に使用する印刷データ、プリンタ情報等の各種データを記憶する。RAM203は一時記憶手段であり、CPU202の主メモリ、ワークエリア等として機能する。HDD205は、外部記憶手段であり、大容量メモリとして機能する。HDD205は、Webブラウザ等のアプリケーションプログラム、プリントサーバプログラム、OS、関連プログラム等を予め記憶している。   The ROM 204 stores programs such as a basic input / output (I / O) program, print data used during print processing, and various data such as printer information. A RAM 203 is a temporary storage unit, and functions as a main memory, a work area, and the like of the CPU 202. The HDD 205 is an external storage unit and functions as a large capacity memory. The HDD 205 stores in advance an application program such as a Web browser, a print server program, an OS, and related programs.

ディスプレイ206は、表示手段である。ディスプレイは、キーボード207から入力したコマンドや、プリンタのステータス等を表示する。外部装置I/F(Interface)208は、プリンタ、USB機器、周辺機器を接続する。キーボードは、ユーザ操作に従って入力情報を入力する。USBは、Universal Serial Busの略称である。   The display 206 is a display unit. The display displays commands input from the keyboard 207, printer status, and the like. An external device I / F (Interface) 208 connects a printer, a USB device, and a peripheral device. The keyboard inputs input information according to a user operation. USB is an abbreviation for Universal Serial Bus.

プリンタ107は、コントローラ209、NIC(Network Interface Card)219、プリントエンジン220、操作パネル221、外部メモリ223を備える。コントローラ209は、プリンタ107全体を制御する。NIC219は、コントローラ209と外部装置とのデータのやりとりを媒介する。プリントエンジン220は、コントローラ209の指示に従って、印刷処理を実行する。プリントエンジン220は、例えば、電子写真方式(レーザービーム方式)やインクジェット方式、昇華型(熱転写)方式のプリントエンジン220である。   The printer 107 includes a controller 209, a NIC (Network Interface Card) 219, a print engine 220, an operation panel 221, and an external memory 223. A controller 209 controls the entire printer 107. The NIC 219 mediates data exchange between the controller 209 and an external device. The print engine 220 executes print processing according to instructions from the controller 209. The print engine 220 is, for example, an electrophotographic (laser beam), inkjet, or sublimation (thermal transfer) print engine 220.

操作パネル221は、ユーザ操作に従った情報を入力する。操作パネル221は、例えば、プルプリントの操作を行うユーザインタフェースやプルプリント切り替えボタンを備える。また、操作パネル221は、例えば、プリンタの動作モード等の設定やプリンタの動作状況の表示、複写指定等の操作を行うためのボタンおよび液晶パネルを備える。操作パネル221が、LED(Light Emitting Diode)214等の表示部を備えていてもよい。外部メモリ213は、大容量メモリとして機能する。外部メモリ213は、例えば、プルプリントアプリケーションプログラム及び関係プログラム等を予め記憶する。   The operation panel 221 inputs information according to a user operation. The operation panel 221 includes, for example, a user interface for performing a pull print operation and a pull print switching button. The operation panel 221 includes, for example, a button and a liquid crystal panel for performing operations such as setting of the printer operation mode and the like, display of the printer operation status, and copy designation. The operation panel 221 may include a display unit such as an LED (Light Emitting Diode) 214. The external memory 213 functions as a large capacity memory. The external memory 213 stores, for example, a pull print application program and related programs in advance.

コントローラ209は、CPU210、RAM、ROM、HDD、LED、ラスタコントローラ215、DKC(Disk Controller)216、機器I/F217を備える。DKCは、Disk Controllerの略称である。   The controller 209 includes a CPU 210, RAM, ROM, HDD, LED, raster controller 215, DKC (Disk Controller) 216, and device I / F 217. DKC is an abbreviation for Disk Controller.

CPU210は、装置全体の制御を行う。CPU210は、例えば、システムバス218に接続される各種デバイスとのアクセスを統括的に制御する。この制御は、ROM212に記憶された制御プログラム等あるいはDKC216を介して接続された外部メモリ223に記憶された制御プログラムやリソースデータ(資源情報)等に基づく。   The CPU 210 controls the entire apparatus. For example, the CPU 210 comprehensively controls access to various devices connected to the system bus 218. This control is based on a control program or the like stored in the ROM 212 or a control program or resource data (resource information) stored in the external memory 223 connected via the DKC 216.

RAM211は、CPU210の主メモリ、ワークエリア等として機能する。RAM211は、図示しない増設ポートに接続されるオプションRAMによりメモリ容量を拡張することができるように構成されている。ラスタコントローラ215は、印刷データを画像データに変換するコントローラである。印刷データは、例えば、PDL(Page Description Language)、PDF(Portable Document Format)で記述されている。機器I/F217は、USB等で接続可能な外部機器との接続I/Fである。   The RAM 211 functions as a main memory and work area for the CPU 210. The RAM 211 is configured so that the memory capacity can be expanded by an optional RAM connected to an expansion port (not shown). The raster controller 215 is a controller that converts print data into image data. The print data is described in, for example, PDL (Page Description Language) and PDF (Portable Document Format). The device I / F 217 is a connection I / F with an external device that can be connected by USB or the like.

図3は、本実施形態の印刷システムの機能を説明する図である。図3中のプリンタ107は、ファイアウォールによって、プリントサーバ104からのアクセスが制限されているローカルエリアに配置されている。従って、プリンタ107は、プル型の印刷制御指示方式に対応する機能を有する。プリントサーバ104は、Webアプリケーション302、Webサービス303、プリンタ管理サービス305、印刷ジョブ管理サービス306を備える。   FIG. 3 is a diagram illustrating functions of the printing system according to the present embodiment. The printer 107 in FIG. 3 is arranged in a local area where access from the print server 104 is restricted by a firewall. Accordingly, the printer 107 has a function corresponding to the pull type print control instruction method. The print server 104 includes a web application 302, a web service 303, a printer management service 305, and a print job management service 306.

Webアプリケーション302は、ネットワークを介して、クライアント端末101が備えるWebブラウザ301から印刷制御要求(リクエスト)を受ける印刷制御要求受信手段として機能する。また、Webアプリケーション302は、Webブラウザ301から受けたリクエストの認証処理を認証サービス308に依頼する。Webアプリケーション302は、認証サービス308による認証が成功したリクエストをセッションとして管理する。   The Web application 302 functions as a print control request receiving unit that receives a print control request (request) from the Web browser 301 included in the client terminal 101 via the network. In addition, the Web application 302 requests the authentication service 308 to perform authentication processing for the request received from the Web browser 301. The Web application 302 manages a request that has been successfully authenticated by the authentication service 308 as a session.

また、Webアプリケーション302は、印刷制御要求に応答して、ユーザが印刷制御要求に応じた操作を行うUI画面(後述するジョブ一覧画面、プリンタ一覧画面)に対応するWebページを生成する。Webアプリケーション302は、生成したWebページを、ネットワークを介して、プリンタ107に対する印刷制御指示を行うスクリプト(印刷制御指示スクリプト)とともに、Webブラウザ301に対して送信する。これにより、Webアプリケーション302は、Webブラウザ301に、プリンタ107への印刷制御指示を行わせる。すなわち、Webアプリケーション302は、ネットワークを介して、印刷制御要求に対応する制御指示をプリンタ107に対して行う制御指示手段として機能する。   Further, in response to the print control request, the Web application 302 generates a Web page corresponding to a UI screen (a job list screen or a printer list screen described later) on which the user performs an operation according to the print control request. The Web application 302 transmits the generated Web page to the Web browser 301 together with a script (print control instruction script) for issuing a print control instruction to the printer 107 via the network. As a result, the Web application 302 causes the Web browser 301 to issue a print control instruction to the printer 107. That is, the Web application 302 functions as a control instruction unit that issues a control instruction corresponding to the print control request to the printer 107 via the network.

印刷制御指示スクリプトは、例えば、印刷処理を指示する印刷指示スクリプト、印刷処理の中止を指示する印刷中止スクリプトを含む。Webブラウザ301は、Webアプリケーションから受けたWebページに基づいてUI画面を表示する。また、Webブラウザ301は、Webアプリケーションから受けた印刷制御指示スクリプトに対応する印刷制御指示をプリンタ107に対して行う。具体的には、Webブラウザ301は、印刷制御指示に応じたコマンド(印刷制御コマンド)をプリンタ107に送信する。印刷制御コマンドは、例えば、印刷コマンド、印刷中止コマンド等である。   The print control instruction script includes, for example, a print instruction script for instructing print processing and a print stop script for instructing stop of print processing. The web browser 301 displays a UI screen based on the web page received from the web application. Further, the Web browser 301 issues a print control instruction corresponding to the print control instruction script received from the Web application to the printer 107. Specifically, the Web browser 301 transmits a command (print control command) corresponding to the print control instruction to the printer 107. The print control command is, for example, a print command, a print cancel command, or the like.

例えば、Webブラウザ301が、印刷指示スクリプトを受けると、プリンタ107のプルプリントアプリケーション304に対して印刷指示を行う。そして、プルプリントアプリケーション304は、Webブラウザ301から印刷指示を受けると、プリントサーバ104のWebサービス303に対して印刷ジョブ取得要求(リクエスト)を行う。印刷ジョブ取得要求は、当該印刷指示に応じた印刷ジョブの送信を求める要求である。   For example, when the Web browser 301 receives a print instruction script, the Web browser 301 issues a print instruction to the pull print application 304 of the printer 107. When the pull print application 304 receives a print instruction from the Web browser 301, it makes a print job acquisition request to the Web service 303 of the print server 104. The print job acquisition request is a request for requesting transmission of a print job according to the print instruction.

Webサービス303は、プルプリントアプリケーション304から印刷ジョブ取得要求を受けると、印刷ジョブを取得してプルプリントアプリケーション304に返す。また、Webサービス303は、プルプリントアプリケーション304から印刷ジョブのステータス(実行状態)を受け取る。印刷ジョブのステータスは、例えば、プリンタの名称と、このプリンタが印刷処理対象とする文書(ドキュメント)名とに対応付けられている。以下では、印刷ジョブのステータスを印刷ステータスと記述する。プリンタ管理サービス305は、プリントサーバ104とネットワークを介して接続されたプリンタを管理する。具体的には、プリンタ管理サービス305は、各々のプリンタに対応するプリンタ情報を管理する。プリンタ情報については、図4(C)を参照して後述する。   When receiving a print job acquisition request from the pull print application 304, the Web service 303 acquires the print job and returns it to the pull print application 304. Further, the Web service 303 receives the status (execution state) of the print job from the pull print application 304. The status of the print job is associated with, for example, the name of the printer and the name of a document (document) that is to be printed by this printer. Hereinafter, the status of a print job is described as a print status. A printer management service 305 manages printers connected to the print server 104 via a network. Specifically, the printer management service 305 manages printer information corresponding to each printer. The printer information will be described later with reference to FIG.

印刷ジョブ管理サービス306は、印刷ジョブを管理する。印刷ジョブ管理サービス306は、プリントサーバ104が備える所定の処理部から投入される文書データ等を、印刷ジョブに対応する印刷データとしてストレージ307に記憶して管理する。ストレージ307は、プリントサーバ104が内蔵するHDD、プリントサーバ104に外部接続しているHDD、またはネットワークストレージ等の記憶装置である。   A print job management service 306 manages print jobs. The print job management service 306 stores and manages document data and the like input from a predetermined processing unit included in the print server 104 in the storage 307 as print data corresponding to the print job. The storage 307 is a storage device such as an HDD built in the print server 104, an HDD externally connected to the print server 104, or a network storage.

図4は、プリントサーバとプルプリントアプリケーションの詳細な構成例を説明する図である。図4(A)は、プリントサーバ104の詳細な構成例を示す。プリントサーバ104が備える印刷ジョブ管理サービス306は、印刷データ管理部401、印刷ジョブ情報管理部402を備える。プリンタ管理サービス305は、プリンタ情報管理部403を備える。Webアプリケーション302は、セッション管理部404、ページ生成部405、リクエスト受付部406を備える。Webサービス303は、印刷ジョブ取得部407、印刷ステータス受信部408、リクエスト受付部409を備える。   FIG. 4 is a diagram illustrating a detailed configuration example of the print server and the pull print application. FIG. 4A shows a detailed configuration example of the print server 104. The print job management service 306 provided in the print server 104 includes a print data management unit 401 and a print job information management unit 402. The printer management service 305 includes a printer information management unit 403. The Web application 302 includes a session management unit 404, a page generation unit 405, and a request reception unit 406. The Web service 303 includes a print job acquisition unit 407, a print status reception unit 408, and a request reception unit 409.

印刷データ管理部401は、印刷データを管理する。印刷データ管理部401は、Webサービス303の印刷ジョブ取得部407から印刷データの取得リクエストを受け取り、ストレージ307から指定の印刷データを取得し、印刷ジョブ取得部407に渡す。   A print data management unit 401 manages print data. The print data management unit 401 receives a print data acquisition request from the print job acquisition unit 407 of the Web service 303, acquires specified print data from the storage 307, and passes it to the print job acquisition unit 407.

印刷ジョブ情報管理部402は、ストレージ307で管理している印刷データに対応する印刷ジョブの情報(印刷ジョブ情報)を管理する。印刷ジョブ情報は、印刷データを識別するジョブ識別ID、ドキュメント名、PDLやPDF等のデータフォーマットを識別するジョブ種類を含む。また、印刷ジョブ情報は、印刷ジョブに対応するプリンタ名、印刷ステータス、受付日時、最終印刷日時、ユーザ名、ページ数、ページサイズ、印刷データのリンク先等の情報を含む。印刷ステータスは、例えば、待機中、転送中、印刷中、キャンセル中、正常終了、キャンセル終了、エラー終了等のステータスを含む。   A print job information management unit 402 manages print job information (print job information) corresponding to print data managed by the storage 307. The print job information includes a job identification ID for identifying print data, a document name, and a job type for identifying a data format such as PDL or PDF. The print job information includes information such as a printer name corresponding to the print job, a print status, a reception date / time, a final print date / time, a user name, the number of pages, a page size, and a print data link destination. The print status includes, for example, statuses such as waiting, transferring, printing, canceling, normal end, cancel end, and error end.

プリンタ管理サービス305のプリンタ情報管理部403は、図4(C)に示すプリンタ情報を管理する。例えば、プリンタ情報管理部403は、Webサービス303の印刷ステータス受信部408から印刷ステータス、プリンタステータスを受信し、受信した印刷ステータス、プリンタステータスをプリンタ情報に設定して管理する。プリンタステータスは、プリンタの状態(例えば、ワーニング状態、正常状態等)を示す。また、プリンタ情報管理部403は、プリンタ情報に設定した印刷ステータスを印刷ジョブ情報管理部402に渡して、この印刷ステータスを印刷ジョブ情報に反映させる。   The printer information management unit 403 of the printer management service 305 manages the printer information shown in FIG. For example, the printer information management unit 403 receives the print status and printer status from the print status reception unit 408 of the Web service 303, and manages the received print status and printer status by setting them as printer information. The printer status indicates the status of the printer (for example, warning status, normal status, etc.). Also, the printer information management unit 403 passes the print status set in the printer information to the print job information management unit 402, and reflects this print status in the print job information.

Webアプリケーション302がWebブラウザ301から印刷制御要求を受け付けると、Webアプリケーション302は、印刷制御要求をプリンタ管理サービス305に通知する。印刷制御要求は、制御対象のプリンタを一意に識別する識別情報(プリンタ識別情報)を含む。プリンタ情報管理部403は、図4(C)に示すプリンタ情報が含むプリンタ識別情報に基づいて、制御対象のプリンタを検索して決定する。制御対象のプリンタの検索処理は、Webブラウザ301から印刷要求を発行したユーザと、プリンタ情報が含むユーザとが一致するプリンタに対してのみ行う。   When the web application 302 receives a print control request from the web browser 301, the web application 302 notifies the printer management service 305 of the print control request. The print control request includes identification information (printer identification information) that uniquely identifies the printer to be controlled. The printer information management unit 403 searches for and determines a printer to be controlled based on printer identification information included in the printer information illustrated in FIG. The search process for the printer to be controlled is performed only for printers in which the user who issued the print request from the Web browser 301 matches the user included in the printer information.

Webアプリケーション302のセッション管理部404は、認証サービス308による認証が成功したWebブラウザ301からのリクエストをセッションとして管理する。ページ生成部405は、Webブラウザ301からのリクエストに応答して、図5(A)に示すジョブ一覧画面601を表示するためのWebページを生成し、Webブラウザ301に返信する。リクエスト受付部406は、Webブラウザ301から印刷制御要求を受け付ける。   The session management unit 404 of the Web application 302 manages a request from the Web browser 301 that has been successfully authenticated by the authentication service 308 as a session. In response to the request from the Web browser 301, the page generation unit 405 generates a Web page for displaying the job list screen 601 shown in FIG. 5A and sends it back to the Web browser 301. The request reception unit 406 receives a print control request from the web browser 301.

Webサービス303のリクエスト受付部409は、プルプリントアプリケーション304の印刷ジョブ取得部412から、印刷ジョブ取得要求、印刷ステータス、プリンタステータスを受け付ける。印刷ジョブ取得部407は、印刷ジョブ取得要求をリクエスト受付部409が受け付けた場合に、印刷ジョブ管理サービス306に印刷データの取得リクエストを出す。   A request reception unit 409 of the Web service 303 receives a print job acquisition request, a print status, and a printer status from the print job acquisition unit 412 of the pull print application 304. The print job acquisition unit 407 issues a print data acquisition request to the print job management service 306 when the request reception unit 409 receives a print job acquisition request.

印刷ジョブ取得部407は、印刷ジョブ管理サービス306の印刷データ管理部401から印刷データを受け取り、この印刷データを含む印刷ジョブを印刷ジョブ取得部412に返す。印刷ステータス受信部408は、リクエスト受付部409が印刷ステータス、プリンタステータスを受け付けた場合に、印刷ステータスをプリンタ管理サービス305のプリンタ情報管理部403に通知する。また、印刷ステータス受信部408は、リクエスト受付部409がプリンタステータスを受け付けた場合に、プリンタステータスをプリンタ情報管理部403に通知する。   The print job acquisition unit 407 receives print data from the print data management unit 401 of the print job management service 306 and returns a print job including this print data to the print job acquisition unit 412. When the request reception unit 409 receives the print status and the printer status, the print status reception unit 408 notifies the printer information management unit 403 of the printer management service 305 of the print status. The print status reception unit 408 notifies the printer status to the printer information management unit 403 when the request reception unit 409 receives the printer status.

図4(B)は、プルプリントアプリケーション304の詳細な構成例を示す。プルプリントアプリケーション304は、Webサービス受付部410、Webサービス送信部411、印刷ジョブ取得部412、プルプリントコントローラ413、機器監視部414、印刷制御部415、印刷ジョブ送信部416を備える。   FIG. 4B shows a detailed configuration example of the pull print application 304. The pull print application 304 includes a Web service reception unit 410, a Web service transmission unit 411, a print job acquisition unit 412, a pull print controller 413, a device monitoring unit 414, a print control unit 415, and a print job transmission unit 416.

Webサービス受付部410は、Webブラウザ301から印刷制御コマンドを受け付ける。Webサービス送信部411は、例えば、印刷ジョブ取得要求、印刷ステータス、プリンタステータスをWebサービス303のリクエスト受付部409に送信する。また、Webサービス送信部411は、当該印刷ジョブ取得要求に応答したWebサービス303の印刷ジョブ取得部407から印刷ジョブを受信して印刷ジョブ取得部412に渡す。   The web service accepting unit 410 accepts a print control command from the web browser 301. For example, the Web service transmission unit 411 transmits a print job acquisition request, a print status, and a printer status to the request reception unit 409 of the Web service 303. In addition, the Web service transmission unit 411 receives a print job from the print job acquisition unit 407 of the Web service 303 in response to the print job acquisition request, and passes the print job to the print job acquisition unit 412.

印刷ジョブ取得部412は、Webサービス受付部410が受け付けた印刷制御コマンドが印刷コマンドである場合、Webサービス送信部411を介して、Webサービス303のリクエスト受付部409に対して印刷ジョブ取得要求を行う。また、印刷ジョブ取得部412は、Webサービス303の印刷ジョブ取得部407から、Webサービス送信部411を介して印刷ジョブを受け取る。   When the print control command received by the Web service reception unit 410 is a print command, the print job acquisition unit 412 sends a print job acquisition request to the request reception unit 409 of the Web service 303 via the Web service transmission unit 411. Do. The print job acquisition unit 412 receives a print job from the print job acquisition unit 407 of the Web service 303 via the Web service transmission unit 411.

印刷ジョブ送信部416は、印刷ジョブ取得部412が受け取った印刷ジョブが含む印刷データをコントローラ209(図2を参照)に渡す。印刷データを受け取ったコントローラ209は、印刷データを描画処理等して印刷出力する。印刷制御部415は、印刷ステータスをコントローラ209から受け取る。そして、印刷制御部415は、受け取った印刷ステータスを、Webサービス送信部411を介してWebサービス303のリクエスト受付部409に対して送信する。   The print job transmission unit 416 passes the print data included in the print job received by the print job acquisition unit 412 to the controller 209 (see FIG. 2). The controller 209 that has received the print data prints out the print data by performing a drawing process or the like. The print control unit 415 receives the print status from the controller 209. Then, the print control unit 415 transmits the received print status to the request reception unit 409 of the Web service 303 via the Web service transmission unit 411.

機器監視部414は、プリントサーバ104またはWebブラウザ301からプリンタステータス取得要求を受ける。プリンタステータス取得要求は、プリンタステータスの送信を求める要求である。機器監視部414は、プリンタステータス取得要求に応答して、プリンタステータスをコントローラ209から取得し、Webサービス送信部411を介してWebサービス303のリクエスト取得部409に送信する。プルプリントコントローラ413は、プルプリントアプリケーション304全体の動作管理を行う。   The device monitoring unit 414 receives a printer status acquisition request from the print server 104 or the Web browser 301. The printer status acquisition request is a request for requesting transmission of the printer status. In response to the printer status acquisition request, the device monitoring unit 414 acquires the printer status from the controller 209 and transmits it to the request acquisition unit 409 of the Web service 303 via the Web service transmission unit 411. The pull print controller 413 manages the operation of the entire pull print application 304.

図4(C)は、プリントサーバ104のプリンタ情報管理部403が管理するプリンタ情報の例を示す図である。プリンタ情報は、プリンタ名、プリンタ識別情報、ステータス、ユーザ、制御指示方式履歴を含む。プリンタ名は、プリンタの名称である。プリンタ識別情報は、プリンタの識別情報である。プリンタ識別情報は、例えば、IP(Internet Protocol)アドレスや、MAC(Media Access Control)アドレスや、URI(Uniform Resource Identifier)等である。ステータスは、プリンタステータスと印刷ステータスを含む。   FIG. 4C illustrates an example of printer information managed by the printer information management unit 403 of the print server 104. The printer information includes a printer name, printer identification information, status, user, and control instruction method history. The printer name is the name of the printer. The printer identification information is printer identification information. The printer identification information is, for example, an IP (Internet Protocol) address, a MAC (Media Access Control) address, a URI (Uniform Resource Identifier), or the like. The status includes a printer status and a print status.

ステータスは、例えば、正常、用紙切れ、ジャム、カバーオープン、トナーなし、排紙ビンフル、ハードディスクフル、その他エラーを含む。また、ステータスは、例えば、ウォーミングアップ中、キャリブレーション中、初期化中、オフライン、スリープ中、印刷中、印刷可能、状態不明等のステータスを含む。ユーザは、Webブラウザ301を操作するユーザの識別情報である。印刷制御指示方式履歴は、プリントサーバからプリンタに対する、過去に成功した印刷制御指示方式の履歴情報である。印刷制御指示方式は、プル型の印刷制御指示方式、プッシュ型の印刷制御指示方式を含む。   The status includes, for example, normal, out of paper, jam, cover open, no toner, paper discharge bin full, hard disk full, and other errors. The status includes, for example, statuses such as warming up, calibration, initialization, offline, sleeping, printing, printable, and state unknown. The user is identification information of a user who operates the Web browser 301. The print control instruction method history is history information of a print control instruction method that has been successful in the past from the print server to the printer. The print control instruction method includes a pull type print control instruction method and a push type print control instruction method.

図5は、Webブラウザが表示するUI画面の例を説明する図である。本実施形態では、Webブラウザ301がプリントサーバ104に印刷制御要求を行うと、プリントサーバ104が、図5(A)に示すUI画面であるジョブ一覧画面601を生成するためのWebページを生成してWebブラウザ301に返す。具体的には、プリントサーバ104のWebアプリケーション302が、プリンタ情報管理部403が管理しているプリンタ情報に基づいて、Webページを生成する。Webブラウザ301は、このWebページに基づいて、ジョブ一覧画面601を生成して表示する。   FIG. 5 is a diagram illustrating an example of a UI screen displayed by the Web browser. In this embodiment, when the Web browser 301 makes a print control request to the print server 104, the print server 104 generates a Web page for generating the job list screen 601 that is the UI screen shown in FIG. To the Web browser 301. Specifically, the Web application 302 of the print server 104 generates a Web page based on the printer information managed by the printer information management unit 403. The web browser 301 generates and displays a job list screen 601 based on this web page.

ジョブ一覧画面601上には、プリントサーバ104に登録されている各ジョブに対応するドキュメント名603、そのジョブを実行するプリンタのプリンタ名604、印刷ステータス605が表示される。また、ジョブ一覧画面601上には、ユーザが制御したいジョブを選択するためのチェックボックス602と、各種リクエスト(印刷要求、印刷中止要求、印刷停止要求、印刷先変更要求等)の受付ボタン607乃至610が表示される。   On the job list screen 601, a document name 603 corresponding to each job registered in the print server 104, a printer name 604 of a printer that executes the job, and a print status 605 are displayed. On the job list screen 601, a check box 602 for selecting a job that the user wants to control and accept buttons 607 through 607 for various requests (print request, print cancel request, print stop request, print destination change request, etc.). 610 is displayed.

ユーザが、制御対象のジョブに対応するチェックボックス602と、いずれかの受付ボタンを指定すると、Webブラウザ301が以下の処理を実行する。Webブラウザ301は、指定されたチェックボックス602に対応するジョブに関する、指定された受付ボタンに対応するリクエストをプリントサーバ104へ送信する。   When the user designates the check box 602 corresponding to the job to be controlled and one of the accept buttons, the Web browser 301 executes the following processing. The Web browser 301 transmits to the print server 104 a request corresponding to the specified reception button regarding the job corresponding to the specified check box 602.

印刷先のプリンタを変更する場合等、プリントサーバ104へのリクエストにプリンタの指定が必要な場合は、プリントサーバ104は、プリンタ一覧画面611に対応するWebページをWebブラウザ301に送信する。例えば、ユーザが、ジョブ一覧画面601上で、印刷処理を中止させるプリンタ(印刷中止対象プリンタ)を指定した上で印刷先変更ボタン610を押下げすると、Webブラウザ301が以下の処理を行う。Webブラウザ301は、プリンタ一覧画面611に対応するWebページの送信をプリントサーバ104に対して要求する。プリントサーバ104のWebアプリケーション302が、プリンタ情報に含まれるプリンタステータスに基づいて、プリンタ一覧画面611に対応するWebページを生成してWebブラウザ301に送信する。そして、Webブラウザ301が、プリントサーバ104から受け取ったWebページに基づいて、図5(B)に示すプリンタ一覧画面611を生成して表示する。   When a printer is required for a request to the print server 104, such as when changing a printer to be printed, the print server 104 transmits a Web page corresponding to the printer list screen 611 to the Web browser 301. For example, when the user presses the print destination change button 610 after designating a printer (print abort target printer) for canceling print processing on the job list screen 601, the Web browser 301 performs the following processing. The web browser 301 requests the print server 104 to transmit a web page corresponding to the printer list screen 611. The web application 302 of the print server 104 generates a web page corresponding to the printer list screen 611 based on the printer status included in the printer information and transmits it to the web browser 301. Then, the web browser 301 generates and displays a printer list screen 611 shown in FIG. 5B based on the web page received from the print server 104.

プリンタ一覧画面611上には、プリンタ名613、プリンタステータス614が表示される。ユーザが、プリンタ一覧画面611上で、対象プリンタに対応するチェックボックス612と、決定ボタン615を指示すると、Webブラウザ301が、以下の処理を実行する。Webブラウザ301は、チェックボックス612に対応するプリンタを変更先のプリンタとする印刷先変更要求をプリントサーバ104へ送信する。この印刷先変更要求は、印刷中止対象プリンタの印刷処理を中止させることを求める要求と、変更先のプリンタによる印刷処理の実行を求める要求とを含む。   A printer name 613 and a printer status 614 are displayed on the printer list screen 611. When the user designates a check box 612 corresponding to the target printer and a determination button 615 on the printer list screen 611, the Web browser 301 executes the following processing. The Web browser 301 transmits to the print server 104 a print destination change request in which the printer corresponding to the check box 612 is the change destination printer. This print destination change request includes a request for canceling the print processing of the printer to be canceled, and a request for executing the print processing by the change destination printer.

図5(C)は、プリントサーバ104のWebアプリケーション302が生成するWebページのhtml構成例を示す。このWebページは、Header部、Body部、Script部を有する。Webアプリケーション302は、Header部にヘッダ情報を記述し、Body部に、画面表示対象となるコンテンツの情報を記述する。また、Webアプリケーション302は、Script部に、Webブラウザ301に実行させるスクリプトを記述する。例えば、Webブラウザ301がプリントサーバ104に対して印刷中止要求を送信すると、プリントサーバ104のWebアプリケーション302は、Script部に印刷中止コマンド(スクリプト)を含むWebページを生成してWebブラウザに返す。Webアプリケーションが、このWebページに含まれる印刷中止スクリプトを実行することにより、印刷を中止させる対象となるプリンタに対して印刷中止指示を行う。   FIG. 5C shows an html configuration example of a Web page generated by the Web application 302 of the print server 104. This Web page has a Header part, a Body part, and a Script part. The Web application 302 describes header information in the Header part, and describes content information to be displayed on the Body part in the Body part. Further, the Web application 302 describes a script to be executed by the Web browser 301 in the Script part. For example, when the Web browser 301 transmits a print cancel request to the print server 104, the Web application 302 of the print server 104 generates a Web page including a print cancel command (script) in the Script unit and returns it to the Web browser. The Web application executes a print cancel script included in the Web page, and issues a print cancel instruction to the printer that is the target of canceling printing.

図6は、本発明の実施例1の印刷制御処理を説明するシーケンス図の例である。まず、クライアント端末101が備えるWebブラウザ301が、ジョブ一覧画面601上におけるユーザの指定に従って、印刷中止要求をプリントサーバ104に送る(P1)。   FIG. 6 is an example of a sequence diagram illustrating print control processing according to the first embodiment of the present invention. First, the Web browser 301 provided in the client terminal 101 sends a print cancel request to the print server 104 in accordance with the user designation on the job list screen 601 (P1).

続いて、プリントサーバ104のWebアプリケーション302が、印刷中止要求に対応するプリンタ、すなわち印刷を中止させる対象となるプリンタ(この例ではプリンタ107)のプリンタ情報を参照する。そして、Webアプリケーション302は、プリンタ情報に含まれる印刷制御指示方式履歴を取得する。Webアプリケーション302は、取得した印刷制御指示方式履歴が含む前回の印刷制御指示方式を、今回の印刷制御指示方式すなわちプリンタ107に印刷中止指示をする方式として決定する(P2)。図6に示す例では、Webアプリケーション302は、今回の印刷制御指示方式をプル型の印刷制御指示方式に決定する。   Subsequently, the Web application 302 of the print server 104 refers to the printer information of the printer corresponding to the print cancellation request, that is, the printer to be canceled (printer 107 in this example). Then, the Web application 302 acquires a print control instruction method history included in the printer information. The Web application 302 determines the previous print control instruction method included in the acquired print control instruction method history as the current print control instruction method, that is, a method for instructing the printer 107 to stop printing (P2). In the example illustrated in FIG. 6, the Web application 302 determines the current print control instruction method as a pull-type print control instruction method.

次に、Webアプリケーション302は、印刷ジョブ管理サービス306の印刷ジョブ情報管理部402に指示して、当該プリンタ情報が含む印刷ステータスを「キャンセル中」に更新する。そして、Webアプリケーション302は、ジョブ一覧画面601に対応するWebページであって、印刷中止指示スクリプトを含むWebページを生成する(P3)。Webアプリケーション302は、Webブラウザ301が、Java(登録商標)Scriptのクロスドメイン通信機能を備えており、かつ、今回の印刷制御指示方式がプル型の印刷制御指示方式である場合に、Webページに印刷中止指示スクリプトを記述する。   Next, the Web application 302 instructs the print job information management unit 402 of the print job management service 306 to update the print status included in the printer information to “Canceled”. Then, the Web application 302 generates a Web page corresponding to the job list screen 601 and including a print cancellation instruction script (P3). The Web application 302 includes a Java (registered trademark) Script cross-domain communication function and the Web application 302 displays a Web page when the current print control instruction method is a pull-type print control instruction method. Write a print cancellation instruction script.

次に、プリントサーバ104のWebアプリケーション302が、生成したWebページをWebブラウザ301に送信して、ジョブ一覧画面601を表示させる(P4)。続いて、Webブラウザ301が、ジョブ一覧画面601を表示するとともに、Webページに記述されている印刷中止指示スクリプトを実行して、プリンタ107に対して印刷中止コマンドを送信する(P5)。印刷中止コマンドは、印刷ジョブの中止を指示する。   Next, the Web application 302 of the print server 104 transmits the generated Web page to the Web browser 301 to display the job list screen 601 (P4). Subsequently, the Web browser 301 displays the job list screen 601 and executes a print cancel instruction script described in the Web page, and transmits a print cancel command to the printer 107 (P5). The print cancel command instructs to cancel the print job.

プリンタ107は、印刷中止コマンドを受けると、印刷中止コマンドの指示に従って印刷ジョブを中止する(P6)。そして、プリンタ107のプルプリントアプリケーション304が、プリントサーバ104に対して、印刷中止完了通知を行う(P7)。   Upon receiving the print cancel command, the printer 107 cancels the print job according to the instruction of the print cancel command (P6). Then, the pull print application 304 of the printer 107 notifies the print server 104 of the print cancellation completion (P7).

プリントサーバ104が印刷中止完了通知を受けると、Webアプリケーション302が、中止したジョブの印刷ステータスを更新する。また、Webアプリケーション302は、プリンタ107に対応するプリンタ情報内の印刷制御指示方式履歴を、今回の印刷制御指示方式で更新する(P8)。なお、図6では、Webブラウザ301が印刷中止要求を行った場合のシーケンス処理例を説明したが、Webブラウザ301が印刷停止要求を行った場合にも、図6を参照して説明したシーケンス処理と同様のシーケンス処理が行われる。   When the print server 104 receives a print cancellation completion notification, the Web application 302 updates the print status of the canceled job. Further, the Web application 302 updates the print control instruction method history in the printer information corresponding to the printer 107 with the current print control instruction method (P8). 6 illustrates the sequence processing example when the Web browser 301 makes a print stop request, but the sequence processing described with reference to FIG. 6 also when the Web browser 301 makes a print stop request. The same sequence processing is performed.

図7は、実施例1におけるプリントサーバの動作処理を説明するフローチャートである。図7では、プリントサーバ104が、Webブラウザ301からプリンタ107を印刷中止対象とする印刷中止要求を受けた場合の動作処理を例にとって説明する。   FIG. 7 is a flowchart illustrating an operation process of the print server according to the first embodiment. FIG. 7 illustrates an example of operation processing when the print server 104 receives a print cancellation request for the printer 107 as a print cancellation target from the Web browser 301.

まず、プリントサーバ104のWebアプリケーション302が、プリンタ情報管理部403から、プリンタ107に対応するプリンタ情報が含む印刷制御指示方式履歴を取得する(ステップS1)。Webアプリケーション302は、取得した印刷制御指示方式履歴を参照して、前回の印刷制御指示方式がプッシュ型またはプル型のいずれであるかを判断する(ステップS2)。前回の印刷制御指示方式がプッシュ型である場合、Webアプリケーション302は、今回の印刷制御指示方式をプッシュ型の印刷制御指示方式に決定し、プリンタ107に対して直接印刷中止指示を行う(ステップS10)。具体的には、Webアプリケーション302が、プリンタ107に対して印刷中止コマンドを送信する。   First, the Web application 302 of the print server 104 acquires the print control instruction method history included in the printer information corresponding to the printer 107 from the printer information management unit 403 (step S1). The Web application 302 refers to the acquired print control instruction method history and determines whether the previous print control instruction method is a push type or a pull type (step S2). If the previous print control instruction method is the push type, the Web application 302 determines that the current print control instruction method is the push type print control instruction method, and issues a print stop instruction directly to the printer 107 (step S10). ). Specifically, the Web application 302 transmits a print cancel command to the printer 107.

なお、Webアプリケーション302が印刷制御指示方式履歴を取得できていない場合にも、Webアプリケーション302は、プリンタ107に対して直接印刷中止指示を行う。続いて、Webアプリケーション302が、印刷中止コマンドの送信が成功したかを判断する(ステップS11)。印刷中止コマンドの送信が失敗した場合は、ステップS3に進む。印刷中止コマンドの送信が成功した場合、印刷ジョブ管理サービス306の印刷ジョブ情報管理部402が、印刷ジョブ情報内の印刷ステータスを「キャンセル中」に変更する。そして、Webアプリケーション302が、ジョブ一覧画面601に対応するWebページを生成して(ステップS12)、ステップS5に進む。   Even when the Web application 302 cannot acquire the print control instruction method history, the Web application 302 directly instructs the printer 107 to cancel printing. Subsequently, the Web application 302 determines whether the transmission of the print cancel command has been successful (step S11). If transmission of the print cancel command fails, the process proceeds to step S3. When the transmission of the print cancel command is successful, the print job information management unit 402 of the print job management service 306 changes the print status in the print job information to “cancelled”. Then, the web application 302 generates a web page corresponding to the job list screen 601 (step S12), and the process proceeds to step S5.

ステップS2の判断処理において、前回の印刷制御指示方式がプル型である場合、Webアプリケーション302は、今回の印刷制御指示方式をプル型の印刷制御指示方式に決定する。そして、Webアプリケーション302は、予め記憶手段に記憶されたWebブラウザ301の機能に関する情報に基づいて、Webブラウザ301がJava(登録商標)Scriptのクロスドメイン通信機能を有するかを判断する(ステップS3)。Webブラウザ301がJava(登録商標)Scriptのクロスドメイン通信機能を有しない場合、印刷中止エラーとする(ステップS13)。そして、印刷ジョブ情報管理部402が、印刷ジョブ情報が含む印刷ステータスをエラー終了に更新する(ステップS9)。   If it is determined in step S2 that the previous print control instruction method is the pull type, the Web application 302 determines the current print control instruction method as the pull type print control instruction method. Then, the Web application 302 determines whether the Web browser 301 has a Java (registered trademark) Script cross-domain communication function based on information related to the function of the Web browser 301 stored in advance in the storage unit (step S3). . If the Web browser 301 does not have a Java (registered trademark) Script cross-domain communication function, a print abort error is determined (step S13). Then, the print job information management unit 402 updates the print status included in the print job information to end with an error (step S9).

Webブラウザ301がJava(登録商標)Scriptのクロスドメイン通信機能を有する場合、Webアプリケーション302は、印刷ジョブ情報内の印刷ステータスを「キャンセル中」に変更する。そして、Webアプリケーション302は、ジョブ一覧画面601に対応するWebページであって、印刷中止指示スクリプトを含むWebページを生成する(ステップS4)。   When the Web browser 301 has a Java (registered trademark) Script cross-domain communication function, the Web application 302 changes the print status in the print job information to “Canceled”. Then, the Web application 302 generates a Web page corresponding to the job list screen 601 and including a print cancellation instruction script (Step S4).

次に、Webアプリケーション302が、Webブラウザ301に対してジョブ一覧画面601に対応するWebページを送信する(ステップS5)。Webブラウザ301は、このWebページに応じたジョブ一覧画面601を表示するとともに、このWebページが含む印刷中止指示スクリプト実行する。すなわち、Webブラウザ301は、プリンタ107に対して印刷中止コマンドを送信する。そして、プリンタ107が、Webブラウザ301から受けた印刷中止コマンドに従って、印刷中止処理を実行する。プリンタ107は、印刷中止処理を完了すると、Webアプリケーション302に対して、印刷中止処理完了通知を行う。印刷中止処理完了通知は、印刷中止処理が完了したことを示す通知であって、印刷中止処理が成功したことを示す情報または失敗したことを示す情報を含む。   Next, the web application 302 transmits a web page corresponding to the job list screen 601 to the web browser 301 (step S5). The Web browser 301 displays a job list screen 601 corresponding to the Web page and executes a print cancellation instruction script included in the Web page. That is, the Web browser 301 transmits a print cancel command to the printer 107. Then, the printer 107 executes print cancel processing in accordance with the print cancel command received from the Web browser 301. When the printer 107 completes the print cancel process, the printer 107 notifies the Web application 302 of the print cancel process completion. The print cancel processing completion notification is a notification indicating that the print cancel processing has been completed, and includes information indicating that the print cancel processing has succeeded or information indicating that it has failed.

次に、Webアプリケーション302が、プリンタ107から印刷中止処理完了通知を受けたかを判断する(ステップS6)。プリンタ107から印刷中止処理完了通知を受けていない場合は、ステップS6に戻る。プリンタ107から印刷中止処理完了通知を受けた場合、Webアプリケーション302は、印刷中止処理完了通知が含む情報に基づいて、印刷中止処理が成功したかを判断する(ステップS7)。   Next, it is determined whether the Web application 302 has received a print cancellation process completion notification from the printer 107 (step S6). If no print cancel processing completion notification has been received from the printer 107, the process returns to step S6. When receiving the print cancel process completion notification from the printer 107, the Web application 302 determines whether the print cancel process has been successful based on the information included in the print cancel process completion notification (step S7).

Webアプリケーション302が、印刷中止処理が失敗したと判断した場合は、ステップS13に進む。Webアプリケーション302が、印刷中止処理が成功したと判断した場合、Webアプリケーション302は、プリンタ情報管理部403に指示して、今回の印刷制御指示方式でプリンタ情報内の印刷制御指示方式履歴を更新する(ステップS8)。そして、印刷ジョブ管理サービス306の印刷ジョブ情報管理部402が、印刷ジョブ情報が含む印刷ステータスをキャンセル終了に更新する(ステップS9)。   If the Web application 302 determines that the print cancellation process has failed, the process proceeds to step S13. When the Web application 302 determines that the print cancellation process has been successful, the Web application 302 instructs the printer information management unit 403 to update the print control instruction method history in the printer information with the current print control instruction method. (Step S8). Then, the print job information management unit 402 of the print job management service 306 updates the print status included in the print job information to “cancel” (step S9).

図7を参照して説明したことから、Webアプリケーション302は、印刷制御指示方式履歴を参照して、過去に成功したプリンタ107に対する印刷制御指示方式と同じ方式でプリンタ107に対する印刷制御指示を行う。具体的には、Webアプリケーション302は、過去に成功したプリンタ107に対する印刷制御指示方式が、プッシュ型の印刷制御指示方式(第1の方式)である場合に、今回の印刷制御指示を第1の方式で行う(S10を参照)。また、Webアプリケーション302は、過去に成功したプリンタ107に対する印刷制御指示方式が、プル型の印刷制御指示方式(第2の方式)である場合に、今回の印刷制御指示を第2の方式で行う。   As described with reference to FIG. 7, the Web application 302 refers to the print control instruction method history and issues a print control instruction to the printer 107 in the same manner as the print control instruction method for the printer 107 that has succeeded in the past. Specifically, when the print control instruction method for the printer 107 that has been successful in the past is the push-type print control instruction method (first method), the Web application 302 sends the current print control instruction to the first print control instruction. (See S10). Further, when the print control instruction method for the printer 107 that has succeeded in the past is the pull-type print control instruction method (second method), the Web application 302 performs the current print control instruction using the second method. .

実施例1のプリントサーバ104によれば、ファイアウォールによってアクセスが制限されたエリアに配置され、プリントサーバ104から直接通信できないプリンタに対しても、Webブラウザを介して印刷制御指示を行うことができる。これにより、ファイアウォールの外部ポートを開放することなく、セキュリティを維持したままプリンタに対する印刷制御をすることができる。   According to the print server 104 of the first embodiment, a print control instruction can be issued via a Web browser even to a printer that is placed in an area where access is restricted by a firewall and cannot directly communicate from the print server 104. As a result, it is possible to control printing with respect to the printer while maintaining security without opening the external port of the firewall.

図8は、実施例1におけるWebブラウザとプリンタの動作処理例を説明するフローチャートである。図8(A)は、Webブラウザ301の動作処理例を説明するフローチャートである。Webブラウザ301が、プリントサーバ104のWebアプリケーション302から受信したWebページに対応するジョブ一覧画面601を表示する(ステップS21)。   FIG. 8 is a flowchart illustrating an example of operation processing of the Web browser and the printer according to the first embodiment. FIG. 8A is a flowchart for explaining an example of operation processing of the Web browser 301. The web browser 301 displays the job list screen 601 corresponding to the web page received from the web application 302 of the print server 104 (step S21).

次に、Webブラウザ301が、Webページに印刷中止指示スクリプトが含まれているかを判断する(ステップS22)。Webページに印刷中止指示スクリプトが含まれていない場合は、処理を終了する。Webページに印刷中止指示スクリプトが含まれている場合、Webブラウザ301は、印刷中止指示スクリプトを実行する(ステップS23)。具体的には、Webブラウザ301は、印刷中止コマンドを印刷中止対象のプリンタへ送信する(ステップS23)。   Next, the Web browser 301 determines whether a print stop instruction script is included in the Web page (step S22). If the Web page does not include a print cancellation instruction script, the process ends. If the Web page includes a print cancel instruction script, the Web browser 301 executes the print cancel instruction script (step S23). Specifically, the web browser 301 transmits a print cancel command to the printer to be canceled (step S23).

図8(B)は、プリンタの動作処理例を説明するフローチャートである。図8(B)では、プリンタ107の動作処理を例にとって説明する。まず、プリンタ107が、印刷中止コマンドを受信する(ステップS31)。プリンタ107が、対象ジョブの印刷中止処理を実行する(ステップS32)。そして、プリンタ107が、プリントサーバ104に対して印刷中止処理完了通知を行う(ステップS33)。   FIG. 8B is a flowchart illustrating an example of operation processing of the printer. In FIG. 8B, the operation process of the printer 107 will be described as an example. First, the printer 107 receives a print cancel command (step S31). The printer 107 executes a print cancel process for the target job (step S32). Then, the printer 107 notifies the print server 104 of the completion of the print cancellation process (step S33).

次に、本発明の実施例2について説明する。実施例2においては、プリントサーバ104が、印刷先変更制御を実行する。この例では、プリントサーバ104が、プリンタ107を変更元プリンタ、プリンタ108を変更先プリンタとする印刷先変更制御を実行するものとする。変更元プリンタは、現在印刷先であるプリンタであって、印刷先変更制御によって印刷処理を中止するプリンタである。変更先プリンタは、印刷先変更制御によって、新たに印刷先となるプリンタである。   Next, a second embodiment of the present invention will be described. In the second embodiment, the print server 104 executes print destination change control. In this example, it is assumed that the print server 104 executes print destination change control in which the printer 107 is the change source printer and the printer 108 is the change destination printer. The change source printer is a printer that is the current print destination, and is a printer that stops print processing by print destination change control. The change destination printer is a printer that becomes a new print destination by the print destination change control.

図9は、実施例2の印刷制御処理を説明するシーケンス図の例である。まず、クライアント端末101が備えるWebブラウザ301が、ジョブ一覧画面601上におけるユーザの指定に従って、印刷先変更要求をプリントサーバ104に送る(P11)。印刷先変更要求は、変更元プリンタ(第1の画像形成装置)が実行中の印刷処理の中止と、変更先プリンタ(第2の画像形成装置)による該印刷処理の実行とを求める要求を含む。   FIG. 9 is an example of a sequence diagram illustrating print control processing according to the second embodiment. First, the Web browser 301 provided in the client terminal 101 sends a print destination change request to the print server 104 in accordance with a user designation on the job list screen 601 (P11). The print destination change request includes a request for canceling the print process being executed by the change source printer (first image forming apparatus) and for executing the print process by the change destination printer (second image forming apparatus). .

続いて、プリントサーバ104のWebアプリケーション302が、変更元プリンタ(プリンタ107)のプリンタ情報を取得する。Webアプリケーション302は、取得したプリンタ情報に含まれる印刷制御指示方式履歴を参照し、今回の印刷制御指示方式すなわちプリンタ107に印刷中止指示をする方式として決定する(P12)。図9に示す例では、Webアプリケーション302は、今回の印刷制御指示方式をプル型の印刷制御指示方式に決定する。   Subsequently, the Web application 302 of the print server 104 acquires printer information of the change source printer (printer 107). The Web application 302 refers to the print control instruction method history included in the acquired printer information, and determines this print control instruction method, that is, a method for instructing the printer 107 to stop printing (P12). In the example illustrated in FIG. 9, the Web application 302 determines the current print control instruction method as a pull-type print control instruction method.

次に、Webアプリケーション302は、印刷ジョブ管理サービス306の印刷ジョブ情報管理部402に指示して、当該プリンタ情報が含む印刷ステータスを「キャンセル中」に更新する。そして、Webアプリケーション302は、ジョブ一覧画面601に対応するWebページであって、印刷中止指示スクリプトと、ポーリングスクリプトとを含むWebページを生成する(P13)。ポーリングスクリプトは、プリントサーバ104へのポーリングの実行を指示するスクリプトである。図10(A)は、生成されるWebページのhtml構成を示す。   Next, the Web application 302 instructs the print job information management unit 402 of the print job management service 306 to update the print status included in the printer information to “Canceled”. Then, the Web application 302 generates a Web page corresponding to the job list screen 601 and including a print cancellation instruction script and a polling script (P13). The polling script is a script that instructs the print server 104 to execute polling. FIG. 10A shows the html structure of the generated Web page.

次に、プリントサーバ104のWebアプリケーション302が、生成したWebページをWebブラウザ301に送信して、ジョブ一覧画面601を表示させる(P14)。Webブラウザ301は、Webページに記述されているポーリングスクリプトを実行して、プリントサーバ104に対するポーリングを開始する(P15)。また、Webブラウザ301は、Webページに記述されている印刷中止指示スクリプトを実行して、プリント107に対して、印刷中止コマンドを送信する(P16)。   Next, the Web application 302 of the print server 104 transmits the generated Web page to the Web browser 301 to display the job list screen 601 (P14). The Web browser 301 executes a polling script described in the Web page and starts polling the print server 104 (P15). Further, the Web browser 301 executes a print cancel instruction script described in the Web page, and transmits a print cancel command to the print 107 (P16).

プリンタ107は、印刷中止コマンドを受けて、印刷ジョブを中止する(P17)。プリントサーバ104が、プリンタ107から印刷中止処理完了通知を受ける(P18)。プリントサーバ104が、印刷中止処理完了通知が含む情報に基づいて、印刷中止処理が完了したことを認識すると、プリントサーバ104は、今回の印刷制御指示方式で、プリンタ107のプリンタ情報内の印刷制御指示方式履歴を更新する。   In response to the print cancel command, the printer 107 cancels the print job (P17). The print server 104 receives a print cancellation process completion notification from the printer 107 (P18). When the print server 104 recognizes that the print cancel process has been completed based on the information included in the print cancel process completion notification, the print server 104 performs print control in the printer information of the printer 107 using the current print control instruction method. Update the instruction method history.

次に、プリントサーバ104は、変更先プリンタであるプリンタ108に対して印刷を指示する処理を、以下のようにして実行する。まず、プリントサーバ104が、印刷ジョブ情報が含む対象ジョブの印刷ステータス、プリンタ名等を更新する。また、プリントサーバ104が、プリンタ108のプリンタ情報を取得する。Webアプリケーション302は、取得したプリンタ情報に含まれる印刷制御指示方式履歴を参照し、前回の印刷制御指示方式を今回の印刷制御指示方式すなわちプリンタ108に印刷指示をする方式として決定する(P19)。図9に示す例では、Webアプリケーション302は、今回の印刷制御指示方式をプル型の印刷制御指示方式に決定する。   Next, the print server 104 executes processing for instructing printing to the printer 108 as the change destination printer as follows. First, the print server 104 updates the print status, printer name, and the like of the target job included in the print job information. In addition, the print server 104 acquires printer information of the printer 108. The Web application 302 refers to the print control instruction method history included in the acquired printer information, and determines the previous print control instruction method as the current print control instruction method, that is, the method for issuing a print instruction to the printer 108 (P19). In the example illustrated in FIG. 9, the Web application 302 determines the current print control instruction method as a pull-type print control instruction method.

次に、Webアプリケーション302が、ジョブ一覧画面601に対応するWebページであって、印刷指示スクリプトを含むWebページを生成する(P21)。図10(B)は、生成されるWebページのhtml構成を示す。続いて、Webアプリケーション302が、上記生成したWebページを、Webブラウザ301からのポーリングへの返信としてWebブラウザ301に対して送信する。   Next, the Web application 302 generates a Web page corresponding to the job list screen 601 and including a print instruction script (P21). FIG. 10B shows the html structure of the generated web page. Subsequently, the Web application 302 transmits the generated Web page to the Web browser 301 as a reply to polling from the Web browser 301.

続いて、Webブラウザ301が、ジョブ一覧画面601を表示するとともに、Webページに記述されている印刷指示スクリプトを実行して、プリンタ107に対して印刷指示コマンドを送信する(P24)。印刷指示コマンドは、印刷ジョブの実行を指示する。   Subsequently, the Web browser 301 displays a job list screen 601 and executes a print instruction script described in the Web page to transmit a print instruction command to the printer 107 (P24). The print instruction command instructs execution of a print job.

プリンタ107は、印刷指示コマンドを受けると、印刷指示コマンドの指示に従って印刷ジョブの実行を開始する(P24)。そして、プリンタ107のプルプリントアプリケーション304が、プリントサーバ104に対して、印刷開始通知を行う(P25)。印刷開始通知は、印刷ジョブの実行を開始したことの通知である。印刷開始通知は、印刷ジョブの実行の開始に成功したか失敗したかを示す情報を含む。   Upon receiving the print instruction command, the printer 107 starts executing the print job in accordance with the instruction of the print instruction command (P24). Then, the pull print application 304 of the printer 107 sends a print start notification to the print server 104 (P25). The print start notification is a notification that print job execution has started. The print start notification includes information indicating whether the start of execution of the print job has succeeded or failed.

プリントサーバ104が印刷開始通知を受けると、Webアプリケーション302が、対象ジョブの印刷ステータスを更新する。また、Webアプリケーション302は、プリンタ108に対応するプリンタ情報内の印刷制御指示方式履歴を、今回の印刷制御指示方式で更新する(P26)。   When the print server 104 receives a print start notification, the Web application 302 updates the print status of the target job. Further, the Web application 302 updates the print control instruction method history in the printer information corresponding to the printer 108 with the current print control instruction method (P26).

図11は、実施例2におけるプリントサーバの動作処理を説明するフローチャートである。図11のステップS41乃至S48、ステップS57乃至S59の処理は、変更元プリンタ(例えば、プリンタ107)を対象とした印刷中止指示処理である。この印刷中止指示処理は、図7を参照して説明した実施例1における印刷中止指示処理と同様である。但し、実施例2では、実施例1と異なり、ステップS44において、Webアプリケーション302は、ジョブ一覧画面601に対応するWebページであって、印刷中止指示スクリプトとポーリングスクリプトとを含むWebページを生成する。   FIG. 11 is a flowchart illustrating an operation process of the print server according to the second embodiment. The processes in steps S41 to S48 and steps S57 to S59 in FIG. 11 are print cancellation instruction processes for the change source printer (for example, the printer 107). This print cancel instruction process is the same as the print cancel instruction process in the first embodiment described with reference to FIG. However, in the second embodiment, unlike the first embodiment, in step S44, the web application 302 generates a web page corresponding to the job list screen 601 and including a print cancellation instruction script and a polling script. .

変更先プリンタ(例えば、プリンタ108)への印刷指示処理について説明する。ステップS49において、Webアプリケーション302が、プリンタ情報管理部403から、プリンタ108に対応するプリンタ情報が含む印刷制御指示方式履歴を取得する(ステップS49)。Webアプリケーション302は、取得した印刷制御指示方式履歴を参照して、前回の印刷制御指示方式がプッシュ型またはプル型のいずれであるかを判断する(ステップS50)。   A print instruction process to the change destination printer (for example, the printer 108) will be described. In step S49, the Web application 302 acquires the print control instruction method history included in the printer information corresponding to the printer 108 from the printer information management unit 403 (step S49). The Web application 302 refers to the acquired print control instruction method history to determine whether the previous print control instruction method is a push type or a pull type (step S50).

前回の印刷制御指示方式がプッシュ型である場合、Webアプリケーション302は、プリンタ108に対して直接印刷指示を行う(ステップS60)。具体的には、Webアプリケーション302が、プリンタ108に対して印刷指示コマンドを送信する。なお、Webアプリケーション302が印刷制御指示方式履歴を取得できていない場合にも、Webアプリケーション302は、プリンタ107に対して直接印刷指示を行う。続いて、Webアプリケーション302が、印刷指示コマンドの送信が成功したかを判断する(ステップS61)。印刷指示コマンドの送信が失敗した場合は、ステップS51に進む。印刷指示コマンドの送信が成功した場合は、ステップS53に進む。   If the previous print control instruction method is the push type, the Web application 302 issues a print instruction directly to the printer 108 (step S60). Specifically, the Web application 302 transmits a print instruction command to the printer 108. Even when the Web application 302 has not acquired the print control instruction method history, the Web application 302 directly instructs the printer 107 to print. Subsequently, the Web application 302 determines whether the transmission of the print instruction command is successful (Step S61). If transmission of the print instruction command has failed, the process proceeds to step S51. If the transmission of the print instruction command is successful, the process proceeds to step S53.

ステップS50の判断処理において、前回の印刷制御指示方式がプル型である場合、Webアプリケーション302は、Webブラウザ301がJava(登録商標)Scriptのクロスドメイン通信機能を有するかを判断する(ステップS51)。Webブラウザ301がJava(登録商標)Scriptのクロスドメイン通信機能を有しない場合、印刷先変更エラーとする(ステップS62)。そして、印刷ジョブ情報管理部402が、印刷ステータスをエラー終了に更新する(ステップS56)。   If it is determined in step S50 that the previous print control instruction method is the pull type, the Web application 302 determines whether the Web browser 301 has a Java (registered trademark) Script cross-domain communication function (step S51). . If the Web browser 301 does not have a Java (registered trademark) Script cross-domain communication function, a printing destination change error is set (step S62). Then, the print job information management unit 402 updates the print status to “error end” (step S56).

Webブラウザ301がJava(登録商標)Scriptのクロスドメイン通信機能を有する場合、Webアプリケーション302は、ジョブ一覧画面601に対応するWebページであって、印刷指示スクリプトを含むWebページを生成する(ステップS52)。ステップS52においては、Webアプリケーション302は、さらに、生成したWebページを、Webブラウザ301からのポーリングへの返信としてWebブラウザ301に対して送信する。   When the Web browser 301 has a Java (registered trademark) Script cross-domain communication function, the Web application 302 generates a Web page corresponding to the job list screen 601 and including a print instruction script (step S52). ). In step S <b> 52, the Web application 302 further transmits the generated Web page to the Web browser 301 as a reply to polling from the Web browser 301.

Webブラウザ301は、このWebページに応じたジョブ一覧画面601を表示するとともに、このWebページが含む印刷指示スクリプトを実行する。すなわち、Webブラウザ301は、プリンタ107に対して印刷指示コマンドを送信する。プリンタ107が、Webブラウザ301から受けた印刷指示コマンドに従って、印刷ジョブの実行を開始する。次に、Webアプリケーション302が、プリンタ107から印刷開始通知を受けたかを判断する(ステップS53)。   The Web browser 301 displays a job list screen 601 corresponding to the Web page and executes a print instruction script included in the Web page. That is, the Web browser 301 transmits a print instruction command to the printer 107. The printer 107 starts executing the print job in accordance with the print instruction command received from the Web browser 301. Next, it is determined whether the Web application 302 has received a print start notification from the printer 107 (step S53).

プリンタ107から印刷開始通知を受けていない場合は、ステップS53に戻る。プリンタ107から印刷開始通知を受けた場合、Webアプリケーション302は、印刷開始通知が含む情報に基づいて、印刷ジョブの実行の開始に成功したかを判断する(ステップS54)。Webアプリケーション302が、印刷ジョブの実行の開始に失敗したと判断した場合はステップS62に進む。Webアプリケーション302が、印刷ジョブの実行の開始に成功したと判断した場合は、ステップS55に進む。   If no print start notification is received from the printer 107, the process returns to step S53. When receiving the print start notification from the printer 107, the Web application 302 determines whether the execution of the print job has been successfully started based on the information included in the print start notification (step S54). If the Web application 302 determines that the print job execution has failed to start, the process advances to step S62. If the Web application 302 determines that the execution of the print job has succeeded, the process proceeds to step S55.

ステップS55において、Webアプリケーション302は、プリンタ情報管理部403に指示して、今回の印刷制御指示方式で、プリンタ108に対応するプリンタ情報内の印刷制御指示方式履歴を更新する(ステップS55)。そして、印刷ジョブ情報管理部402が、印刷ステータスを印刷中に更新する(ステップS56)。   In step S55, the Web application 302 instructs the printer information management unit 403 to update the print control instruction method history in the printer information corresponding to the printer 108 with the current print control instruction method (step S55). Then, the print job information management unit 402 updates the print status during printing (step S56).

図12は、実施例2におけるWebブラウザの動作処理例を説明するフローチャートである。図12のステップS71乃至S73は、それぞれ、図8(A)のステップS21乃至S23と同様である。   FIG. 12 is a flowchart illustrating an example of operation processing of the Web browser according to the second embodiment. Steps S71 to S73 in FIG. 12 are the same as steps S21 to S23 in FIG. 8A, respectively.

ステップS74において、Webブラウザ301が、ジョブ一覧画面601に対応するWebページにポーリングスクリプトが含まれるかを判断する(ステップS74)。ジョブ一覧画面601に対応するWebページにポーリングスクリプトが含まれない場合は、処理を終了する。ジョブ一覧画面601に対応するWebページにポーリングスクリプトが含まれる場合、Webブラウザ301は、プリントサーバ103から返信があるまでプリントサーバ103に対し、所定の間隔でポーリング(リクエスト)を行う(ステップS75,S76)。これにより、プリントサーバ104がWebページを生成した場合に、Webブラウザ301がプリントサーバ104から当該Webページを受け取ることができる。   In step S74, the web browser 301 determines whether a polling script is included in the web page corresponding to the job list screen 601 (step S74). When the polling script is not included in the Web page corresponding to the job list screen 601, the process ends. When a polling script is included in the web page corresponding to the job list screen 601, the web browser 301 polls (requests) the print server 103 at a predetermined interval until a reply is received from the print server 103 (step S75, S76). Thereby, when the print server 104 generates a Web page, the Web browser 301 can receive the Web page from the print server 104.

次に、Webブラウザ301が、プリントサーバ104のWebアプリケーション302から、ポーリングに対する返信としてジョブ一覧画面601に対応するWebページを受信して、このジョブ一覧画面601を表示する(ステップS77)。Webブラウザ301は、ジョブ一覧画面601に対応するWebページに印刷指示スクリプトが含まれているかを判断する(ステップS78)。   Next, the web browser 301 receives a web page corresponding to the job list screen 601 as a reply to polling from the web application 302 of the print server 104, and displays the job list screen 601 (step S77). The web browser 301 determines whether a print instruction script is included in the web page corresponding to the job list screen 601 (step S78).

ジョブ一覧画面601に対応するWebページに印刷指示スクリプトが含まれていない場合は、処理を終了する。ジョブ一覧画面601に対応するWebページに印刷指示スクリプトが含まれている場合、Webブラウザ301は、印刷指示コマンドを変更先プリンタ(例えば、プリンタ108)へ送信する(ステップS79)。すなわち、Webアプリケーション302は、変更先プリンタに対する前回の印刷制御指示方式がプル型の印刷制御指示方式である場合に、Webブラウザ301を介して変更先プリンタに対して印刷処理の実行を指示する。   If the Web page corresponding to the job list screen 601 does not include a print instruction script, the process ends. When the print instruction script is included in the web page corresponding to the job list screen 601, the web browser 301 transmits a print instruction command to the change destination printer (for example, the printer 108) (step S79). That is, the Web application 302 instructs the change destination printer to execute print processing via the Web browser 301 when the previous print control instruction method for the change destination printer is the pull-type print control instruction method.

実施例2のプリントサーバによれば、ファイアウォールによってアクセスが制限されたエリアに配置され、印刷制御装置から直接通信できない画像形成装置が存在するネットワーク環境下であっても、セキュリティを維持したまま印刷先の変更を行うことができる。また、実施例2のプリントサーバによれば、ユーザは、変更先プリンタへの印刷制御指示方式がプッシュ型であるかプル型であるかを意識することなく、印刷先の変更操作を行うことができる。   According to the print server of the second embodiment, even in a network environment where there is an image forming apparatus that is arranged in an area where access is restricted by a firewall and cannot be directly communicated from the print control apparatus, the print destination is maintained while maintaining security. Changes can be made. Further, according to the print server of the second embodiment, the user can change the print destination without being aware of whether the print control instruction method for the change destination printer is the push type or the pull type. it can.

図13は、実施例2におけるプリンタの動作処理例を説明するフローチャートである。図13(A)は、変更元プリンタであるプリンタ107の動作処理を示す。図13のステップS81乃至S83は、図8(B)のステップS31乃至S33と同様である。   FIG. 13 is a flowchart illustrating an example of an operation process of the printer according to the second embodiment. FIG. 13A shows an operation process of the printer 107 which is the change source printer. Steps S81 to S83 in FIG. 13 are the same as steps S31 to S33 in FIG.

図13(B)は、変更先プリンタであるプリンタ108の動作処理を示す。まず、プリンタ108が、印刷指示コマンドを受信する(ステップS91)。続いて、プリンタ108が、印刷指示コマンドが指示する印刷ジョブをプリントサーバ104から取得する(ステップS92)。プリンタ108が、プリントサーバ104から取得した印刷ジョブの実行を開始する(ステップS93)。そして、プリンタ108が、プリントサーバ104に対して印刷開始通知を行う(ステップS94)。   FIG. 13B shows an operation process of the printer 108 which is the change destination printer. First, the printer 108 receives a print instruction command (step S91). Subsequently, the printer 108 acquires a print job instructed by the print instruction command from the print server 104 (step S92). The printer 108 starts executing the print job acquired from the print server 104 (step S93). Then, the printer 108 issues a print start notification to the print server 104 (step S94).

(その他の実施例)
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。この場合、そのプログラム、及び該プログラムを記憶した記憶媒体は本発明を構成することになる。
(Other examples)
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed. In this case, the program and the storage medium storing the program constitute the present invention.

101,102,103 クライアント端末
104 プリントサーバ
105,106,107,108 プリンタ
101, 102, 103 Client terminal 104 Print server 105, 106, 107, 108 Printer

Claims (5)

ネットワークを介して、ユーザ装置が備えるWebブラウザから、画像形成装置が実行する印刷処理の制御に関する要求である印刷制御要求を受信する印刷制御要求受信手段と、
前記ネットワークを介して、前記印刷制御要求に対応する制御指示を前記画像形成装置に対して行う制御指示手段とを備え、
前記制御指示手段は、過去に成功した前記画像形成装置に対する制御指示の方式の履歴情報を参照して、該履歴情報が示す、過去に成功した前記画像形成装置に対する制御指示の方式と同じ方式で該画像形成装置に対する制御指示を行う
ことを特徴とする印刷制御装置。
Print control request receiving means for receiving a print control request, which is a request related to control of print processing executed by the image forming apparatus, from a Web browser provided in the user apparatus via the network;
Control instruction means for giving a control instruction corresponding to the print control request to the image forming apparatus via the network;
The control instruction means refers to the history information of the control instruction method for the image forming apparatus that has been successful in the past, and is the same method as the control instruction method for the image forming apparatus that has been successful in the past indicated by the history information. A print control apparatus that issues a control instruction to the image forming apparatus.
前記制御指示手段は、前記過去に成功した前記画像形成装置に対する制御指示の方式が、該制御指示手段が直接画像形成装置に対して制御指示する第1の方式である場合に、今回の制御指示を前記第1の方式で行い、前記過去に成功した前記画像形成装置に対する制御指示の方式が、該制御指示手段が前記Webブラウザを介して前記画像形成装置に対して制御指示する第2の方式である場合に、今回の制御指示を前記第2の方式で行う
ことを特徴とする請求項1に記載の印刷制御装置。
The control instruction unit is configured to control the current control instruction when the control instruction method for the image forming apparatus that has been successful in the past is the first method in which the control instruction unit directly instructs the image forming apparatus. The second method in which the control instruction unit instructs the image forming apparatus via the Web browser to control the image forming apparatus through the first method. 2, the print control apparatus according to claim 1, wherein the current control instruction is given by the second method.
前記制御指示手段は、
前記印刷制御要求が第1の画像形成装置が実行中の印刷処理の中止と第2の画像形成装置による該印刷処理の実行とを求める要求を含む場合に、前記第1の画像形成装置に対して印刷処理の中止を指示するとともに、過去に成功した前記第2の画像形成装置に対する制御指示の方式の履歴情報が前記第2の方式を示すかを判断し、
前記履歴情報が前記第2の方式を示す場合に、前記Webブラウザを介して前記第2の画像形成装置に対して印刷処理の実行を指示する
ことを特徴とする請求項2に記載の印刷制御装置。
The control instruction means includes
When the print control request includes a request for canceling the print process being executed by the first image forming apparatus and executing the print process by the second image forming apparatus, the first image forming apparatus Instructing to cancel the printing process and determining whether the history information of the control instruction method for the second image forming apparatus that has succeeded in the past indicates the second method,
The print control according to claim 2, wherein when the history information indicates the second method, the second image forming apparatus is instructed to execute a print process via the Web browser. apparatus.
ネットワークを介して、ユーザ装置が備えるWebブラウザから、画像形成装置が実行する印刷処理の制御に関する要求である印刷制御要求を受信する印刷制御要求受信工程と、
前記ネットワークを介して、前記印刷制御要求に対応する制御指示を前記画像形成装置に対して行う制御指示工程とを有し、
前記制御指示工程は、過去に成功した前記画像形成装置に対する制御指示の方式の履歴情報を参照して、該履歴情報が示す、過去に成功した前記画像形成装置に対する制御指示の方式と同じ方式で該画像形成装置に対する制御指示を行う
ことを特徴とする印刷制御方法。
A print control request receiving step of receiving a print control request, which is a request related to control of print processing executed by the image forming apparatus, from a Web browser provided in the user apparatus via the network;
A control instruction step for giving a control instruction corresponding to the print control request to the image forming apparatus via the network;
The control instruction step refers to the history information of the control instruction method for the image forming apparatus that has been successful in the past, and is the same method as the control instruction method for the image forming apparatus that has been successful in the past indicated by the history information. A print control method, comprising: giving a control instruction to the image forming apparatus.
請求項4に記載の印刷制御方法をコンピュータに実行させることを特徴とするコンピュータプログラム。   A computer program for causing a computer to execute the printing control method according to claim 4.
JP2011006623A 2011-01-17 2011-01-17 Print control device, print control method, and computer program Pending JP2012150534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011006623A JP2012150534A (en) 2011-01-17 2011-01-17 Print control device, print control method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011006623A JP2012150534A (en) 2011-01-17 2011-01-17 Print control device, print control method, and computer program

Publications (1)

Publication Number Publication Date
JP2012150534A true JP2012150534A (en) 2012-08-09

Family

ID=46792744

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011006623A Pending JP2012150534A (en) 2011-01-17 2011-01-17 Print control device, print control method, and computer program

Country Status (1)

Country Link
JP (1) JP2012150534A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015204077A (en) * 2014-04-16 2015-11-16 キヤノン株式会社 printing system, information processing system, control method, and computer program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015204077A (en) * 2014-04-16 2015-11-16 キヤノン株式会社 printing system, information processing system, control method, and computer program

Similar Documents

Publication Publication Date Title
US8804176B2 (en) Printing system and printing method
US8531711B2 (en) Print server, control method thereof, client terminal, printing system, and computer-readable medium
US8553264B2 (en) Information processing including specifying a printer to execute a print process of a stored job
JP5791390B2 (en) Printing system, print server, printing management method, and program
US20100208298A1 (en) Image forming apparatus
US20130003115A1 (en) Pull-print system, print job management method, print server, control method therefor and computer-readable medium
US8570574B2 (en) Processing system, control method, and storage medium therefor
US8705099B2 (en) Information processing apparatus connectable to a server and a printer
JP6272117B2 (en) Printing system, printing server, printing control method and program
US20120236359A1 (en) Information processing apparatus, control method for information processing apparatus, and storage medium
US10057233B2 (en) Image processing apparatus, method for controlling the same, and storage medium for carrying out login processing
JP2013016161A (en) Method and system for network diagnosis to display possible cause on display of image forming apparatus
JP2015135607A (en) Image forming system and image forming apparatus
KR20130004155A (en) Job processing apparatus, control method, and computer readable storage medium
JP2015097356A (en) Communication system, image forming device, control method thereof, and program
JP2011201024A (en) Printer and terminal device
JP2015133614A (en) Information processing system, information processing device, information processing method, and program
JP2007214853A (en) Image processor
JP2012155401A (en) Printing system, printing device, control method of printing system, control method of printing device, and program
JP2012150534A (en) Print control device, print control method, and computer program
JP2015022682A (en) Print system, method, and program
JP2018183947A (en) Image forming device and image forming system
US9571677B2 (en) Image processing apparatus and non-transitory computer readable medium
JP2014142734A (en) Batch printing control in cloud printing
US8395799B2 (en) Printing system, output device, data management system, control method, and program