JP2000168198A - Printing system, control method thereof and recording medium readable by computer storing control program of printing system - Google Patents

Printing system, control method thereof and recording medium readable by computer storing control program of printing system

Info

Publication number
JP2000168198A
JP2000168198A JP10343677A JP34367798A JP2000168198A JP 2000168198 A JP2000168198 A JP 2000168198A JP 10343677 A JP10343677 A JP 10343677A JP 34367798 A JP34367798 A JP 34367798A JP 2000168198 A JP2000168198 A JP 2000168198A
Authority
JP
Japan
Prior art keywords
printer
data size
print data
stored
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.)
Granted
Application number
JP10343677A
Other languages
Japanese (ja)
Other versions
JP3780109B2 (en
Inventor
Yoshinobu Kuroi
慶信 黒井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP34367798A priority Critical patent/JP3780109B2/en
Publication of JP2000168198A publication Critical patent/JP2000168198A/en
Application granted granted Critical
Publication of JP3780109B2 publication Critical patent/JP3780109B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To certainly utilize the job spool function of a printer in the printing output of a plurality of sheets by reducing the data transmission load between a printer and a host computer. SOLUTION: In a host computer, a printer obtains the max. data size of printing data capable of being temporarily stored in a spool memory means (S505) and the total data size of the printing data formed by a printer driver and stored in a temporary file is compared with the obtained max. memory data size (S506) and the max. memory data size of the printer is reset when it is judged that the total data size of the printing data stored in the temporary file is larger than the obtained max. memory data size (S509) and, subsequently, the printing data stored in the temporary memory means is outputted to the printer to perform printing by the designated number of times by utilizing job spool function (S510).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、印刷データを生成
する印刷データ生成プログラムを動作させるホストコン
ピュータと、受信データをスプール記憶手段へ一時的に
記憶し、指定された回数分印刷データを受信したかのよ
うに印刷を実行するジョブスプール機能を有するプリン
タからなる印刷システム、印刷システムの制御方法、印
刷システムの制御プログラムを格納したコンピュータ読
取可能な記憶媒体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a host computer which runs a print data generating program for generating print data, temporarily stores received data in a spool storage means, and receives print data a specified number of times. The present invention relates to a printing system including a printer having a job spool function for executing printing, a control method of the printing system, and a computer-readable storage medium storing a control program of the printing system.

【0002】[0002]

【従来の技術】従来より、印刷装置において、複数ペー
ジから成る印刷物を複数部数印刷させるための構成が種
々知られている。
2. Description of the Related Art Conventionally, various configurations for printing a plurality of copies of a printed material including a plurality of pages in a printing apparatus are known.

【0003】たとえば、ホストコンピュータから複数ペ
ージを構成する印刷データを複数回繰り返してプリンタ
へ送信すれば、プリンタ排紙部へ出力用紙を送信回数分
に丁合いしながら積載していく事(以下「丁合い出力」
という)が可能となり、ユーザはページを揃え直(丁合
い)す必要なく、1部ぶんのページを綴じる(ステープ
ラなどの排紙機構があればこれも必要なくなる)だけ
で、複数ページから成る複数部の印刷物を得られる。
For example, if print data constituting a plurality of pages is repeatedly transmitted from a host computer to a printer a plurality of times, output papers are stacked on a printer paper discharge unit in accordance with the number of times of transmission (hereinafter, referred to as “print paper”). Collate output ''
The user does not need to re-align (collate) the pages, but only binds one copy of the page (there is no need for this if there is a paper discharge mechanism such as a stapler). Copies are obtained.

【0004】しかし、上記のように複数ページを構成す
る印刷データを複数回繰り返してプリンタへ送信する処
理によると、ホストコンピュータとプリンタ間でのデー
タ通信負荷が送信回数に比例して大きくなってしまう問
題がある。
However, according to the above-described process of repeatedly transmitting print data constituting a plurality of pages to a printer a plurality of times, the data communication load between the host computer and the printer increases in proportion to the number of transmissions. There's a problem.

【0005】この点に鑑み、近年のプリンタには、受信
データを特定の記憶手段へ一時的に記憶しておき、指定
された回数分データを繰り返し受信したかのように実行
できる蓄積印刷機能(以下「ジョブスプール機能」とい
う)を持つものがある。このジョブスプール機能による
と、おおよそ1回(1部)ぶんの印刷データをプリンタ
へ送信するだけの通信負荷で前記のような丁合い出力を
実現することができる。
[0005] In view of this point, recent printers have a storage printing function (hereinafter referred to as a storage printing function) that can temporarily store received data in a specific storage means and execute the data as if the data was repeatedly received a specified number of times. Some have a “job spool function” below. According to the job spool function, the collation output as described above can be realized with a communication load of transmitting print data about once (one copy) to the printer.

【0006】このようなプリンタのジョブスプール機能
を用いて丁合い出力を行う場合には、ホストコンピュー
タ上で動作する従来のプリンタドライバは、通常生成す
るプリンタ制御コマンド群に加えて、プリンタが一時的
に記憶した受信データを何回繰り返して処理するかを指
定するプリンタ制御コマンドを付加し、プリンタに送信
する。
When collated output is performed using the job spool function of such a printer, a conventional printer driver operating on a host computer requires a temporary printer in addition to a printer control command group normally generated. A printer control command for specifying how many times the received data stored in the printer is to be processed is added and transmitted to the printer.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記の
ようにプリンタのジョブスプール機能を利用して、プリ
ンタに1部ぶんのデータをあらかじめ送信し、指定回数
(部数)だけ印刷させる方式では、次のような問題があ
る。
However, as described above, the method of transmitting one copy of data to the printer in advance and using the job spool function of the printer to print the specified number of copies (the number of copies) is as follows. There is such a problem.

【0008】すなわち、プリンタドライバが生成するプ
リンタ制御コマンドの総データサイズはコマンド生成処
理の終了時まで分からないため、前記プリンタで一次的
に記憶可能である最大データサイズをプリンタ制御コマ
ンドの総データサイズが超えてしまう可能性があった。
従って、従来構成によると、プリンタのジョブスプール
機能を用いた丁合い出力は、常に成功する、という保証
がなかった。
That is, since the total data size of the printer control command generated by the printer driver is not known until the end of the command generation processing, the maximum data size that can be temporarily stored in the printer is determined by the total data size of the printer control command. Could be exceeded.
Therefore, according to the conventional configuration, there is no guarantee that collation output using the job spool function of the printer will always succeed.

【0009】また、上記の問題を解決するために、単に
ホストコンピュータ上で動作するプリンタドライバが指
定された回数だけプリンタ制御コマンドを常に繰り返し
て出力する旧来の方法を用いれば、プリンタ制御コマン
ドの総データサイズや指定回数に比例してホストコンピ
ュータとプリンタ間の通信負荷が大きく増加してしまう
問題が生じるのは前述の通りである。
In order to solve the above-mentioned problem, if a conventional method in which a printer driver operating on a host computer simply repeatedly outputs a printer control command a specified number of times is used, the total number of printer control commands can be reduced. As described above, the problem that the communication load between the host computer and the printer increases greatly in proportion to the data size and the designated number of times.

【0010】このようなプリンタ〜ホストコンピュータ
の間のデータ通信負荷の増大により、システム環境や条
件によっては、システム全体のパフォーマンス劣化を生
じる恐れもある。特に、複数のホストコンピュータ、プ
リンタがネットワーク接続され、相互にネットワーク共
有している資源が多ければ多いほどこのような問題は生
じやすくなる。
Due to such an increase in the data communication load between the printer and the host computer, the performance of the entire system may be deteriorated depending on the system environment and conditions. In particular, such a problem is more likely to occur as a plurality of host computers and printers are connected to a network and the more resources are shared by the network.

【0011】本発明の課題は上記の問題を解決し、プリ
ンタ〜ホストコンピュータの間のデータ通信負荷を低減
し、しかも、丁合い出力のような複数部数の印刷出力に
おいてプリンタのジョブスプール機能を確実に利用でき
るように保証できるようにすることにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above problems, reduce the data communication load between a printer and a host computer, and ensure the job spool function of a printer in print output of a plurality of copies such as collated output. To ensure that it is available for use.

【0012】[0012]

【課題を解決するための手段】上記の課題を解決するた
めに、本発明においては、印刷データを生成する印刷デ
ータ生成プログラムを動作させるホストコンピュータ
と、受信データをスプール記憶手段へ一時的に記憶し、
指定された回数分印刷データを受信したかのように印刷
を実行するジョブスプール機能を有するプリンタからな
る印刷システム、印刷システムの制御方法、印刷システ
ムの制御プログラムを格納したコンピュータ読取可能な
記憶媒体において、前記ホストコンピュータにおいて、
プリンタが前記スプール記憶手段に一時的に記憶できる
印刷データの最大データサイズを取得し、前記印刷デー
タ生成プログラムが生成しホストコンピュータの一時記
憶手段に記憶された印刷データの総データサイズと、前
記取得した最大記憶データサイズを比較し、前記比較に
より、前記一時記憶手段に記憶された印刷データの総デ
ータサイズの方が前記取得した最大記憶データサイズよ
りも大きいと判定された場合、プリンタの最大記憶デー
タサイズを再設定した後、前記一時記憶手段に記憶して
おいた印刷データをプリンタヘ出力し、前記ジョブスプ
ール機能を利用して指定回数だけ印刷させる構成を採用
した。
In order to solve the above-mentioned problems, according to the present invention, a host computer which operates a print data generating program for generating print data, and temporarily stores received data in a spool storage means. And
A print system including a printer having a job spool function for executing printing as if print data has been received a specified number of times, a print system control method, and a computer-readable storage medium storing a print system control program , In the host computer,
The printer acquires the maximum data size of the print data that can be temporarily stored in the spool storage unit, the total data size of the print data generated by the print data generation program and stored in the temporary storage unit of the host computer, and Comparing the maximum storage data size with the maximum storage data size, and if the comparison indicates that the total data size of the print data stored in the temporary storage means is larger than the acquired maximum storage data size, After the data size is reset, the print data stored in the temporary storage unit is output to a printer, and the print data is printed a specified number of times using the job spool function.

【0013】あるいはさらに、前記一時記憶手段に一時
記憶した印刷データの総データサイズが、前記プリンタ
の最大記憶データサイズを再設定しても前記取得した最
大記憶データサイズを超えてしまう場合、前記一時記憶
手段に記憶しておいた前記印刷データを前記指定回数だ
けプリンタへ出力させる構成を採用した。
Alternatively, if the total data size of the print data temporarily stored in the temporary storage means exceeds the acquired maximum storage data size even if the maximum storage data size of the printer is reset, A configuration is employed in which the print data stored in the storage means is output to the printer the specified number of times.

【0014】あるいはさらに、前記比較により、前記一
時記憶手段に一時記憶した印刷データの総データサイズ
が、前記取得した最大記憶データサイズよりも大きいと
判定された場合、プリンタの最大記憶データサイズを再
設定した後、前記一時記憶手段により記憶しておいた印
刷データをプリンタヘ出力し、前記ジョブスプール機能
を利用して指定回数だけ印刷させる第1の出力処理と、
前記一時記憶手段に記憶しておいた前記印刷データを前
記指定回数だけプリンタへ出力させる第2の出力処理の
うち、いずれの処理が高速に処理できるかを判定し、そ
の判定結果に応じて前記第1ないし第2のいずれかの出
力処理を選択して実行する構成を採用した。
[0014] Alternatively, if it is determined by the comparison that the total data size of the print data temporarily stored in the temporary storage means is larger than the acquired maximum storage data size, the maximum storage data size of the printer is reset. After the setting, a first output process of outputting the print data stored in the temporary storage unit to a printer and printing the designated number of times using the job spool function;
Among the second output processing for outputting the print data stored in the temporary storage means to the printer the specified number of times, it is determined which processing can be performed at a high speed, and according to the determination result, A configuration is adopted in which any one of the first and second output processes is selected and executed.

【0015】[0015]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態を詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0016】[第1実施形態]図1は本発明を採用した
印刷システムの全体構成を示している。ここでは、便宜
上ホストコンピュータ3000とプリンタ1500から
成るシステムを示しているが、この2つが一体化された
単体の機器から成る印刷システムであってもよい。ま
た、複数の機器からなる印刷システムであっても、その
数には制限はなく、また、LAN、WAN等のネットワ
ークを介して複数のホストコンピュータやプリンタなど
の機器の相互接続が行われる印刷システムであっても本
発明を適用できるのはいうまでもない。
[First Embodiment] FIG. 1 shows the overall configuration of a printing system employing the present invention. Here, a system including the host computer 3000 and the printer 1500 is shown for convenience, but a printing system including a single device in which the two are integrated may be used. Further, even if the printing system includes a plurality of devices, the number thereof is not limited, and a printing system in which devices such as a plurality of host computers and printers are interconnected via a network such as a LAN or a WAN. However, it goes without saying that the present invention can be applied.

【0017】図1において、3000はホストコンピュ
ータで、ROM3のプログラム用ROMに記憶された文
書処理プログラム等に基づいて図形、イメージ、文字、
表(表計算等を含む)等が混在した文書処理を実行する
CPU1を備え、システムバス4に接続される各デバイ
スをCPU1が総括的に制御することにより上記の処理
を行なう。
In FIG. 1, reference numeral 3000 denotes a host computer, which is used to store figures, images, characters, and the like based on a document processing program or the like stored in a program ROM of a ROM 3.
A CPU 1 for executing document processing in which tables (including spreadsheets and the like) are mixed is provided, and the above processing is performed by the CPU 1 totally controlling each device connected to the system bus 4.

【0018】また、図1のROM3のプログラム用RO
Mあるいは外部メモリ11(ハードディスクなどの外部
記憶装置)は、CPU1の制御プログラムであるオペレ
ーティングシステムプログラム(以下OS)等を記憶す
る。ROM3のフォント用ROMあるいは外部メモリ1
1には上記文書処理の際に使用するフォントデータ等を
記憶し、ROM3のデータ用ROMあるいは外部メモリ
11は上記の文書処理等を行う際に使用する各種データ
(例えば、ディレクトリ情報、プリンタドライバテーブ
ル等)を記憶する。
The program RO in the ROM 3 shown in FIG.
The M or the external memory 11 (an external storage device such as a hard disk) stores an operating system program (hereinafter referred to as an OS), which is a control program of the CPU 1, and the like. ROM3 font ROM or external memory 1
Reference numeral 1 stores font data and the like used in the above-described document processing. The data ROM of the ROM 3 or the external memory 11 stores various data (eg, directory information, printer driver table) used in the above-described document processing and the like. Etc.) are stored.

【0019】ホストコンピュータ3000の制御の主体
は、ハードウェア上はCPUである。一方、ソフトウェ
ア上は制御の主体はプリンタ制御コマンド生成プログラ
ム(以下プリンタドライバ)というアプリケーションソ
フトウェアである。本実施形態では、OSは例えば、ウ
ィンドウズ95(マイクロソフト社製)を想定している
が、これに限るものではない。
The subject of control of the host computer 3000 is a CPU on hardware. On the other hand, the software is mainly controlled by application software called a printer control command generation program (hereinafter, printer driver). In the present embodiment, the OS is assumed to be, for example, Windows 95 (manufactured by Microsoft), but is not limited thereto.

【0020】図1において符号2はRAMで、CPU1
の主メモリ、およびワークエリア等として機能する。後
述のように、本実施形態のプリンタ制御においても、こ
のRAM2がワークエリアとして用いられる。
In FIG. 1, reference numeral 2 denotes a RAM, and a CPU 1
Function as a main memory and a work area. As will be described later, this RAM 2 is used as a work area also in the printer control of the present embodiment.

【0021】符号5はキーボードコントローラ(KB
C)で、キーボード9や不図示のポインティングデバイ
スからのキー入力を制御する。6はCRTコントローラ
(CRTC)で、CRTディスプレイ(CRT)10の
表示を制御する。7はディスクコントローラ(DKC)
で、ブートプログラム、各種のアプリケーション、フォ
ントデータ、ユーザファイル、編集ファイル、プリンタ
ドライバ等を記憶するハードディスク(HD)、フロッ
ピーディスク(FD)等の外部メモリ11とのアクセス
を制御する。
Reference numeral 5 denotes a keyboard controller (KB)
In C), key input from the keyboard 9 or a pointing device (not shown) is controlled. Reference numeral 6 denotes a CRT controller (CRTC) which controls display on a CRT display (CRT) 10. 7 is a disk controller (DKC)
Controls access to an external memory 11 such as a hard disk (HD) or a floppy disk (FD) for storing a boot program, various applications, font data, user files, edit files, printer drivers, and the like.

【0022】符号8はプリンタコントローラ(PRT
C)で、所定の双方向性インターフェース21を介して
プリンタ1500に接続されて、プリンタ1500との
通信制御処理を実行する。双方向性インターフェース2
1としては、IEEE1284などが考えられるが、他
のインターフェース、たとえばSCSI、USB、IE
EE1394などのバスやイーサネットなどのネットワ
ークインターフェースによりホストコンピュータ300
0とプリンタ1500が接続されていてもよい。
Reference numeral 8 denotes a printer controller (PRT)
In C), the printer 1500 is connected to the printer 1500 via the predetermined bidirectional interface 21 and executes communication control processing with the printer 1500. Bidirectional interface 2
As 1, IEEE 1284 or the like can be considered, but other interfaces such as SCSI, USB, IE
The host computer 300 is connected to a bus such as EE1394 or a network interface such as Ethernet.
0 and the printer 1500 may be connected.

【0023】なお、CPU1は、例えばRAM2上に設
定された表示情報RAMへのアウトラインフォントの展
開(ラスタライズ)処理を実行し、CRT10上におい
てGUIを用いたWYSIWYG(What You See Is Wh
at You Get)な処理を可能としている。また、CPU1
は、CRT10上の不図示のマウスカーソル等で指示さ
れたコマンドに基づいて登録された種々のウィンドウを
開き、種々のデータ処理を実行する。
The CPU 1 executes, for example, a process of developing (rasterizing) the outline font in the display information RAM set on the RAM 2, and executes a WYSIWYG (What You See Is Wh) using a GUI on the CRT 10.
at You Get) processing. CPU1
Opens various registered windows based on a command designated by a mouse cursor or the like (not shown) on the CRT 10 and executes various data processing.

【0024】プリンタ1500において、12はプリン
タCPUで、ROM13のプログラム用ROMに記憶さ
れた制御プログラム等あるいは外部メモリ14に記憶さ
れた制御プログラム等に基づいてシステムバス15に接
続される印刷部(プリンタエンジン)17に出力情報と
しての画像信号を出力する。
In the printer 1500, a printer CPU 12 is a printing unit (printer) connected to a system bus 15 based on a control program or the like stored in a program ROM of a ROM 13 or a control program or the like stored in an external memory 14. (Engine) 17 outputs an image signal as output information.

【0025】また、このROM13のプログラムROM
には、CPU12の制御プログラム等を記憶する。RO
M13のフォント用ROMには上記出力情報を生成する
際に使用するフォントデータ等を記憶し、ROM13の
データ用ROMにはハードディスク等の外部メモリ14
がないプリンタの場合には、ホストコンピュータ上で利
用される情報等を記憶している。
The program ROM of the ROM 13
Stores a control program of the CPU 12 and the like. RO
An M13 font ROM stores font data and the like used when generating the output information, and a ROM 13 data ROM stores an external memory 14 such as a hard disk.
In the case of a printer having no printer, information used on the host computer is stored.

【0026】CPU12は入力部18を介してホストコ
ンピュータとの通信処理が可能となっており、プリンタ
内の情報等をホストコンピュータ3000に通知できる
ように構成されている。
The CPU 12 is capable of communicating with the host computer via the input section 18 and is configured to notify the host computer 3000 of information in the printer and the like.

【0027】符号19はCPU12の主メモリ、ワーク
エリア等として機能するRAMで、このRAM19は、
ビットマップ情報の展開処理に用いられる領域、環境デ
ータ格納領域、バッテリバックアップされたNVRAM
領域などとして割り当てられている。RAM19は不図
示の増設ポートに接続されるオプションRAMによりメ
モリ容量を拡張することができるように構成されてい
る。
Reference numeral 19 denotes a RAM functioning as a main memory, a work area, and the like of the CPU 12, and the RAM 19
Area used for bitmap information expansion processing, environment data storage area, battery backed up NVRAM
It is allocated as an area. The RAM 19 is configured so that the memory capacity can be expanded by an optional RAM connected to an additional port (not shown).

【0028】外部メモリ14は、オプションとして接続
され、フォントデータ、エミュレーションプログラム、
フォームデータ等を記憶する。また、1501は操作パ
ネルで、この操作パネル1501上にはスイッチ、LE
D、LCDなどの表示器、その他の部品が配置されてい
る。
The external memory 14 is connected as an option and includes font data, an emulation program,
Stores form data and the like. Reference numeral 1501 denotes an operation panel on which a switch, an LE, and the like are provided.
D, a display such as an LCD, and other components are arranged.

【0029】前述の外部メモリ14は1個に限らず、少
なくとも1個以上備え、内蔵フォントに加えてオプショ
ンフォントカード、言語系の異なるプリンタ制御言語を
解釈するプログラムを格納した外部メモリを複数接続で
きるように構成されていてもよい。さらに、図示しない
NVRAMを有し、操作パネル1501からのプリンタ
モード設定情報を記憶するようにしてもよい。
The above-mentioned external memory 14 is not limited to one, and at least one external memory is provided. In addition to built-in fonts, an optional font card and a plurality of external memories storing programs for interpreting printer control languages of different languages can be connected. It may be configured as follows. Further, an NVRAM (not shown) may be provided to store printer mode setting information from the operation panel 1501.

【0030】前述のハードディスク、ICカード等の外
部メモリ14は、ディスクコントローラ(DKC)20
によりアクセスを制御される。
The external memory 14 such as a hard disk or an IC card is provided with a disk controller (DKC) 20.
The access is controlled by.

【0031】本実施形態においては、上記のRAM19
は、特定のプリンタ制御コマンドを受け付けた場合、そ
れ以降に受信したデータを直ちに処理せずに一時的に記
憶し、同データを指定された回数だけ連続的に受信した
かのように処理できる機能(以下ジョブスプール機能と
いう)のジョブスプール記憶領域として用いられる。こ
のジョブスプール記憶領域として割り当て(確保)可能
な最大サイズは後述のプリンタ制御コマンドを用いて、
設定することができる。このジョブスプール記憶領域の
確保は、前記のオプションRAM増設によるメモリ容量
拡張とは別に後述のようにソフトウェア的に行なわれる
ものである。
In the present embodiment, the RAM 19
Is a function that, when a specific printer control command is received, temporarily stores the data received thereafter without immediately processing it, and can process the data as if it were received continuously for the specified number of times. (Hereinafter referred to as a job spool function). The maximum size that can be allocated (secured) as the job spool storage area is determined by using a printer control command described later.
Can be set. This job spool storage area is secured by software, as described later, separately from the memory capacity expansion by adding the optional RAM.

