JP3554053B2 - Printing method and apparatus - Google Patents

Printing method and apparatus Download PDF

Info

Publication number
JP3554053B2
JP3554053B2 JP31631394A JP31631394A JP3554053B2 JP 3554053 B2 JP3554053 B2 JP 3554053B2 JP 31631394 A JP31631394 A JP 31631394A JP 31631394 A JP31631394 A JP 31631394A JP 3554053 B2 JP3554053 B2 JP 3554053B2
Authority
JP
Japan
Prior art keywords
form overlay
function
registered
registration
processing function
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
JP31631394A
Other languages
Japanese (ja)
Other versions
JPH08169156A (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.)
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 JP31631394A priority Critical patent/JP3554053B2/en
Publication of JPH08169156A publication Critical patent/JPH08169156A/en
Application granted granted Critical
Publication of JP3554053B2 publication Critical patent/JP3554053B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Description

【0001】
【産業上の利用分野】
本発明は、所定のフォームデータをフォーム・オーバーレイ・データとして登録可能な印刷方法及びその装置に関するものである。
【0002】
【従来の技術】
プリンタ装置の中には、ホストコンピュータから転送される印刷データの量を減らして印刷処理を高速化するために、帳票などの表の罫線や、頻繁に使用される定型フォーム等をフォーム・オーバーレイ・データとしてプリンタ装置の内部に予め登録しておき、この登録されているオーバーレイデータと受信した印刷データとを合成して所望の印刷結果を得ることができる装置がある。このようなプリンタ装置を使用するホストコンピュータでは、可変データのみをプリンタ装置に送るだけで、所望の罫線などのオーバーレイ・データに可変データがオーバレイされた印刷結果を得ることができる。
【0003】
技術の進歩により、さらに他のページ記述言語により登録されたフォーム・オーバーレイを利用することが可能となり、命令群解釈・実行手段を含むプログラムを印刷装置外部からROMでの供給やホストコンピュータからの供給等、様々な形式で供給することが可能となった。
【0004】
また、従来より、ページ記述言語を解釈して印刷を行うプリンタ装置が知られており、このようなプリンタ装置は、複数の命令群解釈・実行部(制御プログラム)を備え、各ページ記述言語に対応する命令群解釈・実行部が独立して設けられている。そして前述のオーバレイデータは、各命令群解釈・実行部の機能を用いて登録および実行されているため、そのオーバレイデータで利用される関数と、その関数を実際に実行する制御プログラムであるオブジェクトのアドレスとが常に関連付けられている。こうして、各ページ記述言語でフォーム・オーバレイデータを登録することができ、さらに、他の記述言語により、その登録されているフォーム・オーバレイデータを利用して印刷することが可能になっている。
【0005】
【発明が解決しようとする課題】
又、前述したプリンタ装置の機能のうち、複数の命令群解釈・実行部に共通する処理等を、そのプログラムが共通に利用できる関数群を内部に用意して実行するプリンタ装置も提案されている。
【0006】
一般に、全ての処理を共通する関数群を用いて処理することは不可能であり、処理によっては、命令群解釈・実行部に特有の処理を行う必要がある。そのため場合によって、関数群の一部を命令群解釈・実行部ごとに切り換えて実行する必要がある。したがって、従来のフォーム・オーバレイデータの登録では、実行される命令群解釈・実行部、或は前述の関数が異なってしまい、登録されているフォーム・オーバレイデータが利用できないという問題があった。
【0007】
本発明は上記従来例に鑑みてなされたもので、フォーム・オーバーレイデータを登録し、印刷装置に設けられている各種機能で使用できる印刷方法及びその装置を提供することにある。
【0008】
また本発明の目的は、フォーム・オーバレイデータを解釈して処理する機能が削除された時、それに対応するフォーム・オーバレイデータの誤った処理を防止できる印刷方法及びその装置を提供することにある。
【0009】
【課題を解決するための手段】
上記目的を達成するために本発明の印刷装置は以下のような構成を備える。即ち、
所定のフォームデータをフォーム・オーバレイ・データとして登録可能な印刷装置において、
印刷情報を受信する受信手段と、
特有な処理関数を備え、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、前記受信手段により受信された第1のページ記述言語の印刷情報を解釈する第1命令解釈実行手段と、
特有な処理関数を備え、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、前記受信手段により受信された第2のページ記述言語の印刷情報を解釈する第2命令解釈実行手段と、
前記第1命令解釈手段もしくは前記第2命令解釈手段によりフォーム・オーバレイで利用するフォーム・オーバレイ・データを記憶する記憶手段と、
前記第1命令解釈実行手段が備える特有の処理関数と、前記第2命令解釈実行手段が備える特有の処理関数についてそれぞれの処理関数のオブジェクトのアドレスと名称を登録関数テーブルに登録するテーブル登録手段と、
前記フォーム・オーバレイ・データが前記登録関数テーブルに登録されている処理関数を使用する場合に、前記フォーム・オーバレイ・データで使用される処理関数に対応する前記登録関数テーブルに登録されている名称を前記記憶手段に登録する名称登録手段と、
前記記憶手段に記憶されているフォーム・オーバレイ・データのフォーム・オーバレイが指示されると、前記記憶手段に登録されている名称に基づいて前記登録関数テーブルを参照して前記フォーム・オーバレイ・データで使用される処理関数のオブジェクトを実行し、フォーム・オーバレイ処理を実行する制御手段と、を有することを特徴とする.
上記目的を達成するために本発明の印刷装置は以下のような構成を備える。即ち、
所定のフォームデータをフォーム・オーバレイ・データとして登録可能な印刷装置において、
印刷情報を受信する受信手段と、
特有な処理関数を備え、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、前記受信手段により受信された第1のページ記述言語の印刷情報を解釈する第1命令解釈実行手段と、
特有な処理関数を備え、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、前記受信手段により受信された第2のページ記述言語の印刷情報を解釈する第2命令解釈実行手段と、
前記第1命令解釈手段もしくは前記第2命令解釈手段によりフォーム・オーバレイで利用するフォーム・オーバレイ・データを記憶する記憶手段と、
前記第1命令解釈実行手段が備える特有の処理関数と、前記第2命令解釈実行手段が備える特有の処理関数についてそれぞれの処理関数のオブジェクトのアドレスが登録されている登録関数テーブルに基づいて、前記フォーム・オーバレイ・データで使用される処理関数のオブジェクトをフォーム・オーバーレイ・データに登録する関数登録手段と、
前記記憶手段に記憶されているフォーム・オーバレイ・データのフォーム・オーバレイが指示されると、前記記憶手段に登録されているフォーム・オーバレイ・データに登録されている処理関数のオブジェクトを実行し、フォーム・オーバレイ処理を実行する制御手段と、を有することを特徴とする。
【0010】
上記目的を達成するために本発明の印刷方法は以下のような工程を備える。即ち、
所定のフォームデータを登録しておき、フォーム・オーバレイにより印刷可能な印刷装置における印刷方法において、
特有の処理関数を実行可能であり、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、受信した第1のページ記述言語の印刷情報を解釈する第1命令解釈実行工程と、
特有の処理関数を実行可能であり、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、受信した第2のページ記述言語の印刷情報を解釈する第2命令解釈実行工程と、
前記第1命令解釈工程もしくは前記第2命令解釈工程によりフォーム・オーバレイで利用するフォーム・オーバレイ・データをメモリに記憶する記憶工程と、
前記第1命令解釈実行工程で実行可能な特有の処理関数と、前記第2命令解釈実行工程で実行可能な特有の処理関数についてそれぞれの処理関数のオブジェクトのアドレスと名称を登録関数テーブルに登録するテーブル登録工程と、
前記フォーム・オーバレイ・データが前記登録関数テーブルに登録されている処理関数を使用する場合に、前記フォーム・オーバレイ・データで使用される処理関数に対応する前記登録関数テーブルに登録されている名称を前記メモリに登録する名称登録工程と、
前記メモリに記憶されたフォーム・オーバレイ・データのフォーム・オーバレイが指示されると、前記メモリに登録されている名称に基づいて前記登録関数テーブルを参照して前記フォーム・オーバレイ・データで使用される処理関数のオブジェクトを実行し、フォーム・オーバレイ処理を実行する制御工程と、を有することを特徴とする。
上記目的を達成するために本発明の印刷方法は以下のような工程を備える。即ち、
所定のフォームデータをフォーム・オーバレイ・データとして登録可能な印刷装置における印刷方法であって、
特有の処理関数を実行可能であり、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、受信した第1のページ記述言語の印刷情報を解釈する第1命令解釈実行工程と、
特有の処理関数を実行可能であり、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、受信した第2のページ記述言語の印刷情報を解釈する第2命令解釈実行工程と、
前記第1命令解釈工程もしくは前記第2命令解釈工程でフォーム・オーバレイで利用するフォーム・オーバレイ・データをメモリに記憶する記憶工程と、
前記第1命令解釈実行工程における特有の処理関数と、前記第2命令解釈実行工程における特有の処理関数についてそれぞれの処理関数のオブジェクトのアドレスが登録されている登録関数テーブルに基づいて、前記フォーム・オーバレイ・データで使用される処理関数のオブジェクトをフォーム・オーバーレイ・データに登録する関数登録工程と、
前記メモリに記憶されているフォーム・オーバレイ・データのフォーム・オーバレイが指示されると、前記メモリに登録されているフォーム・オーバレイ・データに登録されている処理関数のオブジェクトを実行し、フォーム・オーバレイ処理を実行する制御工程と、を有することを特徴とする。
【0012】
【実施例】
以下、添付図面を参照して本発明の好適な実施例を詳細に説明する。
【0013】
図1は、本実施例のプリンタ100を含む印刷システムの構成を示すブロック図で、プリンタ100の構成を主に示している。
【0014】
図1において、101はホストコンピュータで、実施例のプリンタ100に接続され、プリンタ100にプリント情報や各種データを転送している。
【0015】
次に、プリンタ100の構成を説明する。
【0016】
102は入力バッファで、ホストコンピュータ101から送信される制御コードや各種データを受信して、その受信データを一時的に保存している。103はCPUで、プログラムROM104,105に記憶されている制御プログラムに従って、本実施例のプリンタ100全体の動作を制御している。尚、これらプログラムROM104,105に記憶されている制御プログラムは、例えばハードディスク112より読み出され、或はホストコンピュータ101よりRAM110にダウンロードされたものでも良い。これらプログラムROM104,105に記憶されたプログラムは、ある命令群を解釈し、それに応じた処理を実行する命令群解釈・実行部106,107、フォーム・オーバーレイの登録および実行を行うフォーム・オーバーレイ登録・実行部108,109を備えている。
【0017】
例えば、ここで命令群解釈・実行部106は、第1のページ記述言語を解釈してパターン展開するプログラムで、命令群解釈・実行部107は、第2のページ記述言語を解釈してパターン展開するプログラムである。
【0018】
110はRAMで、制御コード、データの解釈やプリントに必要な計算処理、画像データ処理のためのワークメモリに利用される。このRAM110の内部には、登録された関数の名称と関数の実際のプログラムであるオブジェクトのアドレスを関連付ける登録関数テーブル111が設けられている。112はハードディスクで、例えばフォーム・オーバーレイ情報を保存している。113はビットマップ画像生成部で、命令群解釈・実行部106,107の制御の下に得られた情報を、実際にプリントされるビットマップ画像に展開している。114はビットマップ画像送出部で、ビットマップ画像生成部113でビットマップに展開されたビットマップ画像を、本実施例のレーザビームプリンタ100のプリンタ・エンジン116に送出している。115は操作パネルで、例えば各種キーやスイッチ、液晶などの表示器を有し、オペレータにより操作されて各種コマンドや操作指示が入力される。
【0019】
次に、各処理過程を詳述する。
【0020】
まず、ホストコンピュータ101から送信されてきた制御コード及び印刷データなどは、一旦入力バッファ102に蓄えられた後、RAM110に転送されて蓄えられる。CPU103は、プログラムROM104或は105に記憶されているプログラムに従って、そのプログラムの命令群及びデータの種類により、命令群解釈・実行部106又は107によって、ホストコンピュータ101より送信されてきた命令群(ページ記述言語)を解釈し、ビットマップ画像生成部113においてビットマップ画像データを生成する。その後、こうして生成されたビットマップ画像データは、ビットマップ画像送出部114によりプリンタエンジン部116に出力されて、そこで印刷される。
【0021】
ここで、命令群解釈・実行部106,107に特有な処理関数が存在しており、本実施例のプリンタ100に関数を登録する場合には、登録関数テーブル111に、関数の実際のプログラムであるオブジェクトのアドレスと、その名称を登録する。そして、その関数を利用する場合には、登録関数テーブル111を参照して、所望の関数のオブジェクトのアドレスを捜し、その後、そのアドレスよりその関数を実行する制御プログラムを読み出し、処理を行って命令群の解釈及びその実行を行う。
【0022】
いま、ホストコンピュータ101よりフォーム・オーバーレイの登録命令が送信された場合は、その送信されてきた登録命令(ページ記述言語など)に応じてフォーム・オーバーレイ登録・実行部108又は109により、登録するように指示されたフォーム・オーバーレイをハードディスク112に登録する。この場合、そのフォーム・オーバーレイが、登録されている関数を利用する処理を伴う場合は、その利用する関数名(図2の例では「関数2」)を登録関数テーブル111に存在する名称を用いてハードディスク112に登録する。これ以降、命令群解釈・実行部106,107は、初期化時に自分の登録する関数と、その関数のオブジェクトとの対応が取れるように、毎回、登録関数テーブル111に、同一関数であれば同一の名称を用いて関数を登録し、その関数を利用する。
【0023】
このようにしてフォーム・オーバーレイを実行し、フォーム・オーバーレイに登録されている関数を利用する場合は、登録関数テーブル111から、その関数のオブジェクトを捜して、その登録関数を実行していく。
【0024】
次に、処理関数の登録関数テーブル111への登録方法と、オーバーレイへの関数の登録、オーバーレイ利用時の関数の実行について詳述する。
【0025】
図7は、図1に示すプログラムROM104或は105に格納されている、登録関数テーブル111に関数を登録する制御プログラムの一例を示すフローチャートである。
【0026】
まず、この命令群解釈・実行部は、初期化時にフォームオーバーレイで自分が利用する登録関数が存在する場合、登録関数テーブル111に関数を登録する。ステップS1で、全ての関数の登録が終了していなければステップS2に進み、登録関数を関数の名称と、その関数の実際の動作を記述したプログラムの実体である関数のオブジェクトのアドレス(命令群解釈・実行部内のオブジェクトアドレス)とを対応付けて登録関数テーブル111に登録する。この登録関数テーブル111の登録内容を図2に示す。本実施例においては、登録時の関数の名称は、命令群解釈・実行部のプログラムにより決定して、登録関数テーブル111に登録している。
【0027】
図2は、このようなフォーム・オーバーレイの登録・実行時の動作を示す概念図である。
【0028】
図2において、関数を登録関数テーブル111に登録する時に、「関数1」を関数のオブジェクトの存在するアドレス「XXXX」に対応付けて登録関数テーブル111の「No.1」に登録し、「関数2」を関数のオブジェクトの存在するアドレス「YYYY」に対応付けて登録関数テーブル111の「No.2」に登録している。
【0029】
次に、ホストコンピュータ101からフォーム・オーバーレイの登録命令が送られると、登録関数を利用している処理をフォーム・オーバーレイで行う場合には、その関数をフォーム・オーバーレイに登録する必要がある。その場合には、登録関数テーブル111に登録されている登録関数の名称(図2の例では「関数2」)を用いて登録する。
【0030】
図8は、オーバーレイで利用する関数を、オーバーレイに登録する際の制御プログラムの処理を示すフローチャートである。
【0031】
まずステップS11で、フォーム・オーバーレイの登録中に登録関数の処理が必要かどうかを調べ、その関数が登録関数テーブル111に登録されているときはステップS12に進み、その登録関数の処理に対応する関数名をフォーム・オーバーレイに登録する。図2の例では、「関数2」がフォーム・オーバーレイ201に登録されている。
【0032】
図9は、フォーム・オーバーレイで利用されている関数の処理を実行する制御プログラムの一例を示すフローチャートである。
【0033】
フォーム・オーバーレイ内の関数を実行する際、まず、その関数が登録関数テーブル111に登録されているかを調べ(ステップS31)、登録されている時はステップS32に進み、登録関数テーブル111からフォーム・オーバーレイの実行する時に、その登録関数のオブジェクトのアドレスを命令群解釈・実行部106又は107のプログラム内でサーチし、その関数のオブジェクトにアクセスする。そして、その関数のオブジェクトを実行し、フォーム・オーバーレイ処理を行う。図2の例では、フォーム・オーバーレイ201に含まれている「関数2」のアドレスであるアドレス「YYYY」をサーチし、命令群解釈・実行部106又は107のプログラムのアドレス「YYYY」より「関数2」の「オブジェクト2」を実行する。
【0034】
ここで、プログラムROM104又は105が実装されている基板等が引き抜かれるなどにより、命令群解釈・実行部のプログラムが存在しなくなった場合の動作を以下に説明する。
【0035】
図10は登録関数を登録関数テーブル111から削除する処理の一例を示すフローチャートである。
【0036】
図3は、命令群解釈・実行部のプログラムが存在しない場合のフォーム・オーバーレイの実行時の動作を示す概念図である。このようなプログラムが記憶されているROMボード等が抜かれると、そのボードに実装されていた命令群解釈・実行部のプログラムの登録関数の実体が無くなってしまい、登録関数テーブル111に登録されている関数を実行することが不可能になる。そこで、このような場合は、登録関数テーブル111における、対応する登録関数のアドレスをクリアする必要が生じる。図3の例では、命令群解釈・実行部のプログラムが無くなった時点で、登録関数テーブル111に登録されている関数の対応するオブジェクト・アドレスをクリアしている。
【0037】
図10において、ROMボードが抜かれる等により、関数の実体であるオブジェクトが存在しない関数があるか否かを判断し、その様な関数が存在する時はステップS42に進み、存在しない関数に対応する登録関数テーブル111の登録関数のオブジェクト・アドレスから削除する。例えば図3の例では、存在しなくなったプログラムROM104の命令群解釈・実行部106に対応して、登録関数テーブル111の登録関数(「関数1」及び「関数2」)のオブジェクトのアドレスがクリアされる。図3では、「関数1」及び「関数2」のオブジェクトがなくなったので、登録関数テーブル111におけるオブジェクトのアドレス(「XXXX」と「YYYY」)がクリアされている。
【0038】
この状態で、図3に示すフォーム・オーバーレイ201が入力されると、そのフォーム・オーバーレイ201に含まれる「関数2」に対応する関数のオブジェクトが登録関数テーブル111に存在しないため、その「関数2」に対応する処理が行われない。
【0039】
次に、命令群解釈・実行部のプログラムが再度システムに登録された場合の処理を以下に説明する。
【0040】
図4は、命令群解釈・実行部のプログラムが再度プリンタ100に実装された場合の処理を説明するための概念図である。
【0041】
図4では、命令群解釈・実行部のプログラム106又は107が読み出された時点で、「関数1」がアドレス「AAAA」にセットされ、「関数2」がアドレス「BBBB」にセットされている。これに基づいて登録関数テーブル111にそれらの関数名と、その登録された各関数のオブジェクトのアドレス(「AAAA」、「BBBB」)が登録される。
【0042】
この状態で、フォーム・オーバーレイ201を利用する場合を考える。更新されている登録関数テーブル111から登録関数のオブジェクトの新しいアドレスをサーチして、その関数のオブジェクトにアクセスする。そして、その関数の処理を行ってフォーム・オーバーレイ処理を行う。
【0043】
図4の例では、「関数2」がのオブジェクトアドレスが更新されて登録関数テーブル111に記憶されているので、その登録されているアドレス「BBBB」をサーチして、「関数2」のプログラムの実体である「オブジェクト2」を実行する。
【0044】
本実施例では、関数を登録する際、その関数を識別するために関数の名称を利用しているが、命令群解釈・実行部で各関数にIDを割り付けて、そのIDとアドレスとを登録関数テーブル111に登録しても良い。
【0045】
上記のようにフォーム・オーバーレイに登録関数を利用している処理を登録することによって、命令群解釈・実行部に特有の処理を実行する関数を利用するフォーム・オーバーレイの実行が可能となる。
【0046】
また、登録関数テーブル111を参照することによって、フォーム・オーバーレイを登録した命令群解釈・実行部以外の命令群解釈・実行部からフォーム・オーバーレイを利用することも可能となる。
【0047】
また、フォーム・オーバーレイで利用する処理関数を処理関数の名称を用いてフォーム・オーバーレイに登録することによって、関数のオブジェクトが存在しない場合の誤動作を防ぐことが可能となり、関数のオブジェクトのアドレスが変更された場合も、確実に命令群解釈・実行部に特有の処理を行うことが可能となる。
【0048】
前述の第1実施例では、関数を登録する際の名称を命令群解釈・実行部で決定し、登録関数を管理する共通の登録関数テーブル111に登録関数の登録を行った。これ以外にも、登録する関数に共通する関数群をプリンタ内部に用意し、その登録される関数に対応する関数群の名称・IDを取得して命令群解釈・実行部に提供し、そのオブジェクト・アドレスと共に登録関数テーブル111に登録することも可能である。
【0049】
上記の実施例においては、関数を登録する際に名称またはIDを利用してフォーム・オーバーレイに処理関数の登録を行ったが、関数の実際の動作を記述したプログラムの実態である関数のオブジェクトを直接フォーム・オーバーレイに登録することも可能である。
【0050】
まず、ホストコンピュータ101から送信されてきた制御コード及びデータは入力バッファ102に蓄えられ、RAM110に蓄えられる。CPU103は、プログラムROM104又は105に記述されたプログラムに従い、命令群・データの種類により、命令群解釈・実行部106または107によって、ホストコンピュータ101より送信されてきた命令群を解釈する。その解釈されたデータに基づいて、ビットマップ画像生成部113においてビットマップ画像を生成する。その後、この生成されたビットマップ画像データをビットマップ画像送出部114を介してプリンタエンジン部116に出力して印刷する。
【0051】
この際、命令群解釈・実行部106又は107に特有な処理関数が存在し、プリンタ100に関数を登録する場合には、登録関数テーブル111に関数の実際のプログラムであるオブジェクトのアドレスと、その名称を登録する。そして、その関数を利用する場合は、登録関数テーブル111から関数のオブジェクトを捜して処理を行う。
【0052】
ホストコンピュータ101よりフォーム・オーバーレイの登録命令が送信された場合には、その送信された命令に応じてフォーム・オーバーレイ登録・実行部108又は109で、その登録を指示されたフォーム・オーバーレイをハードディスク112に登録する。この時、フォーム・オーバーレイが登録された関数を利用する処理を伴う場合は、利用する実際の処理を実行するプログラムである関数のオブジェクトのアドレスを登録関数テーブル111からサーチし、関数のオブジェクト本体を登録する。またフォーム・オーバーレイを実行し、フォーム・オーバーレイとして登録されている関数を利用する場合は、登録されている関数のオブジェクトを、直接プログラムとして関数を実行する場合を説明する。
【0053】
処理関数の登録関数テーブル111への登録方法と、オーバーレイへの関数の登録、オーバーレイ利用時の関数の実行について詳述する。
【0054】
図5は、命令群解釈・実行部のプログラムが再度登録された場合のフォーム・オーバーレイの実行時の動作を示す概念図である。
【0055】
まず、命令群解釈・実行部のプログラム106又は107は、初期化時に自分のプログラムが設定する登録関数を独自で設定する関数の名称と、関数の動作を記述したプログラムであるオブジェクトのアドレスとを対応付けて登録関数テーブル111に登録する。
【0056】
この登録関数テーブル111に関数を登録する処理は、前述の第1実施例と同様である。本実施例においては登録時の関数の名称は、命令群解釈・実行部で決定して登録関数テーブル111に登録している。
【0057】
図5の例では、「関数1」を関数のオブジェクトが存在するアドレス「XXXX」で登録関数テーブル111の「No.1」に登録し、「関数2」をその関数のオブジェクトが存在するアドレス「YYYY」で登録関数テーブル111の「No.2」に登録している。
【0058】
次に、ホストコンピュータ101からフォームオーバーレイの登録命令が送られると、その登録される関数を利用している処理をフォーム・オーバーレイに登録する。そして、その関数の処理を実行するプログラムである関数のオブジェクトのアドレスを登録関数テーブル111を参照してサーチし、その関数のオブジェクト本体を、フォーム・オーバーレイ202に格納する。
【0059】
図11は、このオーバーレイで利用する関数をオーバーレイに登録する際の制御プログラムの一例を示すフローチャートである。
【0060】
ステップS51において、フォーム・オーバーレイの登録中に登録関数の処理が存在するか否かを判断し、登録されているときはステップS52に進み、登録されている関数の処理に対応する、処理を実行するプログラムである関数のオブジェクトをフォーム・オーバーレイに登録する。
【0061】
図5の例では、「関数2のオブジェクト2」がフォーム・オーバーレイ202に登録されいる。
【0062】
次に、このフォーム・オーバーレイを利用する際は、登録関数テーブル111を参照することなく、登録されている実際の関数のオブジェクトを直接プログラムとして関数を実行していく。
【0063】
即ち、図5の例では、「関数2」のオブジェクトである「オブジェクト2」を直接実行することになる。
【0064】
ここで、前述のように、プログラムROMが記憶されているROMボードが引き抜かれるなどにより、命令群解釈・実行部のプログラムが存在しなくなった場合の動作を説明する。
【0065】
この場合は、登録関数を登録関数テーブル111から削除するが、その処理は前述の第1実施例と同様である。そして、命令群解釈・実行のプログラムが無くなった時点で、その消滅した部分に対応して登録関数テーブル111の登録関数のオブジェクトのアドレスをクリアする。
【0066】
図6の例では、「関数1」、「関数2」のオブジェクトがなくなったので、登録関数テーブル111のオブジェクトのアドレスのフィールドは、アドレスのないことを示している。
【0067】
しかし、フォーム・オーバーレイ202に実際の関数のオブジェクトが直接登録されているため、直接関数を実行することが可能であり、登録関数テーブル111とは独立して、そのフォーム・オーバーレイ202の実行が可能となる。
【0068】
上記のようにフォーム・オーバーレイに登録関数を利用している処理関数を関数のオブジェクトの形式でフォーム・オーバーレイに登録することによって、命令群解釈・実行部に特有の処理を実行する関数を利用するフォーム・オーバーレイの実行が可能となる。
【0069】
また、関数の処理を行う関数のオブジェクトがフォーム・オーバーレイに直接登録されているため、フォーム・オーバーレイを登録した命令群解釈・実行部以外の命令群解釈・実行部からフォーム・オーバーレイを利用することが可能となる。
【0070】
また、関数の処理を行う関数のオブジェクトがフォーム・オーバーレイに直接登録されているため、フォーム・オーバーレイを登録した命令群解釈・実行部が印刷装置内部に存在しない場合にも、他の命令群解釈・実行部からフォーム・オーバーレイを利用することが可能となる。
【0071】
尚、本発明は、複数の機器から構成されるシステムに適用しても、1つの機器から成る装置に適用しても良い。また、本発明はシステム或は装置に本発明を実施するプログラムを供給することによって達成される場合にも適用できる。
【0072】
以上説明したように本実施例によれば、フォーム・オーバーレイで利用する処理関数をフォーム・オーバーレイに登録することによって、命令群解釈・実行手段特有の処理を実行する関数を利用するフォーム・オーバーレイの実行が可能となる。
【0073】
また、本実施例によれば、前記フォーム・オーバーレイで利用する処理関数を処理関数の名称を用いてフォーム・オーバーレイに登録することによって、関数のオブジェクトが存在しない場合の誤動作を防ぐことが可能となり、関数のオブジェクトのアドレスが変更された場合にも確実に命令群解釈・実行部に特有の処理を行うことが可能となる。
【0074】
また、本実施例によれば、フォーム・オーバーレイに登録関数を利用している処理関数を関数のオブジェクトの形式でフォーム・オーバーレイに登録することによって、命令群解釈・実行部に特有の処理を実行する関数を利用するフォーム・オーバーレイの実行が可能となる。
【0075】
また、本実施例によれば、関数の処理を行う関数のオブジェクトがフォーム・オーバーレイに直接手段以外の命令群解釈・実行部からフォーム・オーバーレイを利用することが可能となる。
【0076】
また、本実施例によれば、関数の処理を行う関数のオブジェクトがフォーム・オーバーレイに直接登録されているため、フォーム・オーバーレイを登録した命令群解釈・実行手段が印刷装置内部に存在しない場合にも他の命令群解釈・実行部からフォーム・オーバーレイを利用することが可能となる。
【0077】
【発明の効果】
以上説明したように本発明によれば、それぞれ異なるページ記述言語を解釈する命令解釈部に特有な処理関数がフォームオーバレイデータに含まれている場合でも、その処理関数のオブジェクトのアドレスと名称とを登録関数テーブルに登録しておき、フォームオーバーレイ時に処理関数の名称から登録関数テーブルを参照して処理関数を実行するので、印刷装置に設けられている異なる命令解釈部に特有の処理を実行する関数を利用してフォーム・オーバレイを実行できるという効果がある。
【0079】
【図面の簡単な説明】
【図1】本発明の一実施例の印刷システムの構成を示すブロック図である。
【図2】本実施例の印刷システムにおけるフォーム・オーバーレイの登録・実行時の動作を示す概念図である。
【図3】本実施例の印刷システムにおいて、プリンタのプログラムROMが外された時のフォーム・オーバーレイの実行時の動作を示す概念図である。
【図4】本実施例の印刷システムにおけるフォーム・オーバーレイの実行時の動作を示す概念図である。
【図5】本実施例の印刷システムにおけるフォーム・オーバーレイの登録・実行時の動作を示す概念図である。
【図6】本実施例の印刷システムにおいて、プリンタのプログラムROMが外された時のフォーム・オーバーレイの実行時の動作を示す概念図である。
【図7】本実施例において、登録関数テーブルに関数を登録する処理を説明するフローチャートである。
【図8】本実施例において関数をフォーム・オーバーレイに登録する処理を説明するフローチャートである。
【図9】本実施例におけるフォーム・オーバーレイに登録されている関数を実行する処理を説明するフローチャートである。
【図10】本実施例において、登録関数を登録関数テーブルから削除する処理を説明するフローチャートである。
【図11】本実施例において、関数をフォーム・オーバーレイに登録する処理を説明するフローチャートである。
【符号の説明】
100 プリンタ装置
101 ホストコンピュータ
102 入力バッファ
103 CPU
104,105 プログラム
106,107 命令群解釈・実行部
108,109 フォーム・オーバーレイ登録・実行部
110 RAM
111 登録関数テーブル
112 ハードディスク
113 ビットマップ画像生成部
114 ビットマップ画像送出部
115 操作パネル
116 プリンタエンジン部
[0001]
[Industrial applications]
The present invention relates to a printing method and apparatus capable of registering predetermined form data as form overlay data.
[0002]
[Prior art]
Some printers include form overlays such as ruled lines on tables such as forms and frequently used fixed forms in order to reduce the amount of print data transferred from the host computer and speed up the printing process. There is a device which can be registered in advance in a printer as data and combine the registered overlay data with the received print data to obtain a desired print result. A host computer using such a printer device can obtain a print result in which variable data is overlaid on desired overlay data such as ruled lines only by sending variable data to the printer device.
[0003]
Advances in technology have made it possible to use form overlays registered in other page description languages, and to supply programs including instruction group interpretation / executing means from the outside of the printing apparatus via ROM or from a host computer. And so on.
[0004]
Further, conventionally, a printer device that interprets a page description language and performs printing is known. Such a printer device includes a plurality of instruction group interpreting / executing units (control programs). The corresponding instruction group interpreting / executing unit is provided independently. Since the above-mentioned overlay data is registered and executed by using the function of each instruction group interpretation / executing unit, a function used in the overlay data and an object which is a control program for actually executing the function are stored. Address is always associated. In this manner, form overlay data can be registered in each page description language, and printing can be performed using the registered form overlay data in another description language.
[0005]
[Problems to be solved by the invention]
In addition, among the functions of the above-described printer device, a printer device that prepares and executes a function group commonly used by a program for a process common to a plurality of instruction group interpreting / executing units has been proposed. .
[0006]
In general, it is impossible to perform all processing using a common function group, and depending on the processing, it is necessary to perform processing specific to the instruction group interpreting / executing unit. Therefore, in some cases, it is necessary to switch a part of the function group for each instruction group interpretation / execution unit and execute it. Therefore, in the conventional registration of the form overlay data, the instruction group interpretation / execution unit to be executed or the above-described function is different, and there is a problem that the registered form overlay data cannot be used.
[0007]
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described conventional example, and has as its object to provide a printing method and an apparatus for registering form overlay data, which can be used by various functions provided in the printing apparatus.
[0008]
It is another object of the present invention to provide a printing method and apparatus capable of preventing erroneous processing of form overlay data when the function of interpreting and processing form overlay data is deleted.
[0009]
[Means for Solving the Problems]
In order to achieve the above object, a printing apparatus according to the present invention has the following configuration. That is,
In a printing device capable of registering predetermined form data as form overlay data,
Receiving means for receiving print information;
It has a unique processing function and registers the form overlay data in response to the form overlay registration instruction.Received by the receiving meansOf the first page description languageInterpret printing informationFirst instruction interpretation and execution means,
A second command interpretation and execution function that has a unique processing function, registers form overlay data in response to a form overlay registration command, and interprets print information of a second page description language received by the receiving unit. Means,
The first command interpretation means or the second command interpretation meansStorage means for storing form overlay data used in the form overlay;
Table registration means for registering, in a registration function table, an address and a name of an object of each processing function with respect to a specific processing function provided in the first instruction interpretation / execution means, and a specific processing function provided in the second instruction interpretation / execution means; ,
When the form overlay data uses a processing function registered in the registration function table,Processing functions used in the form overlay dataName registration means for registering the name registered in the registration function table corresponding to the storage means,
When the form overlay of the form overlay data stored in the storage means is instructed,The registration function based on the name registered in the storage means;Processing function used in the form overlay data with reference to a tableExecute the object and execute the form overlay processingAnd control means.
In order to achieve the above object, a printing apparatus according to the present invention has the following configuration. That is,
In a printing device capable of registering predetermined form data as form overlay data,
Receiving means for receiving print information;
A first command interpretation execution unit that has a unique processing function, registers form overlay data in response to a form overlay registration command, and interprets print information in a first page description language received by the receiving unit. Means,
A second command interpretation and execution function that has a unique processing function, registers form overlay data in response to a form overlay registration command, and interprets print information of a second page description language received by the receiving unit. Means,
Storage means for storing form overlay data used in the form overlay by the first command interpretation means or the second command interpretation means;
On the basis of a registration function table in which addresses of objects of respective processing functions are registered for the specific processing function provided for the first instruction interpretation / executing unit and the specific processing function provided for the second instruction interpretation / executing unit. Function registration means for registering an object of a processing function used in form overlay data in form overlay data;
When the form overlay of the form overlay data stored in the storage means is instructed, the object of the processing function registered in the form overlay data registered in the storage means is executed, and Control means for executing an overlay process;
[0010]
In order to achieve the above object, the printing method of the present invention includes the following steps. That is,
In a printing method in a printing device capable of registering predetermined form data and printing with a form overlay,
A first command interpretation executing step capable of executing a specific processing function, registering the form overlay data in response to the form overlay registration instruction, and interpreting the received print information of the first page description language; ,
A second command interpretation executing step capable of executing a specific processing function, registering the form overlay data in response to the form overlay registration instruction, and interpreting the received print information of the second page description language; ,
A storage step of storing form overlay data used in a form overlay in a memory by the first instruction interpretation step or the second instruction interpretation step;
The address and name of the object of each processing function are registered in the registration function table for the specific processing function executable in the first instruction interpretation execution step and the specific processing function executable in the second instruction interpretation execution step. Table registration process,
When the form overlay data uses a processing function registered in the registration function table, a name registered in the registration function table corresponding to the processing function used in the form overlay data is used. A name registration step of registering in the memory;
When a form overlay of the form overlay data stored in the memory is instructed, the form overlay data is used in the form overlay data by referring to the registration function table based on the name registered in the memory. And a control step of executing a processing function object and executing a form overlay process.
In order to achieve the above object, the printing method of the present invention includes the following steps. That is,
A printing method in a printing device capable of registering predetermined form data as form overlay data,
A first command interpretation executing step capable of executing a specific processing function, registering the form overlay data in response to the form overlay registration instruction, and interpreting the received print information of the first page description language; ,
A second command interpretation executing step capable of executing a specific processing function, registering the form overlay data in response to the form overlay registration instruction, and interpreting the received print information of the second page description language; ,
A storage step of storing form overlay data used in a form overlay in the first instruction interpretation step or the second instruction interpretation step in a memory;
Based on the registered function table in which an address of an object of each processing function is registered for the specific processing function in the first instruction interpretation and execution step and the specific processing function in the second instruction interpretation and execution step. A function registration step of registering an object of a processing function used in the overlay data in the form overlay data;
When a form overlay of the form overlay data stored in the memory is instructed, an object of a processing function registered in the form overlay data registered in the memory is executed, and the form overlay is executed. And a control step of executing processing.
[0012]
【Example】
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0013]
FIG. 1 is a block diagram illustrating a configuration of a printing system including the printer 100 according to the present embodiment. The configuration of the printer 100 is mainly illustrated.
[0014]
In FIG. 1, reference numeral 101 denotes a host computer which is connected to the printer 100 of the embodiment and transfers print information and various data to the printer 100.
[0015]
Next, the configuration of the printer 100 will be described.
[0016]
An input buffer 102 receives control codes and various data transmitted from the host computer 101, and temporarily stores the received data. A CPU 103 controls the overall operation of the printer 100 according to the present embodiment in accordance with a control program stored in the program ROMs 104 and 105. The control programs stored in the program ROMs 104 and 105 may be, for example, read from the hard disk 112 or downloaded to the RAM 110 from the host computer 101. The programs stored in the program ROMs 104 and 105 interpret instruction groups and execute processing corresponding to the instruction groups. Interpretation / execution units 106 and 107, and form overlay registration / execution for registering and executing form overlays. Execution units 108 and 109 are provided.
[0017]
For example, here, the instruction group interpreting / executing unit 106 is a program that interprets the first page description language and develops the pattern, and the instruction group interpreting / executing unit 107 interprets the second page description language and develops the pattern. It is a program to do.
[0018]
Reference numeral 110 denotes a RAM, which is used as a work memory for calculation processing necessary for interpretation and printing of control codes and data, and image data processing. Inside the RAM 110, there is provided a registered function table 111 for associating the name of the registered function with the address of an object which is the actual program of the function. A hard disk 112 stores, for example, form overlay information. Reference numeral 113 denotes a bitmap image generation unit that develops information obtained under the control of the instruction group interpretation / execution units 106 and 107 into a bitmap image to be actually printed. A bitmap image sending unit 114 sends the bitmap image developed into a bitmap by the bitmap image generation unit 113 to the printer engine 116 of the laser beam printer 100 of the present embodiment. An operation panel 115 includes various keys, switches, and a display such as a liquid crystal, and is operated by an operator to input various commands and operation instructions.
[0019]
Next, each processing step will be described in detail.
[0020]
First, control codes and print data transmitted from the host computer 101 are temporarily stored in the input buffer 102, and then transferred to the RAM 110 and stored therein. The CPU 103, according to a program stored in the program ROM 104 or 105, executes a command group (page) transmitted from the host computer 101 by the command group interpreting / executing unit 106 or 107 according to the command group and data type of the program. (Description language), and the bitmap image generation unit 113 generates bitmap image data. Thereafter, the bitmap image data thus generated is output to the printer engine unit 116 by the bitmap image sending unit 114 and printed there.
[0021]
Here, processing functions unique to the instruction group interpretation / executing units 106 and 107 exist, and when a function is registered in the printer 100 of the present embodiment, the registration function table 111 stores the actual function program. Register the address of an object and its name. When the function is used, the address of the object of the desired function is searched for by referring to the registered function table 111, and then the control program for executing the function is read from the address, and the processing is executed. Interpret and execute groups.
[0022]
Now, when a form overlay registration instruction is transmitted from the host computer 101, the form overlay registration / execution unit 108 or 109 registers the form overlay according to the transmitted registration instruction (eg, page description language). Is registered in the hard disk 112. In this case, if the form overlay involves processing using a registered function, the function name to be used (“function 2” in the example of FIG. 2) is used as the name existing in the registered function table 111. To the hard disk 112. Thereafter, the instruction group interpreting / executing units 106 and 107 store the same function in the registered function table 111 every time so that the function registered at the time of initialization can correspond to the object of the function. A function is registered using the name of and the function is used.
[0023]
When the form overlay is executed in this way and a function registered in the form overlay is used, an object of the function is searched for from the registered function table 111, and the registered function is executed.
[0024]
Next, a method of registering the processing function in the registration function table 111, registration of the function in the overlay, and execution of the function when using the overlay will be described in detail.
[0025]
FIG. 7 is a flowchart showing an example of a control program for registering a function in the registration function table 111 stored in the program ROM 104 or 105 shown in FIG.
[0026]
First, if there is a registered function to be used by the form overlay at the time of initialization, the instruction group interpreting / executing unit registers the function in the registered function table 111. In step S1, if all the functions have not been registered, the process proceeds to step S2, where the registered function is called a function name and an address of an object of the function (instruction group), which is a substance of a program describing an actual operation of the function. The registration is made in the registration function table 111 in association with the interpretation / execution unit. FIG. 2 shows the registered contents of the registered function table 111. In the present embodiment, the name of the function at the time of registration is determined by the program of the instruction group interpreting / executing unit and registered in the registered function table 111.
[0027]
FIG. 2 is a conceptual diagram showing the operation at the time of registering and executing such a form overlay.
[0028]
In FIG. 2, when a function is registered in the registration function table 111, “function 1” is registered in “No. 1” of the registration function table 111 in association with the address “XXXX” where the object of the function exists. 2 is registered in “No. 2” of the registration function table 111 in association with the address “YYYY” where the function object exists.
[0029]
Next, when a form overlay registration command is sent from the host computer 101, when processing using the registration function is performed by the form overlay, it is necessary to register the function in the form overlay. In that case, the registration is performed using the name of the registered function registered in the registered function table 111 (“function 2” in the example of FIG. 2).
[0030]
FIG. 8 is a flowchart showing the processing of the control program when registering a function used in the overlay in the overlay.
[0031]
First, in step S11, it is checked whether or not the registration function processing is required during the registration of the form overlay. If the function is registered in the registration function table 111, the process proceeds to step S12, and the processing corresponding to the registration function is performed. Register the function name in the form overlay. In the example of FIG. 2, “function 2” is registered in the form overlay 201.
[0032]
FIG. 9 is a flowchart illustrating an example of a control program that executes processing of a function used in the form overlay.
[0033]
When executing a function in the form overlay, first, it is checked whether the function is registered in the registered function table 111 (step S31). When the overlay is executed, the address of the object of the registered function is searched in the program of the instruction group interpreting / executing unit 106 or 107, and the object of the function is accessed. Then, the object of the function is executed to perform the form overlay processing. In the example of FIG. 2, the address “YYYY” which is the address of “function 2” included in the form overlay 201 is searched, and the “function "Object 2" of "2" is executed.
[0034]
Here, the operation when the program of the instruction group interpreting / executing unit does not exist due to, for example, pulling out the board or the like on which the program ROM 104 or 105 is mounted is described below.
[0035]
FIG. 10 is a flowchart illustrating an example of processing for deleting a registered function from the registered function table 111.
[0036]
FIG. 3 is a conceptual diagram showing an operation at the time of execution of a form overlay when there is no program of the instruction group interpretation / execution unit. If a ROM board or the like in which such a program is stored is pulled out, the registered function of the program of the instruction group interpreting / executing unit mounted on the board is lost and registered in the registered function table 111. Function cannot be executed. Therefore, in such a case, it is necessary to clear the address of the corresponding registered function in the registered function table 111. In the example of FIG. 3, the object address corresponding to the function registered in the registered function table 111 is cleared when the program of the instruction group interpreting / executing unit runs out.
[0037]
In FIG. 10, it is determined whether or not there is a function having no object which is the substance of the function by removing the ROM board or the like. If such a function exists, the process proceeds to step S42, and the function corresponding to the function which does not exist is determined. From the registered function object address of the registered function table 111 to be deleted. For example, in the example of FIG. 3, the address of the object of the registration function (“function 1” and “function 2”) of the registration function table 111 is cleared corresponding to the instruction group interpretation / execution unit 106 of the program ROM 104 that no longer exists. Is done. In FIG. 3, since the objects of “function 1” and “function 2” have disappeared, the addresses of the objects (“XXXX” and “YYYY”) in the registration function table 111 have been cleared.
[0038]
In this state, when the form overlay 201 shown in FIG. 3 is input, since the object of the function corresponding to “function 2” included in the form overlay 201 does not exist in the registered function table 111, the “function 2” Is not performed.
[0039]
Next, the processing when the program of the instruction group interpretation / execution unit is registered again in the system will be described below.
[0040]
FIG. 4 is a conceptual diagram for explaining processing when the program of the instruction group interpreting / executing unit is mounted on the printer 100 again.
[0041]
In FIG. 4, when the program 106 or 107 of the instruction group interpreting / executing unit is read, “function 1” is set to the address “AAAAA” and “function 2” is set to the address “BBBB”. . Based on this, the function names and the addresses (“AAAAA”, “BBBB”) of the objects of the registered functions are registered in the registration function table 111.
[0042]
In this state, the case where the form overlay 201 is used will be considered. A new address of the registered function object is searched from the updated registered function table 111, and the function object is accessed. Then, the function overlay processing is performed to perform the form overlay processing.
[0043]
In the example of FIG. 4, since the object address of “function 2” is updated and stored in the registered function table 111, the registered address “BBBB” is searched and the program of “function 2” is searched. The entity “object 2” is executed.
[0044]
In this embodiment, when registering a function, the name of the function is used to identify the function. However, the instruction group interpreting / executing unit assigns an ID to each function, and registers the ID and address. It may be registered in the function table 111.
[0045]
By registering the processing using the registration function in the form overlay as described above, it is possible to execute the form overlay using a function that executes processing specific to the instruction group interpretation / execution unit.
[0046]
Also, by referring to the registration function table 111, it is possible to use the form overlay from an instruction group interpreting / executing unit other than the instruction group interpreting / executing unit in which the form overlay is registered.
[0047]
In addition, by registering the processing function used in the form overlay with the form overlay using the name of the processing function, it is possible to prevent malfunction when no function object exists, and to change the address of the function object. In this case as well, it is possible to reliably perform processing unique to the instruction group interpreting / executing unit.
[0048]
In the first embodiment described above, the name at the time of registering a function is determined by the instruction group interpreting / executing unit, and the registered function is registered in the common registered function table 111 for managing the registered function. In addition, a function group common to the functions to be registered is prepared in the printer, the name / ID of the function group corresponding to the registered function is obtained and provided to the instruction group interpreting / executing unit, and the object It is also possible to register in the registration function table 111 together with the address.
[0049]
In the above embodiment, when the function is registered, the processing function is registered in the form overlay using the name or ID. However, the function object which is the actual state of the program describing the actual operation of the function is used. It is also possible to register directly on the form overlay.
[0050]
First, the control code and data transmitted from the host computer 101 are stored in the input buffer 102 and stored in the RAM 110. The CPU 103 interprets the command group transmitted from the host computer 101 by the command group interpretation / executing unit 106 or 107 according to the program described in the program ROM 104 or 105 according to the type of command group and data. Based on the interpreted data, the bitmap image generation unit 113 generates a bitmap image. Thereafter, the generated bitmap image data is output to the printer engine unit 116 via the bitmap image transmission unit 114 and printed.
[0051]
At this time, a processing function unique to the instruction group interpreting / executing unit 106 or 107 exists, and when the function is registered in the printer 100, the address of the object which is the actual program of the function and the Register the name. When the function is used, the object of the function is searched for from the registered function table 111 and the processing is performed.
[0052]
When a form overlay registration command is transmitted from the host computer 101, the form overlay registration / execution unit 108 or 109 stores the form overlay instructed to be registered in the hard disk 112 in accordance with the transmitted command. Register with. At this time, if the form overlay involves processing using a registered function, the address of the function object, which is a program for executing the actual processing to be used, is searched from the registered function table 111, and the function object body is searched. register. In the case where a form overlay is executed and a function registered as the form overlay is used, a case will be described in which the function of the registered function is directly executed as a program.
[0053]
A method of registering the processing function in the registration function table 111, registration of the function in the overlay, and execution of the function when using the overlay will be described in detail.
[0054]
FIG. 5 is a conceptual diagram showing an operation at the time of executing the form overlay when the program of the instruction group interpreting / executing unit is registered again.
[0055]
First, the program 106 or 107 of the instruction group interpreting / executing unit sets the name of a function that uniquely sets a registration function set by its own program at the time of initialization, and the address of an object that is a program describing the operation of the function. It is registered in the registration function table 111 in association with it.
[0056]
The process of registering a function in the registration function table 111 is the same as in the first embodiment. In the present embodiment, the name of the function at the time of registration is determined by the instruction group interpreting / executing unit and registered in the registered function table 111.
[0057]
In the example of FIG. 5, “function 1” is registered in “No. 1” of the registration function table 111 at the address “XXXX” where the function object exists, and “function 2” is registered at the address “ “YYYY” is registered in “No. 2” of the registration function table 111.
[0058]
Next, when a form overlay registration command is sent from the host computer 101, a process using the registered function is registered in the form overlay. Then, the address of a function object, which is a program for executing the processing of the function, is searched with reference to the registered function table 111, and the object body of the function is stored in the form overlay 202.
[0059]
FIG. 11 is a flowchart illustrating an example of a control program when a function used in the overlay is registered in the overlay.
[0060]
In step S51, it is determined whether or not a registered function process exists during the registration of the form overlay. If the registered function has been registered, the process proceeds to step S52 to execute a process corresponding to the registered function process. Register the function object, which is the program to be executed, in the form overlay.
[0061]
In the example of FIG. 5, “object 2 of function 2” is registered in the form overlay 202.
[0062]
Next, when using this form overlay, the function is executed by directly using the registered actual function object as a program without referring to the registered function table 111.
[0063]
That is, in the example of FIG. 5, "object 2" which is the object of "function 2" is directly executed.
[0064]
Here, the operation in the case where the program of the instruction group interpreting / executing unit is not present due to the fact that the ROM board storing the program ROM is pulled out as described above will be described.
[0065]
In this case, the registration function is deleted from the registration function table 111, and the processing is the same as in the first embodiment. Then, when the program for interpreting and executing the instruction group disappears, the address of the object of the registered function in the registered function table 111 is cleared corresponding to the disappeared portion.
[0066]
In the example of FIG. 6, since the objects of “function 1” and “function 2” have disappeared, the field of the address of the object in the registered function table 111 indicates that there is no address.
[0067]
However, since the actual function object is directly registered in the form overlay 202, the function can be directly executed, and the form overlay 202 can be executed independently of the registered function table 111. It becomes.
[0068]
By registering a processing function that uses a registration function in the form overlay as described above in the form overlay in the form of a function object, a function that performs processing specific to the instruction group interpretation and execution unit is used. Execution of the form overlay becomes possible.
[0069]
Also, since the function object that performs the function processing is directly registered in the form overlay, the form overlay must be used from the instruction group interpretation and execution unit other than the instruction group interpretation and execution unit that registered the form overlay. Becomes possible.
[0070]
Also, since the function object that performs the function processing is directly registered in the form overlay, even if the instruction group interpretation and execution unit that registered the form overlay does not exist inside the printing device, other instruction group interpretation -The form overlay can be used from the execution unit.
[0071]
The present invention may be applied to a system including a plurality of devices or to an apparatus including a single device. The present invention can also be applied to a case where the present invention is achieved by supplying a system or an apparatus with a program for implementing the present invention.
[0072]
As described above, according to the present embodiment, by registering the processing function used in the form overlay in the form overlay, the form overlay using the function for executing the processing unique to the instruction group interpretation / executing means is registered. Execution becomes possible.
[0073]
Further, according to the present embodiment, by registering the processing function used in the form overlay in the form overlay using the name of the processing function, it is possible to prevent a malfunction when the function object does not exist. Thus, even when the address of the object of the function is changed, it is possible to reliably perform the processing unique to the instruction group interpreting / executing unit.
[0074]
Further, according to the present embodiment, processing specific to the instruction group interpreting / executing unit is executed by registering the processing function using the registration function in the form overlay in the form overlay in the form of a function object. Form overlays using functions that do
[0075]
Further, according to the present embodiment, it is possible for a function object that performs a function process to use the form overlay from an instruction group interpreting / executing unit other than the means directly for the form overlay.
[0076]
Further, according to the present embodiment, since the function object for performing the function processing is directly registered in the form overlay, the instruction group interpreting / executing unit that has registered the form overlay does not exist inside the printing apparatus. Also, the form overlay can be used from another instruction group interpreting / executing unit.
[0077]
【The invention's effect】
According to the present invention as described above,Even when the form overlay data includes a processing function peculiar to the instruction interpreter that interprets different page description languages, the address and name of the object of the processing function are registered in the registration function table, and the form overlay is stored. Since the processing function is sometimes executed by referring to the registration function table from the name of the processing function, it is possible to execute the form overlay by using a function for performing a process specific to a different command interpretation unit provided in the printing apparatus. effective.
[0079]
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a printing system according to an embodiment of the present invention.
FIG. 2 is a conceptual diagram showing an operation at the time of registering and executing a form overlay in the printing system of the present embodiment.
FIG. 3 is a conceptual diagram showing an operation at the time of executing a form overlay when a program ROM of a printer is removed in the printing system of the embodiment.
FIG. 4 is a conceptual diagram illustrating an operation at the time of executing a form overlay in the printing system of the present embodiment.
FIG. 5 is a conceptual diagram illustrating an operation of registering and executing a form overlay in the printing system according to the present exemplary embodiment.
FIG. 6 is a conceptual diagram showing an operation at the time of executing a form overlay when a program ROM of a printer is removed in the printing system of the present embodiment.
FIG. 7 is a flowchart illustrating a process of registering a function in a registration function table in the embodiment.
FIG. 8 is a flowchart illustrating processing for registering a function in a form overlay in the embodiment.
FIG. 9 is a flowchart illustrating a process of executing a function registered in the form overlay according to the embodiment.
FIG. 10 is a flowchart illustrating processing for deleting a registered function from a registered function table in the present embodiment.
FIG. 11 is a flowchart illustrating processing for registering a function in a form overlay in the embodiment.
[Explanation of symbols]
100 Printer device
101 Host computer
102 Input buffer
103 CPU
104, 105 programs
106,107 Instruction group interpreter / executor
108,109 Form / overlay registration / execution part
110 RAM
111 Registration Function Table
112 Hard Disk
113 Bitmap image generator
114 Bitmap image sending unit
115 Operation panel
116 Printer Engine

Claims (4)

所定のフォームデータをフォーム・オーバレイ・データとして登録可能な印刷装置において、
印刷情報を受信する受信手段と、
特有な処理関数を備え、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、前記受信手段により受信された第1のページ記述言語の印刷情報を解釈する第1命令解釈実行手段と、
特有な処理関数を備え、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、前記受信手段により受信された第2のページ記述言語の印刷情報を解釈する第2命令解釈実行手段と、
前記第1命令解釈手段もしくは前記第2命令解釈手段によりフォーム・オーバレイで利用するフォーム・オーバレイ・データを記憶する記憶手段と、
前記第1命令解釈実行手段が備える特有の処理関数と、前記第2命令解釈実行手段が備える特有の処理関数についてそれぞれの処理関数のオブジェクトのアドレスと名称を登録関数テーブルに登録するテーブル登録手段と、
前記フォーム・オーバレイ・データが前記登録関数テーブルに登録されている処理関数を使用する場合に、前記フォーム・オーバレイ・データで使用される処理関数に対応する前記登録関数テーブルに登録されている名称を前記記憶手段に登録する名称登録手段と、
前記記憶手段に記憶されているフォーム・オーバレイ・データのフォーム・オーバレイが指示されると、前記記憶手段に登録されている名称に基づいて前記登録関数テーブルを参照して前記フォーム・オーバレイ・データで使用される処理関数のオブジェクトを実行し、フォーム・オーバレイ処理を実行する制御手段と、
を有することを特徴とする印刷装置。
In a printing device capable of registering predetermined form data as form overlay data,
Receiving means for receiving print information;
A first command interpretation execution unit that has a unique processing function, registers form overlay data in response to a form overlay registration command, and interprets print information in a first page description language received by the receiving unit. Means,
A second command interpretation and execution function that has a unique processing function, registers form overlay data in response to a form overlay registration command, and interprets print information of a second page description language received by the receiving unit. Means,
Storage means for storing form overlay data used in the form overlay by the first command interpretation means or the second command interpretation means ;
Table registration means for registering, in a registration function table, an address and a name of an object of each processing function with respect to a specific processing function provided in the first instruction interpretation / execution means, and a specific processing function provided in the second instruction interpretation / execution means; ,
When the form overlay data uses a processing function registered in the registration function table, a name registered in the registration function table corresponding to the processing function used in the form overlay data is used. Name registration means for registering in the storage means,
When the form overlay of the form overlay data stored in the storage means is instructed, the form overlay data is referred to by referring to the registration function table based on the name registered in the storage means. A control means for executing an object of a processing function to be used and executing a form overlay process ;
A printing apparatus comprising:
所定のフォームデータをフォーム・オーバレイ・データとして登録可能な印刷装置において、In a printing device capable of registering predetermined form data as form overlay data,
印刷情報を受信する受信手段と、Receiving means for receiving print information;
特有な処理関数を備え、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、前記受信手段により受信された第1のページ記述言語の印刷情報を解釈する第1命令解釈実行手段と、A first command interpretation execution unit that has a unique processing function, registers form overlay data in response to a form overlay registration command, and interprets print information in a first page description language received by the receiving unit. Means,
特有な処理関数を備え、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、前記受信手段により受信された第2のページ記述言語の印刷情報を解釈する第2命令解釈実行手段と、A second command interpretation execution unit that has a unique processing function, registers form overlay data in response to a form overlay registration instruction, and interprets print information of a second page description language received by the receiving unit. Means,
前記第1命令解釈手段もしくは前記第2命令解釈手段によりフォーム・オーバレイで利用するフォーム・オーバレイ・データを記憶する記憶手段と、Storage means for storing form overlay data used in the form overlay by the first command interpretation means or the second command interpretation means;
前記第1命令解釈実行手段が備える特有の処理関数と、前記第2命令解釈実行手段が備える特有の処理関数についてそれぞれの処理関数のオブジェクトのアドレスが登録されている登録関数テーブルに基づいて、前記フォーム・オーバレイ・データで使用される処理関数のオブジェクトをフォーム・オーバーレイ・データに登録する関数登録手段と、On the basis of a registration function table in which addresses of objects of respective processing functions are registered for the specific processing function provided for the first instruction interpretation / executing unit and the specific processing function provided for the second instruction interpretation / executing unit. Function registration means for registering an object of a processing function used in form overlay data in form overlay data;
前記記憶手段に記憶されているフォーム・オーバレイ・データのフォーム・オーバレイが指示されると、前記記憶手段に登録されているフォーム・オーバレイ・データに登録されている処理関数のオブジェクトを実行し、フォーム・オーバレイ処理を実行する制御手段と、When the form overlay of the form overlay data stored in the storage means is instructed, the object of the processing function registered in the form overlay data registered in the storage means is executed, and Control means for performing overlay processing;
を有することを特徴とする印刷装置。A printing apparatus comprising:
所定のフォームデータを登録しておき、フォーム・オーバレイにより印刷可能な印刷装置における印刷方法において、In a printing method in a printing device capable of registering predetermined form data and printing with a form overlay,
特有の処理関数を実行可能であり、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、受信した第1のページ記述言語の印刷情報をA specific processing function can be executed, form overlay data is registered according to a form overlay registration command, and received print information of the first page description language is registered. 解釈する第1命令解釈実行工程と、Interpreting and executing a first command;
特有の処理関数を実行可能であり、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、受信した第2のページ記述言語の印刷情報を解釈する第2命令解釈実行工程と、A second command interpretation executing step capable of executing a specific processing function, registering the form overlay data in response to the form overlay registration instruction, and interpreting the received print information of the second page description language; ,
前記第1命令解釈工程もしくは前記第2命令解釈工程によりフォーム・オーバレイで利用するフォーム・オーバレイ・データをメモリに記憶する記憶工程と、A storage step of storing form overlay data used in a form overlay in a memory by the first instruction interpretation step or the second instruction interpretation step;
前記第1命令解釈実行工程で実行可能な特有の処理関数と、前記第2命令解釈実行工程で実行可能な特有の処理関数についてそれぞれの処理関数のオブジェクトのアドレスと名称を登録関数テーブルに登録するテーブル登録工程と、The address and name of the object of each processing function are registered in the registration function table for the specific processing function executable in the first instruction interpretation execution step and the specific processing function executable in the second instruction interpretation execution step. Table registration process,
前記フォーム・オーバレイ・データが前記登録関数テーブルに登録されている処理関数を使用する場合に、前記フォーム・オーバレイ・データで使用される処理関数に対応する前記登録関数テーブルに登録されている名称を前記メモリに登録する名称登録工程と、When the form overlay data uses a processing function registered in the registration function table, a name registered in the registration function table corresponding to the processing function used in the form overlay data is used. A name registration step of registering in the memory;
前記メモリに記憶されたフォーム・オーバレイ・データのフォーム・オーバレイが指示されると、前記メモリに登録されている名称に基づいて前記登録関数テーブルを参照して前記フォーム・オーバレイ・データで使用される処理関数のオブジェクトを実行し、フォーム・オーバレイ処理を実行する制御工程と、When the form overlay of the form overlay data stored in the memory is instructed, the form overlay data is used in the form overlay data by referring to the registration function table based on the name registered in the memory. A control step of executing a processing function object and executing a form overlay process;
を有することを特徴とする印刷方法。A printing method comprising:
所定のフォームデータをフォーム・オーバレイ・データとして登録可能な印刷装置における印刷方法であって、A printing method in a printing device capable of registering predetermined form data as form overlay data,
特有の処理関数を実行可能であり、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、受信した第1のページ記述言語の印刷情報を解釈する第1命令解釈実行工程と、A first command interpretation executing step capable of executing a specific processing function, registering the form overlay data in response to the form overlay registration instruction, and interpreting the received print information of the first page description language; ,
特有の処理関数を実行可能であり、フォーム・オーバレイの登録命令に応じてフォーム・オーバレイ・データを登録するとともに、受信した第2のページ記述言語の印刷情報を解釈する第2命令解釈実行工程と、A second command interpretation executing step capable of executing a specific processing function, registering the form overlay data in response to the form overlay registration instruction, and interpreting the received print information of the second page description language; ,
前記第1命令解釈工程もしくは前記第2命令解釈工程でフォーム・オーバレイで利用するフォーム・オーバレイ・データをメモリに記憶する記憶工程と、A storage step of storing form overlay data used in a form overlay in the first instruction interpretation step or the second instruction interpretation step in a memory;
前記第1命令解釈実行工程における特有の処理関数と、前記第2命令解釈実行工程における特有の処理関数についてそれぞれの処理関数のオブジェクトのアドレスが登録されている登録関数テーブルに基づいて、前記フォーム・オーバレイ・データで使用される処理関数のオブジェクトをフォーム・オーバーレイ・データに登録する関数登録工程と、Based on the registered function table in which an address of an object of each processing function is registered for the specific processing function in the first instruction interpretation and execution step and the specific processing function in the second instruction interpretation and execution step. A function registration step of registering a processing function object used in the overlay data in the form overlay data;
前記メモリに記憶されているフォーム・オーバレイ・データのフォーム・オーバレイが指示されると、前記メモリに登録されているフォーム・オーバレイ・データに登録されている処理関数のオブジェクトを実行し、フォーム・オーバレイ処理を実行する制御工程と、When a form overlay of the form overlay data stored in the memory is instructed, an object of a processing function registered in the form overlay data registered in the memory is executed, and the form overlay is executed. A control step for executing the processing;
を有することを特徴とする印刷方法。A printing method comprising:
JP31631394A 1994-12-20 1994-12-20 Printing method and apparatus Expired - Fee Related JP3554053B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31631394A JP3554053B2 (en) 1994-12-20 1994-12-20 Printing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31631394A JP3554053B2 (en) 1994-12-20 1994-12-20 Printing method and apparatus

Publications (2)

Publication Number Publication Date
JPH08169156A JPH08169156A (en) 1996-07-02
JP3554053B2 true JP3554053B2 (en) 2004-08-11

Family

ID=18075747

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31631394A Expired - Fee Related JP3554053B2 (en) 1994-12-20 1994-12-20 Printing method and apparatus

Country Status (1)

Country Link
JP (1) JP3554053B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100349159C (en) * 2005-01-18 2007-11-14 北京北大方正电子有限公司 Method for attaching label in page rasterizing

Also Published As

Publication number Publication date
JPH08169156A (en) 1996-07-02

Similar Documents

Publication Publication Date Title
US6111654A (en) Method and apparatus for replacing or modifying a postscript built-in font in a printer
JPH08161250A (en) Information processor
JP2860204B2 (en) Output device and method of selecting interpretation program in the device
JP3165268B2 (en) Print information processing method and apparatus
JP3554053B2 (en) Printing method and apparatus
JP3814324B2 (en) Print control apparatus and print control method
EP0571145A1 (en) Apparatus for printer command languages translation
JPH0830408A (en) Printer and system and its control method
KR960012763B1 (en) Character processing in window system
JP2812412B2 (en) Printer control device and method
JP2771677B2 (en) Printing equipment
JP2783345B2 (en) Output device and method
JP3246142B2 (en) Printing control device
JP2783344B2 (en) Printer control device and control method thereof
JP2608291B2 (en) Printing equipment
JP3197616B2 (en) Printer control method, printer control device, printer control system, information processing device, and data registration method
JP3045116B2 (en) Graphic drawing equipment
JP2971547B2 (en) Document processing device
JPH09269877A (en) Image forming device
JP2555970B2 (en) Online automatic external character registration method
JP2869923B2 (en) Printing control device
JPH11175272A (en) Printer and control method therefor
JP2787095B2 (en) Font data reading device
JPH08221231A (en) Image output device
JP2004223946A (en) Image forming apparatus

Legal Events

Date Code Title Description
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: 20040419

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040506

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

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100514

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100514

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110514

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees