JPH09240074A - Controller for printer - Google Patents

Controller for printer

Info

Publication number
JPH09240074A
JPH09240074A JP8055239A JP5523996A JPH09240074A JP H09240074 A JPH09240074 A JP H09240074A JP 8055239 A JP8055239 A JP 8055239A JP 5523996 A JP5523996 A JP 5523996A JP H09240074 A JPH09240074 A JP H09240074A
Authority
JP
Japan
Prior art keywords
file
printer
identification character
print
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8055239A
Other languages
Japanese (ja)
Inventor
Sadaji Asano
貞二 浅野
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP8055239A priority Critical patent/JPH09240074A/en
Publication of JPH09240074A publication Critical patent/JPH09240074A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To obtain a controller for a printer wherein the controller for the printer connected to a printer in which printing data are controlled in a file unit, can surely identify the file. SOLUTION: When a file is forwarded to a printer so that the file is printed with a controller for printer, the file can be forwarded by annexing another file name different from a file name for the controlling for printer. The printer can have a same file name for two or more files. In such the case, the controller for printer comes to be incapable of identifying the file. Herein, the controller for printer forwards the file by a file name to which an identification character is annexed. Since an identification character which is preliminarily not used for an identification character for another file is selected as the identifying character, the file can be surely identified by using the identification character.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はプリンタ制御装置に
係り、特に、入力されたプリントデータを一時的に記憶
する記憶手段を備えたプリンタ制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer control device, and more particularly to a printer control device provided with a storage means for temporarily storing input print data.

【0002】[0002]

【従来の技術】近年、ローカルエリアネットワーク(LA
N )に複数のワークステーションを接続する形態のシス
テムが増えている。このようなシステムでは、LAN にワ
ークステーションの他にプリンタが接続されている形態
を持つものがある。プリンタは、ワークステーション間
で用いられるファイル転送プロトコル(FTP )に対応し
ており、ワークステーション同士のファイル転送と同じ
手続きでプリンタにプリントを指示することができる。
プリンタ及びワークステーションでは、ファイルにファ
イル名が付けられている。
2. Description of the Related Art In recent years, local area networks (LA
The number of systems that connect multiple workstations to N) is increasing. Some of these systems have a form in which a printer is connected to the LAN in addition to the workstation. The printer supports the file transfer protocol (FTP) used between workstations, and the printer can be instructed to print by the same procedure as the file transfer between workstations.
In printers and workstations, files have file names.

【0003】ここで、ワークステーションでは、既に存
在しているファイル名と同じファイル名のファイルが転
送されると、以前のファイルが消去され、前記転送され
たファイルが格納される。従ってファイルは全て異なる
ファイル名を持つ(以下、ファイル名はユニークであ
る、と表す。)。一方、プリンタでは同じファイル名の
ファイルを複数格納することができ、プリンタに格納さ
れたファイルのファイル名は必ずしもユニークではな
い。即ち、ワークステーションではファイル名は必ずユ
ニークであるが、プリンタはユニークでないファイル名
のファイルを格納することができるという違いがある。
Here, in the workstation, when a file having the same file name as an already existing file name is transferred, the previous file is erased and the transferred file is stored. Therefore, all files have different file names (hereinafter, the file names are represented as unique). On the other hand, the printer can store a plurality of files having the same file name, and the file names of the files stored in the printer are not necessarily unique. That is, the file name is always unique on the workstation, but the printer can store a file with a non-unique file name.

【0004】従って、ワークステーションからプリンタ
に対してファイル名を指定してプリントの状況を確認す
るような場合、プリンタに同一ファイル名のファイルが
複数格納されていると、プリンタに格納されているファ
イルを識別できなくなるという問題があった。
Therefore, when a file name is specified from the workstation to the printer and the print status is confirmed, if a plurality of files having the same file name are stored in the printer, the file stored in the printer is stored. There was a problem that could not be identified.

【0005】[0005]

【発明が解決しようとする課題】本発明は上記事実を考
慮し、プリンタに格納されているファイルが確実に識別
できるプリンタ装置の提供を目的とする。
SUMMARY OF THE INVENTION In consideration of the above facts, an object of the present invention is to provide a printer device which can surely identify a file stored in a printer.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
めに、請求項1に記載の発明は、ネットワークを介して
プリンタ装置と接続され、原ファイル名が指定されるこ
とによりプリントの指示を受け付け、前記原ファイル名
に該当する印刷データをプリントファイルとして前記プ
リンタ装置へ転送するプリンタ制御装置において、プリ
ンタ装置へプリントファイルを転送する際に、各プリン
トファイル毎に異なる識別文字を選択する識別文字選択
手段と、前記プリントファイルに前記原ファイル名と前
記選択された識別文字が合成されて生成される転送ファ
イル名を用いて前記プリンタ装置へ前記プリントファイ
ルを転送するネットワーク制御手段と、を有することを
特徴としている。
In order to achieve the above object, the invention according to claim 1 is connected to a printer device via a network, and an original file name is designated to issue a print instruction. In a printer control device that receives and transfers print data corresponding to the original file name to the printer device as a print file, an identification character that selects a different identification character for each print file when transferring the print file to the printer device. Selection means, and network control means for transferring the print file to the printer device by using a transfer file name generated by combining the original file name and the selected identification character in the print file. Is characterized by.