【0032】さて、本実施形態のプリンタ1500は、
特定のプリンタ制御コマンドを受け付けた場合、それ以
降に受信したデータを直ちに処理せず、RAM19へ一
時的に記憶し、同データを指定された回数だけ連続的に
受信したかのように処理できる機能(ジョブスプール機
能)を有する。前記機能を指定するプリンタ制御コマン
ドのフォーマットを以下に示す。
Now, the printer 1500 of this embodiment is
When a specific printer control command is received, data received thereafter is not immediately processed, but is temporarily stored in the RAM 19, and the data can be processed as if it was continuously received a specified number of times. (Job spool function). The format of the printer control command for specifying the function is shown below.

【0033】 @PJL JOBSPOOL COPIES=num ENDSTRING="word"<CR><LF> …(1) num 一時記憶したデータを何度連続処理するかを示す
数値 word 印刷データの終了を指示するための文字列 <CR> キャリッジリターンキャラクタ <LF> ラインフィードキャラクタ ここで、「@PJL」は、プリンタ制御コマンドの開始を、
また、「JOBSPOOL」はコマンドの種別を示すニーモニッ
クであり、プリンタ1500が上記の「@PJL」で始まる
コマンドを受信すると、同コマンド直後のデータから
「word」で指定された文字列の直前までのデータをRA
M19へ保存する。そして保存終了後に、プリンタ15
00はRAM19に保存されたデータを上記コマンドの
「num」で指定された回数だけあたかも受信したように
連続処理する。
@PJL JOBSPOOL COPIES = num ENDSTRING = "word"<CR><LF>… (1) num Numeric value indicating how many times the temporarily stored data is to be continuously processed. Word Character to indicate the end of print data. Column <CR> Carriage return character <LF> Line feed character Here, "@PJL" indicates the start of the printer control command.
“JOBSPOOL” is a mnemonic indicating the type of command. When the printer 1500 receives a command starting with “@PJL”, the data from immediately after the command to immediately before the character string specified by “word” is received. RA data
Save to M19. Then, after saving, the printer 15
00 successively processes the data stored in the RAM 19 as if it were received the number of times specified by "num" of the command.

【0034】このようなジョブスプール機能を用いる事
により、プリンタ排紙部へ出力用紙を「word」で指定さ
れた回数分に丁合いしながら積載していく(以下丁合い
出力)ことが可能となる。
By using such a job spooling function, it is possible to stack output papers into the printer discharge unit while collating them for the number of times specified by "word" (hereinafter collective output). Become.

【0035】ここで、上記のジョブスプール機能におい
て、プリンタ1500に一時記憶可能な受信データサイ
ズはRAM19のハードウェア容量や他の処理との兼ね
あいにより、予めプリンタに設定されている最大容量以
下に制限される。この最大確保容量を変更する場合は、
操作パネル1501を用いて所定の方法で設定変更を行
うか、同様の効果を持つ以下に示すプリンタ制御コマン
ドをプリンタ1500へ送信し、プリンタ再起動を行う
かハードウェア設定を更新するためのプリンタ制御コマ
ンド(以下ハードウェアリセット命令)をプリンタ15
00へ送信するものとする。
Here, in the above job spool function, the received data size that can be temporarily stored in the printer 1500 is smaller than the maximum capacity preset in the printer due to the hardware capacity of the RAM 19 and other processes. Limited. If you want to change this maximum reserve,
A setting change is performed by a predetermined method using the operation panel 1501 or the following printer control command having the same effect is transmitted to the printer 1500, and the printer control for restarting the printer or updating the hardware setting is performed. Command (hereinafter a hardware reset command)
00 is transmitted.

【0036】 @PJL SET SPOOL-SIZE=x <CR><LF> …(2) x 一時記憶可能なデータサイズを示す数値(Mega-By
te単位) <CR> キャリッジリターンキャラクタ <LF> ラインフィードキャラクタ ここで、「@PJL」は、プリンタ制御コマンドの開始を、
また、「SET」はコマンドの種別を示すニーモニックで
あり、その後の「SPOOL-SIZE=x」の部分とともにジョブ
スプール機能においてプリンタ1500に保存可能な受
信データサイズを設定するためのものである。
@PJL SET SPOOL-SIZE = x <CR><LF> (2) x Numerical value indicating data size that can be temporarily stored (Mega-By
te unit) <CR> Carriage return character <LF> Line feed character Here, “@PJL” indicates the start of the printer control command.
“SET” is a mnemonic indicating the type of command, and is used to set the received data size that can be stored in the printer 1500 in the job spool function together with the subsequent “SPOOL-SIZE = x” part.

【0037】なお、上記のプリンタ制御コマンドにより
確保されるジョブスプール記憶領域の確保容量の最大値
は、RAM19のハードウェア的な最大容量、他の用途
のための記憶領域との兼ねあいによりおのずと制限があ
る。ホストコンピュータ3000から要求されたジョブ
スプール記憶領域の容量を確保できれば、プリンタ15
00は所定の肯定レスポンスを、また確保できなけれ
ば、確保不可能である旨のレスポンスをホストコンピュ
ータ3000に返すものとする。
The maximum value of the reserved capacity of the job spool storage area secured by the above-described printer control command is naturally limited by the hardware maximum capacity of the RAM 19 and the storage area for other uses. There is. If the capacity of the job spool storage area requested from the host computer 3000 can be secured, the printer 15
00 returns a predetermined affirmative response to the host computer 3000 if it cannot be secured.

【0038】また、プリンタ1500に設定されている
前記容量サイズは、ホストコンピュータ3000から特
定のプリンタ制御コマンドによる情報取得請求があった
場合に、ホストコンピュータ3000へ通知できるもの
とする。
The capacity size set in the printer 1500 can be notified to the host computer 3000 when the host computer 3000 requests information acquisition by a specific printer control command.

【0039】なお、本実施形態で示すプリンタ1500
は、上記プリンタ制御コマンド(1)を受け付けた場合
に、受信データをRAM19へ記憶すると限定している
が、プリンタ1500に内蔵されている外部メモリ11
などの任意の記憶手段へ記憶しても良いし、これらを組
み合わせて記憶手段として活用しても良い。たとえば、
RAM19上で要求されたジョブスプール記憶領域の容
量を確保できなければ、自動的に外部メモリ11の空き
を調べ、そのうちの妥当な量をジョブスプール記憶領域
として確保し、ホストコンピュータ3000の要求を満
足させる構成も考えられる。
Note that the printer 1500 shown in this embodiment
Is limited to storing the received data in the RAM 19 when the printer control command (1) is received.
May be stored in any storage means, or a combination of these may be used as storage means. For example,
If the required capacity of the job spool storage area on the RAM 19 cannot be secured, the free space of the external memory 11 is automatically checked, a proper amount of the space is secured as the job spool storage area, and the requirements of the host computer 3000 are satisfied. It is also possible to adopt a configuration for causing the above.

【0040】ホストコンピュータ3000において、B
IOS、OS、アプリケーション、及び本発明による情
報処理方法が適用されたプリンタドライバが、CPU1
により動作する。BIOSはプログラムROM3に書き
込まれており、OSは外部メモリ11であるハードディ
スクに書き込まれている。そして、ホストコンピュータ
3000の電源がONされた時に、BIOSプログラム
中のIPL(InitialProgram Loading)機能により、O
Sの実行コードイメージがハードディスクからRAM2
へ読み込まれ、該OSの動作が開始する。
In the host computer 3000, B
The printer driver to which the information processing method according to the present invention is applied is a CPU
It works by. The BIOS is written in the program ROM 3, and the OS is written in the hard disk which is the external memory 11. When the power of the host computer 3000 is turned on, the IPL (Initial Program Loading) function in the BIOS program causes
The execution code image of S is transferred from hard disk to RAM2
And the operation of the OS starts.

【0041】そして、実際にプリンタドライバが動作可
能となるのは、ユーザ等の指示により、前記ホストコン
ピュータ3000上でOS管理のもとに動作するアプリ
ケーションが印刷処理を開始した場合で、プリンタドラ
イバを記憶している外部メモリ11等の媒体から、OS
及びBIOSの制御のもとに、プリンタドライバが読み
出され、RAM2へロードされた時である。
The printer driver is actually operable when an application operating under the OS management on the host computer 3000 starts a printing process according to an instruction from a user or the like. From the stored medium such as the external memory 11, the OS
And when the printer driver is read out and loaded into the RAM 2 under the control of the BIOS.

【0042】ここで、本実施形態のプリンタドライバ
は、狭義のドライバ、つまりプリンタポートを駆動する
ためだけのドライバソフトウェアではなく、後述のプリ
ンタのジョブスプール機能の設定、上記のプリンタ制御
コマンドの生成などを含む本発明の処理を行なうもので
あり、RAM2へロードされるまでは、その任意の部分
はホストコンピュータ上の任意の記憶媒体の任意の記憶
位置に記憶されるものであってよい。
Here, the printer driver of the present embodiment is not a driver in a narrow sense, that is, driver software only for driving a printer port, but setting of a job spool function of a printer described later, generation of the above-described printer control command, etc. And any part thereof may be stored in any storage location of any storage medium on the host computer before being loaded into the RAM 2.

【0043】以下では、プリンタドライバに本発明の処
理が実装される場合の例を示すが、本発明の特徴的な処
理の全部、あるいは任意の一部はプリンタドライバのみ
ならず、アプリケーションソフトウェアなどの上に実装
されていてもかまわない。
An example in which the processing of the present invention is implemented in a printer driver will be described below. However, all or any part of the characteristic processing of the present invention is performed not only by the printer driver but also by application software. It can be implemented above.

【0044】図2は、本発明を採用したプリンタドライ
バがホストコンピュータ3000上のRAM2へロード
され、実行可能となった状態のメモリマップ21を示し
ている。符号22は印刷を行なうアプリケーションの記
憶領域、23は使用されていない空きメモリ、24はプ
リンタドライバの制御に必要な各種のパラメータを記憶
するデータ領域、25はプリンタドライバ本体の記憶領
域、26はOSの記憶領域、27はBIOSの記憶領域
(この一部はROM上に割り合てられる場合もある)で
ある。図2のメモリ配置はあくまでも一例であり、OS
の仕様や慣習に応じてこれとは異なる配置になっていて
もかまわない。
FIG. 2 shows the memory map 21 in a state where the printer driver adopting the present invention is loaded into the RAM 2 on the host computer 3000 and becomes executable. Reference numeral 22 denotes a storage area for an application for printing, 23 denotes an unused memory, 24 denotes a data area for storing various parameters required for controlling the printer driver, 25 denotes a storage area of the printer driver main body, and 26 denotes an OS. Is a storage area of the BIOS (a part of the storage area may be allocated on the ROM). The memory arrangement of FIG. 2 is merely an example, and the OS
It may be arranged differently depending on the specifications and customs of the system.

【0045】以下、本発明を適用したプリンタドライバ
の処理について詳しく説明する。
Hereinafter, the processing of the printer driver to which the present invention is applied will be described in detail.

【0046】本発明を適用したプリンタドライバがOS
を介したアプリケーションの印刷要求を受け付けてプリ
ンタ制御コマンドを順次生成する際の処理の概略を図3
のフローチャートに示す。また、図4は図3のステップ
303、図5は図3のステップ307の処理内容を示し
たものである。
The printer driver to which the present invention is applied is an OS
FIG. 3 shows an outline of a process for sequentially generating a printer control command in response to a print request of an application via the PC.
Is shown in the flowchart of FIG. FIG. 4 shows the processing contents of step 303 of FIG. 3, and FIG. 5 shows the processing contents of step 307 of FIG.

【0047】図3に示した通り、アプリケーションが印
刷処理を開始してから終了するまでの間、プリンタドラ
イバはOSを介したアプリケーションからの印刷要求を
受け付け続ける(ステップS301)。受け付けた印刷
要求は、まず、印刷開始を意味するものかどうかを判定
され(ステップS302)、もしそうであれば、ステッ
プS303(図4)を処理した後、再びアプリケーショ
ンからの印刷要求を受け付け始める。
As shown in FIG. 3, from the start of the printing process to the end of the printing process, the printer driver continues to receive a print request from the application via the OS (step S301). First, it is determined whether the received print request indicates the start of printing (step S302). If so, step S303 (FIG. 4) is processed, and then a print request from the application is started again. .

【0048】ステップS302で印刷要求が印刷開始を
意味するものではないと判定された後、それが印刷終了
を意味するものであると判定された(ステップS30
4)場合には、ステップS307(図5)へ進み、その
後、プリンタ制御コマンド生成処理を終了する。
After it is determined in step S302 that the print request does not indicate the start of printing, it is determined that the request indicates the end of printing (step S30).
4) In the case, the process proceeds to step S307 (FIG. 5), and thereafter, the printer control command generation process ends.

【0049】ステップS302とステップS304で、
それぞれ、印刷要求が印刷開始または印刷終了を意味す
るものではないと判定された場合には、印刷要求の内容
に応じたプリンタ制御コマンドを生成(ステップS30
5)し、OSが管理するシステムスプーラを介して、同
プリンタ制御コマンドをプリンタ1500へ出力する
(ステップS306)。
In steps S302 and S304,
If it is determined that the print request does not mean print start or print end, a printer control command corresponding to the content of the print request is generated (step S30).
5) Then, the printer control command is output to the printer 1500 via the system spooler managed by the OS (step S306).

【0050】次に、アプリケーションからの印刷要求が
印刷開始を意味するものであった場合のプリンタドライ
バ処理(ステップS303)を図4を用いて詳細に説明
する。
Next, the printer driver process (step S303) when the print request from the application indicates the start of printing will be described in detail with reference to FIG.

【0051】まず、プリンタドライバは印刷開始要求を
受け付けた際に得た追加情報を参照して丁合い出力が指
定されていないかどうかを判定(ステップS401)
し、指定されていないと判定した場合には、アプリケー
ションまたはOSより入力された出力ポート名などを含
む出力先情報をもとに印刷ジョブをオープンする(ステ
ップS405)。
First, the printer driver determines whether collation output has been designated by referring to the additional information obtained when the print start request has been received (step S401).
If it is determined that the print job is not specified, the print job is opened based on the output destination information including the output port name input from the application or the OS (step S405).

【0052】一方、ステップS401において丁合い出
力が指定されていると判定した場合には、アプリケーシ
ョン、またはOSより入力された出力先情報をホストコ
ンピュータ3000のRAM2上へ保存(ステップS4
02)した後、OSが提供するファンクションコールを
利用してテンポラリファイルのフルパス名を生成する
(ステップS403)。また、これと同時に前記のテン
ポラリファイルのフルパス名もRAM2上へ保存する
(ステップS403)。
On the other hand, if it is determined in step S401 that collation output is specified, the output destination information input from the application or the OS is stored in the RAM 2 of the host computer 3000 (step S4).
02), a full path name of a temporary file is generated using a function call provided by the OS (step S403). At the same time, the full path name of the temporary file is also stored in the RAM 2 (step S403).

【0053】次にプリンタドライバは、ステップS40
3で生成したテンポラリファイルのフルパス名でアプリ
ケーションまたはOSより入力された出力先情報を置き
換えて印刷ジョブをオープンする(ステップS40
4)。
Next, the printer driver proceeds to step S40.
3. The print job is opened by replacing the output destination information input from the application or the OS with the full path name of the temporary file generated in step 3 (step S40).
4).

【0054】ちなみに、OSが提供するシステムスプー
ラを用い、テンポラリファイルのフルパス名を出力先と
して指定した印刷ジョブをオープンして、印刷終了時に
印刷ジョブをクローズすれば、結果、指定したフルパス
名が示すファイルに全てのプリンタ制御コマンドを記憶
することが可能となる。これは、印刷ジョブをオープン
した際に取得した識別子(ハンドル)を用いてシステム
スプーラへデータを書き込めば、印刷ジョブのオープン
時に指定した出力先へのデータ出力が、システムスプー
ラによって透過的に行われるからである。
By the way, by using a system spooler provided by the OS to open a print job specifying the full path name of the temporary file as an output destination and closing the print job at the end of printing, the result indicates the specified full path name. All printer control commands can be stored in a file. This is because if data is written to the system spooler using the identifier (handle) obtained when the print job is opened, data output to the output destination specified when the print job is opened is transparently performed by the system spooler. Because.

【0055】次に、アプリケーションからの印刷要求が
印刷終了を意味するものであった場合のプリンタドライ
バ処理(ステップS307)を図5を用いて詳細に説明
する。
Next, the printer driver process (step S307) when the print request from the application indicates the end of printing will be described in detail with reference to FIG.

【0056】まず、最初に、プリンタドライバはオープ
ン中の印刷ジョブをクローズした(ステップS501)
後、印刷終了要求を受け付けた際に得た追加情報を参照
して丁合い出力が指定されていないかどうかを判定(ス
テップS502)する。ステップS502において丁合
い出力が指定されていないと判定された場合には、その
まま処理を終了するが、丁合い出力が指定されていると
判定された場合には、前記ステップS402で保存して
おいた出力先情報をRAM2上から読み込み、その情報
をもとにして印刷ジョブを新たにオープンする(ステッ
プS503)。
First, the printer driver closes the open print job (step S501).
Thereafter, it is determined whether collation output is designated by referring to the additional information obtained when the print end request is received (step S502). If it is determined in step S502 that collation output has not been designated, the process is terminated. If it is determined that collation output has been designated, the collation output is saved in step S402. The output destination information read from the RAM 2 is read, and a print job is newly opened based on the information (step S503).

【0057】続いて、プリンタドライバは、テンポラリ
ファイルへ一時記憶しておいたプリンタ制御コマンドの
総データサイズをOSのファンクションコールを用いて
求め、RAM2上へ記憶する(ステップS504)。次
にプリンタドライバはジョブスプール機能を用いた場合
にプリンタ1500が一時記憶可能な最大データサイズ
を取得し、RAM2上へ記憶する(ステップS50
5)。なお、本実施形態においては、プリンタ1500
が一時記憶可能な最大データサイズは、専用アプリケー
ション(たとえばプリンタドライバのインストーラな
ど)が所定のタイミングでプリンタ1500と通信して
取得した上、外部メモリ11上の予め決められた場所
へ、予め決められたフォーマットで保存されているもの
とし、プリンタドライバはこの情報をOSのファンクシ
ョンコールを用いてRAM2上へ読み込む事により、前
記ステップS505の処理を行なうものとする。ただ
し、ステップS505の処理は、プリンタ1500がジ
ョブスプール記憶領域に一時記憶可能な最大データサイ
ズの情報が必要になる毎にプリンタ1500と通信して
該情報を取得するものであってもよい。
Subsequently, the printer driver obtains the total data size of the printer control command temporarily stored in the temporary file by using a function call of the OS, and stores the total data size in the RAM 2 (step S504). Next, the printer driver acquires the maximum data size that can be temporarily stored by the printer 1500 when the job spool function is used, and stores it on the RAM 2 (step S50).
5). In the present embodiment, the printer 1500 is used.
The maximum data size that can be temporarily stored is determined by a dedicated application (for example, an installer of a printer driver or the like) at a predetermined timing by communicating with the printer 1500 and then to a predetermined location on the external memory 11. The printer driver reads the information into the RAM 2 by using a function call of the OS, and performs the process of step S505. However, the process of step S505 may be one in which the printer 1500 communicates with the printer 1500 and acquires the information each time the printer 1500 needs information of the maximum data size that can be temporarily stored in the job spool storage area.

【0058】そしてプリンタドライバは、ステップS5
04で取得したプリンタ制御コマンドの総データサイズ
とステップS505で取得したプリンタ1500のジョ
ブスプール機能における最大記憶データサイズを比較
(ステップS506)し、前者の方が小さい、もしくは
等しいと判定した場合には直ちにステップS510へ進
み、テンポラリファイルへ一時記憶しておいたプリンタ
制御コマンドの先頭に上述の(1)として示したプリン
タ制御コマンドを、また後尾に印刷データの終了を指示
するための文字列を付加して、システムスプーラへ出力
する。
Then, the printer driver proceeds to step S5
If the total data size of the printer control command acquired in step S04 is compared with the maximum storage data size in the job spool function of the printer 1500 acquired in step S505 (step S506), and if it is determined that the former is smaller or equal, The process immediately advances to step S510, and the printer control command indicated as (1) above is added to the head of the printer control command temporarily stored in the temporary file, and a character string for instructing the end of the print data is added to the tail. Output to the system spooler.

【0059】一方、ステップS506において、前者
(プリンタ制御コマンドの総データサイズ)の方が大き
いと判定した場合には、プリンタ1500のジョブスプ
ール記憶領域の最大記憶データサイズを更新可能かどう
かをプリンタ構成情報から判定すると共に、更新したら
プリンタ制御コマンドの総データサイズが収まるのに十
分な領域を確保できるのかどうかを判定する(ステップ
S507)。
On the other hand, if it is determined in step S506 that the former (total data size of the printer control command) is larger, it is determined whether the maximum storage data size of the job spool storage area of the printer 1500 can be updated. It is determined from the information, and if updated, it is determined whether or not an area sufficient to accommodate the total data size of the printer control command can be secured (step S507).

【0060】ステップS507において、プリンタ15
00のジョブスプール記憶領域の最大記憶データサイズ
を更新しても依然プリンタ制御コマンドの総データサイ
ズの方が大きいと判定された場合には、テンポラリファ
イルへ一時記憶しておいたプリンタ制御コマンドを所定
の回数だけ繰り返してシステムスプーラへ出力する(ス
テップS508)。
In step S507, the printer 15
If it is determined that the total data size of the printer control commands is still larger after updating the maximum storage data size of the job spool storage area of No. 00, the printer control commands temporarily stored in the temporary file are deleted. And outputs it to the system spooler (step S508).

【0061】一方、ステップS507において、プリン
タ1500のジョブスプール記憶領域の最大記憶データ
サイズを更新すればプリンタ制御コマンドの総データサ
イズ分をプリンタ1500に一時記憶可能と判定した場
合には、プリンタ1500のジョブスプール記憶領域の
最大記憶データサイズを更新する印刷ジョブをシステム
スプーラへ出力し(ステップS509)、ステップS5
10に移行する。
On the other hand, if it is determined in step S507 that the total data size of the printer control command can be temporarily stored in the printer 1500 by updating the maximum storage data size of the job spool storage area of the printer 1500, the printer 1500 A print job for updating the maximum storage data size of the job spool storage area is output to the system spooler (Step S509), and Step S5
Move to 10.

【0062】なお、ステップS509においては、上述
の(2)として示したプリンタ制御コマンドとハードウ
ェアリセット命令で構成される印刷ジョブをシステムス
プーラを介して(OSなどの構成によってはシステムス
プーラを介さずに送信してもよい)プリンタ1500へ
出力することにより、プリンタ1500のジョブスプー
ル記憶領域の最大記憶データサイズを更新する処理を行
なうものとする。
In step S509, the print job composed of the printer control command and the hardware reset command shown in the above (2) is transmitted via the system spooler (or not via the system spooler depending on the configuration of the OS or the like). The process of updating the maximum storage data size of the job spool storage area of the printer 1500 is performed by outputting to the printer 1500.

【0063】そして、ステップS508または510に
続いて、プリンタドライバはステップS503において
新たにオープンした印刷ジョブをクローズし(ステップ
S511)、丁合い出力が指定された場合の処理(ステ
ップS503〜511)を終了する。
Then, subsequent to step S508 or 510, the printer driver closes the newly opened print job in step S503 (step S511), and performs the processing when collation output is specified (steps S503 to 511). finish.

【0064】以上に示したように、本実施形態によれ
ば、丁合い出力が指定されている場合に、順次生成した
プリンタ制御コマンドを直ちにプリンタ1500へは出
力せず、ホストコンピュータ3000上の外部メモリ1
1へ一時的に記憶しておき、その総データサイズがジョ
ブスプール機能を用いた際にプリンタ1500が一時記
憶可能である最大データサイズを超えていないかどうか
を判定し、超えている場合にはプリンタ1500が一時
記憶可能な最大データサイズを更新する印刷ジョブをプ
リンタ1500へ発行してから、ジョブスプール機能を
適用した印刷ジョブを出力するので、従来のようにオー
バーフローを生じることなく、丁合い出力のような複数
部数の印刷出力において、プリンタのジョブスプール機
能を利用して、所定の回数分の印刷出力を確実に保証で
き、プリンタ〜ホストコンピュータ間の通信負荷増大を
回避することができる、という優れた効果がある。
As described above, according to the present embodiment, when collated output is specified, the sequentially generated printer control commands are not immediately output to the printer 1500, but are output to the external device on the host computer 3000. Memory 1
1 and temporarily determines whether the total data size exceeds the maximum data size that can be temporarily stored by the printer 1500 when the job spool function is used. Since the printer 1500 issues a print job for updating the maximum data size that can be temporarily stored to the printer 1500 and then outputs a print job to which the job spool function is applied, collation output can be performed without overflow as in the related art. In print output of a plurality of copies as described above, it is possible to reliably guarantee a predetermined number of print outputs by using the job spool function of the printer, and to avoid an increase in communication load between the printer and the host computer. Has an excellent effect.

【0065】また、プリンタの最大記憶データサイズを
再設定してもプリンタから取得した最大記憶データサイ
ズを超えてしまう場合、ジョブスプール機能を利用せ
ず、テンポラリファイルに記憶しておいた印刷データを
指定回数だけプリンタへ出力させるようにしているの
で、印刷出力が不可能になってしまう事がなく、確実に
印刷出力を得ることができる、という優れた効果があ
る。
If the maximum storage data size of the printer exceeds the maximum storage data size obtained from the printer even when the maximum storage data size of the printer is reset, the print data stored in the temporary file is not used without using the job spool function. Since the data is output to the printer a specified number of times, there is an excellent effect that the print output can be reliably obtained without making the print output impossible.

【0066】なお、以上では、本発明の機能がプリンタ
ドライバに実装される構成を例示したが、外部からイン
ストールされるプログラムに本発明の機能が実装されて
いてもかまわない。その場合、本発明を適用した処理プ
ログラムは任意のコンピュータ読取可能な記憶媒体から
読み込まれるものであってよい。すなわち、本発明を適
用した処理プログラムはCD−ROMやフラッシュメモ
リやFD等の記憶媒体により、あるいは、電子メールや
パソコン通信等のネットワークを介して外部の記憶媒体
から、プログラムを含む情報群を出力装置やホストコン
ピュータを含むシステム内にロードすることにより、ホ
ストコンピュータあるいは出力装置に供給することが可
能である。
Although the configuration in which the functions of the present invention are implemented in the printer driver has been described above, the functions of the present invention may be implemented in an externally installed program. In that case, the processing program to which the present invention is applied may be read from any computer-readable storage medium. That is, a processing program to which the present invention is applied outputs a group of information including the program from a storage medium such as a CD-ROM, a flash memory, or an FD, or from an external storage medium via a network such as e-mail or personal computer communication. It can be supplied to a host computer or an output device by loading into a system including the device and the host computer.

【0067】[第2実施形態]第1実施形態では、プリ
ンタ1500のジョブスプールのための最大記憶データ
サイズを更新不可能であればテンポラリファイルに一時
記憶しておいたプリンタ制御コマンドを所定の回数だけ
繰り返してプリンタ1500へ出力するようにしてい
る。しかし、前述の図5のステップS506〜510を
改良し、テンポラリファイルへ一時記憶しておいたプリ
ンタ制御コマンドを所定の回数だけ繰り返してプリンタ
1500へ出力する手法と、プリンタ1500のジョブ
スプールのための最大記憶データサイズを更新する印刷
ジョブをプリンタ1500へ出力してからジョブスプー
ル機能を適用した印刷ジョブを出力する手法のどちらが
高速に印刷処理を行えるか判定してから、いずれかの手
法を選択実行する構成も考えられる。以下では、このよ
うな印刷処理の最適化を含む構成を例示する。
[Second Embodiment] In the first embodiment, if the maximum storage data size for the job spool of the printer 1500 cannot be updated, the printer control command temporarily stored in the temporary file is repeated a predetermined number of times. Is output to the printer 1500 repeatedly. However, the above-described steps S506 to S510 in FIG. 5 are improved so that the printer control command temporarily stored in the temporary file is repeatedly output a predetermined number of times to the printer 1500. A print job for updating the maximum storage data size is output to the printer 1500, and then a print job to which the job spool function is applied is determined. There is also a conceivable configuration. Hereinafter, a configuration including such optimization of the printing process will be exemplified.

【0068】本実施形態が示すプリンタドライバでは、
図6に示した処理を実行する。図6のステップS506
〜510は、第1実施形態の図5のステップS506〜
510を置換するのである。図6の各処理フローを示す
符号のうち、図5と同じ番号を付した処理フローは、前
記実施形態と全く同一の処理内容を示しているものとす
る。
In the printer driver according to the present embodiment,
The processing shown in FIG. 6 is executed. Step S506 in FIG.
Steps S506 to S510 in FIG. 5 of the first embodiment.
It replaces 510. Of the reference numerals indicating the respective processing flows in FIG. 6, the processing flows denoted by the same reference numerals as those in FIG. 5 indicate exactly the same processing contents as those in the embodiment.

【0069】図6のステップS506において、ホスト
コンピュータ3000の外部メモリ11へテンポラリフ
ァイルとして記憶しておいたプリンタ制御コマンドの総
データサイズがプリンタ1500で一時記憶可能な最大
データサイズよりも小さいか等しいと、判定された場合
には、前記実施形態と同様にステップS510へ進み、
ジョブスプール機能を適用した印刷ジョブを生成し、出
力する。
In step S506 in FIG. 6, if the total data size of the printer control commands stored as a temporary file in the external memory 11 of the host computer 3000 is smaller than or equal to the maximum data size that can be temporarily stored in the printer 1500. If determined, the process proceeds to step S510 as in the above-described embodiment,
Generate and output a print job to which the job spool function is applied.

【0070】一方、ステップS506において、テンポ
ラリファイルとして記憶しておいたプリンタ制御コマン
ドの総データサイズがプリンタ1500で一時記憶可能
な最大データサイズよりも大きいと判定された場合に
は、プリンタ1500の最大記憶データサイズを更新可
能かどうかをプリンタ1500の構成情報から判定する
と共に、更新したらプリンタ制御コマンドの総データサ
イズが収まるのに十分な領域をプリンタ1500へ確保
できるのかどうかを判定する(ステップS507)。
On the other hand, if it is determined in step S506 that the total data size of the printer control commands stored as the temporary file is larger than the maximum data size that can be temporarily stored in the printer 1500, Whether the storage data size can be updated is determined from the configuration information of the printer 1500, and if updated, it is determined whether a sufficient area for the printer control command to accommodate the total data size of the printer control command can be secured in the printer 1500 (step S507). .

【0071】ここで、プリンタ1500の最大記憶デー
タサイズを更新しても依然としてプリンタ制御コマンド
の総データサイズをプリンタ1500の一時記憶領域へ
収めることが不可能だと判定された場合には、テンポラ
リファイルへ一時記憶しておいたプリンタ制御コマンド
を所定の回数だけ繰り返してプリンタ1500へ出力す
る(ステップS508)。
If it is determined that the total data size of the printer control commands cannot be stored in the temporary storage area of the printer 1500 even after the maximum storage data size of the printer 1500 is updated, the temporary file The printer control command temporarily stored in the printer is repeatedly output a predetermined number of times to the printer 1500 (step S508).

【0072】一方、プリンタ1500の最大記憶データ
サイズを更新すればプリンタ制御コマンドの総データサ
イズをプリンタ1500へ一時記憶可能であるとステッ
プS507において判定した場合には、ステップS50
8が示す処理手法とステップS509及び510が示す
処理手法に要するそれぞれの処理時間を計算する(ステ
ップS601)。
On the other hand, if it is determined in step S507 that the total data size of the printer control command can be temporarily stored in the printer 1500 by updating the maximum storage data size of the printer 1500, the process proceeds to step S50.
Each processing time required for the processing method indicated by 8 and the processing methods indicated by steps S509 and 510 is calculated (step S601).

【0073】本実施形態で示したプリンタ1500が保
持するジョブスプール機能とは受信データを単純に指定
された回数だけ繰り返して受信したかのように処理する
機能である。従って、前記に示した2つの処理手法に要
する処理時間を比較する場合には、次に示した処理内容
に必要となる処理時間がそれぞれ分かれば良いこととな
る。
The job spool function held by the printer 1500 shown in the present embodiment is a function of processing received data simply as if it was repeatedly received a specified number of times. Therefore, when comparing the processing times required for the two processing methods described above, it is only necessary to know the processing times required for the following processing contents.

【0074】1.ホストコンピュータ3000上におけ
る印刷データ生成処理の処理時間 2.ホストコンピュータ3000上におけるプリンタ1
500の最大記憶データサイズを更新するための印刷デ
ータ生成処理の処理時間 3.上記2.の印刷データに関するホストコンピュータ
3000からプリンタ1500へのデータ通信処理の処
理時間 4.プリンタ1500で最大記憶データサイズを更新す
るための処理時間 5.上記1.の印刷データに関するホストコンピュータ
3000からプリンタ1500へのデータ通信処理の処
理時間 本実施形態では、上記1.及び上記5.に要する処理時
間は単純に扱うデータサイズに比例して増加するものと
し、上記4に要する処理時間は概ね一定になることとす
る。なお、前記実施形態で示した通り、プリンタ150
0の最大記憶データサイズを更新するための印刷ジョブ
は、上記(2)で示したプリンタ制御コマンドとハード
ウェアリセット命令で構成されるので、この印刷ジョブ
自体のデータサイズは相対的に非常に小さいものとな
る。従って、本実施形態では上記2及び上記3のプリン
タ1500のジョブスプールにおける最大記憶データサ
イズ更新処理の要する処理時間は無視して、2つの印刷
手法に必要となる処理時間をそれぞれ計算し、比較する
ことにする(もちろん、正確を期す場合にはジョブスプ
ールにおける最大記憶データサイズ更新処理の処理時間
を加味した計算を行なうようにしてもよい)。
1. 1. Processing time of print data generation processing on host computer 3000 Printer 1 on host computer 3000
2. Processing time of print data generation processing for updating the maximum storage data size of 500 The above 2. 3. Processing time for data communication processing from host computer 3000 to printer 1500 for print data of 4. Processing time for updating maximum storage data size in printer 1500 The above 1. Processing time for data communication processing from the host computer 3000 to the printer 1500 for the print data of the present embodiment. And 5. The processing time required for (4) increases in proportion to the data size to be handled simply, and the processing time required for (4) above is assumed to be substantially constant. Note that, as described in the above embodiment, the printer 150
Since the print job for updating the maximum storage data size of 0 is composed of the printer control command and the hardware reset command shown in (2), the data size of the print job itself is relatively very small. It will be. Therefore, in the present embodiment, the processing time required for the maximum storage data size update processing in the job spools of the printers 2 and 3 is ignored, and the processing times required for the two printing methods are calculated and compared. (Of course, if accuracy is required, the calculation may be performed in consideration of the processing time of the maximum storage data size update processing in the job spool).

【0075】ここで、上記の処理時間1、5、4に要す
る総処理時間を、それぞれP,Q,R(単位:mse
c)で表現するものとすれば、1バイトの印刷データの
処理速度p(単位:msec/byte,テンポラリフ
ァイルを読み出し、送信準備する処理に要する速度)、
および1バイトの印刷データの通信速度q(単位:ms
ec/byte)に対して扱うデータサイズを乗算する
とP、Qがそれぞれ求められる。さらに、ホストコンピ
ュータ3000上の外部メモリ11上にテンポラリファ
イルとして記憶しておいたプリンタ制御コマンド群の総
データサイズをS(単位:byte)とし、丁合いする
回数(丁合い出力する部数)をTとする。そして、ステ
ップS508(テンポラリファイルのプリンタコマンド
を複数回送信する場合)の処理時間をγ(単位:mse
c)、また、ステップS509およびステップS510
(プリンタのジョブスプール機能を利用する場合)の処
理を行ったとした場合の合計処理時間をθ(単位:ms
ec)で表現すれば、これらγ、θはそれぞれ次のよう
な計算式で表すことが可能となる。
Here, the total processing times required for the above processing times 1, 5, and 4 are represented by P, Q, and R (unit: ms
c), the processing speed p of 1-byte print data (unit: msec / byte, the speed required for reading a temporary file and preparing for transmission),
And the communication speed q of 1-byte print data (unit: ms)
ec / byte) is multiplied by the data size to be processed to obtain P and Q, respectively. Further, the total data size of the printer control command group stored as a temporary file on the external memory 11 of the host computer 3000 is S (unit: byte), and the number of collation (the number of collated copies) is T. And Then, the processing time of step S508 (when the printer command of the temporary file is transmitted a plurality of times) is set to γ (unit: mse
c) Steps S509 and S510
The total processing time when the processing of (when using the job spool function of the printer) is performed is θ (unit: ms)
ec), these γ and θ can be expressed by the following equations.

【0076】 γ(msec)=P(msec)+Q(msec) =(p(msec/byte)×S(byte))×T+(q(msec/byte)×S(byte)×T) =(p+q)×S×T θ(msec)=P(msec)+Q(msec)+R(msec) ≒(p(msec/byte)×S(byte))+(q(msec/byte)×S(byte))+R ≒(p+q)×S+R したがって、ステップS602において、本実施形態で
示すプリンタドライバは上記の計算式で算出したγとθ
を比較する。ここで、γがθよりも小さいか等しいと判
定された場合には、ステップS508へ進むが、γの方
が大きいと判定された場合にはステップS509へ進
み、プリンタ1500の最大記憶データサイズを更新す
る印刷ジョブをシステムスプーラを介してプリンタ15
00へ出力した後、ジョブスプール機能を適用した印刷
ジョブを出力する(ステップS510)。すなわち、テ
ンポラリファイルのプリンタコマンドを複数回送信した
ほうが速いと判定すればステップS508に進み、一
方、プリンタのジョブスプール機能を利用したほうが速
いと判定すればステップS509に進む。
Γ (msec) = P (msec) + Q (msec) = (p (msec / byte) × S (byte)) × T + (q (msec / byte) × S (byte) × T) = ( p + q) × S × T θ (msec) = P (msec) + Q (msec) + R (msec) ≒ (p (msec / byte) × S (byte)) + (q (msec / byte) × S (byte)) + R ≒ (p + q) × S + R Therefore, in step S602, the printer driver according to the present embodiment uses the γ and θ calculated by the above equations.
Compare. Here, if it is determined that γ is smaller than or equal to θ, the process proceeds to step S508, but if it is determined that γ is larger, the process proceeds to step S509 to change the maximum storage data size of the printer 1500. The print job to be updated is sent to the printer 15 via the system spooler.
After outputting the print job to the print job 00, the print job to which the job spool function is applied is output (step S510). That is, if it is determined that sending the printer command of the temporary file a plurality of times is faster, the process proceeds to step S508. If it is determined that the job spool function of the printer is faster, the process proceeds to step S509.

【0077】本実施形態の処理(図6)によれば、ホス
トコンピュータ3000上に一時記憶しておいたプリン
タ制御コマンド群の総データサイズがプリンタ1500
の最大記憶データサイズを超えてしまうが、プリンタ1
500の最大記憶データサイズを更新することによりジ
ョブスプール機能を利用できる場合であっても、予めジ
ョブスプール機能を利用しない方法との処理速度を比較
し、これらのうちいずれか高速な処理手法を選択実行す
ることができ、比較的に高速な印刷処理を行いながら、
所定の回数分の丁合いされた用紙出力結果を保証できる
という優れた効果がある。
According to the processing of this embodiment (FIG. 6), the total data size of the printer control command group temporarily stored on the host
Exceeds the maximum storage data size of
Even if the job spool function can be used by updating the maximum storage data size of 500, the processing speed is compared in advance with the method not using the job spool function, and one of these high-speed processing methods is selected. Can be executed, while performing relatively high-speed print processing,
There is an excellent effect that a collated paper output result for a predetermined number of times can be guaranteed.

【0078】本発明の処理を実現するためのプログラ
ム、および制御データは、印刷システムを構成するホス
トコンピュータ、プリンタなど任意の装置の任意の記憶
媒体に格納されていてよい。特に、プリンタのジョブス
プール機能において受信データを一時的に記憶可能な最
大データサイズについては、種々の構成が考えられる。
A program for realizing the processing of the present invention and control data may be stored in an arbitrary storage medium of an arbitrary device such as a host computer and a printer constituting a printing system. In particular, various configurations are conceivable for the maximum data size that can temporarily store received data in the job spool function of the printer.

【0079】たとえば、プリンタのジョブスプール記憶
領域の受信データを一時的に記憶可能な最大データサイ
ズをホストコンピュータの記憶手段に記憶する構成が考
えられ、その場合、ホストコンピュータ内のNVRAM
などの不揮発性のメモリ、着脱可能な記憶手段など、任
意の記憶手段に記憶させておくことができる。また、一
旦プリンタから取得した最大データサイズに関する情報
は、リソースファイルなどの形式でOSがシャットダウ
ンされる際などにハードディスクなどの外部記憶装置に
退避されるような構成であってもよい。特に、上記のよ
うに不揮発的に最大データサイズを保持しておく構成に
よれば、面倒な再設定操作を行なわなくても、継続的に
ジョブスプールに関しては同一の条件でシステムを動作
させることができる。
For example, a configuration is conceivable in which the maximum data size capable of temporarily storing the received data in the job spool storage area of the printer is stored in the storage means of the host computer. In this case, NVRAM in the host computer is used.
It can be stored in any storage means such as a non-volatile memory such as a non-volatile memory and a removable storage means. Further, the information about the maximum data size once obtained from the printer may be saved in an external storage device such as a hard disk when the OS is shut down in the form of a resource file or the like. In particular, according to the configuration in which the maximum data size is held in a nonvolatile manner as described above, the system can be continuously operated under the same conditions with respect to the job spool without performing a troublesome resetting operation. it can.

【0080】また、プリンタのジョブスプール記憶領域
の受信データを一時的に記憶可能な最大データサイズ
は、ユーザがホストコンピュータ上で動作する任意のプ
ログラムのユーザインターフェイス(たとえばプリンタ
ドライバの動作をカスタマイズするユーザインターフェ
ース、プリンタを用いるあらゆる情報処理を行なうアプ
リケーションプログラムのユーザインターフェースな
ど)を介して好みの値を設定できるようにすることが考
えられる。このような構成により、たとえば、ユーザは
プリンタの用途に応じ、好みのプリンタ内蔵フォントの
展開や外部からプリンタへのフォントダウンロードのた
めに必要なメモリ容量をプリンタ上に確保しておくこと
が可能となる。
The maximum data size at which the received data in the job spool storage area of the printer can be temporarily stored is determined by the user interface of an arbitrary program operated by the host computer (for example, a user who customizes the operation of the printer driver). It is conceivable that a desired value can be set through an interface, a user interface of an application program that performs all kinds of information processing using a printer, and the like. With such a configuration, for example, the user can secure the necessary memory capacity on the printer for developing the fonts in the printer and downloading fonts from the outside to the printer according to the purpose of the printer. Become.

【0081】また、前述のように、プリンタのジョブス
プール記憶領域の受信データを一時的に記憶可能な最大
データサイズをプリンタのメモリ(内蔵メモリ、あるい
は着脱可能な拡張メモリなど)に格納しておき、ホスト
コンピュータ側からプリンタ制御コマンドのインターフ
ェースを用い、双方向インターフェイスやネットワーク
を介して取得し、また再設定できるようにしておくこと
ができる。
Further, as described above, the maximum data size capable of temporarily storing the received data in the job spool storage area of the printer is stored in the printer memory (built-in memory or detachable extended memory). By using an interface of a printer control command from the host computer side, it can be obtained via a bidirectional interface or a network and can be reset.

【0082】特に、上記のようにホストコンピュータ側
に最大データサイズを記憶できる機構も設けられている
場合には、プリンタのメモリに記憶されているジョブス
プール記憶領域の最大データサイズの情報と、ホストコ
ンピュータのメモリに記憶されている最大データサイズ
の情報をなんらかの手法で同期させる必要があるが、こ
のためには当業者において必要に応じて任意の手法を採
用すればよい。たとえば、前記のように丁合い印刷が必
要となった時に、プリンタ側から取得し、これにホスト
コンピュータ側のメモリの内容を同期させ、再設定の必
要が生じた場合は両者を同時に更新するような方法が考
えられる。
In particular, when a mechanism capable of storing the maximum data size is provided on the host computer side as described above, information on the maximum data size of the job spool storage area stored in the memory of the printer and the host computer It is necessary to synchronize the information of the maximum data size stored in the memory of the computer by any method. For this purpose, those skilled in the art may adopt any method as needed. For example, when collated printing is required as described above, it is acquired from the printer side, the contents of the memory of the host computer are synchronized with this, and if it is necessary to reset them, both are updated simultaneously. There are various methods.

【0083】また、以上の各実施形態では、プリンタの
ジョブスプール機能の最大データサイズを再設定すると
ころまでを示したが、その後の処理については、種々の
構成が考えられる。たとえば、ジョブスプール機能の最
大データサイズの設定をプリンタ側の設定メモリに残し
ても良いし、また、再設定の必要となった(丁合い)出
力ジョブの処理が終了したらジョブスプール機能の最大
データサイズの設定を当該ジョブが開始される前の状態
に復帰させるようにしてもよい。
Further, in each of the embodiments described above, up to the point where the maximum data size of the job spool function of the printer is reset, various configurations are conceivable for the subsequent processing. For example, the setting of the maximum data size of the job spool function may be left in the setting memory of the printer, or the maximum data size of the job spool function may be set when the processing of the output job that needs to be reset (collated) is completed. The setting of the size may be returned to a state before the job is started.

【0084】[0084]

【発明の効果】以上から明らかなように、本発明によれ
ば、印刷データを生成する印刷データ生成プログラムを
動作させるホストコンピュータと、受信データをスプー
ル記憶手段へ一時的に記憶し、指定された回数分印刷デ
ータを受信したかのように印刷を実行するジョブスプー
ル機能を有するプリンタからなる印刷システム、印刷シ
ステムの制御方法、印刷システムの制御プログラムを格
納したコンピュータ読取可能な記憶媒体において、前記
ホストコンピュータにおいて、プリンタが前記スプール
記憶手段に一時的に記憶できる印刷データの最大データ
サイズを取得し、前記印刷データ生成プログラムが生成
しホストコンピュータの一時記憶手段に記憶された印刷
データの総データサイズと、前記取得した最大記憶デー
タサイズを比較し、前記比較により、前記一時記憶手段
に記憶された印刷データの総データサイズの方が前記取
得した最大記憶データサイズよりも大きいと判定された
場合、プリンタの最大記憶データサイズを再設定した
後、前記一時記憶手段に記憶しておいた印刷データをプ
リンタヘ出力し、前記ジョブスプール機能を利用して指
定回数だけ印刷させる構成を採用しているので、プリン
タ〜ホストコンピュータの間のデータ通信負荷を低減
し、しかも、丁合い出力のような複数部数の印刷出力に
おいてプリンタのジョブスプール機能を確実に利用でき
るように保証できる、という優れた効果がある。
As is apparent from the above description, according to the present invention, a host computer which operates a print data generating program for generating print data, temporarily stores received data in spool storage means, In a computer-readable storage medium storing a printing system, a printing system control method, and a printing system control program, the printing system comprises a printer having a job spool function for executing printing as if print data has been received for the number of times. In the computer, the printer acquires the maximum data size of the print data that can be temporarily stored in the spool storage unit, and calculates the total data size of the print data generated by the print data generation program and stored in the temporary storage unit of the host computer. Comparing the obtained maximum storage data size, If it is determined by the comparison that the total data size of the print data stored in the temporary storage unit is larger than the acquired maximum storage data size, after resetting the maximum storage data size of the printer, Since the print data stored in the temporary storage unit is output to the printer, and the print data is printed a specified number of times using the job spool function, the data communication load between the printer and the host computer is reduced. Moreover, there is an excellent effect that it is possible to guarantee that the job spool function of the printer can be reliably used in print output of a plurality of copies such as collated output.

【0085】あるいはさらに、前記一時記憶手段に一時
記憶した印刷データの総データサイズが、前記プリンタ
の最大記憶データサイズを再設定しても前記取得した最
大記憶データサイズを超えてしまう場合、前記一時記憶
手段に記憶しておいた前記印刷データを前記指定回数だ
けプリンタへ出力させる構成を採用することにより、印
刷出力が不可能になってしまう事がなく、確実に印刷出
力を得ることができる、という優れた効果がある。
Alternatively, if the total data size of the print data temporarily stored in the temporary storage means exceeds the acquired maximum storage data size even if the maximum storage data size of the printer is reset, By adopting a configuration in which the print data stored in the storage unit is output to the printer the specified number of times, the print output is not disabled, and the print output can be reliably obtained. There is an excellent effect.

【0086】あるいはさらに、前記比較により、前記一
時記憶手段に一時記憶した印刷データの総データサイズ
が、前記取得した最大記憶データサイズよりも大きいと
判定された場合、プリンタの最大記憶データサイズを再
設定した後、前記一時記憶手段により記憶しておいた印
刷データをプリンタヘ出力し、前記ジョブスプール機能
を利用して指定回数だけ印刷させる第1の出力処理と、
前記一時記憶手段に記憶しておいた前記印刷データを前
記指定回数だけプリンタへ出力させる第2の出力処理の
うち、いずれの処理が高速に処理できるかを判定し、そ
の判定結果に応じて前記第1ないし第2のいずれかの出
力処理を選択して実行する構成を採用することにより、
プリンタの最大記憶データサイズを更新することにより
ジョブスプール機能を利用できる場合であっても、予め
ジョブスプール機能を利用しない方法との処理速度を比
較し、これらのうちいずれか高速な処理手法を選択実行
することができ、比較的に高速な印刷処理を行いながら
所定の回数分で丁合いされた用紙出力結果を保証できる
という優れた効果がある。
Alternatively, if it is determined by the comparison that the total data size of the print data temporarily stored in the temporary storage means is larger than the acquired maximum storage data size, the maximum storage data size of the printer is reset. After the setting, a first output process of outputting the print data stored in the temporary storage unit to a printer and printing the designated number of times using the job spool function;
Among the second output processing for outputting the print data stored in the temporary storage means to the printer the specified number of times, it is determined which processing can be performed at a high speed, and according to the determination result, By adopting a configuration in which one of the first and second output processes is selected and executed,
Even if the job spool function can be used by updating the maximum storage data size of the printer, compare the processing speed with the method not using the job spool function in advance and select one of these high-speed processing methods This is an excellent effect that a collated paper output result can be guaranteed a predetermined number of times while performing a relatively high-speed printing process.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明を採用した印刷システムの構成を示した
ブロック図である。
FIG. 1 is a block diagram showing a configuration of a printing system employing the present invention.

【図2】本発明を採用したプリンタドライバがホストコ
ンピュータのRAM上にロードされて実行可能となった
状態におけるメモリマップ図である。
FIG. 2 is a memory map diagram in a state where a printer driver employing the present invention is loaded on a RAM of a host computer and becomes executable.

【図3】本発明を採用したプリンタドライバの処理の概
略を示したフローチャート図である。
FIG. 3 is a flowchart showing an outline of processing of a printer driver employing the present invention.

【図4】図3のステップS303の処理を示したフロー
チャート図である。
FIG. 4 is a flowchart illustrating a process of step S303 in FIG. 3;

【図5】図3のステップS307の処理を示したフロー
チャート図である。
FIG. 5 is a flowchart showing a process of step S307 in FIG. 3;

【図6】異なる実施形態における図5の変更部分を示し
たフローチャート図である。
FIG. 6 is a flowchart showing a changed part of FIG. 5 in a different embodiment.

【符号の説明】[Explanation of symbols]

