JP3620633B2 - Print data transmitting apparatus and printing system - Google Patents

Print data transmitting apparatus and printing system Download PDF

Info

Publication number
JP3620633B2
JP3620633B2 JP25083398A JP25083398A JP3620633B2 JP 3620633 B2 JP3620633 B2 JP 3620633B2 JP 25083398 A JP25083398 A JP 25083398A JP 25083398 A JP25083398 A JP 25083398A JP 3620633 B2 JP3620633 B2 JP 3620633B2
Authority
JP
Japan
Prior art keywords
print
printer
command
emergency stop
print data
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.)
Expired - Fee Related
Application number
JP25083398A
Other languages
Japanese (ja)
Other versions
JP2000081957A (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 JP25083398A priority Critical patent/JP3620633B2/en
Publication of JP2000081957A publication Critical patent/JP2000081957A/en
Application granted granted Critical
Publication of JP3620633B2 publication Critical patent/JP3620633B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、コンピュータシステムなどにおいて印刷動作を制御する技術に関わり、特に、印刷ジョブをその実行途中でキャンセルするための技術に関する。
【0002】
【従来の技術】
図1に示すように、コンピュータシステムなどにおけるホスト1は、プリンタ3を制御するために、通常、OSの一部として、プリンタドライバ5及び印刷スプーラ7を有する。ホストのユーザは、印刷を行いたいとき、プリンタドライバ5を呼び出し、印刷したい文書や画像を指定して印刷実行を命じる。すると、プリンタドライバ5は、その印刷対象の文書や画像をプリンタに印刷させるための印刷データを生成する。印刷スプーラ7は、プリンタドライバ5が生成した印刷データを、ディスクなどのストレージ上の印刷キュー9にスプールした上で、印刷キュー9から印刷データを順に取り出して、所定のポート11を通じてプリンタ3へ転送する。
【0003】
プリンタドライバ5に印刷実行を命じた後に、その印刷ジョブを中止したくなった場合、ユーザは、印刷キュー内の印刷ジョブのリストを画面に表示して、そのリストから印刷ジョブを選択し、その選択したジョブの印刷データ削除又は印刷中止をスプーラ7に命じる。これを受けて、スプーラ7は選択された印刷データを印刷キューから削除する。
【0004】
【発明が解決しようとする課題】
印刷キュー内のジョブリストを画面に表示し、ジョブを選択し、そして印刷データ削除又は印刷中止をスプーラに命じるという印刷中止の操作は、面倒で手間と時間がかかる。この操作に手間取っている間に、中止したい印刷ジョブのデータのプリンタへの送信が開されてしまうことも多い。そうすると、印刷キューからその印刷データを削除することはできなくなるので、印刷を中止することができなくなる。
【0005】
従って、本発明の目的は、印刷データがプリンタへ送信されている途中でも、ユーザが欲したとき即座にその印刷データの印刷中止が行えるようにすることにある。
【0006】
【課題を解決するための手段】
本発明の一つの観点に従えば、ホスト側で、印刷を緊急に中止するための緊急停止ボタンを(例えばグラフィックユーザインタフェース画面に表示するなどの態様で)ユーザに予め提供しておき、印刷中は、印刷データである一連の印刷コマンドを順次にプリンタに送りながら、その最中に緊急停止ボタンがユーザに操作されると、印刷コマンドの送信を中止し、かつ、その送信中止した印刷ジョブにかかる未送信の印刷コマンドを破棄する。これにより、ユーザが緊急停止ボタンを押した時点で、ホストに残っている未送信の印刷データはプリンタへ送信されず印刷されない。
【0007】
好適な実施形態では、緊急停止ボタンが操作されると、ホストはさらに、印刷中止命令をプリンタに送る。すると、プリンタは、当該印刷ジョブの処理を停止、かつ、当該印刷ジョブにかかる未処理の印刷データを破棄する。したがって、緊急停止操作が行われた時点で用紙に印刷中のデータを除いて、以降の印刷データは印刷されない。
【0008】
本発明にの第2の観点に従うコンピュータは、印刷キュー内の印刷データを先頭から送出する印刷スプーラと、印刷スプーラから送出された印刷データを受け取り、受け取った印刷データの印刷コマンドを順次に送出する送信制御部と、この送信制御部から送出された印刷コマンドをプリンタへ送信するポートと、グラフィックユーザインタフェース画面上に緊急停止ボタンを表示し、ユーザによる緊急停止ボタンの操作に応答して緊急停止命令を送信制御部に与える緊急停止操作部とを備える。そして、送信制御部は、印刷コマンドを送信している途中で緊急停止命令を受けると、印刷コマンドの送信を中止し、かつ、印刷スプーラから既に受け取った及び将来受け取る同一印刷ジョブにかかる未送信の印刷コマンドを破棄する。したがって、印刷スプーラが印刷データの送出を開始した後でも、その印刷ジョブの中止ができる。
【0009】
本発明の第3の観点に従う印刷データ送信装置は、グラフィックユーザインタフェース画面と、このグラフィックユーザインタフェース画面上に緊急停止ボタンを表示し、ユーザによる緊急停止ボタンの操作に応答して緊急停止命令を発する緊急停止操作部と、緊急停止命令に応答して、印刷を停止するための所定の動作(これは、上述した本発明の緊急停止方法に限らず、従来のスプーラに対する印刷中止動作であってもよい)を行う印刷中止部とを備える。グラフィックユーザインタフェース画面上に緊急停止ボタンが表示されているので、ユーザは必要なときに簡単かつ迅速に緊急停止命令を発することができる。
【0010】
好適な実施形態では、緊急停止ボタンが、デスクトップ上(デスクトップ周縁にあるタスクバーなどのバー類も含む)またはアプリケーションのウィンドウ上に表示される。これにより、アプリケーション上で作業中に、別のウィンドウやメニューなどを新たに開かなくても、緊急停止ボタンを即座に操作することができる。
【0011】
本発明は典型的にはコンピュータにより実施することができるが、そのためのコンピュータプログラムは、ディスク型ストレージ、半導体メモリおよび通信ネットワークなどの各種の媒体を通じてコンピュータにインストールまたはロードすることができる。
【0012】
【発明の実施の形態】
図2は、本発明の一実施形態の構成を示す。
【0013】
図2に示すように、ホスト21は例えばパーソナルコンピュータであって、プリンタ23へ印刷データを転送する作業を行うためのプログラムモジュールとして、プリンタドライバ、印刷スプーラ27、ランゲージモニタ31及びポート35を有している。
【0014】
プリンタドライバ25は、ユーザが印刷を行おうとするときに呼び出されて、ユーザから「印刷実行」命令を受けると、ユーザの指定した印刷対象の文書や画像の印刷データを作成する。この印刷データは印刷スプーラ27に送られる。印刷スプーラ27は、印刷データを受け取って、ディスク等のストレージ上の印刷キュー29に書き込んだ後、印刷キュー29の先頭から印刷データを読み出して送出する。ランゲージモニタ31は、スプーラ27から送出された印刷データをホストのメモリ上のデータバッファ33に一旦受け取り、後に詳述するように、その印刷データの個々の印刷コマンドを解析しつつメモリ内のページデータ領域34に格納していき、完全な1ページ分の印刷データがページデータ領域34に揃うと、その1ページ分の印刷データをページデータ領域34から先頭から順に読み出し送出する。ポート35は、ランゲージモニタ31が送出した印刷データを受けてプリンタ23へ転送する。
【0015】
さらに、プリンタドライバ25は、印刷中にそれを緊急に中止するための緊急停止ボタン37を有している。この緊急停止ボタン37は、プリンタドライバ25をホスト21にインストールした時に自動的に(または、インストール後のユーザによる手動設定によって)グラフィックユーザインタフェース画面の所定場所に表示される。例えば、図3に示すように、グラフィックユーザインタフェース画面51のデスクトップ上のタスクバー61等内に、アイコン63の一つとして緊急停止ボタン37が表示されてもよいし、或いは、所定のアプリケーションのウィンドウ53内の所定のツールバー55内に、ボタン57の一つとして緊急停止ボタン37がアドインされてもよい。或いは、図示していないが、デスクトップ内の独立したアイコンとして、或いは、何らかのプルダウンメニュー内にメニュー項目の一つとして、或いは、プリンタドライバ25のウィンドウ内にボタンの一つとして、それぞれ緊急停止ボタン37が存在していてもよい。ただ、図3に例示したように、アプリケーションウィンドウ53上で作業中に即座に操作できる場所に緊急停止ボタン37が表示されている方が、迅速な操作のために望ましいであろう。いずれにしても、この緊急停止ボタン37をユーザがマウスなどで操作すると、プリンタドライバ21は、「緊急停止」命令を、ランゲージモニタ31に直接(つまり、印刷スプーラ27を飛び越して)送る。ランゲージモニタ31は、緊急停止命令39を受けると、後に詳述するように、直ちに印刷データの送信を停止して代わりに「印刷中止」命令をプリンタ23に送り、かつ、ページデータ領域34内の印刷データを消去し、さらに、印刷スプーラ27からデータバッファ33受け取った後続の印刷データはデータバッファ33から読み出して(ページデータ領域34に書き込むことなく)全て破棄していく。したがって、緊急停止命令39を受けた後は、ランゲージモニタ31は印刷データをプリンタ23へ送らない。
【0016】
プリンタ23は、印刷データから各ページの印刷イメージを作成するマイクロコンピュータおよび周辺回路からなるコントローラ41と、コントローラ41の作成した印刷イメージを用紙上に印刷する印刷エンジン47を有する。コントローラ41は、ホスト21から転送されてきた印刷データをメモリ上の受信バッファ43に受けてから、その印刷データを解釈して印刷イメージを作成してメモリ上のイメージバッファ45に展開する。印刷エンジン47は、イメージバッファ45から印刷イメージをDMAにより取り込んで、それを用紙上に印刷する。
【0017】
コントローラ41は、ホスト21から印刷中止命令を受けると、直ちに印刷データの処理を停止して自身の状態を初期化し、受信バッファ内のデータを消去し、現在印刷中のページの印刷が終わった後にイメージバッファ45および印刷エンジン47の状態も初期化して、電源投入時の状態に戻る。したがって、印刷中止命令を受けると、プリンタ23は、その時点で印刷途中のページを印刷し終えて、その印刷ジョブの処理を終えるので、後続のページは印刷しない。
【0018】
図4は、ランゲージモニタ31の動作を示す。
【0019】
まず、印刷途中に緊急停止が行われない通常の場合の動作を説明する。
【0020】
ランゲージモニタ31は、スプーラ27が先頭から単純に送り込んでくる印刷データをデータバッファ33に受け取った(ステップS3)上で、データバッファ33の先頭から印刷データを頭から取り出して個々の印刷コマンドを解析する(S4)ことにより、1ページ分の完全な印刷データを受け取り終わったか否かをチェックし(S5)つつ、その印刷データをコマンド単位で順にページデータ領域34に順に書き込んでいく(S6)。印刷コマンドを1つスプーラ27から受け取る都度、印刷データの終了または印刷中断が生じたか否かのチェック(S1)、及び緊急停止命令が入力されたか否かのチェック(S2)を行う。
【0021】
1ページ分の完全な印刷データが受け取り終わると(S5でYES)、その1ページ分の完全な印刷データを最後までページデータ領域34に格納した(S7)上で、次にランゲージモニタ31は、ページデータ領域34から印刷データを読み出し(S10)、それをコマンド単位で順にポート35を通じてプリンタ23へ送信する(S11)。印刷コマンドを1つプリンタ23へ送信する都度、緊急停止命令が入力されたか否かのチェック(S8)、及び1ページ分の印刷データを全部がプリンタ3へ送信し終わったか否かのチェック(S9)を行う。1ページ分の印刷データを全部プリンタ23へ送信し終わると(S9でYES)、ランゲージモニタ31は、その送信し終わったページの印刷データをページデータ領域13から消去し、再びステップS1へ戻って、スプーラ27からバッファ33に後続の印刷データを受け取り(S3)、それを解析しつつページデータ領域34に書き込んでいく(S6)という同様の動作を繰り返す。
【0022】
スプーラ27から来る印刷データが終了するかまたは中断すると(つまり、スプーラ27から印刷データが来ないまま所定時間が経過する、または、スプーラ27から「印刷終了」または「印刷中断」のメッセージが来ると)(S1でYES)、ランゲージモニタ31は、データバッファ33内の印刷データを最後までページバッファ領域13に書きこみ終えた後に、ステップS5のチェック結果に基づいて、ページバッファ領域13に格納した印刷データがページとして不完全な印刷データのままで終わっていないかチェックする(S12)。印刷データが正常に終了した場合は、ページとして完全な状態で印刷データが終わるので(S12でNO)、この場合は、前述したステップS7以下の動作を続けてページバッファ領域34内のデータを最後までプリンタ23へ転送し終えてから、動作を終了する。一方、印刷中断の場合(たとえば、印刷途中でユーザがスプーラ27に対して印刷中止を命じたような場合)には通常、スプーラ27から送られてくる印刷データがページの途中で中断されるので(S12でYES)、ランゲージモニタ31は、ステップS13へ進み、ページデータ領域34に残っているページとして不完全なデータを全て消去して、これをプリンタ23へ転送することなく動作を終了する。
【0023】
以上のランゲージモニタ31の動作により、ページとして完全な印刷データだけがプリンタ3に送られ、ページとして不完全なデータがプリンタ23に送られることはない。
【0024】
次に、印刷途中で緊急停止命令39を受けたときのランゲージモニタ31の動作を説明する。
【0025】
すでに説明したように、ランゲージモニタ31は印刷コマンド単位で受け取った印刷データをページデータ領域34に書き込んだりプリンタ23へ送信したりしているが、緊急停止命令が入力されると、その時点で印刷コマンドのページデータ領域34への書き込み及びプリンタ23への送信を停止して、ステップS14へ進み印刷中止命令をポート35を通じてプリンタ23へ送信し、そして、ページデータ領域34に残っている印刷データを全て消去する(S15)。続いて、ランゲージモニタ31は、データバッファ33から印刷データを読み出して、各印刷コマンドを解析しつつ(S16)、データバッファ33から取り出した印刷データを(ページデータ領域34に書き込まずに)破棄する(S17)。さらに、スプーラ27から送り出される後続の印刷データをデータバッファ33に受け取り(S19)、これもデータバッファ33から読み出して解析しつつ(S16)、(ページデータ領域34に書き込まずに)破棄する(S17)。このようにスプーラ27から印刷データを受け取って破棄するという動作を、スプーラ27から同一印刷ジョブの印刷データが継続して来る限り繰り返し、印刷データ終了または印刷中断が生じると、動作を終了する。
【0026】
したがって、印刷中にユーザが緊急停止ボタンを操作すると、その時点でプリンタ23への印刷コマンドの送信は即座に中止され、代わりに印刷中止命令がプリンタ23へ送られ、かつ、後続の印刷データはスプーラ27からは送出されるがランゲージモニタ31によって破棄されてプリンタ23には送られない。従来のようにスプーラ27が送出を開始した印刷データを途中で止めることができずに全てプリンタ23に送ってしまう、という事態は本実施形態では発生しない。
【0027】
図5は、印刷中止命令を受けたときのプリンタ23内のコントローラ41動作を示す。
【0028】
プリンタ23では、印刷中止命令をホスト21から受けると、コントローラが、自己のシステムメモリをクリアし(S31)、印刷データの処理に関わるCPUへの割り込みや、DMAなどの設定やステータスを解除し(S32)、受信バッファ43をクリアし(S33)、そして、印刷エンジン47が現在印刷中のページの印刷が終わったところで印刷エンジン47を停止し、イメージバッファ45もクリアし(S34)、プリンタ23全体を電源投入時の初期状態に戻す(S35)。以上の動作により、ユーザが緊急停止ボタンを操作すると、その時点で印刷実行中のページは印刷されるが、後続のページの印刷は回避される。
【0029】
以上、本発明の一実施形態を説明したが、この実施形態はあくまで本発明の説明のための例示であり、本発明をこの実施形態にのみ限定する趣旨ではない。従って、本発明は、上記実施形態以外の様々な形態でも実施することができる。例えば、上述の実施形態では、プリンタは印刷停止命令を受けると、現在印刷中のページだけを印刷してから後続のページの印刷を中止するが、そうせずに、印刷停止命令を受けた時点で直ちに、或いは現在印刷中の行だけ印刷してから、或いは現在印刷中のバンドだけ印刷してから、印刷中止し排紙するようにしてもよい。
【図面の簡単な説明】
【図1】従来のシステムの構成を示すブロック図。
【図2】本発明の一実施形態の構成を示すブロック図
【図3】緊急停止ボタンの配置場所を説明するためのグラフィックユーザインタフェース画面の一例を示した図。
【図4】ランゲージモニタの動作を示すフローチャート。
【図5】印刷中止命令を受けたときのプリンタ23の動作を示すフローチャート。
【符号の説明】
21 ホスト
23 プリンタ
25 プリンタドライバ
27 印刷スプーラ
31 ランゲージモニタ
39 緊急停止命令
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a technique for controlling a printing operation in a computer system or the like, and more particularly, to a technique for canceling a print job during its execution.
[0002]
[Prior art]
As shown in FIG. 1, a host 1 in a computer system or the like usually has a printer driver 5 and a print spooler 7 as part of the OS in order to control the printer 3. When the user of the host wants to perform printing, he calls the printer driver 5, designates a document or image to be printed, and commands printing. Then, the printer driver 5 generates print data for causing the printer to print the document or image to be printed. The print spooler 7 spools the print data generated by the printer driver 5 in a print queue 9 on a storage such as a disk, and then sequentially retrieves the print data from the print queue 9 and transfers it to the printer 3 through a predetermined port 11. To do.
[0003]
When the user wants to cancel the print job after instructing the printer driver 5 to execute printing, the user displays a list of print jobs in the print queue on the screen, selects the print job from the list, and selects the print job. The spooler 7 is instructed to delete or cancel the print data of the selected job. In response to this, the spooler 7 deletes the selected print data from the print queue.
[0004]
[Problems to be solved by the invention]
A print cancel operation in which a job list in the print queue is displayed on the screen, a job is selected, and the spooler is instructed to delete print data or cancel the print is troublesome and takes time and effort. While this operation is troublesome, transmission of print job data to be canceled to the printer is often opened. Then, since the print data cannot be deleted from the print queue, printing cannot be stopped.
[0005]
Accordingly, an object of the present invention is to enable the printing of the print data to be stopped immediately when the user desires even while the print data is being transmitted to the printer.
[0006]
[Means for Solving the Problems]
According to one aspect of the present invention, an emergency stop button for urgently canceling printing is provided to the user in advance (for example, in a form such as being displayed on a graphic user interface screen) on the host side, and printing is in progress. If a user operates the emergency stop button while sending a series of print commands as print data to the printer in sequence, the print command transmission is canceled and the print job is canceled. The unsent print command is discarded. Thus, when the user presses the emergency stop button, untransmitted print data remaining in the host is not transmitted to the printer and is not printed.
[0007]
In a preferred embodiment, when the emergency stop button is operated, the host further sends a print stop command to the printer. Then, the printer stops processing the print job and discards unprocessed print data related to the print job. Accordingly, the subsequent print data is not printed except for the data being printed on the paper when the emergency stop operation is performed.
[0008]
A computer according to a second aspect of the present invention receives a print spooler that sends print data in a print queue from the top, print data sent from the print spooler, and sequentially sends print commands for the received print data. An emergency stop command is displayed in response to an operation of the emergency stop button by the user by displaying a transmission control unit, a port for transmitting a print command sent from the transmission control unit to the printer, and an emergency stop button on the graphic user interface screen. And an emergency stop operation unit that provides the transmission control unit. When the transmission control unit receives an emergency stop command in the middle of transmitting the print command, the transmission control unit stops transmission of the print command, and has not yet transmitted the same print job received from the print spooler and received in the future. Discard the print command. Therefore, even after the print spooler starts sending print data, the print job can be canceled.
[0009]
The print data transmitting apparatus according to the third aspect of the present invention displays a graphic user interface screen and an emergency stop button on the graphic user interface screen, and issues an emergency stop command in response to an operation of the emergency stop button by the user. In response to an emergency stop operation unit and an emergency stop command, a predetermined operation for stopping printing (this is not limited to the emergency stop method of the present invention described above, A print canceling unit that performs (good). Since an emergency stop button is displayed on the graphic user interface screen, the user can issue an emergency stop command easily and quickly when necessary.
[0010]
In a preferred embodiment, an emergency stop button is displayed on the desktop (including bars such as task bars around the desktop) or on the application window. As a result, the emergency stop button can be operated immediately without opening another window or menu while working on the application.
[0011]
The present invention can typically be implemented by a computer, and a computer program for the computer program can be installed or loaded on the computer through various media such as disk storage, semiconductor memory, and communication network.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 2 shows the configuration of an embodiment of the present invention.
[0013]
As shown in FIG. 2, the host 21 is, for example, a personal computer, and includes a printer driver, a print spooler 27, a language monitor 31, and a port 35 as a program module for performing print data transfer to the printer 23. ing.
[0014]
The printer driver 25 is called when the user intends to perform printing, and when receiving a “print execution” command from the user, the printer driver 25 creates print data of a document or image to be printed designated by the user. This print data is sent to the print spooler 27. The print spooler 27 receives print data, writes the print data in a print queue 29 on a storage such as a disk, and then reads and sends the print data from the head of the print queue 29. The language monitor 31 temporarily receives the print data sent from the spooler 27 in the data buffer 33 on the host memory, and analyzes the individual print commands of the print data while analyzing the page data in the memory as will be described in detail later. When the print data for one complete page is stored in the area 34 and the print data for one page is arranged in the page data area 34, the print data for one page is sequentially read from the page data area 34 and transmitted. The port 35 receives print data sent from the language monitor 31 and transfers it to the printer 23.
[0015]
Further, the printer driver 25 has an emergency stop button 37 for urgently stopping the printing during printing. The emergency stop button 37 is automatically displayed at a predetermined location on the graphic user interface screen when the printer driver 25 is installed in the host 21 (or by manual setting by the user after installation). For example, as shown in FIG. 3, an emergency stop button 37 may be displayed as one of the icons 63 in the task bar 61 on the desktop of the graphic user interface screen 51, or a predetermined application window 53 may be displayed. An emergency stop button 37 may be added into one of the predetermined toolbars 55 as one of the buttons 57. Alternatively, although not shown, the emergency stop button 37 is provided as an independent icon in the desktop, as one of menu items in some pull-down menu, or as one of buttons in the printer driver 25 window. May be present. However, as illustrated in FIG. 3, it is desirable that the emergency stop button 37 is displayed on the application window 53 at a place where it can be operated immediately during work for quick operation. In any case, when the user operates the emergency stop button 37 with a mouse or the like, the printer driver 21 sends an “emergency stop” command directly to the language monitor 31 (ie, skips the print spooler 27). When the language monitor 31 receives the emergency stop command 39, as will be described in detail later, the language monitor 31 immediately stops the transmission of the print data and instead sends a “print stop” command to the printer 23. The print data is erased, and the subsequent print data received from the data spooler 33 from the print spooler 27 is read from the data buffer 33 (without being written to the page data area 34) and discarded. Therefore, after receiving the emergency stop command 39, the language monitor 31 does not send print data to the printer 23.
[0016]
The printer 23 includes a controller 41 including a microcomputer that creates a print image of each page from print data and peripheral circuits, and a print engine 47 that prints the print image created by the controller 41 on paper. The controller 41 receives the print data transferred from the host 21 in the reception buffer 43 on the memory, then interprets the print data, creates a print image, and develops it in the image buffer 45 on the memory. The print engine 47 takes a print image from the image buffer 45 by DMA and prints it on a sheet.
[0017]
When the controller 41 receives a print cancel command from the host 21, it immediately stops processing the print data, initializes its own state, erases the data in the reception buffer, and after the printing of the currently printing page is finished. The states of the image buffer 45 and the print engine 47 are also initialized and returned to the state when the power is turned on. Therefore, when receiving the print cancel instruction, the printer 23 finishes printing the page being printed at that time and finishes processing of the print job, so the subsequent page is not printed.
[0018]
FIG. 4 shows the operation of the language monitor 31.
[0019]
First, an operation in a normal case where an emergency stop is not performed during printing will be described.
[0020]
The language monitor 31 receives the print data simply sent from the head by the spooler 27 to the data buffer 33 (step S3), then extracts the print data from the head of the data buffer 33 and analyzes the individual print commands. By doing (S4), it is checked whether or not the complete print data for one page has been received (S5), and the print data is sequentially written in the page data area 34 in units of commands (S6). Each time a print command is received from the spooler 27, a check is made as to whether print data has ended or printing has been interrupted (S1) and whether an emergency stop command has been input (S2).
[0021]
When the complete print data for one page has been received (YES in S5), the complete print data for one page is stored in the page data area 34 to the end (S7), and then the language monitor 31 Print data is read from the page data area 34 (S10), and is sent to the printer 23 through the port 35 in order in command units (S11). Each time a print command is sent to the printer 23, a check is made whether an emergency stop command has been input (S8), and a check is made whether all the print data for one page has been sent to the printer 3 (S9). )I do. When all the print data for one page has been transmitted to the printer 23 (YES in S9), the language monitor 31 deletes the print data of the page that has been transmitted from the page data area 13, and returns to step S1 again. Then, the subsequent print data is received from the spooler 27 to the buffer 33 (S3), and written in the page data area 34 while analyzing it (S6), and the same operation is repeated.
[0022]
When print data coming from the spooler 27 ends or is interrupted (that is, when a predetermined time elapses without print data coming from the spooler 27, or a message “printing finished” or “printing suspended” comes from the spooler 27. ) (YES in S1), the language monitor 31 prints the print data stored in the page buffer area 13 based on the check result in step S5 after the print data in the data buffer 33 has been written to the page buffer area 13 to the end. It is checked whether the data is not finished as incomplete print data as a page (S12). If the print data ends normally, the print data ends in a complete state as a page (NO in S12). In this case, the operation in step S7 and subsequent steps is continued and the data in the page buffer area 34 is finally stored. After the transfer to the printer 23 is completed, the operation is terminated. On the other hand, when printing is interrupted (for example, when the user orders the spooler 27 to cancel printing during printing), the print data sent from the spooler 27 is normally interrupted in the middle of the page. The language monitor 31 proceeds to step S13, erases all incomplete data as pages remaining in the page data area 34, and ends the operation without transferring them to the printer 23.
[0023]
With the operation of the language monitor 31 described above, only complete print data as a page is sent to the printer 3, and incomplete data as a page is not sent to the printer 23.
[0024]
Next, the operation of the language monitor 31 when an emergency stop command 39 is received during printing will be described.
[0025]
As already described, the language monitor 31 writes the print data received in print command units to the page data area 34 or transmits it to the printer 23. When an emergency stop command is input, printing is performed at that time. The writing of the command to the page data area 34 and the transmission to the printer 23 are stopped, the process proceeds to step S14, and a print stop command is transmitted to the printer 23 through the port 35, and the print data remaining in the page data area 34 is transferred. All are erased (S15). Subsequently, the language monitor 31 reads the print data from the data buffer 33, analyzes each print command (S16), and discards the print data retrieved from the data buffer 33 (without writing it in the page data area 34). (S17). Further, the subsequent print data sent from the spooler 27 is received by the data buffer 33 (S19), and is also read from the data buffer 33 for analysis (S16) and discarded (without being written to the page data area 34) (S17). ). The operation of receiving the print data from the spooler 27 and discarding it is repeated as long as the print data of the same print job continues from the spooler 27. When the print data ends or the print interruption occurs, the operation ends.
[0026]
Therefore, when the user operates the emergency stop button during printing, transmission of the print command to the printer 23 is immediately stopped at that time, and a print stop command is sent to the printer 23 instead, and the subsequent print data is Although it is sent from the spooler 27, it is discarded by the language monitor 31 and is not sent to the printer 23. In the present embodiment, the situation in which all the print data that the spooler 27 has started to send cannot be stopped halfway and sent to the printer 23 as in the prior art does not occur.
[0027]
FIG. 5 shows the operation of the controller 41 in the printer 23 when a print cancel command is received.
[0028]
In the printer 23, when the print stop command is received from the host 21, the controller clears its own system memory (S31), cancels the interrupt to the CPU related to the processing of the print data, and the setting and status of the DMA ( (S32), the reception buffer 43 is cleared (S33), and the print engine 47 is stopped when the printing of the page currently being printed by the print engine 47 is completed, and the image buffer 45 is also cleared (S34). Is returned to the initial state when the power is turned on (S35). With the above operation, when the user operates the emergency stop button, the page being printed at that time is printed, but the printing of the subsequent pages is avoided.
[0029]
As mentioned above, although one Embodiment of this invention was described, this Embodiment is an illustration for description of this invention to the last, and is not the meaning which limits this invention only to this Embodiment. Therefore, the present invention can be implemented in various forms other than the above-described embodiment. For example, in the above-described embodiment, when the printer receives the print stop command, it prints only the page currently being printed and then stops printing the subsequent pages. The printing may be stopped immediately or after printing only the line currently being printed, or after printing only the band currently being printed.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a conventional system.
FIG. 2 is a block diagram showing a configuration of an embodiment of the present invention. FIG. 3 is a diagram showing an example of a graphic user interface screen for explaining an arrangement place of an emergency stop button.
FIG. 4 is a flowchart showing the operation of the language monitor.
FIG. 5 is a flowchart showing the operation of the printer 23 when a print cancel command is received.
[Explanation of symbols]
21 Host 23 Printer 25 Printer Driver 27 Print Spooler 31 Language Monitor 39 Emergency Stop Command

Claims (8)

一連の印刷コマンドからなる印刷データをプリンタへ送るものにおいて、
前記印刷データの印刷コマンドを順次に前記プリンタへ送信する送信制御部と、
緊急停止ボタンをユーザに提供し、ユーザによる前記緊急停止ボタンの操作に応答して緊急停止命令を前記送信制御部に与える緊急停止操作部と、
を備え、
前記送信制御部は、前記印刷コマンドを送信している途中で前記緊急停止命令を受けると、前記印刷コマンドの送信を中止し、かつ、同一印刷ジョブにかかる未送信の印刷コマンドを破棄し、さらに印刷中止命令を前記プリンタに送る
印刷データ送信装置。
In sending print data consisting of a series of print commands to a printer,
A transmission control unit for sequentially transmitting print commands of the print data to the printer;
An emergency stop operation unit that provides an emergency stop button to the user and gives an emergency stop command to the transmission control unit in response to an operation of the emergency stop button by the user;
With
The transmission control unit receives the emergency stop instruction in the course of transmitting the printing command to stop the transmission of the print command, and discards the untransmitted print command according to the same print job, further Sending a print stop instruction to the printer ;
Print data transmission device.
グラフィックユーザインタフェース画面を有し、前記緊急停止ボタンが、前記グラフィックユーザインタフェース画面のデスクトップ上又はアプリケーションウィンドウ上に表示される請求項1記載の印刷データ送信装置。The print data transmission apparatus according to claim 1, further comprising a graphic user interface screen, wherein the emergency stop button is displayed on a desktop or an application window of the graphic user interface screen. 一連の印刷コマンドからなる印刷データをプリンタに送信することができるコンピュータにおいて、
印刷キューを有し、印刷キュー内の印刷データを先頭から送出する印刷スプーラと、
前記印刷スプーラから送出された前記印刷データを受け取り、受け取った印刷データの印刷コマンドを順次に送出する送信制御部と、
前記送信制御部から送出された印刷コマンドを前記プリンタへ送信するポートと、
グラフィックユーザインタフェース画面上に緊急停止ボタンを表示し、ユーザによる前記緊急停止ボタンの操作に応答して緊急停止命令を前記送信制御部に与える緊急停止操作部と、
を備え、
前記送信制御部は、前記印刷コマンドを送信している途中で前記緊急停止命令を受けると、前記印刷コマンドの送信を中止し、かつ、前記印刷スプーラから既に受け取った及び将来受け取る同一印刷ジョブにかかる未送信の印刷コマンドを破棄し、さらに印刷中止命令を前記プリンタに送る
コンピュータ。
In a computer capable of sending print data comprising a series of print commands to a printer,
A print spooler having a print queue and sending print data in the print queue from the top;
A transmission control unit that receives the print data sent from the print spooler and sequentially sends print commands of the received print data;
A port for transmitting a print command sent from the transmission control unit to the printer;
An emergency stop operation unit that displays an emergency stop button on a graphic user interface screen and gives an emergency stop command to the transmission control unit in response to an operation of the emergency stop button by a user;
With
When the transmission control unit receives the emergency stop command in the middle of transmitting the print command, the transmission control unit stops the transmission of the print command and applies to the same print job that has already been received from the print spooler and is received in the future. Discards unsent print commands and sends a print abort command to the printer ;
Computer.
前記緊急停止ボタンが、前記グラフィックユーザインタフェース画面のデスクトップ上又はアプリケーションウィンドウ上に表示される請求項記載のコンピュータ。The computer according to claim 3 , wherein the emergency stop button is displayed on a desktop or an application window of the graphic user interface screen. 一連の印刷コマンドからなる印刷データをプリンタへ送る方法において、
前記印刷データの印刷コマンドを順次に前記プリンタへ送信するステップと、
緊急停止ボタンをユーザに提供するステップと、
前記印刷コマンドを送信している途中でユーザが前記緊急停止ボタンを操作すると、前記印刷コマンドの送信を中止し、かつ、同一印刷ジョブにかかる未送信の印刷コマンドを破棄し、さらに印刷中止命令を前記プリンタに送るステップと、
を有する印刷データ送信方法。
In a method for sending print data comprising a series of print commands to a printer,
Sequentially sending a print command of the print data to the printer;
Providing an emergency stop button to the user;
If the user operates the emergency stop button during the transmission of the print command, the transmission of the print command is canceled , the unsent print command for the same print job is discarded , and a print stop command is issued. Sending to the printer ;
A print data transmission method.
一連の印刷コマンドからなる印刷データをプリンタへ送る方法であって、
前記印刷データの印刷コマンドを順次に前記プリンタへ送信するステップと、
緊急停止ボタンをユーザに提供するステップと、
前記印刷コマンドを送信している途中でユーザが前記緊急停止ボタンを操作すると、前記印刷コマンドの送信を中止し、かつ、同一印刷ジョブにかかる未送信の印刷コマンドを破棄し、さらに印刷中止命令を前記プリンタに送るステップと、
を有する印刷データ送信方法を、
コンピュータに実行させるためのプログラムを担持したコンピュータ読み取り可能な記録媒体。
A method of sending print data comprising a series of print commands to a printer,
Sequentially sending a print command of the print data to the printer;
Providing an emergency stop button to the user;
If the user operates the emergency stop button during the transmission of the print command, the transmission of the print command is canceled , the unsent print command for the same print job is discarded , and a print stop command is issued. Sending to the printer ;
A print data transmission method having
A computer-readable recording medium carrying a program to be executed by a computer.
プリンタと、一連の印刷コマンドからなる印刷データを前記プリンタへ送る印刷データ送信装置とを備え、
前記印刷データ送信装置は、
前記印刷データの印刷コマンドを順次に前記プリンタへ送信する送信制御部と、
緊急停止ボタンをユーザに提供し、ユーザによる前記緊急停止ボタンの操作に応答して緊急停止命令を前記送信制御部に与える緊急停止操作部と、
を有し、
前記送信制御部は、前記印刷コマンドを送信している途中で前記緊急停止命令を受けると、前記印刷コマンドの送信を中止し、同一印刷ジョブにかかる未送信の印刷コマンドを破棄し、かつ、印刷中止命令を前記プリンタに送り、
前記プリンタは、前記印刷中止命令を受けると、印刷データの処理を中止し、前記プリンタ内の同一印刷ジョブにかかる未処理の印刷データ及び処理途中で生成された中間的データを破棄する印刷システム。
A printer and a print data transmission device for sending print data comprising a series of print commands to the printer;
The print data transmission device includes:
A transmission control unit for sequentially transmitting print commands of the print data to the printer;
An emergency stop operation unit that provides an emergency stop button to the user and gives an emergency stop command to the transmission control unit in response to an operation of the emergency stop button by the user;
Have
When the transmission control unit receives the emergency stop command while transmitting the print command, the transmission control unit stops transmission of the print command, discards an untransmitted print command related to the same print job, and prints Send a stop command to the printer,
When the printer receives the print cancel instruction, the printer stops processing the print data, and discards unprocessed print data and intermediate data generated during the processing for the same print job in the printer.
プリンタと、一連の印刷コマンドからなる印刷データを前記プリンタに送信することができるコンピュータとを備え、
前記コンピュータは、
印刷キューをもち、印刷キュー内の印刷データを先頭から送出する印刷スプーラと、
前記印刷スプーラから送出された前記印刷データを受け取り、受け取った印刷データの印刷コマンドを順次に送出する送信制御部と、
前記送信制御部から送出された印刷コマンドを前記プリンタへ送信するポートと、
グラフィックユーザインタフェース画面上に緊急停止ボタンを表示し、ユーザによる前記緊急停止ボタンの操作に応答して緊急停止命令を前記送信制御部に与える緊急停止操作部と、
を有し、
前記送信制御部は、前記印刷コマンドを送信している途中で前記緊急停止命令を受けると、前記印刷コマンドの送信を中止し、前記印刷スプーラから既に受け取った及び将来受け取る同一印刷ジョブにかかる未送信の印刷コマンドを破棄し、かつ、印刷中止命令を前記プリンタに送り、
前記プリンタは、前記印刷中止命令を受けると、印刷データの処理を中止し、前記プリンタ内の同一印刷ジョブにかかる未処理の印刷データ及び処理途中で生じた中間的なデータを破棄する印刷システム。
A printer and a computer capable of transmitting print data comprising a series of print commands to the printer;
The computer
A print spooler that has a print queue and sends print data in the print queue from the beginning,
A transmission control unit that receives the print data sent from the print spooler and sequentially sends print commands of the received print data;
A port for transmitting a print command sent from the transmission control unit to the printer;
An emergency stop operation unit that displays an emergency stop button on a graphic user interface screen and gives an emergency stop command to the transmission control unit in response to an operation of the emergency stop button by a user;
Have
When the transmission control unit receives the emergency stop command in the middle of transmitting the print command, the transmission control unit stops the transmission of the print command, and has not yet transmitted the same print job that has been received from the print spooler and received in the future. The print command is discarded, and a print stop command is sent to the printer,
When the printer receives the print cancel instruction, the printer stops processing the print data and discards unprocessed print data and intermediate data generated during the processing for the same print job in the printer.
JP25083398A 1998-09-04 1998-09-04 Print data transmitting apparatus and printing system Expired - Fee Related JP3620633B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25083398A JP3620633B2 (en) 1998-09-04 1998-09-04 Print data transmitting apparatus and printing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25083398A JP3620633B2 (en) 1998-09-04 1998-09-04 Print data transmitting apparatus and printing system

Publications (2)

Publication Number Publication Date
JP2000081957A JP2000081957A (en) 2000-03-21
JP3620633B2 true JP3620633B2 (en) 2005-02-16

Family

ID=17213707

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25083398A Expired - Fee Related JP3620633B2 (en) 1998-09-04 1998-09-04 Print data transmitting apparatus and printing system

Country Status (1)

Country Link
JP (1) JP3620633B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4748246B2 (en) * 2009-04-22 2011-08-17 ブラザー工業株式会社 Program and computer

Also Published As

Publication number Publication date
JP2000081957A (en) 2000-03-21

Similar Documents

Publication Publication Date Title
JP3405159B2 (en) Printing equipment
US20080170259A1 (en) Printing system and job processing method
US20070013963A1 (en) Image processing apparatus
US20030053109A1 (en) Recalling cancelled print jobs
US8922810B2 (en) Information processing apparatus and method for displaying status information of a job present in a print queue
JP3624175B2 (en) Information processing apparatus and method
JPH1195941A (en) Printer system, printer unit and computer device for the same
US8982404B2 (en) Information processing apparatus, recording medium, and control method to display management information for managing a job
JP2007283664A (en) Printer, print system, and printer control method
JP7175693B2 (en) PRINTING DEVICE, PRINTING DEVICE CONTROL METHOD, AND PROGRAM
JP5828619B2 (en) Image forming system
JPH09311770A (en) Information processor, and printer, and its print control method
JP3620633B2 (en) Print data transmitting apparatus and printing system
JP2000132347A (en) Printing method, printer executing the same and storage medium
JP3780762B2 (en) PRINT SYSTEM, COMPUTER-READABLE RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM, CLIENT DEVICE, AND PRINT CONTROL DEVICE
JP3228326B2 (en) Printer device
JP6494395B2 (en) Information processing apparatus, information processing apparatus control method, and program
JP6639617B2 (en) Printing apparatus, control method, and program
US20110038001A1 (en) Printing control method, a computer readable storage medium storing instructions of a computer program thereof, and an image formation device
JPH11138918A (en) Image forming system
JP2001080142A (en) Printing apparatus, printing system, printing control method and data recording medium having printing control program recorded thereon
JP4400097B2 (en) Printing apparatus, printing control method, program, and recording medium
JP6833967B2 (en) Image forming device, image forming method and program
JP2006209708A (en) Printer driver
JP3284457B2 (en) Printer

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040610

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: 20041028

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041110

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081126

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091126

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091126

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101126

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101126

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111126

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111126

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121126

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121126

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131126

Year of fee payment: 9

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees