JPH04201284A - Apparatus for printing protruding part - Google Patents

Apparatus for printing protruding part

Info

Publication number
JPH04201284A
JPH04201284A JP32892790A JP32892790A JPH04201284A JP H04201284 A JPH04201284 A JP H04201284A JP 32892790 A JP32892790 A JP 32892790A JP 32892790 A JP32892790 A JP 32892790A JP H04201284 A JPH04201284 A JP H04201284A
Authority
JP
Japan
Prior art keywords
printing
data
page
print
rtn
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
JP32892790A
Other languages
Japanese (ja)
Inventor
Tomonori Muto
武藤 智則
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.)
Hitachi Ltd
Hitachi Keiyo Engineering Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Keiyo Engineering 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 Hitachi Ltd, Hitachi Keiyo Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP32892790A priority Critical patent/JPH04201284A/en
Publication of JPH04201284A publication Critical patent/JPH04201284A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the disturbance of printing and the waste of paper by judging the protrusion of printing data from printing paper and outputting the protruded printing data to a next page. CONSTITUTION:At first, a printing control part performs page split judging processing. A page split judging processing part 201 performs the blank reading of data to be printed to judge whether page split is generated and, when page split is generated, a message is outputted to a display to wait the indication judging whether printing is performed or stopped from an operator. When the protrusion of printing is generated, a printing processing part 203 ensures a work file 110 storing protruded printed data and transfers control to a printing -RTN when printing is not completed and transfers control to a TEXT-RTN and an H-RTN when data to be printed is a text. When page split is generated, the data is transmitted to a printer by the quantity entering one line to execute the formation of next page data.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プリンタの印字方式における印字のはみ出し
部の制御方法に間する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a method for controlling a protruding part of a print in a printing method of a printer.

〔従来の技術〕[Conventional technology]

従来のプリンタの印字では、プリンタ用紙か必要な大き
さに満たない場合、印字の結果が乱れるか、又こま一部
分のみ印字され、正しく印字されていなかった。二の種
の技術の参考となるものには、特開昭57−7]041
号公報、6間昭62−38931号公報、特開昭62−
43727号公報かある。
In printing with conventional printers, if the size of printer paper is less than the required size, the printing results are distorted or only a portion of the frame is printed, resulting in incorrect printing. A reference for the second type of technology is JP-A-57-7]041.
Publication No. 62-38931, Japanese Unexamined Patent Publication No. 62-38931
There is a publication number 43727.

〔発明か解決しようとする課題〕[Invention or problem to be solved]