1、12 CPU 2、19 RAM 3、13 ROM 4、15 システムバス 5 KBC 6 CRTC 7、20 DKC 8 PRTC 11、14 外部メモリ 18 入力部 1500 プリンタ 1501 操作パネル 3000 ホストコンピュータ 1, 12 CPU 2, 19 RAM 3, 13 ROM 4, 15 System bus 5 KBC 6 CRTC 7, 20 DKC 8 PRTC 11, 14 External memory 18 Input unit 1500 Printer 1501 Operation panel 3000 Host computer

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 印刷データを生成する印刷データ生成プ
ログラムを動作させるホストコンピュータと、受信デー
タをスプール記憶手段へ一時的に記憶し、指定された回
数分印刷データを受信したかのように印刷を実行するジ
ョブスプール機能を有するプリンタからなる印刷システ
ムにおいて、 前記ホストコンピュータに、 前記印刷データ生成プログラムが生成した印刷データを
一時的に記憶しておく一時記憶手段と、 プリンタが前記スプール記憶手段に一時的に記憶できる
印刷データの最大データサイズを取得する取得手段と、 前記一時記憶手段に記憶された印刷データの総データサ
イズと、前記取得手段により取得した最大記憶データサ
イズを比較する比較手段と、 前記プリンタが一時記憶可能な最大データサイズをホス
トコンピュータ上で動作するソフトウェアプログラムか
ら設定する設定手段と、 前記比較手段により、前記一時記憶手段に記憶された印
刷データの総データサイズの方が前記取得手段により取
得した最大記憶データサイズよりも大きいと判定された
場合、前記設定手段によりプリンタの最大記憶データサ
イズを再設定した後、前記一時記憶手段に記憶しておい
た印刷データをプリンタヘ出力し、前記ジョブスプール
機能を利用して指定回数だけ印刷させる制御手段と、 を設けたことを特徴とする印刷システム。
A host computer that runs a print data generation program that generates print data; temporarily stores received data in a spool storage unit; and performs printing as if the print data was received a specified number of times. In a printing system including a printer having a job spool function to be executed, a temporary storage unit for temporarily storing print data generated by the print data generation program in the host computer; and a printer temporarily storing the print data in the spool storage unit. Acquiring means for acquiring the maximum data size of print data that can be temporarily stored; comparing means for comparing the total data size of the print data stored in the temporary storage means with the maximum storage data size acquired by the acquiring means; The maximum data size that the printer can temporarily store Setting means for setting from a software program operating in the storage means, and the comparing means determines that the total data size of the print data stored in the temporary storage means is larger than the maximum storage data size obtained by the obtaining means. In this case, after setting the maximum storage data size of the printer by the setting unit, the print data stored in the temporary storage unit is output to the printer, and the specified number of times of printing is controlled using the job spool function. Means and a printing system.
【請求項2】 前記一時記憶手段に一時記憶した印刷デ
ータの総データサイズが、前記設定手段を用いて前記プ
リンタの最大記憶データサイズを再設定しても前記取得
手段により取得した最大記憶データサイズを超えてしま
う場合、前記一時記憶手段に記憶しておいた前記印刷デ
ータを前記指定回数だけプリンタへ出力させることを特
徴とする請求項1に記載の印刷システム。
2. The printer according to claim 1, wherein the total data size of the print data temporarily stored in the temporary storage unit is the maximum storage data size acquired by the acquisition unit even if the maximum storage data size of the printer is reset using the setting unit. 2. The printing system according to claim 1, wherein when the number of times exceeds the limit, the print data stored in the temporary storage unit is output to the printer the specified number of times.
【請求項3】 前記比較手段により、前記一時記憶手段
に一時記憶した印刷データの総データサイズが、前記取
得手段により取得した最大記憶データサイズよりも大き
いと判定された場合、前記設定手段によりプリンタの最
大記憶データサイズを再設定した後、前記一時記憶手段
により記憶しておいた印刷データをプリンタヘ出力し、
前記ジョブスプール機能を利用して指定回数だけ印刷さ
せる第1の出力処理と、前記一時記憶手段に記憶してお
いた前記印刷データを前記指定回数だけプリンタへ出力
させる第2の出力処理のうち、いずれの処理が高速に処
理できるかを判定し、その判定結果に応じて前記第1な
いし第2のいずれかの出力処理を選択して実行すること
を特徴とする請求項1または2に記載の印刷システム。
3. The printer according to claim 1, wherein the comparing unit determines that the total data size of the print data temporarily stored in the temporary storage unit is larger than the maximum storage data size acquired by the acquiring unit. After resetting the maximum storage data size, the print data stored by the temporary storage means is output to the printer,
Among a first output process for printing the designated number of times using the job spool function and a second output process for outputting the print data stored in the temporary storage unit to the printer for the designated number of times, 3. The method according to claim 1, wherein it is determined which of the processings can be performed at a high speed, and the first or second output processing is selected and executed according to a result of the determination. 4. Printing system.
【請求項4】 印刷データを生成する印刷データ生成プ
ログラムを動作させるホストコンピュータと、受信デー
タをスプール記憶手段へ一時的に記憶し、指定された回
数分印刷データを受信したかのように印刷を実行するジ
ョブスプール機能を有するプリンタからなる印刷システ
ムの制御方法において、 前記ホストコンピュータにおいて、 プリンタが前記スプール記憶手段に一時的に記憶できる
印刷データの最大データサイズを取得する取得ステップ
と、 前記印刷データ生成プログラムが生成しホストコンピュ
ータの一時記憶手段に記憶された印刷データの総データ
サイズと、前記取得ステップにより取得した最大記憶デ
ータサイズを比較する比較ステップと、 前記比較ステップにより、前記一時記憶手段に記憶され
た印刷データの総データサイズの方が前記取得ステップ
により取得した最大記憶データサイズよりも大きいと判
定された場合、プリンタの最大記憶データサイズを再設
定した後、前記一時記憶手段に記憶しておいた印刷デー
タをプリンタヘ出力し、前記ジョブスプール機能を利用
して指定回数だけ印刷させる制御ステップと、を実行す
ることを特徴とする印刷システムの制御方法。
4. A host computer that runs a print data generation program for generating print data, temporarily stores received data in a spool storage unit, and performs printing as if print data was received a specified number of times. A control method of a printing system including a printer having a job spool function to be executed, wherein the host computer obtains a maximum data size of print data that can be temporarily stored in the spool storage unit by the printer; A comparison step of comparing the total data size of the print data generated by the generation program and stored in the temporary storage unit of the host computer with the maximum storage data size obtained in the obtaining step; Total data of stored print data When it is determined that the size is larger than the maximum storage data size obtained in the obtaining step, after resetting the maximum storage data size of the printer, the print data stored in the temporary storage unit is output to the printer. And a control step of printing the specified number of times by using the job spool function.
【請求項5】 前記一時記憶手段に一時記憶した印刷デ
ータの総データサイズが、前記プリンタの最大記憶デー
タサイズを再設定しても前記取得ステップにより取得し
た最大記憶データサイズを超えてしまう場合、前記一時
記憶手段に記憶しておいた前記印刷データを前記指定回
数だけプリンタへ出力させることを特徴とする請求項4
に記載の印刷システムの制御方法。
5. When the total data size of the print data temporarily stored in the temporary storage means exceeds the maximum storage data size obtained in the obtaining step even if the maximum storage data size of the printer is reset. 5. The printer according to claim 4, wherein the print data stored in the temporary storage unit is output to the printer the specified number of times.
3. The method for controlling a printing system according to claim 1.
【請求項6】 前記比較ステップにより、前記一時記憶
手段に一時記憶した印刷データの総データサイズが、前
記取得ステップにより取得した最大記憶データサイズよ
りも大きいと判定された場合、プリンタの最大記憶デー
タサイズを再設定した後、前記一時記憶手段により記憶
しておいた印刷データをプリンタヘ出力し、前記ジョブ
スプール機能を利用して指定回数だけ印刷させる第1の
出力処理と、前記一時記憶手段に記憶しておいた前記印
刷データを前記指定回数だけプリンタへ出力させる第2
の出力処理のうち、いずれの処理が高速に処理できるか
を判定し、その判定結果に応じて前記第1ないし第2の
いずれかの出力処理を選択して実行することを特徴とす
る請求項4または5に記載の印刷システムの制御方法。
6. When the comparison step determines that the total data size of the print data temporarily stored in the temporary storage unit is larger than the maximum storage data size obtained in the obtaining step, the maximum storage data of the printer is determined. After the size is reset, the print data stored in the temporary storage unit is output to a printer, and a first output process for printing a specified number of times by using the job spool function is stored in the temporary storage unit. Outputting the stored print data to the printer the specified number of times.
Determining which one of the output processes can be processed at a high speed, and selecting and executing one of the first and second output processes according to a result of the determination. 6. The method for controlling a printing system according to 4 or 5.
【請求項7】 印刷データを生成する印刷データ生成プ
ログラムを動作させるホストコンピュータと、受信デー
タをスプール記憶手段へ一時的に記憶し、指定された回
数分印刷データを受信したかのように印刷を実行するジ
ョブスプール機能を有するプリンタからなる印刷システ
ムの制御プログラムを格納したコンピュータ読取可能な
記憶媒体において、 前記ホストコンピュータにおいて、 プリンタが前記スプール記憶手段に一時的に記憶できる
印刷データの最大データサイズを取得する取得ステップ
と、 前記印刷データ生成プログラムが生成しホストコンピュ
ータの一時記憶手段に記憶された印刷データの総データ
サイズと、前記取得ステップにより取得した最大記憶デ
ータサイズを比較する比較ステップと、 前記比較ステップにより、前記一時記憶手段に記憶され
た印刷データの総データサイズの方が前記取得ステップ
により取得した最大記憶データサイズよりも大きいと判
定された場合、プリンタの最大記憶データサイズを再設
定した後、前記一時記憶手段に記憶しておいた印刷デー
タをプリンタヘ出力し、前記ジョブスプール機能を利用
して指定回数だけ印刷させる制御ステップと、を実行さ
せるための制御プログラムを格納したことを特徴とする
印刷システムの制御プログラムを格納したコンピュータ
読取可能な記憶媒体。
7. A host computer that runs a print data generation program that generates print data, temporarily stores received data in a spool storage unit, and performs printing as if print data was received a specified number of times. In a computer-readable storage medium storing a control program of a printing system including a printer having a job spool function to be executed, in the host computer, a maximum data size of print data that the printer can temporarily store in the spool storage unit An acquisition step of acquiring; a comparison step of comparing the total data size of the print data generated by the print data generation program and stored in the temporary storage unit of the host computer with the maximum storage data size acquired by the acquisition step; By the comparison step, If it is determined that the total data size of the print data stored in the temporary storage unit is larger than the maximum storage data size obtained in the obtaining step, after resetting the maximum storage data size of the printer, A control step of outputting the print data stored in the storage means to the printer and printing the designated number of times using the job spool function, and a control program for executing the control step. A computer-readable storage medium storing a control program.
【請求項8】 前記一時記憶手段に一時記憶した印刷デ
ータの総データサイズが、前記プリンタの最大記憶デー
タサイズを再設定しても前記取得ステップにより取得し
た最大記憶データサイズを超えてしまう場合、前記一時
記憶手段に記憶しておいた前記印刷データを前記指定回
数だけプリンタへ出力させるための制御プログラムを格
納したことを特徴とする請求項7に記載の印刷システム
の制御プログラムを格納したコンピュータ読取可能な記
憶媒体。
8. When the total data size of the print data temporarily stored in the temporary storage means exceeds the maximum storage data size obtained in the obtaining step even if the maximum storage data size of the printer is reset. 8. The computer-readable storage program according to claim 7, wherein a control program for outputting the print data stored in the temporary storage unit to the printer the specified number of times is stored. Possible storage medium.
【請求項9】 前記比較ステップにより、前記一時記憶
手段に一時記憶した印刷データの総データサイズが、前
記取得ステップにより取得した最大記憶データサイズよ
りも大きいと判定された場合、プリンタの最大記憶デー
タサイズを再設定した後、前記一時記憶手段により記憶
しておいた印刷データをプリンタヘ出力し、前記ジョブ
スプール機能を利用して指定回数だけ印刷させる第1の
出力処理と、前記一時記憶手段に記憶しておいた前記印
刷データを前記指定回数だけプリンタへ出力させる第2
の出力処理のうち、いずれの処理が高速に処理できるか
を判定し、その判定結果に応じて前記第1ないし第2の
いずれかの出力処理を選択して実行するための制御プロ
グラムを格納したことを特徴とする請求項7または8に
記載の印刷システムの制御プログラムを格納したコンピ
ュータ読取可能な記憶媒体。
9. When the comparison step determines that the total data size of the print data temporarily stored in the temporary storage unit is larger than the maximum storage data size obtained in the obtaining step, the maximum storage data size of the printer is determined. After the size is reset, the print data stored in the temporary storage unit is output to a printer, and a first output process for printing a specified number of times by using the job spool function is stored in the temporary storage unit. Outputting the stored print data to the printer the specified number of times.
Among the output processes, a control program for determining which process can be processed at a high speed, and selecting and executing one of the first and second output processes according to the determination result is stored. A computer-readable storage medium storing the control program for a printing system according to claim 7.
JP34367798A 1998-12-03 1998-12-03 Information processing apparatus, information processing apparatus control method, and computer-readable storage medium storing information processing apparatus control program Expired - Lifetime JP3780109B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34367798A JP3780109B2 (en) 1998-12-03 1998-12-03 Information processing apparatus, information processing apparatus control method, and computer-readable storage medium storing information processing apparatus control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34367798A JP3780109B2 (en) 1998-12-03 1998-12-03 Information processing apparatus, information processing apparatus control method, and computer-readable storage medium storing information processing apparatus control program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2005289685A Division JP4154415B2 (en) 2005-10-03 2005-10-03 Information processing apparatus, information processing apparatus control method, and computer-readable storage medium storing information processing apparatus control program

Publications (2)

Publication Number Publication Date
JP2000168198A true JP2000168198A (en) 2000-06-20
JP3780109B2 JP3780109B2 (en) 2006-05-31

Family

ID=18363400

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34367798A Expired - Lifetime JP3780109B2 (en) 1998-12-03 1998-12-03 Information processing apparatus, information processing apparatus control method, and computer-readable storage medium storing information processing apparatus control program

Country Status (1)

Country Link
JP (1) JP3780109B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050065037A (en) * 2003-12-24 2005-06-29 삼성전자주식회사 Data processing method of print control device having printer driver
US7084999B2 (en) 2000-12-22 2006-08-01 Canon Kabushiki Kaisha Print system, information processing apparatus and method, and computer-readable memory medium
JP2008080708A (en) * 2006-09-28 2008-04-10 Brother Ind Ltd Image forming apparatus
US8085425B2 (en) 2002-06-19 2011-12-27 Canon Kabushiki Kaisha Information processing apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7084999B2 (en) 2000-12-22 2006-08-01 Canon Kabushiki Kaisha Print system, information processing apparatus and method, and computer-readable memory medium
US8085425B2 (en) 2002-06-19 2011-12-27 Canon Kabushiki Kaisha Information processing apparatus
KR20050065037A (en) * 2003-12-24 2005-06-29 삼성전자주식회사 Data processing method of print control device having printer driver
JP2008080708A (en) * 2006-09-28 2008-04-10 Brother Ind Ltd Image forming apparatus
JP4552918B2 (en) * 2006-09-28 2010-09-29 ブラザー工業株式会社 Image forming apparatus

Also Published As

Publication number Publication date
JP3780109B2 (en) 2006-05-31

Similar Documents

Publication Publication Date Title
JP4785579B2 (en) Information processing apparatus, print setting reflection method and program in information processing apparatus
US7600052B2 (en) Peripheral device control method, control program, and apparatus therefor
JP4669895B2 (en) Print control apparatus, print control method, and program
US8451463B2 (en) Information processing apparatus and information processing method
JPH11327856A (en) Printing controller, data processing method for the same and storage medium storing program which computer can read
JP4481800B2 (en) Information processing apparatus, information processing method, and program
JP5704834B2 (en) Information processing apparatus, control method, and program
JP2000218889A (en) Print control system and method, memory medium
JP2010165261A (en) Printing control device and control method thereof
JP3733284B2 (en) Information processing apparatus, printing system, and command generation method
JP3667043B2 (en) Information processing system, information processing apparatus, and print control method
JP3780109B2 (en) Information processing apparatus, information processing apparatus control method, and computer-readable storage medium storing information processing apparatus control program
JP2002014797A (en) Information processor, print controller and its control method, and storage medium and its control program
JP4154415B2 (en) Information processing apparatus, information processing apparatus control method, and computer-readable storage medium storing information processing apparatus control program
US7253911B2 (en) Printing method and system for executing printing in plural print processes
JP2002251268A (en) Information processor and data processing method for the same device and data processing program and storage medium with the same program stored
JP4539975B2 (en) Print setting control apparatus, control method thereof, and program
JP2012174110A (en) Print control unit, and method and program of print control of print control unit
JP4054544B2 (en) Information processing apparatus, information processing method, print control program, print processing apparatus, print processing method, and print processing program
JP2008015563A (en) Printing control device, printing control method, program and recording medium
JP3745086B2 (en) Printing control apparatus and method
JP7350525B2 (en) Information processing device, control method for information processing device, and program
JPH09231027A (en) Information processor, printer, print system and data processing method for print system
JP2023034953A (en) Information processing apparatus, method of controlling information processing apparatus, and program
JP2001312385A (en) Device and method for controlling printing and storage medium

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050405

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050606

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050802

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051003

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060306

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

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100310

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110310

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120310

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130310

Year of fee payment: 7