JPS63202487A - Reprint control mechanism - Google Patents

Reprint control mechanism

Info

Publication number
JPS63202487A
JPS63202487A JP62036481A JP3648187A JPS63202487A JP S63202487 A JPS63202487 A JP S63202487A JP 62036481 A JP62036481 A JP 62036481A JP 3648187 A JP3648187 A JP 3648187A JP S63202487 A JPS63202487 A JP S63202487A
Authority
JP
Japan
Prior art keywords
line
page
data
print
reprint
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP62036481A
Other languages
Japanese (ja)
Other versions
JPH0558398B2 (en
Inventor
Masami Hamada
濱田 眞美
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP62036481A priority Critical patent/JPS63202487A/en
Publication of JPS63202487A publication Critical patent/JPS63202487A/en
Publication of JPH0558398B2 publication Critical patent/JPH0558398B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a reprint equivalent to initial print efficiently, even if reprint is started from a line data which wait for a line feed command dependent on an immediately preceding line position, by storing page head line information and utilizing that information for reprinting. CONSTITUTION:If page turning occurs before a print line determining means 3 determines a printing line position, a page head line table registering means 6 is informed of page turning to store a page head line information into a page head line table 7 every time page turns, thus recording head line information of each page in pair with page number. Reprint page information take-out means 8 retrieves the page head line table 7 with a page number passed as a value for specifying the reprint page being employed as a key, so as to obtain a page head line information of that page. A reprint data synthesizing means 9 receives the information and produces a line data being printed at the start of reprinting from a stored position information. Then the reprint line data is passed to a line data print instructing means and normal processing is carried out, i.e. reprint is started through a reprint line determining means 3, a printing means 4 and a printer 5.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はコンピュータシステムの運用処理制御機構に関
し、特に−柄印刷時の誤り後の再印刷制御機構に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an operational processing control mechanism for a computer system, and more particularly to a reprint control mechanism after an error during pattern printing.

〔従来の技術〕[Conventional technology]

従来、コンピュータの処理結果は利用者のプログラムが
直接印刷装置へ印刷するのでなく、利用者プログラムは
一時的に印刷データを記憶装置へ書き込み、利用者プロ
グラム終了後にコンピュータシステムによって一括して
印刷装置上に印刷されていた。−柄印刷時には利用者プ
ログラムおよび利用者プログラムに関連する人がコンピ
ュータシステムに立合っているわけでないので、印刷装
置の異常が発生した場合でも印刷異常が有ったページ以
後について印刷を継続する必要がある。印刷異常の場合
には通常、異常の発生したページの付近数ページのデー
タは正常に印刷されていない事が多いので、必ずページ
を逆上って印刷しなければならない。この時、印刷デー
タの再印刷に関してページ内の行位置を合わせる事は利
用者の責任において実現されていた。すなわち、ページ
区切りを行いたい場合には改ページ指定を印刷データ中
に挿入しておくことにより、印刷データの中途からの再
印刷にて最初から印刷したのと同じイメージで印刷され
た。しかしながら改行指示によりページを越える印刷デ
ータに対して印刷データの中間から再印刷すると、ペー
ジ内の行位置が改ページ指示があるまで不正となった。
Conventionally, computer processing results were not directly printed by a user program to a printing device, but the user program temporarily wrote the print data to a storage device, and after the user program was finished, the computer system printed the data all at once on the printing device. was printed on. - Since the user program and the person related to the user program are not observing the computer system when printing patterns, even if an error occurs in the printing device, it is necessary to continue printing after the page where the printing error occurred. There is. In the case of a printing abnormality, the data on several pages near the page where the abnormality occurred is often not printed correctly, so the pages must be printed backwards. At this time, it was the user's responsibility to align the line positions within the page when reprinting the print data. In other words, if a page break is desired, a page break designation is inserted into the print data, and by reprinting the print data from the middle, the image is printed with the same image as when it was printed from the beginning. However, when printing data that exceeds a page due to a line break instruction is reprinted from the middle of the print data, the line position within the page becomes incorrect until the page break instruction is issued.

あるいは、中間から印刷しても正しい行位置に印刷する
事を保証する目的で印刷データの先頭から行位置を再計
算仕置し、指定された再印刷ページから実際に印刷する
処理を行う必要があった。
Alternatively, it is necessary to recalculate the line position from the beginning of the print data to ensure that it prints at the correct line position even when printing from the middle, and then perform the process of actually printing from the specified reprint page. Ta.

なお印刷データは行単位に分割することが可能であり、
行データは改行指示と印刷テキストより成る。
Note that print data can be divided into lines,
Line data consists of line feed instructions and print text.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の一括印刷機構においては、再印刷時に任
意な改行で始まるページの行位置合わせが行えないか、
または印刷データに関してその先頭からもう一度読み出
して行位置を計算仕置さなければならないという非効率
がある。
In the conventional batch printing mechanism described above, it is not possible to align the line of a page starting with an arbitrary line break when reprinting.
Alternatively, there is an inefficiency in that the print data must be read again from the beginning to calculate the line position.

印刷レイアウトに関して可変な印刷データを作る事は帳
票運用上の大きな利点となるが、再印刷に関する上記問
題点が有るので、一括印刷で正しい行位置に印刷される
ことを望む場合には、印刷データを作成する時に印刷レ
イアウトを固定しなければならないという欠点がある。
Creating print data that is variable with respect to the print layout is a great advantage in terms of form operation, but there is the above-mentioned problem with reprinting, so if you want to print in the correct line position in batch printing, you should change the print data The disadvantage is that the print layout must be fixed when creating a .

本発明の目的は常に正しく再印刷される再印刷制御機構
を提供することにある。
An object of the present invention is to provide a reprint control mechanism that always reprints correctly.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の再印刷制御機構は、印刷行データ取出し手段と
、前記印刷行データ取出し手段から取出された1行分の
印刷データを印刷指示する行データ印刷指示手段と、行
データに含まれる改行指定および直前性の印刷行位置と
から該当行データを印刷すべき行位置を計算する印刷行
決定手段と、前記行位置に従って印刷装置に行データを
印刷する印刷手段と、ページ先頭行の印刷行位置および
ページ先頭に当る行データの格納位置を含むページ先頭
行情報を毎ページ分保存するページ先頭行表と、前記行
位置が改ページを起していた時ページ先頭行情報をペー
ジ先頭行表に登録するページ先頭行表登録手段と、外部
から与えられる再印刷ページ指定値をキーとしてページ
先頭行表を検索し、該当ページのページ先頭行情報を得
る再印刷頁情報取出手段と、前記ページ先頭行情報の中
の行データ記憶位置を用いて印刷行データを前記印刷行
データ取出し手段から取り出し、かつ取出した行データ
のテキストと前記ページ先頭行情報の中の印刷行位置に
関する改行情報を組み合わせて再印刷用行データを作り
出す再印刷データ合成手段とを有して構成される。
The reprint control mechanism of the present invention includes a print line data extraction means, a line data print instruction means for instructing to print one line of print data extracted from the print line data extraction means, and a line feed specification included in the line data. and a print line determining unit that calculates a line position at which the corresponding line data should be printed from the immediately preceding print line position; a printing unit that prints the line data on a printing device according to the line position; and a print line position of the first line of the page. and a page top line table that stores page top line information for each page, including the storage position of the line data corresponding to the top of the page, and a page top line table that stores page top line information when the line position causes a page break. a page top line table registration means for registering; a reprint page information extracting means for searching the page top line table using an externally given reprint page designation value as a key to obtain page top line information of the corresponding page; Retrieving print line data from the print line data retrieval means using the line data storage position in the line information, and combining the text of the retrieved line data with line feed information regarding the print line position in the page top line information. and reprint data synthesis means for creating reprint line data.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例を示す構成図である。同図に
おいて印刷行データ取出手段1は利用者プログラムが一
括印刷しようとする印刷データを一時的に格納しておく
記憶装置であり、一括印刷を開始する時には1つの利用
者プログラムの印刷データの全てを保持している。印刷
データは順次データが並ぶ構造であるが、通常この記憶
装置は直接アドレス指定ができる場合が多い。順次アク
セスのみ可能な記憶装置でも、逆読みにより目的のデー
タが一意にかつ効率的に読出しできることから直接アド
レスと同等と考えられる。以下では直接アドレス指定可
能な場合について説明する。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the same figure, print line data retrieval means 1 is a storage device that temporarily stores print data that a user program attempts to print in bulk, and when starting batch printing, all the print data of one user program is stored. is held. Although print data has a structure in which data is arranged sequentially, this storage device often allows direct addressing. Even in a storage device that can only be accessed sequentially, reverse reading allows the target data to be read out uniquely and efficiently, so it is considered to be equivalent to direct addressing. In the following, a case where direct addressing is possible will be explained.

−柄印刷指示を行うと、前記印刷データ取出手段1に保
存された印刷データが行データ印刷指示手段2により行
データ単位で読み出される。行データとは改行または改
ページ指定と印刷テキストから成る情報単位であり、こ
れが複数葉まって1つの利用者プログラムによって作ら
れた印刷データを成す。行データ印刷指示手段2は1つ
の行データを読み出すと、印刷行決定手段3に行データ
を引渡し、印刷装置への行データの印刷を依頼する。こ
れを印刷データが尽きるまでくり返す。
- When a pattern printing instruction is given, the print data stored in the print data retrieval means 1 is read out in line data units by the line data print instruction means 2. Line data is an information unit consisting of a line feed or page break designation and print text, and multiple sheets of this data are combined to form print data created by one user program. When the line data print instruction means 2 reads one line data, it delivers the line data to the print line determination means 3 and requests the printing device to print the line data. Repeat this until the print data is exhausted.

印刷行決定手段3では内部に記憶しているページ内現在
行番号と行データに含まれる改行指示から行データ中の
テキストをページ先頭から何行目の位置に印刷するか決
定する。この行位置と行データ中のテキストを印刷手段
4に引き渡し、印刷装置5の指示した行位置に行データ
中のテキストを印刷する。
The print line determining means 3 determines at which line position from the top of the page the text in the line data is to be printed based on the internally stored current line number within the page and the line feed instruction included in the line data. This line position and the text in the line data are delivered to the printing means 4, and the text in the line data is printed at the line position specified by the printing device 5.

印刷行決定手段3中で印刷する行位置を決定する時、ペ
ージ替えが発生した時にはページ先頭行表登録手段6へ
改ページが有った事を通知する。
When a line position to be printed is determined in a print line determining means 3, when a page change occurs, a page start line table registration means 6 is notified of the occurrence of a page change.

この時通知する情報は (a)ページ番号 (b)印刷すべき行位置 (C)テキスト印刷と改行の優先順位 (d)その行データを記憶している印刷データ格納手段
1中の該当行データの記憶装置中データアドレス から成るページ先頭行情報である。
The information to be notified at this time is (a) page number (b) line position to be printed (C) text printing and line feed priority (d) corresponding line data in the print data storage means 1 that stores the line data This is page first row information consisting of data addresses in the storage device.

ページ先頭行表登録手段6では各ページ替え時にページ
先頭行情報をページ先頭行表7に保存する。ページ先頭
行表7は各ページの先頭行情報をページ番号とペアにし
て記録する。
The page top line table registration means 6 stores page top line information in the page top line table 7 at each page change. The page first row table 7 records the first row information of each page in pairs with the page number.

印刷装置が故障を起こした場合、繰作者またはプログラ
ムによって何ページ目から再印刷すべきか、再印刷ペー
ジ指定として本機構に投入する。
When the printing device malfunctions, the printer or program inputs to this mechanism the number of pages to be reprinted as a reprint page designation.

再印刷ページ情報取出手段8は再印刷ページ指定値とし
て渡されたページ番号をキーとしてページ先頭行表7を
索引し、該当ページのページ先頭行情報を得る。
The reprint page information extraction means 8 indexes the page top line table 7 using the page number passed as the reprint page designation value as a key, and obtains the page top line information of the corresponding page.

再印刷データ合成手段9はこの情報を受は取り、記憶位
置情報を用いて再印刷開始時に印刷する行データを得る
。得た行データの印刷テキスト部と、ページ先頭行情報
中の“行位置”と、“印刷と改行の優先順位″の3項目
を合成して再印刷行データを作成する。そして再印刷行
データを行データ印刷指示手段2に渡して通常の処理、
すなわち印刷行決定手段3、印刷手段4、印刷装置5を
用いて再印刷を開始する。このとき再印刷データ合成手
段9により印刷データ格納手段1に読み出し行データ位
置が既にセットされているから、以降の行データは平常
通り行データ印刷指示手段2が次々と行データを取り出
し印刷することにより初回印刷と同一レイアウトの再印
刷を実現する。
The reprint data synthesis means 9 receives this information and uses the storage location information to obtain line data to be printed at the start of reprinting. Reprint line data is created by combining the print text part of the obtained line data, the "line position" in the page top line information, and the "priority order of printing and line feed". Then, the reprint line data is passed to the line data print instruction means 2 and normal processing is performed.
That is, reprinting is started using the print line determining means 3, the printing means 4, and the printing device 5. At this time, since the read line data position has already been set in the print data storage means 1 by the reprint data synthesis means 9, the line data print instruction means 2 successively extracts and prints subsequent line data as usual. This enables reprinting with the same layout as the first print.

なお、本実施例ではページ数を指定してページ先頭から
再印刷を行ったが、行を指定して再印刷する場合には本
機構を用いてページ先頭へ位置付け、指示された行まで
印刷せずに行データを取り出して印刷行を決定し、その
後通常通り印刷すれば良い。
Note that in this example, the number of pages was specified and reprinting was performed from the top of the page, but when specifying a line and reprinting, this mechanism is used to position it to the top of the page and print up to the specified line. All you need to do is to extract the line data, decide which line to print, and then print as usual.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明はページ先頭行情報を保存し
、再印刷時にこれを利用することにより、直前行位置に
依存する改行指示を持つ行データから再印刷を開始して
も、初回印刷と同等な再印刷結果を効率的に得られると
いう効果が有る。
As explained above, the present invention saves page top line information and uses it when reprinting, so that even if reprinting is started from line data with a line feed instruction that depends on the previous line position, it will not be the same as the first printing. This has the effect that equivalent reprinting results can be obtained efficiently.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示す構成図である。 1・・・印刷行データ取出手段、2・・・行データ印刷
指示手段、3・・・印刷行決定手段、4・・・印刷手段
、5・・・印刷装置、6・・・ページ先頭行表登録手段
、7、′:1ノ
FIG. 1 is a block diagram showing an embodiment of the present invention. DESCRIPTION OF SYMBOLS 1...Print line data extraction means, 2...Line data print instruction means, 3...Print line determining means, 4...Printing means, 5...Printing device, 6...Page top line Table registration means, 7,':1 no

Claims (1)

【特許請求の範囲】 印刷行データ取出し手段と、 前記印刷行データ取出し手段から取出された1行分の印
刷データを印刷指示する行データ印刷指示手段と、 行データに含まれる改行指定および直前行の印刷行位置
とから該当行データを印刷すべき行位置を計算する印刷
行決定手段と、 前記行位置に従って印刷装置に行データを印刷する印刷
手段と、 ページ先頭行の印刷行位置およびページ先頭に当る行デ
ータの格納位置を含むページ先頭行情報を毎ページ分保
存するページ先頭行表と、 前記行位置が改ページを起していた時ページ先頭行情報
をページ先頭行表に登録するページ先頭行表登録手段と
、 外部から与えられる再印刷ページ指定値をキーとしてペ
ージ先頭行表を検索し、該当ページのページ先頭行情報
を得る再印刷頁情報取出手段と、前記ページ先頭行情報
の中の行データ記憶位置を用いて印刷行データを前記印
刷行データ取出し手段から取り出し、かつ取出した行デ
ータのテキストと前記ページ先頭行情報の中の印刷行位
置に関する改行情報を組み合わせて再印刷用行データを
作り出す再印刷データ合成手段とを含む事を特徴とする
再印刷制御機構。
[Scope of Claims] Print line data retrieval means; line data print instruction means for instructing printing one line of print data retrieved from the print line data retrieval means; line feed specification and immediately preceding line included in the line data. printing line determining means for calculating the line position at which the corresponding line data should be printed based on the print line position of the line, printing means for printing the line data on a printing device according to the line position, and the print line position of the first line of the page and the top of the page. A page top line table that stores page top line information for each page, including the storage position of the line data corresponding to , and a page that registers page top line information in the page top line table when the line position causes a page break. a first line table registration means; a reprint page information extracting means for searching a page first line table using an externally given reprint page designation value as a key to obtain page first line information of a corresponding page; The print line data is retrieved from the print line data retrieval means using the line data storage position in the middle, and the text of the retrieved line data is combined with the line feed information regarding the print line position in the page top line information for reprinting. A reprint control mechanism comprising a reprint data synthesis means for generating line data.
JP62036481A 1987-02-18 1987-02-18 Reprint control mechanism Granted JPS63202487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62036481A JPS63202487A (en) 1987-02-18 1987-02-18 Reprint control mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62036481A JPS63202487A (en) 1987-02-18 1987-02-18 Reprint control mechanism

Publications (2)

Publication Number Publication Date
JPS63202487A true JPS63202487A (en) 1988-08-22
JPH0558398B2 JPH0558398B2 (en) 1993-08-26

Family

ID=12471009

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62036481A Granted JPS63202487A (en) 1987-02-18 1987-02-18 Reprint control mechanism

Country Status (1)

Country Link
JP (1) JPS63202487A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0262267A (en) * 1988-08-29 1990-03-02 Konica Corp Printer
JP2010211251A (en) * 2009-03-06 2010-09-24 Konica Minolta Business Technologies Inc Image forming system, information processing apparatus, print server, image forming apparatus, image formation assisting program, and print control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0262267A (en) * 1988-08-29 1990-03-02 Konica Corp Printer
JP2010211251A (en) * 2009-03-06 2010-09-24 Konica Minolta Business Technologies Inc Image forming system, information processing apparatus, print server, image forming apparatus, image formation assisting program, and print control method

Also Published As

Publication number Publication date
JPH0558398B2 (en) 1993-08-26

Similar Documents

Publication Publication Date Title
JP2796628B2 (en) Printing device
JPS63202487A (en) Reprint control mechanism
JPS6145325A (en) Printer
JP2513682B2 (en) Print control device
JP2861498B2 (en) Printing equipment
JPH08142441A (en) Printer
JP3246142B2 (en) Printing control device
JP3451289B2 (en) Table output device
JP2000181673A (en) Document printer
JPH078590B2 (en) Printer device
JPS6051937A (en) Document printing control system
JPH04276819A (en) Information processor and its processing method
JPS58134380A (en) Register writing device
JP2001270162A (en) Imaging apparatus and method for outputting image data
JPH05303576A (en) Document processing system
JPH0689150A (en) Plural printing request processor
JPH0749228B2 (en) Form output device
JPS61158483A (en) Electronic apparatus
JPH04242474A (en) Document preparing device
JPS63276625A (en) Information processor
JPS6356869B2 (en)
JPH01215569A (en) Output control method for line printer
JPH04276820A (en) Information processor and its processing method
JPS62250768A (en) Printing device
JPH0224168A (en) Printer

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term