JP6260682B2 - Printer and printer control method - Google Patents

Printer and printer control method Download PDF

Info

Publication number
JP6260682B2
JP6260682B2 JP2016246971A JP2016246971A JP6260682B2 JP 6260682 B2 JP6260682 B2 JP 6260682B2 JP 2016246971 A JP2016246971 A JP 2016246971A JP 2016246971 A JP2016246971 A JP 2016246971A JP 6260682 B2 JP6260682 B2 JP 6260682B2
Authority
JP
Japan
Prior art keywords
print data
print
printer
client terminal
unit
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.)
Active
Application number
JP2016246971A
Other languages
Japanese (ja)
Other versions
JP2017073168A (en
Inventor
英雄 中村
英雄 中村
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 JP2016246971A priority Critical patent/JP6260682B2/en
Publication of JP2017073168A publication Critical patent/JP2017073168A/en
Application granted granted Critical
Publication of JP6260682B2 publication Critical patent/JP6260682B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Information Transfer Between Computers (AREA)
  • Facsimiles In General (AREA)

Description

本発明は、プリンターおよびプリンターの制御方法に関するものである。 The present invention relates to a printer and a printer control method .

従来、プリンター等のデバイスを、ネットワークを介してコンピューターに接続して利用することが広く普及している。このデバイスを利用するためには、これを制御するためのデバイスドライバーが必要となる。そして、このデバイスドライバーは、デバイスに接続されたコンピューターにインストールすることが一般的である(例えば、特許文献1参照)。   2. Description of the Related Art Conventionally, it has become widespread to use a device such as a printer by connecting it to a computer via a network. In order to use this device, a device driver for controlling the device is required. The device driver is generally installed on a computer connected to the device (see, for example, Patent Document 1).

特開2002−251347号公報JP 2002-251347 A

しかしながら、上述のデバイスドライバーは、インストール先のコンピューターのOS(Operating System)に依存して動作するため、ユーザーは、自身のコンピューターに搭載されているOSに対応したデバイスドライバーをインストールしなければならない。しかし、コンピューターに不慣れなユーザーにとっては、OSの種別等を把握したり、ソフトウェアー(デバイスドライバー)をインストールしたりする作業は困難であり、大きな負担となっていた。また、コンピューターの入れ替えを行なった場合には、再度デバイスドライバーをインストールする必要も生じる。さらに、デバイスを提供するメーカー側にとっても、各コンピューターのOSの種別毎に、対応したデバイスドライバーを開発する必要があり、開発コストが大きくなるという問題がある。   However, since the above-described device driver operates depending on the OS (Operating System) of the installation destination computer, the user must install a device driver corresponding to the OS installed in his computer. However, it is difficult for a user unfamiliar with a computer to grasp the type of OS and install software (device driver), which is a heavy burden. In addition, when the computer is replaced, it is necessary to install the device driver again. Furthermore, the manufacturer who provides the device also has a problem that it is necessary to develop a corresponding device driver for each type of OS of each computer, which increases the development cost.

本発明は、上記の問題に鑑み、コンピューターの環境に依存するプリンタードライバーを必要としないプリンターおよびプリンターの制御方法を提供することを目的とする。 SUMMARY An advantage of some aspects of the invention is that it provides a printer and a printer control method that do not require a printer driver that depends on a computer environment.

本発明のプリンターは、クライアント端末がWebページに組み込まれた印刷制御用スクリプトを実行することにより生成した印刷データを、クライアント端末から受信する印刷データ受信部と、印刷データを一時的に保存する記憶部と、印刷データに基づいて印刷を実行する印刷制御部と、を備え、印刷制御部は、印刷データ受信部が印刷データの全てを受信した後に、記憶部に保存された印刷データを読み出して印刷を実行することを特徴とする。
上記のプリンターにおいて、印刷データ受信部は、クライアント端末が、Webアプリケーションが動作するWebアプリケーションサーバーからWebブラウザを用いて受信したWebページに組み込まれた印刷制御用スクリプトを実行することにより生成した印刷データを受信することを特徴とする。
上記のプリンターにおいて、印刷データ受信部は、クライアント端末が全ての印刷データを生成した後に、当該印刷データの受信を開始することを特徴とする。
上記のプリンターにおいて、印刷制御部は、印刷データ受信部が印刷データを受信するたびに、印刷データの全てを受信したか否かを判定し、印刷データの全てを受信したと判定したとき、印刷データの受信を開始した後に記憶部に保存された全ての印刷データを読み出して印刷を実行することを特徴とする。
上記のプリンターにおいて、記憶部は、HTTPサーバーを記憶し、印刷データ受信部は、HTTPサーバーによるHTTPに基づいて、クライアント端末がプリンターに割り当てられたサービスエンドポイントアドレスに印刷データを送信すると、当該印刷データを受信することを特徴とする。
上記のプリンターにおいて、HTTPサーバーを含む印刷設定サービス提供部を更に備え、印刷設定サービス提供部は、クライアント端末のWebページによるUI(User Interface)またはWebサービスAPI(Application Program Interface)として提供される印刷設定サービスを提供することを特徴とする。
上記のプリンターにおいて、印刷設定サービスは、用紙設定、印刷枚数、印刷品質、カラー/白黒選択、画像処理方法を設定するサービスを含むことを特徴とする。
本発明のプリンターの制御方法は、クライアント端末がWebページに組み込まれた印刷制御用スクリプトを実行することにより生成した印刷データを、クライアント端末から受信する印刷データ受信ステップと、印刷データを一時的に記憶部に保存する記憶ステップと、印刷データに基づいて印刷を実行する印刷制御ステップと、を実行し、印刷制御ステップは、印刷データの全てを受信した後に、記憶部に保存された印刷データを読み出して印刷を実行することを特徴とする。
上記のプリンターの制御方法において、印刷データ受信ステップは、クライアント端末が、Webアプリケーションが動作するWebアプリケーションサーバーからWebブラウザを用いて受信したWebページに組み込まれた印刷制御用スクリプトを実行することにより生成した印刷データを受信することを特徴とする。
上記のプリンターの制御方法において、印刷データ受信ステップは、クライアント端末が全ての印刷データを生成した後に、当該印刷データの受信を開始することを特徴とする。
なお、以下の構成としても良い。
本発明のネットワークシステムは、Webアプリケーションが動作するWebアプリケーションサーバーと、Webブラウザを用いて、当該Webアプリケーションサーバーにアクセスする1以上のクライアント端末と、当該クライアント端末の操作に伴って動作するプリンターと、を有し、少なくともWebアプリケーションサーバーとクライアント端末、クライアント端末とプリンターがそれぞれネットワーク接続されたネットワークシステムであって、クライアント端末は、Webアプリケーションサーバーから、Webブラウザ上で動作してWebページに関する印刷制御を行なう印刷制御用スクリプトが組み込まれたWebページを取得するWebページ取得部と、取得したWebページを表示する表示部と、表示したWebページでの入力操作を受け付け、当該入力操作の結果を所定の描画領域に描画する描画処理部と、表示したWebページで印刷操作が行われることにより、印刷制御用スクリプトにより描画領域に描画された画像データをプリンターで処理可能な形式に変換した印刷データを生成する印刷データ生成部と、印刷制御用スクリプトにより、プリンターに対して生成した印刷データを送信する印刷データ送信部と、を備え、プリンターは、印刷データ送信部により送信された印刷データを受信する印刷データ受信部と、受信した印刷データに基づいて印刷処理を制御する印刷制御部と、を備えたことを特徴とする。
The printer of the present invention includes a print data receiving unit that receives print data generated by a client terminal executing a print control script incorporated in a Web page from the client terminal, and a memory that temporarily stores the print data. And a print control unit that executes printing based on the print data. The print control unit reads the print data stored in the storage unit after the print data reception unit receives all the print data. Printing is performed.
In the printer described above, the print data receiving unit generates print data generated by a client terminal executing a print control script embedded in a Web page received using a Web browser from a Web application server on which the Web application operates. Is received.
In the above-described printer, the print data receiving unit starts receiving the print data after the client terminal has generated all the print data.
In the printer described above, the print control unit determines whether or not all of the print data has been received each time the print data reception unit receives the print data. All print data stored in the storage unit is read out after data reception is started, and printing is performed.
In the printer, the storage unit stores an HTTP server, and the print data receiving unit transmits the print data when the client terminal transmits print data to the service endpoint address assigned to the printer, based on HTTP by the HTTP server. It is characterized by receiving data.
The printer further includes a print setting service providing unit including an HTTP server, and the print setting service providing unit provides printing provided as a UI (User Interface) or a Web service API (Application Program Interface) by a Web page of the client terminal. A setting service is provided.
In the above printer, the print setting service includes a service for setting paper setting, the number of copies, print quality, color / monochrome selection, and image processing method.
According to the printer control method of the present invention, a print data reception step of receiving print data generated by a client terminal executing a print control script embedded in a Web page from the client terminal, and the print data temporarily A storage step for storing in the storage unit and a print control step for executing printing based on the print data are executed. The print control step receives the print data stored in the storage unit after receiving all the print data. It is characterized by reading and executing printing.
In the above-described printer control method, the print data reception step is generated by executing a print control script embedded in a Web page received by a client terminal from a Web application server on which the Web application operates using a Web browser. The received print data is received.
In the above-described printer control method, the print data receiving step is characterized in that reception of the print data is started after the client terminal has generated all the print data.
The following configuration may be used.
A network system of the present invention includes a web application server on which a web application operates, one or more client terminals that access the web application server using a web browser, a printer that operates in accordance with the operation of the client terminal, A network system in which at least a web application server and a client terminal, and a client terminal and a printer are connected to each other via a network. A Web page acquisition unit that acquires a Web page in which a print control script to be executed is embedded, a display unit that displays the acquired Web page, and a displayed Web page An image drawn in the drawing area by the print control script by accepting an input operation in the drawing process and drawing the result of the input operation in a predetermined drawing area and a printing operation performed on the displayed web page The printer includes a print data generation unit that generates print data converted into a format that can be processed by the printer, and a print data transmission unit that transmits the print data generated to the printer by a print control script. And a print data receiving unit that receives the print data transmitted by the print data transmitting unit, and a print control unit that controls print processing based on the received print data.

また、本発明のネットワークシステムの印刷制御方法は、Webアプリケーションが動作するWebアプリケーションサーバーと、Webブラウザを用いて、当該Webアプリケーションサーバーにアクセスする1以上のクライアント端末と、当該クライアント端末の操作に伴って動作するプリンターと、を有し、少なくともWebアプリケーションサーバーとクライアント端末、クライアント端末とプリンターがそれぞれネットワーク接続されたネットワークシステムの印刷制御方法であって、クライアント端末は、Webアプリケーションサーバーから、Webブラウザ上で動作してWebページに関する印刷制御を行なう印刷制御用スクリプトが組み込まれたWebページを取得するWebページ取得ステップと、取得した前記Webページを表示する表示ステップと、表示したWebページでの入力操作を受け付け、当該入力操作の結果を所定の描画領域に描画する描画処理ステップと、表示したWebページで印刷操作が行われることにより、印刷制御用スクリプトにより描画領域に描画された画像データをプリンターで処理可能な形式に変換した印刷データを生成する印刷データ生成ステップと、印刷制御用スクリプトにより、プリンターに対して生成した印刷データを送信する印刷データ送信ステップと、を実行し、プリンターは、印刷データ送信ステップにより送信された印刷データを受信する印刷データ受信ステップと、受信した印刷データに基づいて印刷処理を制御する印刷制御ステップと、を実行することを特徴とする。   The network system print control method according to the present invention includes a web application server on which a web application operates, one or more client terminals that access the web application server using a web browser, and an operation of the client terminal. A print control method for a network system in which at least a web application server and a client terminal, and a client terminal and a printer are connected to each other via a network. A Web page acquisition step of acquiring a Web page in which a print control script for performing print control related to the Web page is operated, and the acquired Web A display step for displaying a page, an input operation on the displayed Web page, and a drawing process step for drawing a result of the input operation in a predetermined drawing area; and a print operation on the displayed Web page. A print data generation step for generating print data obtained by converting image data drawn in the drawing area by the print control script into a format that can be processed by the printer, and print data generated for the printer by the print control script. A print data transmission step for transmitting the print data, the printer receiving the print data transmitted in the print data transmission step, and a print control step for controlling print processing based on the received print data; , Is executed.

これらの構成によれば、Webページに組み込まれた印刷制御用スクリプトにより、プリンターから所定画像の印刷(プリンターの印刷制御)を行なうことができる。即ち、Webブラウザ上で動作する(Webページの内部で動作する)スクリプトによりプリンターの印刷制御を行なうため、クライアント端末にはWebブラウザをインストールしておけばよく、従来のように、個々のクライアント端末にプリンタードライバーをインストールすることが不要となる。また、プリンターを提供するメーカー側にとっては、OS種別毎に対応した複数種類のプリンタードライバーを開発する必要がなくなり、これに係る開発コストを削減することができる。また、プリンター側にも特別なアプリケーション実行環境を搭載する必要がないため、機器の開発・製造コストを抑えることができる。
さらに、近年のクライアント端末(PCやスマートフォン等のコンピューター)には、Webブラウザが標準でインストールされていることが多いため、コンピューターに不慣れなユーザーであっても、自身が利用している端末の環境(OS種別等)を意識することなく、容易にプリンターを利用することができる。
According to these configurations, a predetermined image can be printed from the printer (print control of the printer) by the print control script incorporated in the Web page. In other words, in order to perform print control of the printer by a script that operates on the Web browser (operates inside the Web page), it is only necessary to install a Web browser in the client terminal. It is not necessary to install a printer driver on the printer. In addition, it is not necessary for the manufacturer that provides the printer to develop a plurality of types of printer drivers corresponding to each OS type, and the development cost related to this can be reduced. In addition, since there is no need to install a special application execution environment on the printer side, the development and manufacturing costs of the device can be reduced.
Further, since a web browser is often installed as a standard in recent client terminals (computers such as PCs and smartphones), even a user who is unfamiliar with the computer has an environment of the terminal he / she uses. The printer can be easily used without being conscious of (OS type or the like).

本発明のネットワークシステムにおいて、印刷データ生成部は、生成した印刷データを、所定の記憶領域に一時的に保存し、印刷データ送信部は、所定の記憶領域に印刷データの全てが保存された後、プリンターに対して記憶領域の印刷データを送信することが好ましい。   In the network system of the present invention, the print data generation unit temporarily stores the generated print data in a predetermined storage area, and the print data transmission unit stores all the print data in the predetermined storage area. The print data in the storage area is preferably transmitted to the printer.

この構成によれば、印刷データ(例えば、ラスターイメージコマンド等)の生成処理と印刷データの送信処理と、を別々に行なうことで(並列して行なわないことで)、高速に印刷することができる。また、性能が低いクライアント端末においては、印刷データの生成処理と印刷データの送信処理とを並列で行なう場合に比べ、印刷画像にムラができることを抑制することができる。   According to this configuration, print data (for example, a raster image command) generation process and print data transmission process are separately performed (not performed in parallel), thereby enabling high-speed printing. . Further, in a client terminal with low performance, it is possible to suppress the occurrence of unevenness in a print image, compared to a case where print data generation processing and print data transmission processing are performed in parallel.

本発明のネットワークシステムにおいて、プリンターに対する印刷データの送信中に、Webページを切り替える切替イベントが発生した場合、表示部は、印刷制御用スクリプトにより、Webページの切り替えを実行するか否かを選択する切替確認画面を表示することが好ましい。   In the network system of the present invention, when a switching event for switching the Web page occurs during transmission of print data to the printer, the display unit selects whether to execute the switching of the Web page by the print control script. It is preferable to display a switching confirmation screen.

この構成によれば、Webページを切り替え時に、本当にページ切替を実行するか否かを確認(選択)するための確認画面を表示する。本発明では、プリンターのドライバーに相当する機能をスクリプト(印刷制御用スクリプト)で実現するため、印刷処理中にWebページが切り替わった場合、印刷制御用スクリプトが消失し印刷が中断してしまう。このため、Webページ切り替えイベントが発生した場合に、確認画面を表示することで、利用者(ユーザー)による不意のWebページ切り替えを防止することができる。   According to this configuration, when switching Web pages, a confirmation screen for confirming (selecting) whether or not to actually perform page switching is displayed. In the present invention, since a function corresponding to a printer driver is realized by a script (print control script), if a Web page is switched during the print process, the print control script is lost and printing is interrupted. For this reason, when a web page switching event occurs, the confirmation screen is displayed, thereby preventing unexpected web page switching by the user (user).

本発明のネットワークシステムにおいて、印刷データ送信部は、プリンターに対する印刷データの送信中に、Webページの切り替えが実行された場合、当該印刷データの送信を中断し、表示部は、印刷データの送信が中断された旨を示すメッセージを表示することが好ましい。   In the network system of the present invention, the print data transmission unit interrupts transmission of the print data when the Web page is switched during transmission of the print data to the printer, and the display unit transmits the print data. It is preferable to display a message indicating the interruption.

この構成によれば、利用者に印刷処理が中断したことを通知できる。例えば、利用者による不意の操作によりWebページが切り替わり、印刷制御用スクリプトが消失することにより印刷処理が中断されたとしても、利用者が気付かない場合が考えられるが、本発明では、印刷処理の中断を通知することで、これを防止することができる。   According to this configuration, the user can be notified that the printing process has been interrupted. For example, even if the printing process is interrupted due to the switching of the Web page due to a user's unexpected operation and the disappearance of the print control script, the user may not notice it. This can be prevented by notifying the interruption.

本発明のネットワークシステムにおいて、印刷データ送信部は、印刷データの送信処理を、切替確認画面の表示処理と並列に実行することが好ましい。   In the network system of the present invention, it is preferable that the print data transmission unit executes the print data transmission process in parallel with the switching confirmation screen display process.

この構成によれば、印刷データの送信と切替確認画面の表示とを並列に行なう(マルチスレッドで実行する)ことで、Webページを切り替えるか否かを選択する切替確認画面の表示中も、印刷処理を継続することができる。   According to this configuration, print data transmission and switching confirmation screen display are performed in parallel (executed in a multi-thread manner), so that printing can be performed even while the switching confirmation screen for selecting whether to switch the Web page is displayed. Processing can continue.

本発明のネットワークシステムにおいて、プリンターの印刷制御部は、印刷データ受信部により印刷データの全てを受信した後に、当該印刷データに基づく印刷処理を実行することが好ましい。   In the network system of the present invention, it is preferable that the print control unit of the printer executes print processing based on the print data after all the print data is received by the print data receiving unit.

この構成によれば、印刷データを全て受信した後に印刷を開始する。これにより、例えば、データ量の大きい印刷データを受信する場合において、印刷データ受信中にWebページが切り替えられて印刷制御用スクリプトが消失し、印刷処理が途中で終了してしまうといったことを防止できる。   According to this configuration, printing is started after all print data is received. As a result, for example, when receiving print data with a large amount of data, it is possible to prevent a print page from being switched and the print control script to be lost during print data reception and the print processing to be terminated midway. .

本発明のネットワークシステムにおいて、印刷データ生成部は、画像データを1回のデータ通信で送信可能なデータサイズに分割し、分割した画像データ毎にプリンターで印刷可能な形式に変換した分割印刷データを生成し、印刷データ送信部は、印刷データの送信を、分割印刷データ単位で実行することが好ましい。   In the network system of the present invention, the print data generation unit divides the image data into data sizes that can be transmitted by one data communication, and converts the divided print data into a format that can be printed by a printer for each divided image data. Preferably, the print data transmission unit generates and transmits the print data in units of divided print data.

この構成によれば、印刷データを、1回のデータ通信で送信可能なデータサイズに細分化して送信する。これにより、例えば、データ量の大きい印刷データを送信する場合において、印刷データ送信中にWebページが切り替えられることで印刷制御用スクリプトが消失し、印刷データの送信が中途半端な状態で中断してしまうといったことを防止できる。   According to this configuration, the print data is subdivided into data sizes that can be transmitted in one data communication and transmitted. As a result, for example, when transmitting print data with a large amount of data, the print control script disappears when the Web page is switched during the print data transmission, and the print data transmission is interrupted in a halfway state. Can be prevented.

本発明のネットワークシステムにおいて、プリンターは、当該プリンターの印刷設定を行なうための印刷設定サービスを提供する印刷設定サービス提供部をさらに備え、クライアント端末は、印刷制御用スクリプトにより、印刷設定サービス提供部による印刷設定サービスを使用してプリンターの印刷設定を行うことが好ましい。   In the network system of the present invention, the printer further includes a print setting service providing unit that provides a print setting service for performing print settings of the printer, and the client terminal uses the print control script to execute the print setting service providing unit. It is preferable to perform print setting of the printer using the print setting service.

この構成によれば、クライアント端末から印刷設定サービスを使用してプリンターの印刷設定を行うことができるため、プリンターに入力装置を設ける必要がなく、簡単に且つ低コストでプリンターの印刷設定を行うことができる。なお、印刷設定項目は、例えば、用紙設定、印刷枚数、印刷品質、カラー/白黒選択、画像処理方法等が挙げられる。   According to this configuration, since the print setting of the printer can be performed from the client terminal using the print setting service, it is not necessary to provide an input device in the printer, and the print setting of the printer can be easily performed at low cost. Can do. The print setting items include, for example, paper setting, number of prints, print quality, color / monochrome selection, image processing method, and the like.

本発明のネットワークシステムにおいて、プリンターは、プリンター本体と、プリンター本体に装着する装着ボードと、で構成され、プリンター本体は、装着ボードを介してクライアント端末と接続され、装着ボードは、印刷データ受信部、印刷制御部および前記印刷設定サービス提供部を備えたことが好ましい。   In the network system of the present invention, the printer is composed of a printer body and a mounting board to be mounted on the printer body, the printer body is connected to the client terminal via the mounting board, and the mounting board is a print data receiving unit Preferably, the printing control unit and the print setting service providing unit are provided.

この構成によれば、プリンター本体に、特別な機能を組み込む必要がないため、汎用的なプリンターであっても、本発明のシステムに導入することができる。   According to this configuration, since it is not necessary to incorporate a special function in the printer body, even a general-purpose printer can be introduced into the system of the present invention.

本発明の一実施形態に係るネットワークシステムのシステム構成図である。1 is a system configuration diagram of a network system according to an embodiment of the present invention. ネットワークシステムの機能構成を示すブロック図である。It is a block diagram which shows the function structure of a network system. ネットワークシステムにおける印刷処理手順について説明するフローチャートである。6 is a flowchart illustrating a printing processing procedure in the network system. 印刷データ送信時に、Webページの切り替えイベントが発生した場合の処理手順について説明するフローチャートである。10 is a flowchart illustrating a processing procedure when a Web page switching event occurs during print data transmission. ネットワークシステムの変形例を示すシステム構成図である。It is a system block diagram which shows the modification of a network system.

以下、添付の図面を参照して、本発明の一実施形態に係るプリンターおよびプリンターの制御方法について、添付の図面を参照しながら詳細説明する。本実施形態のネットワークシステムは、クライアント端末に専用のプリンタードライバーをインストールすることなく、Webブラウザを用いて印刷処理を行なうことができるシステムである。 Hereinafter, a printer and a printer control method according to an embodiment of the present disclosure will be described in detail with reference to the accompanying drawings. The network system of the present embodiment is a system that can perform print processing using a Web browser without installing a dedicated printer driver in a client terminal.

図1は、ネットワークシステムSYのシステム構成図である。同図に示すように、ネットワークシステムSYは、Webアプリケーションサーバー1と、Webアプリケーションサーバー1とインターネット経由で接続するクライアント端末2と、クライアント端末2とLANにより接続するプリンター3と、により構成されている。なお、同図では、1台のクライアント端末2を例示しているが、これ限るものではなく、複数台のクライアント端末2を備えた構成であっても良い。   FIG. 1 is a system configuration diagram of the network system SY. As shown in the figure, the network system SY includes a Web application server 1, a client terminal 2 connected to the Web application server 1 via the Internet, and a printer 3 connected to the client terminal 2 via a LAN. . In addition, although the one client terminal 2 is illustrated in the figure, it is not restricted to this, The structure provided with the several client terminal 2 may be sufficient.

Webアプリケーションサーバー1は、CPU11(Central Processing Unit)、ROM12(Read Only Memory)、RAM13(Random Access Memory)、記憶部14、通信部15の他、一般的なコンピューターに搭載されるハードウェア構成を有している。CPU11は、ROM12に記憶されているプログラムを実行し、Webアプリケーションサーバー1全体を制御する。ROM12は、CPU11が各種処理を実行するための制御プログラムや制御データを記憶する。RAM13は、CPU11が各種処理を行なうためのワーク領域として利用される。また、記憶部14には、HTTPサーバー16、Webアプリケーション17が記憶されている。   The Web application server 1 includes a CPU 11 (Central Processing Unit), a ROM 12 (Read Only Memory), a RAM 13 (Random Access Memory), a storage unit 14, a communication unit 15, and a hardware configuration mounted on a general computer. doing. The CPU 11 executes a program stored in the ROM 12 and controls the entire Web application server 1. The ROM 12 stores a control program and control data for the CPU 11 to execute various processes. The RAM 13 is used as a work area for the CPU 11 to perform various processes. The storage unit 14 stores an HTTP server 16 and a Web application 17.

通信部15は、クライアント端末2(Webブラウザ47)と通信を行なうためのインターフェースである。このWebアプリケーションサーバー1とクライアント端末2との通信は、HTTPサーバー16によりHTTP(Hypertext Transfer Protocol)に基づいて行なわれる。即ち、Webアプリケーションサーバー1は、クライアント端末2(Webブラウザ47)からのHTTPリクエストを受け付け、このHTTPリクエストに含まれるURL(Uniform Resource Locator)に基づいて、Webアプリケーション17が提供するWebページ21をクライアント端末2に送信する。   The communication unit 15 is an interface for communicating with the client terminal 2 (Web browser 47). Communication between the Web application server 1 and the client terminal 2 is performed by the HTTP server 16 based on HTTP (Hypertext Transfer Protocol). That is, the Web application server 1 accepts an HTTP request from the client terminal 2 (Web browser 47), and, based on a URL (Uniform Resource Locator) included in the HTTP request, the Web page 21 provided by the Web application 17 is displayed on the client. Transmit to terminal 2.

なお、詳細は後述するが、このWebページ21には、Webページ21自体を制御するためのページ制御用スクリプト22(JavaScript(登録商標))に加え、Webページ21に関する印刷制御を行なうための印刷制御用スクリプト23(JavaScript(登録商標))が組み込まれており(埋め込まれており)、クライアント端末2は、Webブラウザ47において(Webページ21の内部で)印刷制御用スクリプト23を実行することにより、印刷処理を行なう。   Although details will be described later, in addition to the page control script 22 (JavaScript (registered trademark)) for controlling the Web page 21 itself, the Web page 21 includes a print for performing print control related to the Web page 21. The control script 23 (JavaScript (registered trademark)) is incorporated (embedded), and the client terminal 2 executes the print control script 23 in the web browser 47 (inside the web page 21). Then, print processing is performed.

プリンター3は、CPU31、RAM32、記憶部33、通信部34、印刷機構35を主要な構成要素とする。CPU31は、記憶部33に記憶されているプログラムを実行し、プリンター3全体を制御する。RAM32は、CPU31が各種処理を行なうためのワーク領域として利用される。記憶部33は、例えば、不揮発性メモリー(フラッシュROM等)であり、CPU31が各種処理を実行するための制御プログラムや制御データを記憶する。また、記憶部33は、HTTPサーバー36を記憶する。   The printer 3 includes a CPU 31, a RAM 32, a storage unit 33, a communication unit 34, and a printing mechanism 35 as main components. The CPU 31 executes a program stored in the storage unit 33 and controls the entire printer 3. The RAM 32 is used as a work area for the CPU 31 to perform various processes. The storage unit 33 is, for example, a nonvolatile memory (flash ROM or the like), and stores a control program and control data for the CPU 31 to execute various processes. In addition, the storage unit 33 stores an HTTP server 36.

印刷機構35は、用紙送り機構、印刷ヘッド、用紙切断機構などを含み、CPU31の制御の下で印刷動作を行う。なお、印刷方式は、インクジェット方式やレーザー方式など、その種類を問わない。   The printing mechanism 35 includes a paper feed mechanism, a print head, a paper cutting mechanism, and the like, and performs a printing operation under the control of the CPU 31. In addition, the printing system does not ask | require the kind, such as an inkjet system and a laser system.

通信部34は、クライアント端末2(Webブラウザ47)と通信を行なうためのインターフェースである。このプリンター3とクライアント端末2(Webブラウザ47)との通信は、HTTPサーバー36によりHTTPに基づいて行われる。即ち、クライアント端末2から、プリンター3に割り当てられたサービスエンドポイントアドレス(http://x.x.x.x/などのURI(Uniform Resource Identifier))に対して印刷データが送信されると、プリンター3(CPU31)は当該印刷データを受信し、印刷機構35を制御して受信した印刷データに基づく印刷を実行する。   The communication unit 34 is an interface for communicating with the client terminal 2 (Web browser 47). Communication between the printer 3 and the client terminal 2 (Web browser 47) is performed by the HTTP server 36 based on HTTP. That is, when print data is transmitted from the client terminal 2 to a service endpoint address (URI (Uniform Resource Identifier) such as http: // xxxx /) assigned to the printer 3, the printer 3 (CPU 31) The print data is received, and the printing mechanism 35 is controlled to execute printing based on the received print data.

クライアント端末2は、主要な構成要素として、CPU41、RAM42、記憶部43、表示部44、操作部45、通信部46を有している。CPU41は、記憶部43に記憶されているプログラムを実行し、クライアント端末2全体を制御する。RAM42は、CPU41各種処理を行なうためのワーク領域として利用される。記憶部43は、例えば、HDD(Hard Disk Drive)や不揮発性メモリー(フラッシュROM等)であり、CPU41が各種処理を実行するための制御プログラムや制御データを記憶する。また、記憶部43は、Webブラウザ47を記憶する。   The client terminal 2 includes a CPU 41, a RAM 42, a storage unit 43, a display unit 44, an operation unit 45, and a communication unit 46 as main components. The CPU 41 executes a program stored in the storage unit 43 and controls the entire client terminal 2. The RAM 42 is used as a work area for performing various processes of the CPU 41. The storage unit 43 is, for example, an HDD (Hard Disk Drive) or a nonvolatile memory (flash ROM or the like), and stores a control program and control data for the CPU 41 to execute various processes. In addition, the storage unit 43 stores the web browser 47.

表示部44は、Webブラウザ47上に、当該Webブラウザ47により取得(ダウンロード)したWebページ21を表示したり、Webブラウザ47での操作に伴う各種イベントを通知する画面や各種設定画面等を表示する。これら画面は、Webブラウザ47で表示中のWebページ21内に表示しても良いし、あるいは新規にWebページ21を作成して表示するようにしても良い。操作部45は、Webブラウザ47で表示したWebページ21において、各種入力操作(文字入力や図形描画等)や、選択・決定操作および印刷操作等を行うための操作手段である。なお、表示部44と操作部45とは、別々の要素として構成するようにしても良いし、表示部44をタッチパネルで形成することで一体に構成しても良い。   The display unit 44 displays on the Web browser 47 the Web page 21 acquired (downloaded) by the Web browser 47, and displays a screen for notifying various events associated with operations on the Web browser 47, various setting screens, and the like. To do. These screens may be displayed in the Web page 21 being displayed on the Web browser 47, or a new Web page 21 may be created and displayed. The operation unit 45 is an operation means for performing various input operations (such as character input and graphic drawing), selection / determination operations, and print operations on the Web page 21 displayed on the Web browser 47. The display unit 44 and the operation unit 45 may be configured as separate elements, or may be configured integrally by forming the display unit 44 with a touch panel.

通信部46は、Webアプリケーションサーバー1およびプリンター3と通信を行なうためのインターフェースであり、クライアント端末2(CPU41)は、Webブラウザ47を使用してWebアプリケーションサーバー1およびプリンター3と通信を行なう。   The communication unit 46 is an interface for communicating with the Web application server 1 and the printer 3, and the client terminal 2 (CPU 41) communicates with the Web application server 1 and the printer 3 using the Web browser 47.

このWebブラウザ47は、プラグインモジュールを有さない単機能ブラウザ(標準ブラウザ)であり、CPU41は、このWebブラウザ47を使用して、通信部46を介してネットワーク接続(インターネット接続)されたWebアプリケーションサーバー1にアクセスし、Webアプリケーション17が提供するWebページ21を取得する。   The Web browser 47 is a single function browser (standard browser) that does not have a plug-in module, and the CPU 41 uses the Web browser 47 to connect to the Web connected via the communication unit 46 (Internet connection). The application server 1 is accessed and the web page 21 provided by the web application 17 is acquired.

このWebページ21には、上述のようにページ制御用スクリプト22および印刷制御用スクリプト23が組み込まれており、ページ制御用スクリプト22によりWebブラウザ47がユーザーからの入力操作を受け付けると、その入力結果(文字や画像の入力結果)を所定の描画領域に描画する仕様となっている。この描画領域は、例えば、ページ制御用スクリプト22内にCanvas(HTML5 Canvas)で定義(設定)した領域であり、入力結果が当該描画領域に描画され、画像データとして記憶される。   The web page 21 incorporates the page control script 22 and the print control script 23 as described above, and when the web browser 47 receives an input operation from the user by the page control script 22, the input result is obtained. The specification is such that (input result of characters and images) is drawn in a predetermined drawing area. This drawing area is, for example, an area defined (set) by Canvas (HTML5 Canvas) in the page control script 22, and the input result is drawn in the drawing area and stored as image data.

そして、ユーザーによりWebページ21で印刷操作(印刷ボタンの押下等)が行なわれると、Webブラウザ47は、当該Webページ21に組み込まれた印刷制御用スクリプト23を実行し、描画領域に描画された画像データを変換して印刷データを生成し、通信部46を介してプリンター3に対して(プリンター3のサービスエンドポイントに対して)送信する。この印刷データの送信先となるプリンター3のサービスエンドポイントアドレスは、印刷制御用スクリプト23内で指定されている。   When the user performs a printing operation (such as pressing a print button) on the Web page 21, the Web browser 47 executes the print control script 23 incorporated in the Web page 21 and is drawn in the drawing area. The image data is converted to generate print data, which is transmitted to the printer 3 (to the service endpoint of the printer 3) via the communication unit 46. The service endpoint address of the printer 3 that is the transmission destination of this print data is specified in the print control script 23.

なお、上記クライアント端末2は、Webブラウザ47が動作するコンピューターであれば良く、例えば、携帯端末(例えば、携帯電話やスマートフォン等)やパーソナルコンピューター(PC)など、その種別を問わない。   The client terminal 2 may be a computer on which the web browser 47 operates, and may be of any type, such as a mobile terminal (for example, a mobile phone or a smartphone) or a personal computer (PC).

次に、図2を参照して、ネットワークシステムSYの機能構成について説明する。クライアント端末2は、Webページ取得手段51(Webページ取得部)、描画処理手段52(描画処理部)、印刷データ生成手段53(印刷データ生成部)、印刷データ送信手段54(印刷データ送信部)、表示制御手段55および印刷設定手段56を有している。   Next, the functional configuration of the network system SY will be described with reference to FIG. The client terminal 2 includes a Web page acquisition unit 51 (Web page acquisition unit), a drawing processing unit 52 (drawing processing unit), a print data generation unit 53 (print data generation unit), and a print data transmission unit 54 (print data transmission unit). , Display control means 55 and print setting means 56.

Webページ取得手段51は、CPU41およびWebブラウザ47を主要部とし、Webブラウザ47によりWebアプリケーションサーバー1(Webアプリケーション17)にアクセスし、対象となるWebページ21(ページ制御用スクリプト22および印刷制御用スクリプト23が組み込まれたWebページ21)を取得する。   The Web page acquisition unit 51 includes the CPU 41 and the Web browser 47 as main parts, and the Web browser 47 accesses the Web application server 1 (Web application 17), and the target Web page 21 (page control script 22 and print control use). The Web page 21) in which the script 23 is incorporated is acquired.

描画処理手段52は、CPU41およびページ制御用スクリプト22を主要部とし、取得したWebページ21(Webブラウザ47で表示しているWebページ21)に対してユーザーによる入力操作が行なわれた場合、その入力操作の結果を、描画領域に描画する。   When the user performs an input operation on the acquired Web page 21 (Web page 21 displayed on the Web browser 47), the drawing processing unit 52 includes the CPU 41 and the page control script 22 as main parts. The result of the input operation is drawn in the drawing area.

印刷データ生成手段53は、CPU41および印刷制御用スクリプト23を主要部とし、取得したWebページ21(Webブラウザ47で表示しているWebページ21)でユーザーによる印刷操作が行なわれた場合、印刷制御用スクリプト23を実行することで、描画領域に描画された画像データをプリンター3で処理可能な形式に変換して印刷データ(ラスタイメージコマンド、ビットマップファイルやXML印刷データ等)を生成する。具体的には、印刷制御用スクリプト23により描画領域に描画した画像データのピクセル値を調べ、2値化やディザリング等の画像処理を行ない、プリンター3が処理可能な印刷データを生成する。また、印刷データ生成部53は、生成した印刷データを所定の記憶領域(記憶部43)に一時的に保存する。この印刷データの一時保存は、例えば、Web Storageを使用することで実現することができる。なお、印刷操作の検出はページ制御用スクリプト22が行い、この検出をトリガーとしてページ制御用スクリプト22が印刷制御用スクリプト23を呼び出すことで、印刷データの生成や一時保存処理が行なわれる。   The print data generation unit 53 includes the CPU 41 and the print control script 23 as main parts. When a print operation is performed by the user on the acquired Web page 21 (the Web page 21 displayed on the Web browser 47), the print data generation unit 53 performs print control. By executing the script 23, the image data drawn in the drawing area is converted into a format that can be processed by the printer 3, and print data (raster image command, bitmap file, XML print data, etc.) is generated. Specifically, the pixel value of the image data drawn in the drawing area by the print control script 23 is examined, image processing such as binarization and dithering is performed, and print data that can be processed by the printer 3 is generated. The print data generation unit 53 temporarily stores the generated print data in a predetermined storage area (storage unit 43). This temporary storage of print data can be realized, for example, by using Web Storage. The print operation is detected by the page control script 22, and the page control script 22 calls the print control script 23 using this detection as a trigger, thereby generating print data and temporarily storing the print data.

印刷データ送信手段54は、CPU41、通信部46および印刷制御用スクリプト23を主要部とし、印刷データ生成手段53により一時保存した印刷データ(生成した印刷データ)をプリンター3に送信する。即ち、本実施形態では、印刷データの生成処理(印刷データ生成手段53)と印刷データの送信処理(印刷データ送信手段54)とを並列的に実行するのではなく、全ての印刷データを生成した後に、印刷データの送信を開始する。なお、印刷データ送信手段54は、印刷データ送信中にWebページ21の切り替えが行なわれた場合(Unloadイベントが発生した場合)、その送信を中断する。これは、印刷データ送信手段54の要素である印刷制御用スクリプト23自体がWebページ21に組み込まれているため、Webページ21が切り替えられることにより、印刷制御用スクリプト23が消失してしまうからである。   The print data transmission unit 54 mainly includes the CPU 41, the communication unit 46, and the print control script 23, and transmits the print data (generated print data) temporarily stored by the print data generation unit 53 to the printer 3. That is, in this embodiment, the print data generation process (print data generation unit 53) and the print data transmission process (print data transmission unit 54) are not executed in parallel, but all print data is generated. Later, transmission of print data is started. The print data transmission unit 54 interrupts the transmission when the Web page 21 is switched during the transmission of the print data (when the Unload event occurs). This is because the print control script 23 itself, which is an element of the print data transmission unit 54, is incorporated in the Web page 21, and the print control script 23 is lost when the Web page 21 is switched. is there.

表示制御手段55は、CPU41、表示部44および印刷制御用スクリプト23を主要部とし、ユーザーに対して、印刷制御用スクリプト23による印刷処理中に発生するイベントに関連する通知を行なう。具体的には、印刷データ送信中に、ユーザー操作により表示中のWebページ21の切り替えイベント(beforeunloadイベント)が発生した場合、表示部44にWebページ21の切り替えを実行するか否かを選択する切替確認画面を表示する。また、切替確認画面において、Webページ21の切り替えが実行された場合(unloadイベントが発生した場合)、印刷データの送信が中断した旨を示す警告メッセージを表示する。   The display control unit 55 mainly includes the CPU 41, the display unit 44, and the print control script 23, and notifies the user of events related to events that occur during print processing by the print control script 23. Specifically, when a switching event (beforeunload event) of the Web page 21 being displayed is generated by a user operation during print data transmission, it is selected whether or not to switch the Web page 21 on the display unit 44. Display the switching confirmation screen. In addition, when switching of the Web page 21 is executed on the switching confirmation screen (when an unload event occurs), a warning message indicating that the transmission of print data is interrupted is displayed.

なお、表示制御手段55により切替確認画面が表示されている最中であっても、印刷データ送信手段53は、印刷データの送信を継続している。即ち、印刷制御用スクリプト23は、切替確認画面の表示と印刷データの送信とを並列に実行する。この並列処理は、例えば、Web Workersを使用して両処理を別々のスレッドで実行させることで実現することができる。   Note that even when the switching confirmation screen is being displayed by the display control means 55, the print data transmission means 53 continues to transmit the print data. That is, the print control script 23 executes the display of the switching confirmation screen and the transmission of print data in parallel. This parallel processing can be realized, for example, by causing both processes to be executed by separate threads using Web Workers.

印刷設定手段56は、CPU41および印刷制御用スクリプト23を主要部とし、印刷処理を開始する際(ユーザーによりWebページ21で印刷操作が行なわれた時)、プリンター3(後述の印刷設定サービス提供手段63)が提供する印刷設定サービスを使用してユーザーに対して各種印刷設定(後述する用紙設定や印刷枚数設定等)を促す。ユーザーにより設定された情報は、Webブラウザ47のCookieやWeb Storage等に保存され、次に印刷処理を行なう際は、保存した印刷設定を読み出して印刷設定を復元する。   The print setting unit 56 includes the CPU 41 and the print control script 23 as main parts, and starts the printing process (when the user performs a print operation on the Web page 21). 63) to prompt the user for various print settings (such as a paper setting and a print number setting described later). Information set by the user is stored in a cookie, Web storage, or the like of the Web browser 47, and when the next print processing is performed, the stored print settings are read to restore the print settings.

プリンター3は、印刷データ受信手段61(印刷データ受信部)、印刷制御手段62(印刷制御部)および印刷設定サービス提供手段63(印刷設定サービス提供部)を有している。印刷データ受信手段61は、CPU31、通信部34およびHTTPサーバー36を主要部とし、クライアント端末2から送信される印刷データを受信する。   The printer 3 includes a print data receiving unit 61 (print data receiving unit), a print control unit 62 (print control unit), and a print setting service providing unit 63 (print setting service providing unit). The print data receiving unit 61 receives the print data transmitted from the client terminal 2 with the CPU 31, the communication unit 34, and the HTTP server 36 as main parts.

印刷制御手段62は、CPU31および印刷機構35を主要部とし、印刷データ受信手段61により受信した印刷データに基づいて画像印刷を実行する。この印刷処理に際し、印刷制御手段62は、クライアント端末2(印刷データ送信手段54)から送信される印刷データの全てを受信した後に、印刷を実行する。具体的には、クライアント端末2から送られてくる印刷データを一時的に記憶部33の所定の記憶領域に保存し、その後、保存した印刷データを読み出して印刷処理を実行する。   The print control unit 62 includes the CPU 31 and the printing mechanism 35 as main parts, and executes image printing based on the print data received by the print data receiving unit 61. In this printing process, the print control unit 62 executes printing after receiving all the print data transmitted from the client terminal 2 (print data transmission unit 54). Specifically, the print data sent from the client terminal 2 is temporarily stored in a predetermined storage area of the storage unit 33, and then the stored print data is read and print processing is executed.

印刷設定サービス提供手段63は、CPU31およびHTTPサーバー36を主要部とし、プリンター3の印刷設定を行うための印刷設定サービス(印刷設定機能)を、クライアント端末2に提供する。この印刷設定サービスは、例えば、WebページによるUI(User Interface)やWebサービスAPI(Application Program Interface)として提供され、例えば、用紙設定、印刷枚数、印刷品質、カラー/白黒選択、画像処理方法等を設定することができる。   The print setting service providing means 63 provides the client terminal 2 with a print setting service (print setting function) for performing print settings of the printer 3 with the CPU 31 and the HTTP server 36 as main parts. This print setting service is provided, for example, as a UI (User Interface) or a Web service API (Application Program Interface) using a Web page, and includes, for example, paper setting, number of prints, print quality, color / monochrome selection, image processing method, Can be set.

次に、図3のフローチャートを参照して、ネットワークシステムSYにおける印刷処理手順について説明する。まず、クライアント端末2(CPU41)は、ユーザーによるWebブラウザ47の操作に従ってWebアプリケーションサーバー1(Webアプリケーション17)にアクセスし、対象となるWebページ21(ページ制御用スクリプト22および印刷制御用スクリプト23が組み込まれたWebページ21)を取得し、当該Webページ21をWebブラウザ47で表示する(S01,Webページ取得ステップ、表示ステップ)。   Next, a print processing procedure in the network system SY will be described with reference to the flowchart of FIG. First, the client terminal 2 (CPU 41) accesses the Web application server 1 (Web application 17) according to the operation of the Web browser 47 by the user, and the target Web page 21 (the script 22 for page control and the script 23 for print control). The embedded Web page 21) is acquired, and the Web page 21 is displayed on the Web browser 47 (S01, Web page acquisition step, display step).

次に、ユーザーによりWebページ21に対する入力操作が行なわれると、クライアント端末2は、当該Webページ21に組み込まれたページ制御用スクリプト22に従って入力操作を受け付け、受付けた入力操作結果を描画領域に描画する(S02,描画処理ステップ)。この状態で(描画後に)、ユーザーによりWebページ21内で印刷操作が行なわれると(例えば、Webページ21内に配置された印刷ボタンが押されると)、クライアント端末2は、ページ制御用スクリプト22により当該印刷操作に伴う印刷指示を取得する(S03)。この印刷指示の取得をトリガーとして、ページ制御用スクリプト22から印刷制御用スクリプト23が呼び出され、印刷処理が開始される。   Next, when an input operation is performed on the Web page 21 by the user, the client terminal 2 accepts the input operation according to the page control script 22 incorporated in the Web page 21 and draws the accepted input operation result in the drawing area. (S02, drawing process step). In this state (after drawing), when the user performs a print operation in the Web page 21 (for example, when a print button arranged in the Web page 21 is pressed), the client terminal 2 displays the page control script 22. Thus, a print instruction accompanying the print operation is acquired (S03). With the acquisition of the print instruction as a trigger, the print control script 23 is called from the page control script 22 and the printing process is started.

具体的には、クライアント端末2は、印刷制御用スクリプト23に従って、上記描画領域に描画した画像データに対して画像処理(2値化やギャザリング等)を行ない(S04)、プリンター3が処理可能な形式に変換して印刷データを生成すると共に(S05,印刷データ生成ステップ)、生成した印刷データを記憶部43に保存する(S06)。このS05およびS06の処理は、印刷データの生成が完了するまで、即ち、描画領域に描画された画像データの全てが印刷データに変換されるまで実行される(S07;No)。   Specifically, the client terminal 2 performs image processing (binarization, gathering, etc.) on the image data drawn in the drawing area according to the print control script 23 (S04), and the printer 3 can process it. The data is converted into a format to generate print data (S05, print data generation step), and the generated print data is stored in the storage unit 43 (S06). The processes in S05 and S06 are executed until the generation of the print data is completed, that is, until all the image data drawn in the drawing area is converted into the print data (S07; No).