【0007】請求項1の発明によれば、プリンタ制御装
置は原ファイル名(以下、単にファイル名と表す。)を
得ることでプリントの指示を受け付け、ファイル名に該
当するプリントファイル(印刷データ)を読み出す。識
別文字選択手段は、各プリントファイル毎に異なる識別
文字を選択する。ネットワーク制御手段は選択された識
別文字とファイル名を合成することで転送ファイル名を
作成し、転送ファイル名を用いてプリンタ装置へプリン
トファイルを転送する。識別文字はプリントファイル間
で重複が無いように選択されるため、同じファイル名を
持つ複数のファイルを格納できるプリンタ装置において
も、識別文字を用いることで確実にファイル名によるフ
ァイルの識別を行える。
According to the first aspect of the invention, the printer control device receives the print instruction by obtaining the original file name (hereinafter, simply referred to as a file name), and the print file (print data) corresponding to the file name. Read out. The identification character selection means selects a different identification character for each print file. The network control means creates a transfer file name by combining the selected identification character and the file name, and transfers the print file to the printer device using the transfer file name. Since the identification characters are selected so that there is no duplication between the print files, even in a printer device that can store a plurality of files having the same file name, the identification characters can be used to reliably identify the files by the file names.

【0008】請求項2に記載の発明は、使用可能な全て
の識別文字を予め格納する識別文字格納手段と、前記識
別文字格納手段に格納された識別文字と、使用された識
別文字とを照合し、未使用の識別文字を選択し読み出す
識別文字選択読み出し手段と、を有することを特徴とし
ている。
According to a second aspect of the present invention, the identification character storage means for storing all the usable identification characters in advance, the identification characters stored in the identification character storage means, and the used identification characters are collated. However, the present invention is characterized by having an identification character selection / readout unit that selects and reads out an unused identification character.

【0009】請求項2の発明によれば、識別文字は文字
数と、使用できる文字の種類が予め決められており、使
用可能な全ての識別文字が識別文字格納手段に格納され
ている。識別文字選択読み出し手段は、現在使用されて
いる全ての識別文字を、識別文字格納手段と照合する。
使用されている全ての識別文字と一致しない識別文字が
未使用の識別文字と判断され、未使用の識別文字が識別
文字格納手段から読み出される。
According to the invention of claim 2, the number of characters of the identification characters and the types of usable characters are predetermined, and all the usable identification characters are stored in the identification character storage means. The identification character selection / reading means collates all currently used identification characters with the identification character storage means.
Identification characters that do not match all of the used identification characters are determined as unused identification characters, and unused identification characters are read from the identification character storage means.

【0010】請求項3に記載の発明は、識別文字の候補
を作成し、前記候補が使用された全ての識別文字と一致
しないかを判定し、全ての識別文字と一致しない場合に
前記候補を未使用の識別文字とする識別文字作成手段を
有することを特徴としている。
According to a third aspect of the present invention, a candidate for an identification character is created, it is determined whether the candidate does not match all the used identification characters, and if the candidate does not match all the identification characters, the candidate is selected. It is characterized by having an identification character creating means for making an unused identification character.

【0011】請求項3の発明によれば、識別文字作成手
段は、未使用の識別文字を得る場合に、1個の識別文字
の候補を作成する。この候補は文字コードの順などの、
所定の順序で作成される。候補が使用された全ての識別
文字と一致しないかを判断する。全てと一致しないと判
断した場合は作成した候補を未使用の識別文字とする。
いずれかと一致した場合は候補は既に使用されていると
判断し、新たな識別文字の候補を作成し、再び一致しな
いか否かの判断を行う。識別文字の文字数が多い場合な
ど、使用可能な識別文字の全てを格納することが困難な
場合に、容易に未使用の識別文字を得ることができる。
According to the invention of claim 3, the identification character creating means creates one identification character candidate when obtaining an unused identification character. This candidate is the order of the character code,
It is created in a predetermined order. Determine if the candidate does not match all the identifying characters used. If it is determined that they do not match all, the created candidate is set as an unused identification character.
If any match is found, it is determined that the candidate has already been used, a new identification character candidate is created, and it is again judged whether or not they match. When it is difficult to store all the usable identification characters, such as when the number of identification characters is large, it is possible to easily obtain an unused identification character.

【0012】請求項4に記載の発明は、前記プリンタ装
置への前記プリントファイルの転送が不完全である場
合、あるいは転送された前記プリントファイルのプリン
トの中止が指示された場合に、前記ネットワーク制御手
段は前記転送ファイル名を用いて前記プリントファイル
の削除を前記プリンタ装置へ指示する、ことを特徴とし
ている。
According to a fourth aspect of the present invention, the network control is performed when the transfer of the print file to the printer device is incomplete or when an instruction to stop printing the transferred print file is given. The means is characterized by instructing the printer device to delete the print file using the transfer file name.

【0013】請求項4の発明によれば、転送ファイル名
に追加された識別文字によってプリントファイルを識別
することができる。従って、プリンタ装置に格納された
プリントファイルを削除する場合のようにプリントファ
イルの誤識別が問題となる場合においても確実に所望の
プリントファイルを削除することができ、誤識別を防ぐ
ことができる。
According to the invention of claim 4, the print file can be identified by the identification character added to the transfer file name. Therefore, even when the erroneous identification of the print file is a problem such as when the print file stored in the printer device is deleted, the desired print file can be surely deleted, and the erroneous identification can be prevented.

【0014】[0014]

【発明の実施の形態】図1に示される如く、クライアン
トホスト1はLAN 2を介してプリントサーバ3と接続さ
れている。
BEST MODE FOR CARRYING OUT THE INVENTION As shown in FIG. 1, a client host 1 is connected to a print server 3 via a LAN 2.

【0015】クライアントホスト1は、一般アプリケー
ション及びユーザの要求を受け付けるインターフェース
プログラム11、データベース12、プリンタ制御プロ
グラム13、通信制御プログラム14を備えている。
The client host 1 comprises an interface program 11 for accepting general applications and user requests, a database 12, a printer control program 13, and a communication control program 14.

【0016】インターフェースプログラム11はプリン
タ制御プログラム13と接続され、一般アプリケーショ
ン及びユーザからのプリントの要求を受け付ける。イン
ターフェース11の例は図2で後述するが、インターフ
ェースプログラム11はプリントするファイル名(以
下、プリントファイル名と表す)が指定されることによ
り制御プログラム13に対してプリントを要求する。制
御プログラム13は、インターフェースプログラム11
から送られたプリント要求に基づき、プリントファイル
に関する各種情報(以下、エントリと表す)を作成し、
後述のデータベース12に格納する。
The interface program 11 is connected to the printer control program 13 and receives print requests from general applications and users. Although an example of the interface 11 will be described later with reference to FIG. 2, the interface program 11 requests the control program 13 for printing when a file name to be printed (hereinafter referred to as a print file name) is designated. The control program 13 is the interface program 11
Creates various information (hereinafter referred to as entries) related to the print file based on the print request sent from
It is stored in the database 12 described later.

【0017】データベース12はプリンタ制御プログラ
ム13と接続され、制御プログラム13によって作成さ
れたエントリを格納する。データベース12は後述の図
3に示される構造を持つ。
The database 12 is connected to the printer control program 13 and stores the entries created by the control program 13. The database 12 has a structure shown in FIG. 3 described later.

【0018】識別文字テーブル15はプリンタ制御プロ
グラム13と接続され、プリンタ制御プログラム13に
よって識別文字の候補が格納される。識別文字テーブル
15は識別文字が選択される際に利用される。
The identification character table 15 is connected to the printer control program 13, and the printer control program 13 stores identification character candidates. The identification character table 15 is used when an identification character is selected.

【0019】通信制御プログラム14はプリンタ制御プ
ログラム13と接続され、FTP を利用したプリントファ
イルの転送をLAN 2に対して行う。データベース12に
登録されたエントリに対応するプリントファイルを順次
プリントサーバ3に転送する。
The communication control program 14 is connected to the printer control program 13 and transfers a print file using FTP to the LAN 2. The print files corresponding to the entries registered in the database 12 are sequentially transferred to the print server 3.

【0020】プリントサーバ3は通信制御プログラム3
1、キュー32、スプール33、データ出力部34を備
えている。
The print server 3 is a communication control program 3
1, a queue 32, a spool 33, and a data output unit 34.

【0021】通信制御プログラム31はLAN 2と接続さ
れ、クライアントホスト1から転送されたファイルを読
み込み、クライアントホスト1の要求に応じてプリント
の状況を送信する。
The communication control program 31 is connected to the LAN 2, reads the file transferred from the client host 1, and transmits the print status in response to the request from the client host 1.

【0022】キュー32は通信制御プログラム31と接
続され、前記転送されたファイルの名前等の管理情報
を、転送された時刻の順に格納する。また、クライアン
トホスト1の要求に応じて格納した情報をクライアント
ホスト1に送信する。前述の通信制御プログラム14は
キュー32よりプリントファイルの処理状況を読み込
み、データベース12に格納されているエントリを前記
読み込んだ処理状況と一致するように更新する。
The queue 32 is connected to the communication control program 31 and stores management information such as the name of the transferred file in the order of the transferred time. Further, the stored information is transmitted to the client host 1 in response to the request from the client host 1. The aforementioned communication control program 14 reads the processing status of the print file from the queue 32, and updates the entry stored in the database 12 so as to match the read processing status.

【0023】スプール33は通信制御プログラム31と
接続され、転送されたプリントファイルの中身を一時的
に格納する。
The spool 33 is connected to the communication control program 31 and temporarily stores the contents of the transferred print file.

【0024】データ出力部34は、キュー32及びスプ
ール33、プリンタエンジン4と接続されている。キュ
ー32に格納されたファイル名等の管理情報を転送され
た時刻が古い順に読み出す。即ち、キュー32はファー
ストイン・ファーストアウト(FIFO)型のキューであ
り、転送された順にプリントが実行される。データ出力
部34はキュー32から読み出したプリントファイル名
に対応するファイルをスプール33から読み出し、プリ
ンタエンジン4に出力する。また、プリンタエンジン4
よりファイルの処理状況を獲得し、キュー32上の該当
ファイルの管理情報を更新し、キュー32が実際の処理
状況を表すようにする。
The data output section 34 is connected to the queue 32, the spool 33, and the printer engine 4. The management information such as the file name stored in the queue 32 is read in the order of the transferred time. That is, the queue 32 is a first-in first-out (FIFO) type queue, and printing is executed in the order of transfer. The data output unit 34 reads the file corresponding to the print file name read from the queue 32 from the spool 33 and outputs it to the printer engine 4. Also, the printer engine 4
The processing status of the file is acquired, the management information of the file on the queue 32 is updated, and the queue 32 represents the actual processing status.

【0025】プリンタエンジン4はデータ出力部34か
ら出力されたデータからプリントする。
The printer engine 4 prints from the data output from the data output unit 34.

【0026】図2は、インターフェースプログラム11
に係るインターフェースの例である。ユーザーはpcp コ
マンドでプリント制御プログラム13とのインターフェ
ースを開始し、put コマンドでプリントを要求する。pu
t コマンドは、第1パラメータでプリントファイルをク
ライアントホスト1上でのファイル名で指定する。
FIG. 2 shows the interface program 11.
It is an example of the interface concerning. The user starts the interface with the print control program 13 with the pcp command and requests printing with the put command. pu
The t command specifies the print file by the first parameter by the file name on the client host 1.

【0027】listコマンドはput コマンドで転送を要求
したプリントファイル名の一覧を各プリントファイルの
ステータスと一緒に表示する。図2の例では、5つのプ
リントファイルのステータスが表示されている。bye コ
マンドはプリンタ制御プログラム13とのインターフェ
ースを終了する。
The list command displays a list of print file names requested to be transferred by the put command together with the status of each print file. In the example of FIG. 2, the statuses of five print files are displayed. The bye command ends the interface with the printer control program 13.

【0028】図3にデータベース12の構造を示す。デ
ータベース12は、大きく3つの領域に別れている。第
1の領域は図3のSending と呼ばれる領域であり、現在
プリントサーバ3へ転送中のプリントファイルに対応し
たエントリを格納する。第2の領域はPending と呼ばれ
る領域であり、プリントサーバ3への転送は完了した
が、プリントされていないプリントファイルに対応した
エントリを格納する。第3の領域はTermと呼ばれる領域
であり、プリントが終了したプリントファイルに対応し
たエントリを格納する。データベース12は、通信制御
プログラム14がキュー32から実際のプリントファイ
ルの処理状況を読み出すことで、その内容が更新され
る。例えば、Sending に格納されたエントリは、エント
リに対応するプリントファイルの転送が完了するとPend
ing に移動され、Pending に格納されたエントリは、エ
ントリに対応するプリントファイルの印刷が完了すると
Termに移動される。
FIG. 3 shows the structure of the database 12. The database 12 is roughly divided into three areas. The first area is an area called Sending in FIG. 3, and stores an entry corresponding to the print file currently being transferred to the print server 3. The second area is an area called Pending, which stores an entry corresponding to a print file that has not been printed but has been transferred to the print server 3. The third area is an area called Term and stores an entry corresponding to a print file for which printing has been completed. The contents of the database 12 are updated when the communication control program 14 reads the actual print file processing status from the queue 32. For example, the entry stored in Sending is Pend when the transfer of the print file corresponding to the entry is completed.
The entry that was moved to ing and stored in Pending will be printed when the print file corresponding to the entry is completed.
Moved to Term.

【0029】各エントリは、Prev、ユーザ名、プリント
ファイル名、識別文字、送信時間、ステータス、Nextか
ら成る。Prevは、Prevの前にエントリが格納されている
かが示されており、各領域の最初のエントリではPrevは
Nullである。ユーザ名は、プリントを指示したユーザの
ユーザ名である。識別文字の詳細は後述するが、プリン
トサーバ3でファイルを識別するためにプリントファイ
ル名に追加される文字である。送信時間は、プリントを
指示した時刻である。
Each entry consists of Prev, user name, print file name, identification character, transmission time, status, and Next. Prev indicates whether the entry is stored before Prev, and Prev is the first entry in each area.
Null. The user name is the user name of the user who issued the print instruction. Although details of the identification character will be described later, the identification character is a character added to the print file name to identify the file in the print server 3. The transmission time is the time when the printing is instructed.

【0030】ステータスは、Sending 、Pending 、Comp
lete、Abort 、Cancelがある。Completeはプリントの完
了を示し、Abort はプリントの異常終了、Cancelはユー
ザの指示でプリントが取り消されたことを示す。
The status is Sending, Pending, Comp
There are lete, Abort, and Cancel. Complete indicates the completion of printing, Abort indicates abnormal termination of printing, and Cancel indicates that the printing has been canceled by the user's instruction.