上記jに来技術は、プリンタ出力時にお(ブる用紙判定
の点について配慮かされておらず、プリンタ用紙か小さ
いと印字かはみ出してしまうという問題かあった。
The technology mentioned above did not take into account the issue of determining whether the paper would be blank when outputting to the printer, and if the printer paper was small, the printing would protrude.

本発明は、1行ここ入る文字数を判定(以下、用紙判定
と呼ぶ)シ、印字かはみ出すよっな場合、次の用紙には
み出した印字データを印字することを目的とする。
An object of the present invention is to determine the number of characters that can fit in one line (hereinafter referred to as paper determination), and, in the case of printing or overflowing, to print the overflowing print data on the next sheet of paper.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するために、印字データかプリンタ用紙
からはみ出すかどうかを判定するページ割れ判定手段と
、印字データがプリンタ用紙からはみ出したかどうか判
定する行末判定手段と、はみ出した印字データを次のペ
ージに出力するために印字フォーマットを新規ユニ生成
する次ページデー夕生成手段とを用いてプリンタによる
印字を行うものである。
In order to achieve the above object, there is provided a page break determination means for determining whether print data protrudes from the printer paper, a line end determination means for determining whether the print data protrudes from the printer paper, and a page break determination means for determining whether the print data protrudes from the printer paper, and a page break determination means for determining whether the print data protrudes from the printer paper. The next page data generating means generates a new print format for output to the printer.

〔作用〕[Effect]

本発明のはみ出し部印刷方式では、ページ割れ判定手段
がこれから印刷し・ようとするデータ中に2行ここまた
がるデータがあるかどうかを判定し、行末判定手段が印
字データがプリンタ用紙からはみ出したかどうかを判定
し、次ページデータ生成手段かはみ出したデータを次の
ページへ正し・〈出力されるように印字フォーマットを
新規に生成する。
In the overflow printing method of the present invention, the page break determination means determines whether there is data that spans two lines in the data to be printed, and the line end determination means determines whether the print data has protruded from the printer paper. The next page data generation means corrects the overflowing data to the next page and generates a new print format so that it will be output.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面を参照して説明する。 Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図8i、本発明の一実施例に間するはみ出し部印刷
方式を示すフロンク図である。二のはみ出し・部印刷方
式は、印刷制御部101と、右半分の印字データをため
ておくワークファイル110とプリンタ111とから、
その主要部が構成されている。
FIG. 18i is a front view showing an overhang printing method according to an embodiment of the present invention. The second overflow/copy printing method uses a print control unit 101, a work file 110 that stores print data for the right half, and a printer 111.
Its main parts are composed of:

印字制御部101は、さらにページ割れ判定部102と
、テキスト・クラフィック判定部103と、行末判定部
104と、残りドツト数算出部105と、印字フォーマ
ット生成部106と、次頁データ生成部107と、次頁
データ取得部108と、印字データ出力部109とから
構成されている。
The print control unit 101 further includes a page break determination unit 102, a text/graphic determination unit 103, an end-of-line determination unit 104, a remaining dot count calculation unit 105, a print format generation unit 106, and a next page data generation unit 107. , a next page data acquisition section 108 , and a print data output section 109 .

第2図を参照すると、ページ割れが発生するかどうかを
判定するページ割れ判定部201と、実際の印刷の制御
を行う印刷処理203とて構成される。
Referring to FIG. 2, the system includes a page tear determination unit 201 that determines whether or not a page tear occurs, and a print process 203 that controls actual printing.

第9図は、本実施例の処理の結果の例である。FIG. 9 is an example of the results of the processing of this embodiment.

枠内の破線はグラフィック印字部分、実線はテキスト印
字部分である。
The broken lines within the frame are the graphic printed portions, and the solid lines are the text printed portions.

印字制#部では、まずページ割れ判定処理(ステップ2
01)を行う。
In the printing system # section, first the page tear determination process (step 2) is performed.
01).

ページ割れ判定処理201ては、第3図に示すように処
理を行う。
The page tear determination process 201 is performed as shown in FIG.

第3図では、これから印刷をするデータの空読みをして
(ステップ302)ページ割れが発生するかどうかを判
定する(ステップ304)。ページ割れが起きるならば
、デイスプレィ上にメツセージを出力して印刷を行うの
か中止するのかをオペレータの指示を待つ(ステップ3
05)。印刷を行うのならば、FLGに1をセット(ス
テップ307)し、中止ならば何もしないで処理から抜
ける。
In FIG. 3, the data to be printed is read blankly (step 302), and it is determined whether a page break occurs (step 304). If page tearing occurs, a message is output on the display and the system waits for the operator's instructions to continue or cancel printing (step 3).
05). If printing is to be performed, 1 is set in FLG (step 307), and if printing is to be canceled, the process is exited without doing anything.

ステップ201を実行し、FLGの状態を見て(ステッ
プ202)、Oならば印刷処理(ステップ203)を実
行し、1ならば何もしないで処理を終了する。
Step 201 is executed, the state of the FLG is checked (step 202), and if it is 0, print processing (step 203) is executed, and if it is 1, the process is ended without doing anything.

印刷処理203ては、第4図の示すように処理を行う。The printing process 203 is performed as shown in FIG.

第4図では、印字のはみ出しが発生した場合、はみ出し
た印字データを格納しておくワークファイルを確保(ス
テップ401)し、はみ出しの発生の有無を記憶する頁
別FLGと印刷の終了を示す終了FLGを初期化する(
ステップ402)。
In FIG. 4, when the printout occurs, a work file is secured to store the protrusion print data (step 401), an FLG for each page is stored to store whether or not the printout has occurred, and an end is set to indicate the end of printing. Initialize FLG (
Step 402).

次tこ、印字データを取得(ステップ403)L印字F
LGをクリアする(ステップ404)。そして、印字デ
ータ終了かどうかを見て(ステップ405)、i?了て
なければ第5図の印字−RTNへ制御を移す(ステップ
407)。
Next, get print data (step 403) L print F
LG is cleared (step 404). Then, it is checked whether the print data is finished (step 405), and i? If not completed, control is transferred to the print-RTN shown in FIG. 5 (step 407).

第5図の印字−RTNでは、現在処理中のデータを指し
・示すBUF−PTRをクリア(ステップ501)L、
1行に印字可能な最大横ドツト数を残りドツト数にコピ
ーする(ステップ502)。
In the print-RTN of FIG. 5, clear the BUF-PTR pointing to the data currently being processed (step 501) L,
The maximum number of horizontal dots that can be printed in one line is copied to the remaining number of dots (step 502).

次に印字データがあるかどうか判定しくステップ503
) 、データがあるならば印字するデータがテキスト、
またはグラフィックかを判別しくステップ504)、テ
キストならば第6図のTEXT −RTNに、グラフィ
ックならば第7図のGRAPH−RTNに制御を移す(
ステップ505、ステップ506)。
Next, step 503 determines whether there is print data.
), if there is data, the data to be printed is text,
or if it is a graphic (Step 504), control is transferred to TEXT-RTN in Figure 6 if it is text, and to GRAPH-RTN in Figure 7 if it is a graphic (
Step 505, Step 506).

TEXT−RTNでは、印字するデータが右半分なのか
左半分なのかを見て(ステップ601)左半分ならばペ
ージ割れが起きるかどうかを判定する(ステップ604
 )、。ページ割れが起きるなら、1行にはいるだけの
データをプリンタに送り(ステップ605)、第8図の
次頁データ生成を実行するくステップ606〉。ページ
割れが起きなけれは、残りドツト数を算出(ステップ6
07〉して、印字データをプリンタへ送り(ステップ6
08)、次のデータにポインタを合わせる(ステップ6
09)。
In TEXT-RTN, it is determined whether the data to be printed is the right half or the left half (step 601), and if it is the left half, it is determined whether a page break occurs (step 604).
),. If a page break occurs, data that fits on one line is sent to the printer (step 605), and the next page data generation shown in FIG. 8 is executed (step 606). If page tearing does not occur, calculate the number of remaining dots (step 6).
07> and send the print data to the printer (step 6
08), move the pointer to the next data (step 6)
09).

また、G RA P H−RT Nては、前記TEXT
、、RTNと同様に印字するデータが左半分のものか右
半分のものかを見て(ステップ701)、左半分のデー
タならば、ページ割れが起きるかどうかを見る(ステッ
プ702)、ページ割れが起きるなら、プリンタのバッ
ファに収まるだけのデータを生成送出をして(ステップ
703) 、次頁データ生成を処理する(ステップ70
4)。右半分のデータ、またはページ割れが起きない場
合は残りドツト数を算出し・(ステップ705)、デー
タをプリンタに送出(ステップ706)L=て、次のデ
ータにポインタを合わせる(ステップ708)。
In addition, for GRAPH-RTN, the above TEXT
,, Similar to RTN, check whether the data to be printed is from the left half or the right half (step 701), and if it is the data from the left half, check whether page breakage occurs (step 702). If this occurs, generate and send data that fits in the printer's buffer (step 703), and process the next page data generation (step 70).
4). The data in the right half, or the number of remaining dots if no page breakage occurs, is calculated (step 705), the data is sent to the printer (step 706), and the pointer is set to the next data (step 708).

TEXT−RTN、GRAPHtRTN各ルーチンを実
行後、印刷FLGがセットされているかどうかを見て(
ステップ507)、セットされていなければステップ5
03’\戻り、セットされていたならばプリンタへ印刷
開始を指示する(ステ・ノブ508)。また、ステップ
503の判定で印字データか終了の場合、終了FLGの
七・ソトの有無を見て(ステップ509)、セ・ノ)・
されて(為な(すれはワークファイルに復改コートを書
き込み、セ・ノドされていれは何屯せずに印刷を開始す
る。
After executing the TEXT-RTN and GRAPHtRTN routines, check whether the print FLG is set (
Step 507), if not set, step 5
03'\Return, and if it is set, instruct the printer to start printing (steer knob 508). If the judgment in step 503 is that the print data is completed, check the presence or absence of 7-soto in the end FLG (step 509).
Once it is done, a revision code is written to the work file, and printing starts without any delay.

印刷するデータをすへて出し終わったなら:ま、終了F
LGをセット(ステップ408)L、頁別FLGがセッ
トされているかを見て(ステップ409)、セットされ
ているならば次頁データを取得(ステップ411)L=
て、前記印字−RTN(ステップ414)を実行する。
If you have finished outputting the data to print: Well, finish F.
Set LG (step 408) L, check whether page-specific FLG is set (step 409), and if set, obtain next page data (step 411) L=
Then, the print-RTN (step 414) is executed.

頁別FLGかセ・ソトされていない、または、印刷デー
タかなくたったならば、ワークファイルを削除して(ス
テップ4]5)処理を終了する。
If the page-by-page FLG has not been set or sorted, or if the print data is gone, the work file is deleted (steps 4 and 5) and the process ends.

第9図を用いて、本実施例の動作例の説明を行う。An example of the operation of this embodiment will be explained using FIG. 9.

二の図では、用紙サイズをA3とするところを、へ4と
した場合の例が書いである。
In the second figure, an example is written where the paper size is set to A4 instead of A3.

点901は、二の行の印字データ(テキス)・)の終端
を指している。この場合、点90】より左側ミニ印字す
るデータがないので通常ならは次の行の印字にはいると
ころたか、印字データのはみ出しが発生し・た場合を考
えてステップ510ごこて、ワークファイルに復改コー
トを書き込んでおく。
A point 901 indicates the end of the second line of print data (text). In this case, since there is no data to be mini-printed on the left side of point 90, it would normally be time to print the next line, or in case the print data protrudes, step 510 irons the work file. Write the revision code in .

点902も点901と同様に印字データ(テキストンの
終端を指しているが、点901と異なる点は、テキスト
タイプの印字データのうしろにグラフィックタイプの印
字データがあることである。
Point 902 also points to the end of print data (texton) like point 901, but the difference from point 901 is that there is graphic type print data after text type print data.

しかも、このグラフィックタイプの印字データはA3用
紙の右手分二こ位置しているので、ここではみ出しが起
きている。処理の動作としては、まずA4にはいるだけ
の印字データをプリンタに送る(ステップ606)。次
に残りの入り切らなかった印字データを次頁データとし
て確保しであるワークファイルへ書き込む。この場合、
次頁データの先頭にはみ出す直前のエスケープシーケン
スを付加してワークファイルに書き込んでいる。点90
3も点902と同様に、A4ここ入り切るたけ印字デー
タを送り、はみ出した印字データの先頭にはみ出す直前
のエスケープシーケンスを付加してワークファイルに省
き込んでいる(ステップ802)。
Moreover, since this graphic type print data is located two places on the right hand side of the A3 paper, it is overflowing here. As for the processing, first, print data that fits on A4 paper is sent to the printer (step 606). Next, the remaining print data that did not fit is secured as next page data and written to a work file. in this case,
The escape sequence immediately before overflowing is added to the beginning of the next page data and written to the work file. Point 90
3, similarly to point 902, print data is sent as much as it can fit on an A4 sheet, and the escape sequence immediately before the overflow is added to the beginning of the overflowing print data and omitted in the work file (step 802).

点904の場合、これから送ろうとするデータかはみ出
すかどうかをみる(ステップ702)。ここでは、印字
データかはみ出し、ているのでバッファに入り切るたけ
の印字データを生成してプリンタへ送る(ステップ70
3)。そして、残りの印字データを再編成してワークフ
ァイルへ書き込む。
In the case of point 904, it is checked whether the data to be sent now extends beyond the area (step 702). Here, some of the print data is overflowing, so we generate as much print data as can fit into the buffer and send it to the printer (step 70).
3). Then, the remaining print data is reorganized and written to the work file.

以上の処理を繰り返し、印字データをとりあえずすべて
出力する。吹口こ頁別FLGをみて(ステップ408)
、次頁データかあるならばワークファイルから次頁デー
タを取り出し・ながら上記処理を行い、右半分の印字を
行う。
Repeat the above process to output all print data. Look at the FLG by Fukiguchi page (step 408)
If there is next page data, the above process is performed while extracting the next page data from the work file, and the right half is printed.

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

従来のプリンタ制御は、印字データをたれ流し式に送っ
ていたのに対し、本発明は、印字できる範囲を自己管理
しているため印字が乱れることなく行え、プリンタ用紙
の浪費を防ぐという効果がある。また、見開き印刷ここ
も利用が可能である。
Conventional printer control sends print data in a trickling manner, whereas the present invention self-manages the printable range, so printing can be performed without disturbance, and it is effective in preventing waste of printer paper. . Double-page printing is also available here.

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

第1図は、本発明の一実施例に間するはみ出し部印刷方
式を示すフロック図、第2図、第3図、第4図、第5図
、第6図、第7図および第8図は第1図に示した印字側
#部における処理を示す流れ図、第9図は、本発明を実
行させたときの実行例である。 101     ・・・ 印字制御部 103      ・・・ 行末判定部203    
 ・・・ 印字処理部 407.414 ・・・ 印刷−RTN#7  l  
図 $2図 第  3 図 第 4 図 属 5 図 第7図 第q図
FIG. 1 is a block diagram illustrating an overhang printing method according to an embodiment of the present invention, FIGS. 2, 3, 4, 5, 6, 7, and 8. 1 is a flowchart showing the processing in the print side section # shown in FIG. 1, and FIG. 9 is an example of execution when the present invention is executed. 101...Print control unit 103...Line end determination unit 203
... Print processing section 407.414 ... Print-RTN #7 l
Figure $2 Figure 3 Figure 4 Figure Attribution 5 Figure 7 Figure q

Claims (1)

【特許請求の範囲】[Claims] 1、プリンタにおけるデータの出力の方式において印字
データがプリンタ用紙からはみ出すかどうか判定するペ
ージ割れ判定手段と、印字データがプリンタ用紙からは
み出したかどうか判定する行末判定手段と、はみ出した
印字データを次のページに出力するために印字フォーマ
ットを新規に生成する次ページデータ生成手段とを有す
ることを特徴とするはみ出し部印刷装置。
1. In the data output method of the printer, there is a page break determination means for determining whether the print data protrudes from the printer paper, a line end determination means for determining whether the print data protrudes from the printer paper, and a means for determining whether the print data protrudes from the printer paper. 1. An overhanging portion printing device comprising: next page data generation means for newly generating a print format for outputting on a page.
JP32892790A 1990-11-30 1990-11-30 Apparatus for printing protruding part Pending JPH04201284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32892790A JPH04201284A (en) 1990-11-30 1990-11-30 Apparatus for printing protruding part

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32892790A JPH04201284A (en) 1990-11-30 1990-11-30 Apparatus for printing protruding part

Publications (1)

Publication Number Publication Date
JPH04201284A true JPH04201284A (en) 1992-07-22

Family

ID=18215651

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32892790A Pending JPH04201284A (en) 1990-11-30 1990-11-30 Apparatus for printing protruding part

Country Status (1)

Country Link
JP (1) JPH04201284A (en)

Similar Documents

Publication Publication Date Title
JP3039273B2 (en) Print control device and print control method
US6688220B2 (en) Stencil printer
JPS59180678A (en) Method for controlling page printer
JPH04201284A (en) Apparatus for printing protruding part
JPS6159920B2 (en)
JP3821189B2 (en) Image forming apparatus
JPH01184156A (en) Printing automatic contracting/magnifying system of printer
KR0146901B1 (en) Logo inserting printer
JPH10250160A (en) Printer apparatus
KR960005018B1 (en) Font treatment method in bit map font
JPH02110626A (en) Error display control device for printing device
JPH0725106A (en) Printer
JPH08324031A (en) Apparatus for printing both faces of document
JPH07160688A (en) Method for printing and editing document
JPH04361363A (en) Information processor
JPS63137856A (en) Processing system for printing ruled line
JPH04340620A (en) Printer device
JPH09314951A (en) Information processing device
KR940021268A (en) How to perform line by line printer
JPH03211069A (en) Printer
JPH0355624A (en) Printer device
JPH08104036A (en) Printing device
JPS60104358A (en) Character processing apparatus
JPH0732697A (en) Printing device
JPH01157877A (en) Printer device