そして、印刷データの生成が完了すると(S07;Yes)、クライアント端末2は、印刷制御用スクリプト23に従って、記憶部43に保存した印刷データをプリンター3(プリンター3のサービスエンドポイントアドレス)に対して送信する(S08,印刷データ送信ステップ)。なお、印刷データ送信中に、ユーザーのブラウザ操作によりWebページ21を切り替えるイベントが発生した場合の処理制御は、後述の図4で説明する。   When the generation of the print data is completed (S07; Yes), the client terminal 2 sends the print data stored in the storage unit 43 to the printer 3 (service endpoint address of the printer 3) according to the print control script 23. Transmit (S08, print data transmission step). Note that processing control when an event for switching the Web page 21 by a user's browser operation during print data transmission will be described with reference to FIG. 4 described later.

プリンター3は、クライアント端末2から印刷データを受信すると(S09,印刷データ受信ステップ)、これを記憶部33に保存する(S10)。このS09およびS10の処理は、印刷データを全て受信するまで行なわれる(S11;No)。そして、プリンター3は、全ての印刷データを受信し終えると(S11;Yes)、保存した印刷データを読み出し、これに基づく印刷(画像印刷)を行なう(S12,印刷制御ステップ)。   When the printer 3 receives the print data from the client terminal 2 (S09, print data reception step), the printer 3 stores it in the storage unit 33 (S10). The processes in S09 and S10 are performed until all the print data is received (S11; No). When the printer 3 has received all the print data (S11; Yes), it reads the stored print data and performs printing (image printing) based on this (S12, print control step).

次に、図4のフローチャートを参照して、クライアント端末2による印刷データ送信時に、Webページ21の切り替えイベントが発生した場合の処理手順について説明する。なお、送信対象となる印刷データは、図3のS01〜S07の処理により、既に生成されているものとする。また、図4のフローチャートの説明において、Webページ21の切り替えイベントが発生しない場合の処理に関しては、特別な処理を行なわないため、説明を省略する。   Next, with reference to a flowchart of FIG. 4, a processing procedure when a switching event of the Web page 21 occurs when print data is transmitted by the client terminal 2 will be described. It is assumed that the print data to be transmitted has already been generated by the processes of S01 to S07 in FIG. In the description of the flowchart of FIG. 4, the processing when the switching event of the Web page 21 does not occur is not described because no special processing is performed.

まず、クライアント端末2(CPU41)は、印刷制御用スクリプト23により印刷データを生成(保存)した後、プリンター3に対して印刷データの送信を開始する(S21)。この印刷データ送信中に、ユーザーによるWebブラウザ47の操作により表示中のWebページ21(即ち、現在動作中の印刷制御用スクリプト23が組み込まれているWebページ21)を他のページに切り替えるイベントが発生した場合(S22;Yes)、クライアント端末2は、印刷制御用スクリプト23により、印刷データの送信を継続しつつ、これと並列してWebページ21の切り替えを実行するか否かを選択するための切替確認画面を表示部44に表示する(S23)。   First, the client terminal 2 (CPU 41) generates (saves) print data using the print control script 23, and then starts sending print data to the printer 3 (S21). During this print data transmission, there is an event for switching the Web page 21 being displayed by the user's operation of the Web browser 47 (that is, the Web page 21 in which the currently operating print control script 23 is incorporated) to another page. If it occurs (S22; Yes), the client terminal 2 selects whether to execute the switching of the Web page 21 in parallel with the print control script 23 while continuing to transmit the print data. Is displayed on the display unit 44 (S23).

次に、この切替確認画面において、ユーザーがWebページ21の切り替えをキャンセルする選択肢を選択した場合(S24;No)、クライアント端末2は、印刷制御用スクリプト23により、印刷データの送信が完了するまで送信処理を継続し(S25;No)、全ての印刷データを送信し終えた時点で(S25;Yes)、送信処理を完了する(S26)。   Next, when the user selects an option for canceling the switching of the Web page 21 on this switching confirmation screen (S24; No), the client terminal 2 uses the print control script 23 until transmission of print data is completed. The transmission process is continued (S25; No), and when all the print data has been transmitted (S25; Yes), the transmission process is completed (S26).

一方、切替確認画面において、ユーザーがWebページ21の切り替えを実行する選択肢を選択した場合(S24;Yes)、クライアント端末2は、印刷制御用スクリプト23の消失に伴い印刷データの送信を中断すると共に(S27)、印刷データの送信中断を示す警告メッセージを表示部44に表示する(S28)。   On the other hand, when the user selects an option for switching the Web page 21 on the switching confirmation screen (S24; Yes), the client terminal 2 interrupts transmission of the print data due to the disappearance of the print control script 23. (S27) A warning message indicating interruption of print data transmission is displayed on the display unit 44 (S28).

以上のように、本実施形態によれば、Webページ21に組み込まれた印刷制御用スクリプト23により、プリンター3から所定の画像を印刷することができる。即ち、Webブラウザ47上で動作する(Webページ21の内部で動作する)スクリプトによりプリンター3の印刷制御を行なうため、クライアント端末2にはWebブラウザ47をインストールしておけばよく、従来のように、個々のクライアント端末2にプリンタードライバーをインストールすることが不要となる。また、プリンター3を提供するメーカー側にとっては、OS種別毎に対応した複数種類のプリンタードライバーを開発する必要がなくなり、これに係る開発コストを削減することができる。また、プリンター3側にも特別なアプリケーション実行環境を搭載する必要がないため、機器の開発・製造コストを抑えることができる。   As described above, according to the present embodiment, a predetermined image can be printed from the printer 3 by the print control script 23 incorporated in the Web page 21. That is, since the print control of the printer 3 is performed by a script operating on the Web browser 47 (operating inside the Web page 21), the Web browser 47 may be installed in the client terminal 2 as in the conventional case. It becomes unnecessary to install a printer driver in each client terminal 2. In addition, the manufacturer that provides the printer 3 does not need to develop a plurality of types of printer drivers corresponding to each OS type, and the development cost associated therewith can be reduced. In addition, since it is not necessary to install a special application execution environment on the printer 3 side, the development and manufacturing costs of the device can be reduced.

さらに、近年のクライアント端末2(PCやスマートフォン等)には、Webブラウザ47が標準でインストールされていることが多いため、コンピューターに不慣れなユーザーであっても、自身が利用している端末の環境(OS種別等)を意識することなく、容易にプリンター3を利用することができる。   Further, since the Web browser 47 is often installed as a standard in recent client terminals 2 (PCs, smartphones, etc.), even a user who is unfamiliar with a computer has an environment of the terminal he / she uses. The printer 3 can be easily used without being conscious of (OS type or the like).

なお、本実施形態では、クライアント端末2は、描画領域の画像データを1つの印刷データとして生成し、これをプリンター3に送信するようにしているが、例えば、画像データを1回のデータ通信で送信可能なデータサイズに分割し、分割した画像データ毎に印刷データ(分割印刷データ)を生成して送信するようにしても良い。即ち、印刷データを、1回のデータ通信で送信可能なデータサイズに細分化して送信する。これにより、例えば、データ量の大きい印刷データを送信する場合において、印刷データ送信中にWebページ21が切り替えられることで印刷制御用スクリプト23が消失し、印刷データの送信が中途半端な状態で中断してしまうといったことを防止できる。   In the present embodiment, the client terminal 2 generates image data of the drawing area as one print data and transmits it to the printer 3. However, for example, the image data is transmitted by one data communication. The data size may be divided into transmittable data sizes, and print data (divided print data) may be generated and transmitted for each divided image data. That is, the print data is subdivided into data sizes that can be transmitted by one data communication and transmitted. As a result, for example, when transmitting print data with a large amount of data, the print control script 23 disappears when the Web page 21 is switched during the print data transmission, and the print data transmission is interrupted in a halfway state. Can be prevented.

また、本実施形態では、クライアント端末2から送信される印刷データを、直接プリンター3が受信して印刷処理を実行する構成を例示しているが、これに限るものではない。例えば、図5に示すように、クライアント端末2から送信される印刷データをプリンター本体70に着脱可能なインターフェースボード80(装着ボード)で受信して印刷処理を実行する構成としても良い。この場合、インターフェースボード80とプリンター本体70とによって、プリンター90が構成され、インターフェースボード80は、ボード側I/F85およびプリンター側I/F72を介してプリンター本体70と接続される。一方、プリンター本体70は、プリンター側I/F72を介してインターフェースボード80から印刷データを取得し、制御部71により印刷機構73を制御する。なお、図5において、インターフェースボード80内の符号81〜84,86は、図1のプリンター3の符号31〜34,36として機能する。これにより、プリンター本体70に、特別な機能を組み込む必要がないため、汎用的なプリンターであっても、本発明のシステムに導入することができる。   In the present embodiment, the configuration in which the printer 3 directly receives the print data transmitted from the client terminal 2 and executes the printing process is illustrated, but the present invention is not limited to this. For example, as shown in FIG. 5, a configuration may be adopted in which print data transmitted from the client terminal 2 is received by an interface board 80 (mounting board) that can be attached to and detached from the printer main body 70 and print processing is executed. In this case, the printer 90 is configured by the interface board 80 and the printer main body 70, and the interface board 80 is connected to the printer main body 70 via the board side I / F 85 and the printer side I / F 72. On the other hand, the printer main body 70 acquires print data from the interface board 80 via the printer-side I / F 72, and controls the printing mechanism 73 by the control unit 71. In FIG. 5, reference numerals 81 to 84, 86 in the interface board 80 function as reference numerals 31 to 34, 36 of the printer 3 of FIG. Thereby, since it is not necessary to incorporate a special function in the printer main body 70, even a general-purpose printer can be introduced into the system of the present invention.

また、上記に示した、ネットワークシステムSY(クライアント端末2、プリンター3およびインターフェースボード80)の各構成要素をプログラムとして提供することも可能である。また、そのプログラムを記憶媒体(図示省略)に格納して提供することも可能である。記録媒体としては、CD−ROM、フラッシュROM、メモリカード(コンパクトフラッシュ(登録商標)、スマートメディア、メモリースティック等)、コンパクトディスク、光磁気ディスク、デジタルバーサタイルディスクおよびフレキシブルディスク等を利用することができる。   It is also possible to provide each component of the network system SY (client terminal 2, printer 3 and interface board 80) described above as a program. It is also possible to provide the program stored in a storage medium (not shown). As the recording medium, a CD-ROM, a flash ROM, a memory card (compact flash (registered trademark), smart media, memory stick, etc.), a compact disk, a magneto-optical disk, a digital versatile disk, a flexible disk, and the like can be used.

また、上述した実施例によらず、ネットワークシステムSYの装置構成や処理工程等について、本発明の要旨を逸脱しない範囲で、適宜変更も可能である。   In addition, the apparatus configuration and processing steps of the network system SY can be appropriately changed without departing from the gist of the present invention, regardless of the embodiment described above.

1…Webアプリケーションサーバー 2…クライアント端末 3…プリンター 17…Webアプリケーション 21…Webページ 22…ページ制御用スクリプト 23…印刷制御用スクリプト 44…表示部 47…Webブラウザ 51…Webページ取得手段 52…描画処理手段 53…印刷データ生成手段 54…印刷データ送信手段 61…印刷データ受信手段 62…印刷制御手段 63…印刷設定サービス提供手段 70…プリンター本体 80…インターフェースボード 90…プリンター SY…ネットワークシステム   DESCRIPTION OF SYMBOLS 1 ... Web application server 2 ... Client terminal 3 ... Printer 17 ... Web application 21 ... Web page 22 ... Page control script 23 ... Print control script 44 ... Display part 47 ... Web browser 51 ... Web page acquisition means 52 ... Drawing process Means 53 ... Print data generation means 54 ... Print data transmission means 61 ... Print data reception means 62 ... Print control means 63 ... Print setting service provision means 70 ... Printer main body 80 ... Interface board 90 ... Printer SY ... Network system

Claims (10)