【0031】Nextは、Nextの次にエントリが格納されて
いるかが示されており、各領域の最後のエントリではNe
xtはNullであるプリントサーバ3のキュー32は、同じ
ファイル名を持つプリントファイルを複数登録すること
ができる。一方、クライアントホスト1はファイル名を
用いてファイルを識別している。従って、キュー32に
同じ名前のプリントファイルが複数存在する場合、クラ
イアントホスト1は同じ名前のプリントファイル同士を
識別することが出来なくなる。このような状態を避ける
ために、クライアントホスト1はプリントファイルを転
送するときに、プリントファイル名と識別文字を合成し
た転送ファイル名を作成し、転送ファイル名にてプリン
トファイルをプリントサーバ3に転送する。識別文字は
ファイル毎に異なる文字が選択され、プリントサーバ3
に転送された転送ファイル名は全て違う名前(ユニーク
な名前)になる。クライアントホスト1でプリントファ
イル名を変更する為、プリントサーバ3の機能を変更せ
ずにファイル名の重複を避けることが出来る。
Next indicates whether an entry is stored next to Next, and Ne is set in the last entry of each area.
The queue 32 of the print server 3 in which xt is Null can register a plurality of print files having the same file name. On the other hand, the client host 1 identifies the file using the file name. Therefore, when there are a plurality of print files with the same name in the queue 32, the client host 1 cannot identify the print files with the same name. In order to avoid such a situation, the client host 1 creates a transfer file name that combines the print file name and the identification character when transferring the print file, and transfers the print file to the print server 3 with the transfer file name. To do. Different identification characters are selected for each file, and the print server 3
All transfer file names transferred to will have different names (unique names). Since the print file name is changed by the client host 1, it is possible to avoid duplication of the file name without changing the function of the print server 3.

【0032】図4に転送ファイル名の例を示す。先頭は
クライアントホストの識別の為のホストIDである、クラ
イアントホスト毎に決められた8文字のIDを持ってい
る。ホストIDの次にID(識別文字)が記述されている。
識別文字は予め字数及び使われる文字の種類が決められ
ており、本実施形態では1文字の大文字のアルファベッ
ト(A〜Z)が使用される。識別文字の次に、プリント
ファイル名が記述されている。プリントファイル名は任
意の文字数を用いることができる。従って、本実施形態
では転送ファイル名の先頭から数えて9文字目に位置す
る文字が識別文字となる。
FIG. 4 shows an example of the transfer file name. The head has a host ID for identifying the client host, which is an 8-character ID determined for each client host. The ID (identification character) is described after the host ID.
The number of characters and the type of characters to be used are determined in advance as the identification characters, and in the present embodiment, one uppercase alphabet (AZ) is used. After the identification character, the print file name is described. The print file name can use any number of characters. Therefore, in this embodiment, the character located at the 9th character from the beginning of the transfer file name is the identification character.

【0033】次に本発明の実施の形態の作用を説明す
る。クライアントホスト1のインターフェースプログラ
ム11は、ユーザ或いは一般アプリケーションからプリ
ントの指示を受けると、指示されたプリントファイル名
等の情報をプリンタ制御プログラム13に送出する。
Next, the operation of the embodiment of the present invention will be described. When the interface program 11 of the client host 1 receives a print instruction from a user or a general application, the interface program 11 sends information such as the instructed print file name to the printer control program 13.

【0034】プリンタ制御プログラム13は、転送ファ
イル名を作成するために図5のフローチャートで示され
る処理を開始する。
The printer control program 13 starts the processing shown in the flowchart of FIG. 5 in order to create a transfer file name.

【0035】ステップ100では、使用可能な全ての識
別文字を候補として識別文字テーブル15に格納する。
本実施形態では識別文字にA〜Zの26文字の大文字の
アルファベットを使用するため、識別文字テーブル15
には26個の識別文字の候補が格納される。
In step 100, all the usable identification characters are stored in the identification character table 15 as candidates.
In the present embodiment, since the uppercase alphabet of 26 characters A to Z is used as the identification character, the identification character table 15
Stores 26 identification character candidates.

【0036】ステップ102では、LAN 2を介してキュ
ー32に登録されている転送ファイル名を1つ読み出
す。既にキュー32から全ての転送ファイル名を読み出
した場合はデータベース12のエントリに登録されてい
る転送ファイル名を1つ読み出す。データベース12の
エントリからファイル名を読み出すのは、まだ転送が完
了せず、従ってキュー32に登録されていないプリント
ファイルの識別文字についても重複を避ける為である。
At step 102, one transfer file name registered in the queue 32 is read out via the LAN 2. When all transfer file names have already been read from the queue 32, one transfer file name registered in the entry of the database 12 is read. The reason why the file name is read from the entry of the database 12 is to avoid duplication of the identification character of the print file which is not yet registered in the queue 32 and is therefore not registered in the queue 32.

【0037】ステップ104では、ステップ102で読
み出された転送ファイル名の先頭から9文字目にある識
別文字を抽出する。
At step 104, the identification character which is the ninth character from the beginning of the transfer file name read at step 102 is extracted.

【0038】ステップ106では、識別文字テーブル1
5から、ステップ104で抽出された識別文字を削除す
る。従って、既に使用されている識別文字が候補から除
外される。
In step 106, the identification character table 1
From 5, the identification characters extracted in step 104 are deleted. Therefore, the already used identification characters are excluded from the candidates.

【0039】ステップ108では、まだ読み出していな
い転送ファイル名が存在するかが判断される。キュー3
2から全ての転送ファイル名が読み出され、且つデータ
ベース12のエントリから全ての転送ファイル名が読み
出されている場合は全ての転送ファイル名を読み出した
と判断されてステップ110に移行する。全て読み出さ
れていない場合はステップ102に戻り、次の転送ファ
イル名が読み出される。
In step 108, it is judged whether or not there is a transfer file name that has not been read yet. Cue 3
If all the transfer file names have been read from 2 and all the transfer file names have been read from the entries of the database 12, it is determined that all the transfer file names have been read, and the process proceeds to step 110. If not all have been read, the process returns to step 102 and the next transfer file name is read.

【0040】ステップ110に処理が移行した時点で、
既に使われている識別文字は識別文字の候補から削除さ
れている。識別文字テーブル15には、未使用の識別文
字の候補のみが残されている。ステップ110では、使
用されていない識別文字の候補が存在するかが判断され
ている。候補が1個も残っていない場合は判断が否定さ
れてステップ114に移行する。候補が1個以上残って
いる場合は判断が肯定されてステップ112に移行す
る。
At the time when the processing moves to step 110,
The identification characters that have already been used have been deleted from the identification character candidates. Only unused identification character candidates are left in the identification character table 15. In step 110, it is determined whether there are any unused identification character candidates. If no candidate remains, the determination is negative and the process proceeds to step 114. If one or more candidates remain, the determination is affirmative and the process proceeds to step 112.

【0041】ステップ112では、識別文字を、識別文
字テーブル15に残った識別文字の候補から選択し、ス
テップ116に移行する。本実施形態では識別文字の候
補中、アルファベット順に最も早い順のアルファベット
が1文字選択される。
In step 112, the identification character is selected from the identification character candidates remaining in the identification character table 15, and the process proceeds to step 116. In the present embodiment, one alphabetic character is selected from the earliest alphabetical order among the identification character candidates.

【0042】ステップ114では、データベース12の
Termに格納されたエントリから1つのエントリを選択
し、該エントリから識別文字を抽出し、該エントリを削
除し、ステップ116に移行する。これは、Termに格納
されたエントリは既に印刷が終了したエントリであり、
必ずしも格納する必要は無い為である。不必要なエント
リを削除し、削除されたエントリの識別文字を使用する
ことで識別文字の不足を補う。また、データベース12
から削除されたエントリに対応するプリントファイルが
キュー32に残っている場合は、通信制御プログラム1
4を用いてキュー32に対して該プリントファイルの削
除を要求する。
In step 114, the database 12
One entry is selected from the entries stored in the term, the identification character is extracted from the entry, the entry is deleted, and the process proceeds to step 116. This is because the entry stored in Term has already been printed,
This is because it is not necessary to store it. Compensate for the lack of identifying characters by removing unnecessary entries and using the identifying characters of the deleted entries. Also, the database 12
If the print file corresponding to the entry deleted from the queue 32 remains in the queue 32, the communication control program 1
4 is used to request the queue 32 to delete the print file.

【0043】ステップ116では、ステップ112或い
はステップ114にて選択(抽出)された識別文字を、
今回転送するプリントファイルの識別文字とする。ま
た、ユーザ名、送信時間などの情報を得る。
In step 116, the identification character selected (extracted) in step 112 or step 114 is
This is the identification character of the print file to be transferred this time. Also, information such as user name and transmission time is obtained.

【0044】ステップ118では、ステップ116で得
られた各種情報を用いてエントリを作成し、データベー
ス12のSending と呼ばれる領域に格納する。
At step 118, an entry is created using the various information obtained at step 116 and stored in an area called Sending of the database 12.

【0045】プリンタ制御プログラム13は、データベ
ース12からSending に格納されたエントリを読み出
し、エントリに格納されたプリントファイル名に識別文
字及びホストIDを追加して、図4の様な転送ファイル名
を作成する。プリントファイルに転送ファイル名を付
け、通信制御プログラム14にプリントサーバ3への該
プリントファイルの転送を要求する。
The printer control program 13 reads the entry stored in Sending from the database 12, adds the identification character and the host ID to the print file name stored in the entry, and creates a transfer file name as shown in FIG. To do. A transfer file name is given to the print file, and the communication control program 14 is requested to transfer the print file to the print server 3.

【0046】通信制御プログラム14は、プリントファ
イルの転送の要求を受け付け、プリントファイル名に該
当するプリントファイルを読み出し、転送ファイル名を
用いて該プリントファイルをプリントサーバ3に転送す
る。
The communication control program 14 receives a request for transfer of the print file, reads the print file corresponding to the print file name, and transfers the print file to the print server 3 using the transfer file name.

【0047】従って、選択(抽出)された識別文字は、
プリントサーバ3及びデータベース12においてユニー
クである。以前に指定されたプリントファイル名と同じ
プリントファイル名が指定された場合でも、識別文字を
用いることで確実にプリントサーバ3に格納されたプリ
ントファイルを識別することができる。クライアントホ
スト1は、識別文字を持つ転送ファイル名を用いてプリ
ントファイル転送後のステータス確認や、プリントの中
断を行うことができる。また、クライアントホスト1で
転送ファイル名を作成するため、プリントサーバ3の機
能を変更する必要がない。
Therefore, the selected (extracted) identification character is
It is unique in the print server 3 and the database 12. Even if the same print file name as the previously specified print file name is specified, the print character stored in the print server 3 can be reliably identified by using the identification character. The client host 1 can confirm the status after transfer of the print file and interrupt the printing by using the transfer file name having the identification character. Further, since the transfer file name is created by the client host 1, it is not necessary to change the function of the print server 3.

【0048】本実施形態では、クライアントホスト1で
のファイル名をプリントファイル名とし、プリントファ
イル名に識別文字を合成して転送ファイル名を作成した
が、別途指定された任意の文字列をプリントファイル名
の代わりに使用し、任意の文字列と識別文字とを合成
し、転送ファイル名とすることも可能である。
In this embodiment, the file name on the client host 1 is used as the print file name, and the transfer file name is created by combining the print file name with the identification character. However, an arbitrary character string specified separately is used as the print file name. It is also possible to use it instead of the name and synthesize an arbitrary character string and the identification character to form the transfer file name.

【0049】本実施形態では識別文字として1文字の大
文字のアルファベットを用いたが、小文字のアルファベ
ットや数字、記号など他の文字を用いたり、2文字以上
の識別文字を用いてもよい。
Although one uppercase alphabet is used as the identification character in the present embodiment, other characters such as lowercase alphabets, numbers and symbols may be used, or two or more identification characters may be used.

【0050】本実施形態では予め全ての識別文字を候補
として用意し、使用されている識別文字を候補から削除
して未使用である識別文字を選択したが、使用されてい
る全ての識別文字をテーブルに格納し、所定の順序で識
別文字の候補を作成し、該候補が始めてテーブルに格納
されている全ての識別文字と一致しない候補であった場
合に、該候補を未使用である識別文字して選択すること
も可能である。識別文字の文字数が多く、全ての識別文
字の候補を格納するメモリの確保が困難な場合に、未使
用である識別文字を容易に選択することができる。例え
ば、識別文字が5桁の数字である場合は、「0000
0」「00001」「00002」・・・と番号順に候
補を作成する。
In the present embodiment, all the identification characters are prepared in advance as candidates, and the used identification characters are deleted from the candidates to select the unused identification characters. However, all the used identification characters are selected. If the candidates are stored in a table, candidates for identification characters are created in a predetermined order, and the candidates do not match all the identification characters stored in the table for the first time, the candidates are identified as unused identification characters. It is also possible to select. When the number of identification characters is large and it is difficult to secure a memory for storing all identification character candidates, an unused identification character can be easily selected. For example, when the identification character is a five-digit number, "0000
Candidates are created in the order of 0, “00001”, “00002” ...

【0051】プリントファイルの転送中に障害が発生
し、プリントファイルが不完全な形で転送された場合
に、キュー32上に該プリントファイルが格納されてい
るかを確認し、格納されていた場合にクライアントホス
ト1からプリントサーバ3に削除コマンドを送信するこ
とで不完全なプリントファイルの格納及びプリントを抑
止することができる。
When a failure occurs during the transfer of the print file and the print file is transferred in an incomplete form, it is confirmed whether the print file is stored in the queue 32, and if it is stored. By transmitting a delete command from the client host 1 to the print server 3, incomplete storage and printing of print files can be suppressed.

【0052】[0052]

【発明の効果】以上説明した如く本発明に係るプリンタ
制御装置は、ファイル名に識別文字を追加することで、
同じファイル名のファイルを複数格納可能なプリント装
置においても確実にファイルの識別を行えるという優れ
た効果を有する。
As described above, the printer control device according to the present invention adds the identification character to the file name,
This has an excellent effect that a file can be surely identified even in a printing apparatus capable of storing a plurality of files having the same file name.

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

【図1】本発明の実施の形態に係るプリンタ制御装置の
ブロック図である。
FIG. 1 is a block diagram of a printer control device according to an embodiment of the present invention.

【図2】本発明の実施の形態に係り、インターフェース
の例を示す図である。
FIG. 2 is a diagram showing an example of an interface according to the embodiment of the present invention.

【図3】本発明の実施の形態に係り、データベースの構
造を示す図である。
FIG. 3 is a diagram showing a structure of a database according to the embodiment of the present invention.

【図4】本発明の実施の形態に係り、プリントファイル
名と転送ファイル名の関係を示す図である。
FIG. 4 is a diagram showing a relationship between a print file name and a transfer file name according to the embodiment of the present invention.

【図5】本発明の実施の形態に係り、転送ファイル名を
作成する処理を示すフローチャートである。
FIG. 5 is a flowchart showing processing of creating a transfer file name according to the embodiment of the present invention.

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

