JPH1091693A - Data output device - Google Patents

Data output device

Info

Publication number
JPH1091693A
JPH1091693A JP9146121A JP14612197A JPH1091693A JP H1091693 A JPH1091693 A JP H1091693A JP 9146121 A JP9146121 A JP 9146121A JP 14612197 A JP14612197 A JP 14612197A JP H1091693 A JPH1091693 A JP H1091693A
Authority
JP
Japan
Prior art keywords
item
data
memory
line
work
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
JP9146121A
Other languages
Japanese (ja)
Other versions
JP3055492B2 (en
Inventor
Shinji Yamaga
紳司 山賀
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP9146121A priority Critical patent/JP3055492B2/en
Publication of JPH1091693A publication Critical patent/JPH1091693A/en
Application granted granted Critical
Publication of JP3055492B2 publication Critical patent/JP3055492B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make it possible to immediately know an area including real data or a space area in plural area. SOLUTION: A CPU 11 develops document data read out of a file memory 14 in response to a document output command outputted from a keyboard 12 in a page memory 16 in accordance with a table format previously set up in a document format memory 15 and prints out the document data from a printer 17. At the time, the CPU 11 determines a plotting range of slash data to be plotted on a document by the use of a work memory 18 and executes slash processing for outputting slash data within the range.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、複数の領域から
なる表を出力するデータ出力装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data output device for outputting a table including a plurality of areas.

【0002】[0002]

【従来の技術】従来、パーソナルコンピュータやオフィ
スコンピュータ等において、帳票出力時には予め設定さ
れている所定フォーマットの表を出力すると共に表を構
成する各項目領域内へ対応する項目データを配置出力す
るようにしている。この場合、項目データが存在しなけ
れば当該項目領域は空白領域となる。
2. Description of the Related Art Conventionally, in a personal computer, an office computer, or the like, at the time of outputting a form, a table of a predetermined format set in advance is output, and corresponding item data is arranged and output in each item area constituting the table. ing. In this case, if there is no item data, the item area becomes a blank area.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、帳票上
に空白領域が多くなると、帳票全体が見難いものとな
る。そこで、帳票上の空白領域内に斜線を出力すれば、
空白領域を容易に識別できるようになると考えられる。
この場合、空白領域の左上端位置に始点を設定し、空白
領域の右下端位置に終点を設定し、設定された始点と終
点とを結ぶ間に斜線を描画させることが考えられるが、
表の中から空白領域を見つけ出して、その空白領域毎に
始点及び終点を夫々設定しなければならず、設定操作が
きわめて煩雑である。
However, when there are many blank areas on a form, the entire form becomes difficult to see. Therefore, if you output diagonal lines in the blank area on the form,
It is considered that the blank area can be easily identified.
In this case, it is conceivable to set a start point at the upper left corner of the blank area, set an end point at the lower right corner of the blank area, and draw a diagonal line between the set start point and end point.
A blank area must be found from the table, and the start point and the end point must be set for each blank area, and the setting operation is extremely complicated.

【0004】この発明の課題は、複数の領域上におい
て、実データが存在する領域がどこにあるのか、また逆
に空白領域がどこにあるのかを直ちに知ることができる
ようにすることである。
An object of the present invention is to make it possible to immediately know where an actual data exists on a plurality of areas, and conversely where a blank area exists.

【0005】[0005]

【課題を解決するための手段】この発明の手段は、複数
の領域からなる表を出力するデータ出力装置において、
上記複数の領域の中でデータの存在しない空白領域を検
出する検出手段と、この検出手段により検出された領域
を識別出力する出力制御手段とを具備したことを特徴と
する。
The present invention provides a data output device for outputting a table including a plurality of areas.
It is characterized by comprising detecting means for detecting a blank area where no data exists in the plurality of areas, and output control means for identifying and outputting the area detected by the detecting means.

【0006】この発明の手段の作用は次の通りである。
検出手段が複数の領域の中でデータの存在しない空白領
域を検出すると、出力制御手段は検出手段により検出さ
れた領域を識別出力する。
The operation of the means of the present invention is as follows.
When the detecting means detects a blank area where no data exists among the plurality of areas, the output control means identifies and outputs the area detected by the detecting means.

【0007】したがって、複数の領域上において、実デ
ータが存在する領域がどこにあるのか、また逆に空白領
域がどこにあるのかを直ちに知ることができる。
[0007] Therefore, it is possible to immediately know where the real data is located on the plurality of areas and where the blank area is located.

【0008】[0008]

【発明の実施の形態】以下、図1〜図6を参照して一実
施の形態を説明する。図1はオフィスコンピュータの基
本的な構成を示したブロック図である。CPU11は予
め格納されている帳票作成プログラムや帳票出力プログ
ラム等にしたがって、このオフィスコンピュータの各種
の動作を制御するもので、キーボード12から入力され
た帳票データはCPU11に取り込まれて入力処理さ
れ、CRT表示部13のテキスト画面に表示出力させた
り、ファイルメモリ14に転送記憶させる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment will be described below with reference to FIGS. FIG. 1 is a block diagram showing a basic configuration of an office computer. The CPU 11 controls various operations of the office computer in accordance with a form creation program and a form output program stored in advance. Form data input from the keyboard 12 is taken into the CPU 11 and input processing is performed. The information is displayed on the text screen of the display unit 13 or transferred and stored in the file memory 14.

【0009】また、CPU11はキーボード12からの
帳票出力指令に応答してファイルメモリ14から読み出
した帳票データを帳票フォーマットメモリ15内に予め
設定されている表フォーマットにしたがってページメモ
リ16内に展開し、プリンタ17から印字出力させる
が、その際、CPU11はワークメモリ18を用いて帳
票上に描画すべき斜線データの描画範囲を決定し、その
範囲内に斜線データを出力する斜線処理を実行する。
Further, the CPU 11 responds to a form output command from the keyboard 12 and expands the form data read from the file memory 14 into the page memory 16 in accordance with a table format set in the form format memory 15 in advance. At this time, the CPU 17 uses the work memory 18 to determine the drawing range of the oblique line data to be drawn on the form, and executes oblique line processing for outputting the oblique line data within the range.

【0010】次に、図2および図3を参照して帳票フォ
ーマットメモリ15の設定内容やワークメモリ18の構
成について説明する。
Next, the contents of the form format memory 15 and the configuration of the work memory 18 will be described with reference to FIGS.

【0011】図2は帳票作成例を示し、この帳票データ
は4レコード構成で、各レコードデータは4つの項目デ
ータから構成されている。また、帳票フォーマットは縦
罫線および横罫線によって4×4=16の項目領域に分
割され、その行方向はレコードデータ、列方向は項目デ
ータに対応している。この場合、帳票フォーマットメモ
リ15には図1に示す如く帳票の始点Y座標(帳票の左
上端位置に対応するY座標)とこの始点Y座標の更新幅
(帳票の1行サイズに相当するY座標幅)が設定されて
いる。また帳票フォーマットメモリ15には、帳票の列
方向において、項目I、II、III、IVに対応して
各項目領域のXa座標(項目領域の左上端位置に対応す
るX座標)、Xb座標(項目領域の右上端位置に対応す
るX座標)が設定されている。更に帳票フォーマットメ
モリ15には帳票上の空白領域内に描画される斜線とし
て右上りの斜線か左上りの斜線かを示す斜線種別が設定
されている。なお、図2において、帳票内に付された記
号「×」は帳票データを示し、その他は帳票データが実
在しない空白部を示している。
FIG. 2 shows an example of form creation. This form data has a four-record structure, and each record data is composed of four item data. The form format is divided into 4 × 4 = 16 item areas by vertical ruled lines and horizontal ruled lines. The row direction corresponds to record data, and the column direction corresponds to item data. In this case, as shown in FIG. 1, the form format memory 15 stores a starting point Y coordinate of the form (a Y coordinate corresponding to the upper left position of the form) and an update width of the starting point Y coordinate (a Y coordinate corresponding to one line size of the form). Width) is set. In the form format memory 15, Xa coordinates (X coordinates corresponding to the upper left position of the item area) and Xb coordinates (items) in the column direction of the form corresponding to the items I, II, III, and IV in the column direction of the form. (X coordinate corresponding to the upper right end position of the area) is set. Further, in the form format memory 15, a diagonal line type indicating a diagonal line at the upper right or a diagonal line ascending to the left is set as a diagonal line drawn in a blank area on the form. In FIG. 2, the symbol "x" added to the form indicates the form data, and the other indicates a blank portion where the form data does not exist.

【0012】ワークメモリ18は帳票上に描画すべき斜
線データの描画範囲を決定する為の各種パラメータ
1、I1′I2、L1、L1′、L2と、決定範囲内に斜線
データを描画する際に斜線の始点座標(X1、Y1)およ
び終点座標(X2、Y2)を記憶する他、帳票内に斜線デ
ータを描画する斜線処理の実行有無を示す斜線フラグ等
を記憶する。ここで、ワークメモリ18内のパラメータ
1、I1′I2は帳票の列方向における項目位置を指示
する為のパラメータ、またパラメータL1、L1′、L2
は帳票の行位置を指定する為のパラメータで、図3に示
す如くパラメータI1、I2、L1、L2によって特定され
た矩形領域が斜線の描画範囲となり、パラメータI1
矩形領域の左端項目位置、パラメータI2は矩形領域の
右端項目位置、更にパラメータL1は矩形領域の上端行
位置、パラメータL2は矩形領域の下端行位置を示して
いる。なお、パラメータI1′は左端項目位置I1右端項
目位置Iを求める為のワーク用項目位置、パラメータ
′は上端行位置L1から下端行位置L2を求める為の
ワーク用行位置を示す。
The work memory 18 includes various parameters I 1 , I 1 ′ I 2 , L 1 , L 1 ′, and L 2 for determining the drawing range of the oblique line data to be drawn on the form, and the oblique lines in the determination range. In addition to storing the starting point coordinates (X 1 , Y 1 ) and the ending point coordinates (X 2 , Y 2 ) of the oblique line when drawing data, a diagonal line flag indicating whether or not to execute diagonal line processing to draw diagonal line data in the form Is stored. Here, parameters I 1 , I 1 ′ I 2 in the work memory 18 are parameters for designating the item position in the column direction of the form, and parameters L 1 , L 1 ′, L 2
Is a parameter for designating the line position of the form. As shown in FIG. 3, the rectangular area specified by the parameters I 1 , I 2 , L 1 , and L 2 is a hatched drawing range, and the parameter I 1 is a rectangular area. left item position, parameter I 2 is the rightmost item position of the rectangular area, further parameters L 1 is the upper end row position of the rectangular area, parameters L 2 represents a lower end row position of the rectangular area. The parameter I 1 ′ is a work item position for obtaining the left end item position I 1 and the right end item position I 2 , and the parameter L 1 ′ is a work line position for obtaining the lower end line position L 2 from the upper end line position L 1. Is shown.

【0013】次に、本実施の形態の動作を図4に示すフ
ローチャートに基づいて説明する。いま、ファイルメモ
リ14内に格納されている帳票データは、図2に示す如
く4レコード構成で、各レコードデータは4つの項目デ
ータとから構成されているものとし、また帳票フォーマ
ットメモリ15内にはそれに対応するフォーマットデー
タが設定されているものとする。
Next, the operation of this embodiment will be described with reference to the flowchart shown in FIG. The form data stored in the file memory 14 has a four-record configuration as shown in FIG. 2, and each record data is composed of four item data. It is assumed that corresponding format data is set.

【0014】しかして、ファイルメモリ14内に格納さ
れている帳票データを帳票フォーマットメモリ15の設
定内容に基づいて印字出力する場合には、キーボード1
2から帳票出力指令を与える。すると、CPU1は図4
および図5のフローチャートにしたがって帳票出力処理
を実行する。
When printing the form data stored in the file memory 14 based on the settings in the form format memory 15, the keyboard 1
The form output command is given from 2. Then, the CPU 1 returns to FIG.
The form output process is executed according to the flowchart of FIG.

【0015】先ず、ステップS1において帳票フォーマ
ットメモリ15から帳票の始点Y座標を読み出したの
ち、ファイルメモリ14から1レコード、最初は先頭レ
コードデータを読み出す(ステップS2)。そして、先
頭レコードの各項目データをページメモリ16内に配置
するが、その際、始点Y座標と帳票フォーマットメモリ
15内に項目I、II、III、IVに対応して設定さ
れているXa座標、Xb座標とに基づいて各項目データ
をページメモリ16内の対応する項目位置に配置する
(ステップS3)。その後、始点Y座標と各項目I、I
I、III、IVに対応するXa座標、Xb座標とに基
づいて帳票を構成する1行目の各枠線(横罫線、縦罫
線)をページメモリ16内に配置する(ステップS
4)。
First, at step S1, the starting point Y coordinate of the form is read from the form format memory 15, and then one record, first the first record data, is read from the file memory 14 (step S2). Each item data of the first record is arranged in the page memory 16. At this time, the starting point Y coordinate and the Xa coordinates set in the form format memory 15 corresponding to the items I, II, III, and IV, Each item data is arranged at the corresponding item position in the page memory 16 based on the Xb coordinates (step S3). Then, the starting point Y coordinate and each item I, I
Based on the Xa coordinates and Xb coordinates corresponding to I, III, and IV, the respective frame lines (horizontal rule lines, vertical rule lines) of the first line constituting the form are arranged in the page memory 16 (step S).
4).

【0016】そして、ステップS5に進み、当該レコー
ド内にNULL項目が1つでも存在するか否かをチェッ
クする。ここで、NULL項目とは項目データが実存し
ない空白項目を意味し、図2に示す先頭レコードの全項
目はNULL項目でない為、ステップS7に進み、ファ
イルメモリ14を検索して次レコードが有るか否かを調
べる。
Then, the process proceeds to step S5, and it is checked whether or not even one NULL item exists in the record. Here, the NULL item means a blank item in which no item data actually exists. Since all items in the first record shown in FIG. 2 are not NULL items, the process proceeds to step S7, where the file memory 14 is searched to determine whether there is a next record. Check whether or not.

【0017】いま、ファイルメモリ14内には2レコー
ド目が存在する為、ステップS8に進み、始点Y座標に
帳票フォーマットメモリ15内の更新幅を加算してY座
標の更新を行なったのちステップS2に戻る。
Since the second record exists in the file memory 14, the process proceeds to step S8, where the Y coordinate is added by adding the update width in the form format memory 15 to the Y coordinate of the starting point, and then the step S2 is performed. Return to

【0018】この結果、上述と同様に2レコード目の各
項目データがページメモリ16内の所定位置に配置され
ていると共に、帳票を構成する2行目の各枠線がページ
メモリ16内に配置される。この場合、2レコード目に
はNULL項目が存在する為、ステップS6に進み、ワ
ークメモリ18内の斜線フラグをセットする。
As a result, each item data of the second record is arranged at a predetermined position in the page memory 16 and each frame line of the second line forming the form is arranged in the page memory 16 as described above. Is done. In this case, since the NULL item exists in the second record, the process proceeds to step S6, and the oblique line flag in the work memory 18 is set.

【0019】そして、次レコード有無を調べるが(ステ
ップS7)、ファイルメモリ14には3レコード目が存
在する為、ステップS8に進み、Y座標の更新を行った
のちステップS2に戻る。
Then, the presence or absence of the next record is checked (step S7). Since the third record exists in the file memory 14, the process proceeds to step S8, where the Y coordinate is updated, and then the process returns to step S2.

【0020】以下、同様の処理を1レコードずつ繰り返
す結果、ページメモリ16内には全てのレコードデータ
が枠線と共に配置される。
Hereinafter, as a result of repeating the same processing one record at a time, all record data are arranged in the page memory 16 together with the frame lines.

【0021】しかして、ステップS7で次レコード無し
が検出されると、ステップS9に進み、ワークメモリ1
8内に斜線フラグがセットされているか否かを調べる。
ここで、帳票内に1つでもNULL項目が存在していれ
ば斜線フラグがセットされる為、図5の斜線処理へ進む
が、斜線フラグがセットされていなければ、ステップS
10に進み、ページメモリ16内のデータをプリンタ1
7から印字出力させる。
When the absence of the next record is detected in step S7, the process proceeds to step S9, where the work memory 1
It is checked whether or not the oblique line flag is set in 8.
Here, the oblique line flag is set if at least one NULL item exists in the form, and the process proceeds to the oblique line process in FIG. 5. If the oblique line flag is not set, the process proceeds to step S.
10, the data in the page memory 16 is transferred to the printer 1
7 to print out.

【0022】一方、斜線処理に入ると、ファイルメモリ
14内からNULL項目を有するレコードをサーチし
(ステップS11)、NULL項目を有するレコードが
ファイルメモリ14内に存在するか否かを調べる(ステ
ップS12)。
On the other hand, when the process enters the oblique line processing, a record having a NULL item is searched from the file memory 14 (step S11), and it is checked whether or not a record having the NULL item exists in the file memory 14 (step S12). ).

【0023】いま、2レコード目の2番目の項目はNU
LL項目である為、その行位置「2」をワークメモリ1
8内に上端行位置L1、ワーク用行位置L1′としてセッ
トし、またその項目位置「2」をワークメモリ18内に
左端項目位置I1、ワーク用項目位置I1′としてセット
する(ステップS13)。
Now, the second item of the second record is NU
Since the item is an LL item, the line position “2” is stored in the work memory 1
8 are set as the top line position L 1 and the work line position L 1 ′, and the item position “2” is set as the left end item position I 1 and the work item position I 1 ′ in the work memory 18 ( Step S13).

【0024】そして、ステップS14に進み、ワーク用
項目位置I1′の値に「1」を加算してその値を更新し
たのち、当該項目位置I1′に対応する項目データをフ
ァイルメモリ14から読み出し(ステップS15)、N
ULL項目か否かを調べる(ステップS16)。いま、
ワーク用項目位置I1′の更新によってその値は「3」
となる為、2レコード目の次の項目、つまり3番目の項
目データがファイルメモリ14から読み出される。この
場合、当該項目もNULL項目で、NULL項目が連続
する為、ステップS14に戻り、再びワーク用項目位置
1′の更新を行う。この結果、ファイルメモリ14か
ら4番目の項目データが読み出されるが、この項目もN
ULL項目で、更にNULL項目が連続する為、ステッ
プS14に戻り、ワーク用項目位置I1′の値を「5」
に更新する。
[0024] Then, the process proceeds to step S14, 'After updating the value by adding "1" to the value of the item position I 1' for work item position I 1 item data corresponding to the file memory 14 Read (step S15), N
It is checked whether the item is a UL item (step S16). Now
Its value by an update of the work for the item position I 1 'is "3"
Therefore, the next item of the second record, that is, the third item data is read from the file memory 14. In this case, the item is also a NULL item, and since the NULL item is continuous, the process returns to step S14, and the work item position I 1 ′ is updated again. As a result, the fourth item data is read from the file memory 14, and this item is
Since the NULL item is further continued with the NULL item, the process returns to step S14, and the value of the work item position I 1 ′ is set to “5”.
Update to

【0025】このように列方向においてNULL項目が
連続する場合には、左端項目位置I1から連続する項目
回数分ワーク用項目位置I1′を更新してゆく。いま、
ワーク用項目位置I1′の値は「5」となるが、5番目
の項目は存在しない為、ステップS16でNULL項目
無しが検出されてステップS17に進み、ワーク用項目
位置I1′の値から「1」を減算し、その値をワークメ
モリ18内に右端項目位置I2としてセットする。この
場合、右端項目位置I2は「4」となる。
When the NULL items continue in the column direction, the work item position I 1 ′ is updated by the number of consecutive items from the left end item position I 1 . Now
The value of the work item position I 1 ′ is “5”, but since the fifth item does not exist, the absence of a NULL item is detected in step S16, and the process proceeds to step S17, where the value of the work item position I 1 ′ "1" is subtracted from, and sets the right end item position I 2 to the value in the work memory 18. In this case, the right end item position I 2 is "4".

【0026】このようにして左端項目位置I1を基に右
端項目位置I2を確定したら下端行位置L2を決定する為
の処理(ステップS18〜S25)に進む。
[0026] proceeds to the processing for determining the lower end row position L 2 When this way to confirm the right end item position I 2 based on the leftmost item position I1 (step S18~S25).

【0027】先ず、現在行よりも行方向に1つ下がった
左端項目位置I1を指定する為にワーク用行位置L1′に
「1」を加算してその値を更新すると共に左端項目位置
1をワーク用項目位置I1′とする(ステップS1
8)。いま、ワーク用行位置L1′および左端項目位置
1の値は上述のステップS13で夫々「2」にセット
されているので、ステップS18によってワーク用行位
置L1′は「3」、ワーク用項目位置I1′は「2」とな
り、3行目の2番目の項目が指定される。そして、ファ
イルメモリ14からワーク用行位置L1′およびワーク
用項目位置I1′によって指定される項目データを読み
出し(ステップS19)、NULL項目か否かを調べる
(ステップS20)。いま、3行目の2番目の項目はN
ULL項目である為、ワーク用項目位置I1′の値を更
新しながらNULL項目が列方向に連続するか否かをチ
ェックする(ステップS21〜S23)。いま、3行目
において、3番目の項目もNULL項目である為、ステ
ップS24に進み、ワーク用項目位置I1′が右端項目
位置I2に一致するかをチェックする。ここで、ワーク
用項目位置I1′は「3」、右端項目位置I2は「4」、
したがって両者の不一致が検出されてステップS21に
戻り、再びワーク用項目位置I1′の更新を行うが、4
番目の項目もNULL項目である為、ステップS24に
進む。ここで、ワーク用項目位置I1′は右端項目位置
2と一致し、ステップS24でそのことが検出される
と、ステップS18に戻り、以下同様の動作を繰り返
す。
[0027] First, the leftmost item position and updates the value "1" is added to the work for the row position L 1 'in order to currently specified the left end item position I 1, which dropped one in the row direction than the line Let I 1 be the work item position I 1 '(step S1).
8). Since the value of the work line position L 1 ′ and the value of the left end item position I 1 are set to “2” in step S13, the work line position L 1 ′ is set to “3” in step S18. The use item position I 1 ′ becomes “2”, and the second item on the third line is designated. Then, item data specified by the work line position L 1 ′ and the work item position I 1 ′ is read from the file memory 14 (step S19), and it is checked whether or not the item is a NULL item (step S20). Now, the second item on the third line is N
Since the item is a UL item, it is checked whether or not the NULL item continues in the column direction while updating the value of the work item position I 1 ′ (steps S21 to S23). Now, in the third line, since the third item is also a NULL item, the process proceeds to step S24 to check whether the work item position I 1 ′ matches the right end item position I 2 . Here, the work item position I 1 ′ is “3”, the right end item position I 2 is “4”,
Therefore, the inconsistency between the two is detected, the process returns to step S21, and the work item position I 1 'is updated again.
Since the second item is also a NULL item, the process proceeds to step S24. Here, the work item position I 1 ′ coincides with the right end item position I 2. If this is detected in step S24, the process returns to step S18, and the same operation is repeated.

【0028】これによって現在行よりも1つ下がった
行、つまり4行目が指定され、この4行目の2番目の項
目がNULL項目か否かを調べる(ステップS18〜S
20)。
As a result, a line one line lower than the current line, that is, the fourth line is designated, and it is checked whether or not the second item of the fourth line is a NULL item (steps S18 to S18).
20).

【0029】いま、当該指定項目はNULL項目でない
為、ステップS25に進み、ワーク用行位置L1′を下
端行位置L2とする。これによって、下端行位置L2が決
定され、その値は「4」となる。
Since the designated item is not a NULL item, the flow advances to step S25 to set the work line position L 1 ′ as the lower end line position L 2 . Thus, it determines the bottom line position L 2, the value is "4".

【0030】なお、例えば4行目において、その2番目
の項目もNULL項目であるとすると、更に次の項目も
NULL項目かを調べるが(ステップS21〜S2
3)、NULL項目が右端項目位置I2まで連続してい
ない場合、例えば、3番目や4番目の項目がNULL項
目でなければ、ワーク用行位置L1′を更新せずにステ
ップS23からステップS25に進む。したがって、こ
の場合においても下端行位置L2は「4」となる。
If the second item is also a NULL item in the fourth line, for example, it is checked whether the next item is also a NULL item (steps S21 to S2).
3), if the NULL entry is not continuous to the right item position I 2, for example, if the third and fourth items NULL entry, step from step S23 without updating the workpiece row position L 1 ' Proceed to S25. Accordingly, the lower end row position L 2 Also in this case is "4".

【0031】この結果、列方向に連続するNULL項目
と行方向に連続するNULL項目にまたがった矩形領域
は、左端項目位置I1(2)、右端項目位置I2(4)、
上端行位置L1(2)、下端行位置L2(4)によって特
定される。
As a result, the rectangular area extending over the NULL items continuing in the column direction and the NULL items continuing in the row direction is represented by the leftmost item position I 1 (2), the rightmost item position I 2 (4),
It is specified by the top row position L 1 (2) and the bottom row position L 2 (4).

【0032】しかして、矩形領域が特定されると、その
領域の範囲内に斜線データを描画する為の処理に移る
(ステップS26〜S33)。
When the rectangular area is specified, the processing shifts to processing for drawing oblique line data within the area (steps S26 to S33).

【0033】先ず、上端行位置L1のY座標を求め、こ
れをワークメモリ18内に斜線の始点Y座標Y1として
セットする(ステップS26)。この場合、始点Y座標
+(上端行位置L1の値×更新幅)によって上端行位置
1のY座標が求められ、これが斜線の始点Y座標Y1
なる。次にステップS27に進み、下端行位置L2のY
座標を上述と同様の計算式によって求め、これをワーク
メモリ18内に斜線の終点Y座標Y2としてセットす
る。
First, the Y coordinate of the top row position L 1 is determined, and this is set in the work memory 18 as the hatched starting point Y coordinate Y 1 (step S 26). In this case, Y-coordinate of the upper end row position L 1 is determined by the start point Y coordinate + (value × update width upper end row position L 1), which is the start point Y coordinate Y 1 of the diagonal lines. The flow advances to step S27, the lower end row position L 2 Y
Determined by the equation similar to the above coordinates, which is set as the end point Y coordinate Y 2 of the diagonal line in the work memory 18.

【0034】その後、斜線の始点X座標X1、終点X座
標X2を求めるが、この場合、帳票フォーマットメモリ
15内に設定されている斜線の種別データ(線種)によ
ってX座標X1、X2の算出方法は異なる。
Thereafter, the starting point X coordinate X 1 and the ending point X coordinate X 2 of the oblique line are obtained. In this case, the X coordinate X 1 , X coordinate X 1 , X The calculation method of 2 is different.

【0035】即ち、線種が右上りの場合にはステップS
28でそのことが検出されてステップS29に進み、右
端項目位置I2によって指定される帳票フォーマットメ
モリ15から指定項目のXb座標を読み出し、これをワ
ークメモリ18内に斜線の始点X座標X1としてセット
する。次に、左端項目位置I1によって指定される帳票
フォーマットメモリ15から指定項目のXa座標を読み
出し、これをワークメモリ18内に斜線の終点X座標X
2としてセットする(ステップS30)。
That is, if the line type is the upper right, step S
As it is detected at 28, the program proceeds to step S29, reads the Xb coordinates of a specified item from the form format memory 15 specified by the rightmost item position I 2, which as a starting point X coordinate X 1 of the diagonal line in the work memory 18 set. Next, the Xa coordinates of the designated item are read out from the form format memory 15 designated by the left end item position I 1 , and are stored in the work memory 18 at the end point X coordinate X of the oblique line.
Set as 2 (step S30).

【0036】一方、線種が左上りの場合には左端項目位
置I1によって指定される帳票フォーマットメモリ15
から指定項目のXa座標を読み出し、これをワークメモ
リ18内に斜線の始点X座標X1としてセットする(ス
テップS31)。そして、右端項目位置I2によって指
定される帳票フォーマットメモリ15から指定項目のX
b座標を読み出し、これをワークメモリ18内に斜線の
終点X座標X2としてセットする(ステップS32)。
On the other hand, when the line type is upwards to the left, the form format memory 15 specified by the leftmost item position I 1
It reads Xa-coordinate of the designated item from, this is set as the starting point X coordinate X 1 of the diagonal line in the work memory 18 (step S31). Then, X of the specified items from the form format memory 15 specified by the rightmost item position I 2
It reads the b coordinate, which is set as the end point X coordinate X 2 of the diagonal line in the work memory 18 (step S32).

【0037】このようにして各X座標X1、X2を求めた
らステップS33に進み、斜線の始点座標(X1、Y1
からその終点座標(X2、Y2)を結び直線データ(斜線
データ)を生成し、ページメモリ16内に配置する。
When the X coordinates X 1 and X 2 have been obtained in this manner, the flow advances to step S33 to start the coordinates (X 1 , Y 1 ) of the oblique line.
Then, the end point coordinates (X 2 , Y 2 ) are connected to generate straight line data (diagonal line data), which is arranged in the page memory 16.

【0038】そして、ステップS11に戻り、他にNU
LL項目が有れば、以下上述の動作が繰り返されるが、
NULL項目無しがステップS12で検出されると、第
5図のステップS10に進み、ページメモリ16内のデ
ータが印字出力される。
Then, returning to step S11, another NU is set.
If there is an LL item, the above operation is repeated below,
When the absence of the NULL item is detected in step S12, the process proceeds to step S10 in FIG. 5, and the data in the page memory 16 is printed out.

【0039】図3は帳票の実際の出力例を示し、2行目
から3行目において、その2番目〜4番目の項目にまた
がる範囲内には1本の右上りの斜線が描画される。
FIG. 3 shows an example of an actual form output. In the second to third lines, one upper right diagonal line is drawn within the range extending from the second to fourth items.

【0040】図6は斜線出力状態の例を示し、図6
(A)、(C)、(E)は各空白領域毎に斜線を出力さ
せた場合の出力例、図6(B)、(D)、(F)は図6
(A)、(C)、(E)に対応した本実施の形態の斜線
出力例を示し、列方向や行方向において複数項目に跨が
った範囲内に1本の右上りの斜線を描画出力した例を示
す。
FIG. 6 shows an example of an oblique line output state.
(A), (C), and (E) show output examples when hatching is output for each blank area, and FIGS. 6B, 6D, and 6F show FIGS.
FIG. 17 shows an example of oblique line output according to the present embodiment corresponding to (A), (C), and (E), and draws one upper right oblique line within a range extending over a plurality of items in a column direction or a row direction. An example of the output is shown.

【0041】なお、上記実施の形態は複数の項目にまた
がる矩形領域内に1本の斜線を描画するようにしたが、
右上りの斜線と左上りの斜線を夫々描画するようにして
もよい。
In the above embodiment, one oblique line is drawn in a rectangular area extending over a plurality of items.
A diagonal line rising rightward and a diagonal line rising leftward may be respectively drawn.

【0042】[0042]

【発明の効果】この発明によれば、複数の領域からなる
表において空白領域が自動的に検出されて、その空白領
域が識別出力されるので、複数の領域上において、実デ
ータが存在する領域がどこにあるのか、また逆に空白領
域がどこにあるのかを直ちに知ることができる。
According to the present invention, a blank area is automatically detected in a table including a plurality of areas, and the blank area is identified and output. You can immediately see where is the empty space and vice versa.

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

【図1】オフィスコンピュータの構成を示したブロック
図である。
FIG. 1 is a block diagram showing a configuration of an office computer.

【図2】帳票作成例を示した図である。FIG. 2 is a diagram illustrating a form creation example.

【図3】図2に示す帳票に斜線を描画した状態を示した
図である。
FIG. 3 is a diagram showing a state where oblique lines are drawn on the form shown in FIG. 2;

【図4】帳票出力処理を示したフローチャートである。FIG. 4 is a flowchart showing a form output process.

【図5】図4のフローチャートに続く斜線処理を示した
フローチャートである。
FIG. 5 is a flowchart showing a diagonal line process following the flowchart of FIG. 4;

【図6】斜線出力状態を示した図である。FIG. 6 is a diagram showing a hatched output state.

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

11…CPU、12…キーボード、14…ファイルメモ
リ、15…帳票フォーマットメモリ、16…ページメモ
リ、17…プリンタ、18…ワークメモリ。
11 CPU, 12 keyboard, 14 file memory, 15 form format memory, 16 page memory, 17 printer, 18 work memory.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数の領域からなる表を出力するデータ
出力装置において、 上記複数の領域の中でデータの存在しない空白領域を検
出する検出手段と、この検出手段により検出された領域
を識別出力する出力制御手段と、 を具備したことを特徴とするデータ出力装置。
1. A data output device for outputting a table including a plurality of areas, a detecting means for detecting a blank area where no data exists in the plurality of areas, and an identification output of the area detected by the detecting means. And a data output device.
JP9146121A 1997-06-04 1997-06-04 Data output device Expired - Lifetime JP3055492B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9146121A JP3055492B2 (en) 1997-06-04 1997-06-04 Data output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9146121A JP3055492B2 (en) 1997-06-04 1997-06-04 Data output device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2147047A Division JP2916534B2 (en) 1990-06-05 1990-06-05 Table output device

Publications (2)

Publication Number Publication Date
JPH1091693A true JPH1091693A (en) 1998-04-10
JP3055492B2 JP3055492B2 (en) 2000-06-26

Family

ID=15400634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9146121A Expired - Lifetime JP3055492B2 (en) 1997-06-04 1997-06-04 Data output device

Country Status (1)

Country Link
JP (1) JP3055492B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102532539B1 (en) * 2016-01-14 2023-05-15 엘지이노텍 주식회사 Fan motor and vehicle having the same
US10851793B2 (en) * 2016-01-14 2020-12-01 Lg Innotek Co., Ltd. Fan motor comprising a housing and a printed circuit board disposed outside of a lower housing and coupled to a concavely formed board coupling portion at a lower surface of the housing

Also Published As

Publication number Publication date
JP3055492B2 (en) 2000-06-26

Similar Documents

Publication Publication Date Title
JP3055492B2 (en) Data output device
JP3474961B2 (en) Document information processing device
JPH0528389B2 (en)
JPH0522933B2 (en)
JPH0623951B2 (en) Document creation device
JP2007073000A (en) Print processing method, print processing device, print processing program and storage medium
JPH1055431A (en) Image processor
JP2916534B2 (en) Table output device
JP3056850B2 (en) Document creation device with graph creation function
JPH0735116B2 (en) Data output device
JPS6411985B2 (en)
JPH0895963A (en) Document processor with edge character printing function
JP2555556B2 (en) Character processor
JPH0236482A (en) Information recording device
JP2008305248A (en) Retrieval device and program
JPH028593B2 (en)
JPH08315164A (en) Layout correcting device
JPH0916580A (en) Document preparing device
JPH04303271A (en) Graphic preparing device
JPH06119326A (en) Document data processor
JPH0890864A (en) Printer
JPH03160559A (en) Document processor
JPH03105555A (en) Picture editing control system
JPH07230453A (en) Processor and method for document processing
JPH021676B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090414

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090414

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100414

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110414

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110414

Year of fee payment: 11