クライアント端末がWebページに組み込まれた印刷制御用スクリプトを実行することにより生成した印刷データを、前記クライアント端末から受信する印刷データ受信部と、  A print data receiving unit that receives, from the client terminal, print data generated by the client terminal executing a print control script embedded in the Web page;
前記印刷データを一時的に保存する記憶部と、  A storage unit for temporarily storing the print data;
前記印刷データに基づいて印刷を実行する印刷制御部と、を備え、  A print control unit that executes printing based on the print data,
前記印刷制御部は、前記印刷データ受信部が前記印刷データの全てを受信した後に、前記記憶部に保存された前記印刷データを読み出して印刷を実行することを特徴とするプリンター。  The printer, wherein after the print data receiving unit receives all of the print data, the print control unit reads the print data stored in the storage unit and executes printing.
前記印刷データ受信部は、前記クライアント端末が、Webアプリケーションが動作するWebアプリケーションサーバーからWebブラウザを用いて受信した前記Webページに組み込まれた前記印刷制御用スクリプトを実行することにより生成した前記印刷データを受信することを特徴とする請求項1に記載のプリンター。  The print data reception unit generates the print data generated when the client terminal executes the print control script embedded in the Web page received using a Web browser from a Web application server on which a Web application operates. The printer according to claim 1, wherein the printer is received. 前記印刷データ受信部は、前記クライアント端末が全ての前記印刷データを生成した後に、当該印刷データの受信を開始することを特徴とする請求項1に記載のプリンター。  The printer according to claim 1, wherein the print data receiving unit starts receiving the print data after the client terminal has generated all the print data. 前記印刷制御部は、前記印刷データ受信部が前記印刷データを受信するたびに、前記印刷データの全てを受信したか否かを判定し、前記印刷データの全てを受信したと判定したとき、前記印刷データの受信を開始した後に前記記憶部に保存された全ての前記印刷データを読み出して印刷を実行することを特徴とする請求項3に記載のプリンター。  The print control unit determines whether or not the print data reception unit has received all the print data every time the print data reception unit receives the print data, and determines that the print data reception unit has received all the print data. The printer according to claim 3, wherein printing is executed by reading all the print data stored in the storage unit after starting reception of print data. 前記記憶部は、HTTPサーバーを記憶し、  The storage unit stores an HTTP server,
前記印刷データ受信部は、前記HTTPサーバーによるHTTPに基づいて、前記クライアント端末が前記プリンターに割り当てられたサービスエンドポイントアドレスに前記印刷データを送信すると、当該印刷データを受信することを特徴とする請求項1に記載のプリンター。  The print data receiving unit receives the print data when the client terminal transmits the print data to a service endpoint address assigned to the printer based on HTTP by the HTTP server. Item 10. The printer according to Item 1.
前記HTTPサーバーを含む印刷設定サービス提供部を更に備え、  A print setting service providing unit including the HTTP server;
前記印刷設定サービス提供部は、前記クライアント端末の前記WebページによるUI(User Interface)またはWebサービスAPI(Application Program Interface)として提供される印刷設定サービスを提供することを特徴とする請求項5に記載のプリンター。  The print setting service providing unit provides a print setting service provided as a UI (User Interface) or a Web service API (Application Program Interface) by the Web page of the client terminal. Printer.
前記印刷設定サービスは、用紙設定、印刷枚数、印刷品質、カラー/白黒選択、画像処理方法を設定するサービスを含むことを特徴とする請求項6に記載のプリンター。  The printer according to claim 6, wherein the print setting service includes a service for setting paper setting, the number of prints, print quality, color / monochrome selection, and an image processing method. クライアント端末がWebページに組み込まれた印刷制御用スクリプトを実行することにより生成した印刷データを、前記クライアント端末から受信する印刷データ受信ステップと、  A print data receiving step for receiving, from the client terminal, print data generated by the client terminal executing a print control script embedded in the Web page;
前記印刷データを一時的に記憶部に保存する記憶ステップと、  A storage step of temporarily storing the print data in a storage unit;
前記印刷データに基づいて印刷を実行する印刷制御ステップと、を実行し、  Executing a print control step for executing printing based on the print data,
前記印刷制御ステップは、前記印刷データの全てを受信した後に、前記記憶部に保存された前記印刷データを読み出して印刷を実行することを特徴とするプリンターの制御方法。  The printer control method according to claim 1, wherein, after receiving all of the print data, the print control step reads the print data stored in the storage unit and executes printing.
前記印刷データ受信ステップは、前記クライアント端末が、Webアプリケーションが動作するWebアプリケーションサーバーからWebブラウザを用いて受信した前記Webページに組み込まれた前記印刷制御用スクリプトを実行することにより生成した前記印刷データを受信することを特徴とする請求項8に記載のプリンターの制御方法。  In the print data receiving step, the print data generated by the client terminal executing the print control script embedded in the Web page received using a Web browser from a Web application server on which a Web application operates The printer control method according to claim 8, wherein the printer control method is received. 前記印刷データ受信ステップは、前記クライアント端末が全ての前記印刷データを生成した後に、当該印刷データの受信を開始することを特徴とする請求項8に記載のプリンターの制御方法。  9. The printer control method according to claim 8, wherein the print data receiving step starts receiving the print data after the client terminal has generated all the print data.
JP2016246971A 2016-12-20 2016-12-20 Printer and printer control method Active JP6260682B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016246971A JP6260682B2 (en) 2016-12-20 2016-12-20 Printer and printer control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016246971A JP6260682B2 (en) 2016-12-20 2016-12-20 Printer and printer control method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016033372A Division JP6065132B2 (en) 2016-02-24 2016-02-24 Print control script and client terminal control method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2017238639A Division JP6841751B2 (en) 2017-12-13 2017-12-13 Network system and network system control method

Publications (2)

Publication Number Publication Date
JP2017073168A JP2017073168A (en) 2017-04-13
JP6260682B2 true JP6260682B2 (en) 2018-01-17

Family

ID=58537304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016246971A Active JP6260682B2 (en) 2016-12-20 2016-12-20 Printer and printer control method

Country Status (1)

Country Link
JP (1) JP6260682B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4167783B2 (en) * 1999-12-17 2008-10-22 セイコーエプソン株式会社 Network management system and method
JP2003316530A (en) * 2002-04-22 2003-11-07 Konica Minolta Holdings Inc Print server device and network printing system
JP2005085052A (en) * 2003-09-10 2005-03-31 Toshiba Corp Portable digital assistant, printing method and printing program
JP2006056072A (en) * 2004-08-18 2006-03-02 Canon Inc Printing system and control method for printing job
JP2006134043A (en) * 2004-11-05 2006-05-25 Canon Inc Printing system and control method therefor
JP4760415B2 (en) * 2006-02-06 2011-08-31 セイコーエプソン株式会社 Computer device driver implementation method

Also Published As

Publication number Publication date
JP2017073168A (en) 2017-04-13

Similar Documents

Publication Publication Date Title
JP5673177B2 (en) Network system, network system printing control method, and client terminal
US20120092689A1 (en) Information processing apparatus, method for controlling the same, and storage medium
JP5732896B2 (en) Network system and network system control method
US20120314245A1 (en) Image processing apparatus, image processing system, method for controlling the same, and storage medium therefor
US9720631B2 (en) Relay server, storage medium storing instructions executable by the relay server, and control method
US11687297B2 (en) Information processing apparatus, method for controlling information processing apparatus, and storage medium for acquiring configuration information
CN111251732A (en) Control method and storage medium
US9116640B2 (en) Image processing apparatus, display method, and storage medium
JP5728994B2 (en) Network system, interface board, network system print processing method, and client terminal
JP6226036B2 (en) Printer and printer control method
JP5900593B2 (en) Network system control method, print control script control method, and print control script
US20120019862A1 (en) Image processing apparatus, control method of image processing apparatus, and program
US10671329B2 (en) Image forming apparatus for generating raster image data based on PDL data, using general purpose processor and raster image processor and image forming method
US20220303400A1 (en) Information processing apparatus, control method of information processing apparatuses, scanner apparatus, control method of scanner apparatus, and recording medium
JP6260682B2 (en) Printer and printer control method
JP6841751B2 (en) Network system and network system control method
JP6065132B2 (en) Print control script and client terminal control method
JP5900592B2 (en) Network system, client terminal, and client terminal control method
JP7251266B2 (en) Program combinations and programs
JP6152913B2 (en) Image input control script and client terminal control method
JP5935921B2 (en) Client terminal, client terminal control method, and image input control program
JP5979271B2 (en) Printing system, interface board, device server, and printing processing method
JP2006119764A (en) Print control system and print control program
JP2015075822A (en) Print control system, print control method and program
JP2008080606A (en) Printing device and control method of printing device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170110

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170110

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20171114

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171115

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171127

R150 Certificate of patent or registration of utility model

Ref document number: 6260682

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150