1 クライアントホスト(プリンタ制御装置) 2 LAN (ネットワーク) 3 プリントサーバ(プリント装置) 13 プリンタ制御プログラム(識別文字選択手
段、識別文字選択読み出し手段、識別文字作成手段) 14 通信制御プログラム(ネットワーク制御手
段) 15 識別文字テーブル(識別文字格納手段)
1 Client Host (Printer Control Device) 2 LAN (Network) 3 Print Server (Printing Device) 13 Printer Control Program (Identification Character Selection Means, Identification Character Selection Read Means, Identification Character Creation Means) 14 Communication Control Program (Network Control Means) 15 Identification Character Table (Identification Character Storage Means)

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ネットワークを介してプリンタ装置と接
続され、原ファイル名が指定されることによりプリント
の指示を受け付け、前記原ファイル名に該当する印刷デ
ータをプリントファイルとして前記プリンタ装置へ転送
するプリンタ制御装置において、 プリンタ装置へプリントファイルを転送する際に、各プ
リントファイル毎に異なる識別文字を選択する識別文字
選択手段と、 前記プリントファイルに前記原ファイル名と前記選択さ
れた識別文字が合成されて生成される転送ファイル名を
用いて前記プリンタ装置へ前記プリントファイルを転送
するネットワーク制御手段と、を有することを特徴とす
るプリンタ制御装置。
1. A printer connected to a printer device via a network, accepting a print instruction by designating an original file name, and transferring print data corresponding to the original file name to the printer device as a print file. In the control device, when the print file is transferred to the printer device, an identification character selection unit that selects a different identification character for each print file, and the print file is combined with the original file name and the selected identification character. And a network control unit that transfers the print file to the printer device by using a transfer file name generated by the printer control device.
【請求項2】 使用可能な全ての識別文字を予め格納す
る識別文字格納手段と、 前記識別文字格納手段に格納された識別文字と、使用さ
れた識別文字とを照合し、未使用の識別文字を選択し読
み出す識別文字選択読み出し手段と、を有することを特
徴とする請求項1記載のプリンタ制御装置。
2. An identification character storage means for storing all usable identification characters in advance, an identification character stored in the identification character storage means and a used identification character are collated, and an unused identification character is used. 2. The printer control apparatus according to claim 1, further comprising: identification character selection and reading means for selecting and reading.
【請求項3】 識別文字の候補を作成し、前記候補が使
用された全ての識別文字と一致しないかを判定し、全て
の識別文字と一致しない場合に前記候補を未使用の識別
文字とする識別文字作成手段を有することを特徴とする
請求項1記載のプリンタ制御装置。
3. A candidate for an identification character is created, it is determined whether the candidate does not match all the used identification characters, and when the candidate does not match all the identification characters, the candidate is set as an unused identification character. 2. The printer control device according to claim 1, further comprising identification character creating means.
【請求項4】 前記プリンタ装置への前記プリントファ
イルの転送が不完全である場合、あるいは転送された前
記プリントファイルのプリントの中止が指示された場合
に、前記ネットワーク制御手段は前記転送ファイル名を
用いて前記プリントファイルの削除を前記プリンタ装置
へ指示する、ことを特徴とする請求項1乃至3のいずれ
か1項記載のプリンタ制御装置。
4. The network control means sets the transfer file name when the transfer of the print file to the printer device is incomplete or when an instruction to stop printing the transferred print file is given. 4. The printer control device according to claim 1, wherein the printer control device is used to instruct the printer device to delete the print file.
JP8055239A 1996-03-12 1996-03-12 Controller for printer Pending JPH09240074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8055239A JPH09240074A (en) 1996-03-12 1996-03-12 Controller for printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8055239A JPH09240074A (en) 1996-03-12 1996-03-12 Controller for printer

Publications (1)

Publication Number Publication Date
JPH09240074A true JPH09240074A (en) 1997-09-16

Family

ID=12993061

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8055239A Pending JPH09240074A (en) 1996-03-12 1996-03-12 Controller for printer

Country Status (1)

Country Link
JP (1) JPH09240074A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7305457B2 (en) 2000-08-03 2007-12-04 Sharp Kabushiki Kaisha Electronic device control system, portable data storage device, data preparation device, electronic device, and operation data management device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7305457B2 (en) 2000-08-03 2007-12-04 Sharp Kabushiki Kaisha Electronic device control system, portable data storage device, data preparation device, electronic device, and operation data management device
US7830539B2 (en) 2000-08-03 2010-11-09 Sharp Kabushiki Kaisha Electronic device control system, portable data storage device, data preparation device, electronic device, and operation data management device

Similar Documents

Publication Publication Date Title
JP4812162B2 (en) Automatic scanning process
US5559933A (en) Distributed enterprise print controller
JP4194532B2 (en) Information processing apparatus and job transfer control method
US7796281B2 (en) Image forming system having reprint function
US20060221392A1 (en) Information processing apparatus, distributed printing control method, storing medium and program
JPH02275556A (en) Data stream forming method
JPH1021023A (en) Data output controller
US7590769B2 (en) Data communication apparatus and transmission reservation managing method
CN103763449A (en) Print apparatus, a method of controlling printing, and a program
JPH09240074A (en) Controller for printer
JPH06242893A (en) Output control system
JP3102836B2 (en) Printer system and print job processing method for printer system
JP3554600B2 (en) Printer specification acquisition system
JP2001306286A (en) Print job management system and method on network
JP3239703B2 (en) Data transfer system, data processing device, printer, and data transfer method
JPH07200477A (en) Electronic filing deice and its file processing method
JP2005349768A (en) Printing device and printing method
JP2006168069A (en) Printing apparatus and printing system
JPH05265672A (en) Network printing control system
JP2007264834A (en) Method for printing conference material and print server
JP3644597B2 (en) Form output management system and computer program for realizing the same
JPH1165784A (en) Print processing system and method
JP2002091716A (en) Device and method for controlling printing
JP2000172462A (en) Schedule data base linked print system
JP3679458B2 (en) Print server, information processing apparatus, printing system, and printing control method