Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2844461B2 - Form output device - Google Patents
[go: Go Back, main page]

JP2844461B2 - Form output device - Google Patents

Form output device

Info

Publication number
JP2844461B2
JP2844461B2 JP63175432A JP17543288A JP2844461B2 JP 2844461 B2 JP2844461 B2 JP 2844461B2 JP 63175432 A JP63175432 A JP 63175432A JP 17543288 A JP17543288 A JP 17543288A JP 2844461 B2 JP2844461 B2 JP 2844461B2
Authority
JP
Japan
Prior art keywords
output
record
reference position
storage means
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP63175432A
Other languages
Japanese (ja)
Other versions
JPH0225356A (en
Inventor
俊雄 樫尾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KASHIO KEISANKI KK
Original Assignee
KASHIO KEISANKI KK
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 KASHIO KEISANKI KK filed Critical KASHIO KEISANKI KK
Priority to JP63175432A priority Critical patent/JP2844461B2/en
Publication of JPH0225356A publication Critical patent/JPH0225356A/en
Application granted granted Critical
Publication of JP2844461B2 publication Critical patent/JP2844461B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、パーソナルコンピュータ、オフィスコン
ピュータ等における帳票出力装置に関する。
Description: TECHNICAL FIELD The present invention relates to a form output device in a personal computer, an office computer, and the like.

[従来の技術] 従来、オフィスコンピュータ等において、ファイル編
成した各レコード中の項目別データを帳票形式で出力す
る際、レコード数、項目の種類、各項目内のワード数を
考慮して最適な帳票フォーマットを設定し、その帳票フ
ォーマットを印字し、この印字された帳票フォーマット
中に項目別データを印字していた。換言すれば、帳票フ
ォーマットは、ファイル内容と1対1に対応しており、
汎用性がなかった。
2. Description of the Related Art Conventionally, in an office computer or the like, when an item-specific data in each record organized in a file is output in a form, an optimal form is considered in consideration of the number of records, the type of item, and the number of words in each item. A format is set, the form format is printed, and item-specific data is printed in the printed form format. In other words, the form format has a one-to-one correspondence with the file contents.
There was no versatility.

[発明が解決しようとする課題] ところで、ファイル処理においては、レコードの追
加、削除がよく行われている。例えば、商品種別の在庫
量等をファイル処理する場合、商品の種類の増減に応じ
て、レコードを追加、削除している。
[Problems to be Solved by the Invention] In file processing, addition and deletion of records are often performed. For example, when file processing is performed on the stock amount and the like of a product type, records are added or deleted according to the increase or decrease of the product type.

このレコード数の変化したファイル内容を帳票形式で
出力する場合、上記の従来技術では、帳票フォーマット
に汎用性が無いため、商品数(レコード数:データ数)
が増えたときは、印字領域が不足するため、帳票フォー
マットを改めて設定し直す必要があった。また、商品数
が減ったときは、空白領域ができて見栄えが悪くなった
り、印字領域が無駄になったりするという不具合が生
じ、この不具合を解消するためには、やはり、帳票フォ
ーマットを設定し直す必要があった。
In the case of outputting the contents of the file in which the number of records has changed in a form, the number of commodities (the number of records: the number of data) is not available in the above-described conventional technology because the form format has no versatility.
When the number of prints increased, the print area became insufficient, and it was necessary to reset the form format. In addition, when the number of products is reduced, there is a problem that a blank area is created and the appearance is deteriorated, and a printing area is wasted. To solve this problem, it is necessary to set the form format again. I needed to fix it.

この発明の課題は、データ数が変化したとしても、帳
票フォーマットを設定し直すことなく、自動的に、デー
タ数に見合った無駄のない、見栄えの良い帳票を出力で
きるようにすることである。
SUMMARY OF THE INVENTION It is an object of the present invention to automatically output a good-looking form suitable for the number of data without the need to reset the form format even if the number of data changes.

また、データにレベル付けがされているような場合
に、データが変化しても帳票フオーマットを設定し直す
ことなく見栄えの良い帳票出力をできるようにすること
である。
Another object of the present invention is to make it possible to output a good-looking form without resetting the form format even if the data is changed when the data is leveled.

[課題を解決するための手段] 請求項1の発明は、複数のレコードを記憶するレコー
ド記憶手段と、出力対象となる先頭レコードの帳票上に
おける出力基準位置を任意に設定する基準位置設定手段
と、出力対象となる1レコードに対する出力形態を任意
に設定する出力形態設定手段と、上記基準位置設定手段
により任意に設定された出力基準位置を記憶する基準位
置記憶手段と、上記出力形態設定手段により任意に設定
された出力形態を記憶する出力形態記憶手段と、上記レ
コード記憶手段に記憶された複数のレコードを順次読み
出す読出手段と、上記読出手段でレコードを読み出す毎
に、上記基準位置記憶手段に記憶された上記帳票上にお
ける出力基準位置を行方向に順次更新する更新手段と、
上記読出手段から順次読み出されたレコードを上記帳票
上に出力する際は、先頭のレコードについては上記基準
位置記憶手段に記憶された上記帳票上の出力位置に出力
し、その先頭レコードに続いて読み出された各レコード
については上記更新手段で順次更新された上記帳票上の
出力位置に出力し、且つ各レコードの出力に当たっては
その各レコードを上記出力形態記憶手段に記憶された出
力形態で出力する出力制御手段と、を具備したことを特
徴とする。
[Means for Solving the Problems] The invention according to claim 1 is a record storage means for storing a plurality of records, and a reference position setting means for arbitrarily setting an output reference position on a form of a first record to be output. An output mode setting unit for arbitrarily setting an output mode for one record to be output; a reference position storage unit for storing an output reference position arbitrarily set by the reference position setting unit; An output form storage means for storing an output form set arbitrarily; a reading means for sequentially reading a plurality of records stored in the record storage means; and each time a record is read by the reading means, the reference position storage means Updating means for sequentially updating the stored output reference position on the form in the row direction;
When outputting the records sequentially read out from the reading means on the form, the first record is output to the output position on the form stored in the reference position storage means, and the first record is output after the first record. Each read record is output to the output position on the form sequentially updated by the update means, and when outputting each record, the record is output in the output form stored in the output form storage means. And output control means for controlling the output.

また、請求項2の発明は、複数の属性種を有し、各レ
コード毎に何れか1つの属性種が割当てられたレコード
を複数記憶するレコード記憶手段と、出力対象となる先
頭レコードの帳票上における出力基準位置を記憶する基
準位置記憶手段と、上記複数の属性種の夫々に対応し
て、出力対象となる1レコードに対する出力形態を記憶
する出力形態記憶手段と、上記レコード記憶手段に記憶
された複数のレコードを順次読み出す読出手段と、上記
読出手段でレコードを読み出す毎に、上記基準位置記憶
手段に記憶された上記帳票上における出力基準位置を行
方向に順次更新する更新手段と、上記読出手段で読み出
された各レコードに割当てられた属性種を判別する判別
手段と、上記読出手段から順次読み出されたレコードを
上記帳票上に出力する際は、先頭のレコードについては
上記基準位置記憶手段に記憶された上記帳票上における
出力基準位置に出力し、その先頭レコードに続いて読み
出された各レコードについては上記更新手段で順次更新
された上記帳票上の出力位置に出力し、且つ各レコード
の出力に当たってはその個々のレコード毎に上記判別手
段で判別された属性種に対応する出力形態で出力する出
力制御手段と、を具備したことを特徴とする。
According to a second aspect of the present invention, there is provided a record storing means for storing a plurality of records each having a plurality of attribute types and assigning any one attribute type to each record; A reference position storage means for storing an output reference position, an output form storage means for storing an output form for one record to be output, corresponding to each of the plurality of attribute types, and a storage means for storing the record form in the record storage means. Reading means for sequentially reading the plurality of records, updating means for sequentially updating the output reference position on the form stored in the reference position storage means in the row direction each time a record is read by the reading means, Determining means for determining the attribute type assigned to each record read by the means; and outputting the records sequentially read from the reading means on the form. Is output to the output reference position on the form stored in the reference position storage means for the first record, and each record read subsequent to the first record is sequentially updated by the update means. Output control means for outputting to an output position on a form, and for outputting each record in an output form corresponding to the attribute type determined by the determination means for each individual record. And

[機能ブロックの説明] 実施例を説明する前に、機能ブロック図を用いて説明
する。第1の機能ブロック図は次の通りである。
[Explanation of Functional Block] Before describing the embodiment, an explanation will be given using a functional block diagram. The first functional block diagram is as follows.

記憶手段1a(第1図の機能ブロック図を参照、以下同
じ)は、例えばファイル編成されたレコードの内容とし
て、商品別の商品コード番号、商品名、在庫量などの項
目別データを記憶したり、例えば、成績順に配列された
生徒名等、所定の論理で配列されたデータ群を記憶す
る。
The storage unit 1a (see the functional block diagram of FIG. 1, the same applies hereinafter) stores, for example, item-specific data such as a product code number, a product name, and a stock amount for each product as the contents of a file-organized record. For example, data groups arranged according to a predetermined logic, such as student names arranged in the order of grades, are stored.

設定手段1bは、先頭に帳票出力すべき記憶手段1a内の
データにつき、そのデータを括る罫線とその基準出力位
置を設定する。この罫線の設定の仕方は、例えば、最少
単位の1ワードデータの周囲を括る4辺の罫線につき、
その有無、線種、長さを指定したり、1行分のレコード
データ、すなわち、複数のワードデータにつき、前行、
次行との間を仕切る横罫線を各ワードデータ分、一括し
て設定し、かつ各ワードデータを区分する縦罫線を一括
して設定する等任意である。
The setting unit 1b sets a ruled line surrounding the data and a reference output position for the data in the storage unit 1a to be output at the top. The method of setting this ruled line is, for example, for each ruled line of four sides surrounding the minimum unit of one word data.
Specify the presence / absence, line type, length, record data for one line, that is, the previous line,
A horizontal ruled line separating the next line is set collectively for each word data, and a vertical ruled line for dividing each word data is collectively set.

読出手段1cは、記憶手段1aからデータを順次読出す。 The reading means 1c sequentially reads data from the storage means 1a.

出力手段1dは、読出手段1cにてデータが読出されるご
とに、設定手段1bにて設定された罫線を、上記基準出力
位置を基準にして逐次更新しながら当該読出データと共
に出力する。
The output means 1d outputs the ruled lines set by the setting means 1b together with the read data while sequentially updating the ruled lines set by the setting means 1b each time data is read by the reading means 1c.

第2の機能ブロック図は次の通りである。 The second functional block diagram is as follows.

記憶手段2a(第2図の機能ブロック図を参照、以下同
じ)は、キー項目の分類レベルが異なる複数のレコード
データを記憶する。
The storage means 2a (see the functional block diagram of FIG. 2, the same applies hereinafter) stores a plurality of record data having different key item classification levels.

例えば、キー項目の分類レベルが時計(レベル3)、
腕時計および置時計(レベル2)、腕時計A、B、Cお
よび置腕時計A、B、C(レベル1)のように異なり、
これらキー項目の分類レベルが異なる各レコードにおい
て、他のデータ項目は、皆、同一の売上個数であり、腕
時計(レベル2)の売上個数は、腕時計A、B、C(レ
ベル1)の売上個数を合計したものであり、置時計(レ
ベル2)の売上個数は、置腕時計A、B、C(レベル
1)の売上個数を合計したものであり、時計(レベル
3)の売上個数は、腕時計、置時計(レベル2)の売上
個数を合計したものであるような複数のレコードデータ
を記憶する。
For example, the classification level of the key item is clock (level 3),
Different from watches and clocks (level 2), watches A, B, C and clocks A, B, C (level 1)
In each record in which the classification level of these key items is different, all the other data items have the same sales volume, and the sales volume of watches (level 2) is the sales volume of watches A, B, and C (level 1). The sales quantity of the table clock (level 2) is the sum of the sales figures of the table clocks A, B and C (level 1), and the sales quantity of the clock (level 3) is A plurality of record data, which is the sum of the sales numbers of table clocks (level 2), are stored.

設定手段2bは、記憶手段2aから読出されて出力された
1行分のレコードデータを括る罫線を各分類レベルと対
応して設定する。
The setting unit 2b sets a ruled line surrounding one row of record data read and output from the storage unit 2a, corresponding to each classification level.

例えば、上記の例で、時計(レベル3)、腕時計およ
び置時計(レベル2)、腕時計A、B、Cおよび置腕時
計A、B、C(レベル1)の順に大きく括るような罫線
を設定する。
For example, in the above example, a ruled line is set so that the clock (level 3), the wristwatch and the clock (level 2), the watches A, B, and C, and the clocks A, B, and C (level 1) are grouped in this order.

読出手段2cは、記憶手段2aからレコードデータを順次
読出す。
The reading means 2c sequentially reads the record data from the storage means 2a.

判別手段2dは、読出手段2cにてレコードデータが読出
されるごとに、そのレコードデータの分類レベルを判別
する。
Each time the reading means 2c reads the record data, the determining means 2d determines the classification level of the record data.

出力手段2eは、判別手段2dにて判別された分類レベル
に対応する罫線を、当該レコードデータと共に出力す
る。
The output unit 2e outputs a ruled line corresponding to the classification level determined by the determination unit 2d together with the record data.

[第1実施施例] 以下、第1実施例を第3図ないし第10図を参照しなが
ら説明する。
First Embodiment Hereinafter, a first embodiment will be described with reference to FIGS. 3 to 10.

構成 第3図は、第1実施例による帳票出力装置の構成図で
あり、この帳票出力装置は、中央制御部1の制御の下
に、キー入力部2から入力されたデータを、ファイルメ
モリ3上でファイル処理し、このファイル内容を、フォ
ーマット設定メモリ4上に予め設定された帳票フォーマ
ット情報に基づいて出力部5から帳票出力するものであ
る。この帳票出力に際し、データ位置ポインタDP、括り
線位置ポインタLPが活用される。
Configuration FIG. 3 is a block diagram of a form output device according to the first embodiment. This form output device, under the control of a central control unit 1, stores data input from a key input unit 2 in a file memory 3 The file processing is performed above, and the contents of this file are output as a form from the output unit 5 based on the form format information set in the format setting memory 4 in advance. In outputting the form, the data position pointer DP and the concatenation line position pointer LP are used.

キー入力部2は、各種のデータを入力するデータ入力
キーの他に、ファイル処理モードを設定するファイルキ
ー、帳票フォーマット設定モードを設定する設定キー、
帳票出力モードを設定する帳票出力キーを有している。
The key input unit 2 includes, in addition to a data input key for inputting various data, a file key for setting a file processing mode, a setting key for setting a form format setting mode,
A form output key for setting a form output mode is provided.

フォーマット設定メモリ4に設定される帳票フォーマ
ット情報を第4図ないし第8図に基づいて説明する。
The form format information set in the format setting memory 4 will be described with reference to FIGS.

第4図に示したように、ファイルメモリ3上に形成さ
れたファイルは、1レコード内のデータ項目数(ワード
データ数)が“1"であり、この内容を第5図のような帳
票として出力するときは、第6図のような帳票フォーマ
ット情報をフォーマット設定メモリ4に設定する。すな
わち、帳票フォーマット情報は、ヘッダ部フォーマット
F1、ワード部フォーマットF2、ボトム部フォーマットF3
に分けて設定する。
As shown in FIG. 4, in the file formed on the file memory 3, the number of data items (the number of word data) in one record is "1", and the contents are converted into a form as shown in FIG. When outputting, the form format information as shown in FIG. 6 is set in the format setting memory 4. That is, the form format information includes the header format
F1, word part format F2, bottom part format F3
Set separately.

ヘッダ部フォーマットF1には、第5図に示した「電卓
売上順リスト」のようなヘッダ部データの出力位置(X
h,Yh)を設定する。
The header portion format F1 includes an output position (X) of the header portion data such as the “calculator sales order list” shown in FIG.
h, Yh).

そして、ワード部フォーマットF2には、帳票出力対象
の先頭ワードデータの基準出力位置(Xd,Yd)、この先
頭ワードデータを括るための括り線の基準出力位置(X
1,Y1)、括り線(罫線)の範囲(+x)、および上辺,
下辺,左辺,右辺の各括り線の線種(“0"〜“2")を設
定する。
The word part format F2 includes a reference output position (Xd, Yd) of the first word data to be output as a form, and a reference output position (Xd) of a concatenation line for enclosing the first word data.
1, Y1), the range of the concatenation line (ruled line) (+ x), and the upper side,
Set the line type ("0" to "2") of each concatenation line on the lower side, left side, and right side.

これら設定内容を第7図に基づいて説明すると、ワー
ドデータの基準出力位置(Xd,Yd)は、先頭ワードデー
タの先頭文字(図中○印)のX座標(桁位置)、Y座標
(行位置)を示している。括り線の基準出力位置(X1,Y
1)は、ワードデータを矩形で括った際の左上の頂角領
域のX座標、Y座標を示している。括り線の範囲(+
x)は、括り線の基準出力位置(X1,Y1)のX座標位置X
1からの桁方向(x方向)の括り線の長さを示してい
る。また、第8図に示したように、上辺,下辺,左辺,
右辺の各括り線の線種(“0"〜“2")において、“0"は
線無し、“1"は細線、“2"は太線を示している。
The setting contents will be described with reference to FIG. 7. The reference output position (Xd, Yd) of the word data is represented by the X coordinate (digit position) and the Y coordinate (line Position). Reference output position (X1, Y
1) shows the X coordinate and the Y coordinate of the top left corner area when the word data is enclosed in a rectangle. Range of bracket line (+
x) is the X coordinate position X of the reference output position (X1, Y1) of the concatenation line
The length of the concatenation line in the digit direction (x direction) from 1 is shown. Also, as shown in FIG. 8, the upper side, lower side, left side,
In the line types (“0” to “2”) of each concatenation line on the right side, “0” indicates no line, “1” indicates a thin line, and “2” indicates a thick line.

このワード部フォーマットF2のデータは、指定された
ファイルのデータ数(レコード数)に応じて、1データ
(1レコード)分ずつ帳票フォーマットを伸長する際
の、繰返しパターンとして活用される。
The data in the word part format F2 is used as a repetitive pattern when expanding the form format by one data (one record) according to the number of data (the number of records) of the designated file.

また、ボトム部フォーマットF3には、第5図に示した
ボトム部のフォーマット、すなわち2重線のフォーマッ
トデータを設定する。
In the bottom part format F3, the format of the bottom part shown in FIG. 5, that is, double line format data is set.

なお、Y座標、X座標は1文字領域単位で目もられて
いる。
The Y coordinate and the X coordinate are set in units of one character area.

動作 次に、第1実施例の動作を第9図及び第10図を参照し
て説明する。
Next, the operation of the first embodiment will be described with reference to FIGS. 9 and 10.

キー入力部2の帳票出力キーが操作され、帳票出力モ
ードが設定されると、中央制御部1は、フォーマット設
定メモリ4のヘッダ部フォーマットF1から、ヘッダ部の
先頭出力位置情報(Xh,Yh)を読出してデータ位置ポイ
ンタDPにセットし、その出力位置(Xh,Yh)から上位桁
方向にファイルメモリ3から読出したヘッダ部データ
「電卓売上順リスト」を印字する(第9図ステップS1:
第10図(a)参照)。
When the form output key of the key input unit 2 is operated and the form output mode is set, the central control unit 1 reads the header output position information (Xh, Yh) of the header from the header format F1 of the format setting memory 4. Is read and set in the data position pointer DP, and the header data “calculator sales order list” read from the file memory 3 is printed in the upper digit direction from the output position (Xh, Yh) (step S1: FIG. 9).
(See FIG. 10 (a)).

次にフォーマット設定メモリ4のワード部フォーマッ
トF2から、データ基準出力位置(Xd,Yd)、および括り
線の基準出力位置(X1,Y1)を読出し、それぞれ、デー
タ位置ポインタDP、括り線位置ポインタLPにセットする
(ステップS2)。そして、ファイルメモリ3の1レコー
ド目の内容を読出し、ワードデータの有無を判断する
(ステップS3、S4)。その結果、ワードデータが有ると
きは、読出されたワードデータを、データ位置ポインタ
DPで示される座標位置から上位桁方向に印字する(ステ
ップS5)。そして、括り線位置ポインタLPで示される座
標位置、フォーマット設定メモリ4のワード部フォーマ
ットF2に設定された括り線範囲(+x)、線種を参照し
て括り線を印字する(ステップS6)。すなわち、第6図
に示すように、ワード部フォーマットF2には、上辺の線
種としては細線を示す“1"が設定され、括り線範囲とし
ては(+x)、が設定されているので、上辺、下辺、左
辺、右辺の線種としては、それぞれ細線、線無し、太
線、太線が設定されているので、例えば先頭のワードデ
ータが読み出されたときは、第10図(b)のような帳票
出力となる。
Next, the data reference output position (Xd, Yd) and the reference output position (X1, Y1) of the concatenation line are read from the word part format F2 of the format setting memory 4, and the data position pointer DP and the concatenation line position pointer LP are respectively read. (Step S2). Then, the contents of the first record in the file memory 3 are read, and it is determined whether or not there is word data (steps S3 and S4). As a result, when there is word data, the read word data is stored in the data position pointer.
Printing is performed in the upper digit direction from the coordinate position indicated by DP (step S5). Then, a concatenation line is printed by referring to the coordinate position indicated by the concatenation line position pointer LP, the concatenation line range (+ x) set in the word part format F2 of the format setting memory 4, and the line type (step S6). That is, as shown in FIG. 6, in the word part format F2, "1" indicating a fine line is set as the line type of the upper side, and (+ x) is set as the concatenated line range. As the line types of the lower side, the left side, and the right side, a thin line, no line, a thick line, and a thick line are set. For example, when the first word data is read, as shown in FIG. It becomes a form output.

次にデータ位置ポインタDP、および括り線位置ポイン
タLPのY成分(行方向のポイント)を“1"だけインクリ
メントし(ステップS7)、次のレコードの内容を読出し
て(ステップS8)、ステップS4に戻る。このときは、デ
ータ位置ポインタDP、および括り線位置ポインタLPのY
成分は“1"だけインクリメントされ、かつワード部フォ
ーマットF2の同一の帳票フォーマットを利用して帳票出
力が行われるので、第10図(c)に示したように、次行
に、前行と同様の括り線が伸長出力される。
Next, the Y component (point in the row direction) of the data position pointer DP and the concatenation line position pointer LP is incremented by "1" (step S7), and the contents of the next record are read (step S8). Return. At this time, the Y of the data position pointer DP and the concatenation line position pointer LP
Since the component is incremented by "1" and the form is output using the same form format of the word part format F2, as shown in FIG. 10 (c), the next line is the same as the previous line. Is expanded and output.

ステップS4にて、ワードデータ無しと判断されたとき
は、ステップS9に進んで、ボトム部フォーマットF3、お
よびに括り線位置ポインタLPの内容に従ってボトム部の
フォーマットを印字する。
If it is determined in step S4 that there is no word data, the flow advances to step S9 to print the format of the bottom part according to the contents of the bottom part format F3 and the concatenation position pointer LP.

ボトム部フォーマットF3には、2重線のフォーマット
が設定されているので、例えばワードデータ数が2個の
場合は、第10図(d)に示したように、2番目のワード
データの下側に2重線が出力される。
In the bottom part format F3, a double line format is set. For example, when the number of word data is two, as shown in FIG. Is output as a double line.

このように、予め設定された先頭データ用の帳票フォ
ーマットが、データ数に応じて伸長される。従って、第
5図(a)、(b)に示したようにレコード数(データ
数)が変化したとしても、帳票フォーマットを設定し直
す必要が無くなる。
As described above, the form format for the head data set in advance is expanded according to the number of data. Therefore, even if the number of records (the number of data) changes as shown in FIGS. 5A and 5B, it is not necessary to reset the form format.

なお、この第1実施例において、帳票出力対象のデー
タは、ファイル編成されたレコードデータに限定され
ず、レコードデータ以外のワードデータであっても良
い。
In the first embodiment, the form output target data is not limited to the file-organized record data, but may be word data other than the record data.

[第2実施例] 次に、第2実施例を第11図ないし第14図を参照して説
明する。
Second Embodiment Next, a second embodiment will be described with reference to FIGS. 11 to 14.

第2実施例は、第11図に示したように、ファイルメモ
リ3上で編成されたファイルの1レコード上のデータ項
目数が複数の例であり、他は、第1実施例とほぼ同様で
あるので、相違点のみを簡単に説明する。
In the second embodiment, as shown in FIG. 11, the number of data items on one record of a file organized on the file memory 3 is plural, and the other is almost the same as the first embodiment. Therefore, only the differences will be briefly described.

第12図に示したように、フォーマット設定メモリ4の
ワード部フォーマットF2には、1レコード上の各データ
項目毎に繰返しの基本となるフォーマットを設定して、
第13図に示したような帳票を出力している。
As shown in FIG. 12, in the word part format F2 of the format setting memory 4, a basic format of repetition is set for each data item on one record.
The form shown in FIG. 13 is output.

すなわち、帳票出力の際、出力データを括る罫線は、
出力対象のデータが存在する場合に限り、項目ごとに順
次、伸長出力される。従って、第14図のように、例え、
途中のレコードから項目数が変化したとしても、空白部
分のない見易い帳票を作成することができる。
That is, when outputting the form, the ruled lines surrounding the output data are:
Only when there is data to be output, the data is sequentially expanded and output for each item. Therefore, as shown in FIG.
Even if the number of items changes from the middle record, an easy-to-read form without blank portions can be created.

[第3実施例] 次に、第3実施例を第15図ないし第20図を参照しなが
ら説明する。
Third Embodiment Next, a third embodiment will be described with reference to FIGS. 15 to 20.

構成 第3実施例は、第15図に示したように、ファイルメモ
リ3上で編成されたファイル内容が特殊な場合の例であ
る。すなわち、ファイル編成の対象となったデータは、
第16図に示したように、キー項目となるべき商品の分類
レベルが3レベル存在し、下位分類から上位分類の順
に、レニット1(商品名)、レニット2(品目)、レニ
ット3(カテゴリー)に区分されている。そこで、これ
に呼応して、5桁構成の商品コードは、上位1桁はレニ
ット3(カテゴリー)、次の2桁はレニット2(品
目)、下位2桁はレニット1(商品名)レベルでの分類
内容を示している。
Configuration The third embodiment is an example in which the contents of files organized on the file memory 3 are special as shown in FIG. In other words, the data for which the file was organized
As shown in FIG. 16, there are three levels of product classification that should be key items, and in order from lower classification to higher classification, renit 1 (product name), renit 2 (item), and renit 3 (category). It is divided into. Accordingly, in response to this, the product code of the five-digit configuration is such that the upper one digit is a renit 3 (category), the next two digits are a renit 2 (item), and the lower two digits are a renit 1 (product name) level. The classification contents are shown.

そして、第15図に示したように、上記のような商品コ
ードをキー項目として1レコードが形成され、他のデー
タ項目としては、皆「売上金」、「個数」を有してい
る。また、レコードは、上位分類に含まれる下位分類の
レコードがその上位分類に続くよう配列されている。な
お、レニット2の商品分類の「売上金」、「個数」は、
それぞれ、そのレニット2の商品分類に含まれるレニッ
ト1の商品分類の「売上金」、「個数」を合計した値と
なっており、レニット3の商品分類の「売上金」、「個
数」は、それぞれ、そのレニット3の商品分類に含まれ
るレニット2の商品分類の「売上金」、「個数」を合計
した値となっている。なお、第15図では、分かり易くす
るため、レニットレベルは商品コードから抽出して示し
てある。
Then, as shown in FIG. 15, one record is formed using the above product code as a key item, and all other data items include “sales” and “quantity”. Further, the records are arranged such that the records of the lower classes included in the higher class follow the higher class. Note that the “sales” and “quantity” of the product category of Renit 2 are:
Each of the “sales” and “quantity” of the merchandise category of the renit 1 included in the merchandise category of the renit 2 is a value obtained by summing up “sales” and “quantity” of the merchandise category of the renit 3. Each value is the sum of “sales” and “quantity” of the product category of the renit 2 included in the product category of the renit 3. In FIG. 15, the renit level is extracted and shown from the product code for easy understanding.

このようなファイル内容を第17図に示したように、分
類レベルの区切りを明確にした形で帳票出力するため、
第18図に示したようなワード部フォーマットF2がフォー
マット設定メモリ4に設定されている。すなわち、フォ
ーマット設定メモリ4には、レニットレベル設定領域LV
と対応して、横罫線設定領域SD、縦罫線設定領域HGが形
成されている。そして、横罫線設定領域SDには、横罫線
の種類と共に、横罫線の出力開始桁を示す始点データと
長さが設定されている。また、縦罫線設定領域HGには、
複数の縦罫線の出力桁と対応してその縦罫線の線種が設
定されている。
As shown in Fig. 17, the contents of such a file are output in a form in which the division of the classification level is clear.
The word part format F2 as shown in FIG. 18 is set in the format setting memory 4. That is, the format setting memory 4 stores the renit level setting area LV
Corresponding to, a horizontal ruled line setting area SD and a vertical ruled line setting area HG are formed. In the horizontal ruled line setting area SD, start point data indicating the output start digit of the horizontal ruled line and the length are set together with the type of the horizontal ruled line. In the vertical ruled line setting area HG,
The line type of the vertical ruled line is set corresponding to the output digits of the plurality of vertical ruled lines.

なお、ワード部フォーマットF2には、他に括り線の基
準出力位置(Y1)も設定されているが、これについては
図示省略した。また、フォーマット設定メモリ4には、
ヘッダ部フォーマットF1、およびボトム部フォーマット
F3も設定されているが、これらの考え方は第1の実施例
と同様であるので、図示省略した。
Note that, in the word part format F2, a reference output position (Y1) of the concatenation line is also set, but this is not shown. Also, the format setting memory 4 contains
Header format F1 and bottom format
Although F3 is also set, since these concepts are the same as in the first embodiment, they are not shown.

動作 次に、第3実施例の動作を第19図及び第20図を参照し
て説明する。
Operation Next, the operation of the third embodiment will be described with reference to FIGS. 19 and 20.

キー入力部2の帳票出力キーが操作され、帳票出力モ
ードが設定されると、中央制御部1は、フォーマット設
定メモリ4のヘッダ部フォーマットF1の内容に従って、
ヘッダ部の帳票出力を行う(第19図ステップS31:第20図
(a)参照)。
When the form output key of the key input unit 2 is operated and the form output mode is set, the central control unit 1 sets the format according to the contents of the header format F1 of the format setting memory 4.
The form is output from the header section (FIG. 19, step S31: see FIG. 20 (a)).

次にフォーマット設定メモリ4のワード部フォーマッ
トF2から、括り線の基準出力位置(Y1)を読出し、括り
線位置ポインタLPにセットする(ステップS32)。そし
て、ファイルメモリ3の1レコード目の内容を読出し、
ワードデータの有無を判断する(ステップS33、S34)。
その結果、ワードデータが有るときは、そのキー項目デ
ータ(商品コード)のレニットを識別し(ステップS3
5)、レニットに応じた横罫線、縦罫線を、括り線位置
ポインタLPで示される行、および括り線位置ポインタLP
で示される桁を基準として印字する(ステップS36)。
そして、その罫線で括られた各領域に、読出しに係る1
レコードの対応するワードデータを印字する(ステップ
S37)。例えば、先頭レコードの場合は、レニット3で
あり、それに対応する横罫線の線種は“太線”、始点桁
は“X0"、長さは13であり、縦罫線の桁位置は“X0"“X
1"“X2"“X3"“X4"“X5"であつて、これら桁位置の縦罫
線の線種は、“X4"のみ“細線”で他は皆“太線”であ
り、この時の括り線位置ポインタLPの内容は“Y1"であ
るので、第20図(b)に示したように、帳票出力され
る。
Next, the reference output position (Y1) of the concatenation line is read from the word part format F2 of the format setting memory 4 and set to the concatenation line position pointer LP (step S32). Then, the contents of the first record in the file memory 3 are read out,
It is determined whether there is word data (steps S33, S34).
As a result, if there is word data, the unit of the key item data (product code) is identified (step S3).
5) The horizontal ruled line and the vertical ruled line according to the unit are lined by the concatenation line position pointer LP, and the concatenation line position pointer LP
Printing is performed based on the digit indicated by (step S36).
Then, in each area bounded by the ruled line, 1
Print the corresponding word data of the record (step
S37). For example, in the case of the first record, it is Renit 3, the line type of the horizontal ruled line corresponding thereto is “thick line”, the starting point digit is “X0”, the length is 13, and the digit position of the vertical ruled line is “X0” “ X
1 "" X2 "" X3 "" X4 "" X5 "and the vertical ruled line type at these positions is" X4 "," Thin line "and all others are" Thick line ". Since the content of the line position pointer LP is "Y1," the form is output as shown in FIG. 20 (b).

次に括り線位置ポインタLPの内容(行成分)を“1"だ
けインクリメントし(ステップS38)、次のレコードの
内容を読出して(ステップS39)、ステップS34に戻る。
その結果、次のレコードのキー項目データ(商品コー
ド)がレニット2であれば、レニット2に対応する横罫
線、縦罫線が次行に出力され、次のレニット2のワード
データがその罫線領域内に出力される(第20図(c)参
照)。また、ステップS34に戻ったとき、次のレコード
の商品コードがレニット1であれば、レニット1に対応
する横罫線、縦罫線が次行に出力され、そのレニット1
のワードデータがその罫線領域内に出力される(第20図
(d)参照)。
Next, the content (line component) of the branch line position pointer LP is incremented by "1" (step S38), the content of the next record is read (step S39), and the process returns to step S34.
As a result, if the key item data (product code) of the next record is Renit 2, a horizontal ruled line and a vertical ruled line corresponding to Renit 2 are output on the next line, and the word data of the next Renit 2 is stored in the ruled line area. (See FIG. 20 (c)). When returning to step S34, if the product code of the next record is Renit 1, a horizontal ruled line and a vertical ruled line corresponding to Renit 1 are output to the next line, and the Renit 1
Is output in the ruled line area (see FIG. 20 (d)).

ステップS34にて、ワードデータ無しと判断されたと
きは、ステップS40に進んで、ボトム部フォーマットF3
に従って、ボトム部を印字し、終了する。
If it is determined in step S34 that there is no word data, the process proceeds to step S40, where the bottom format F3
, The bottom portion is printed, and the process ends.

このように、分類レベルの異なる複数のレコードデー
タを帳票出力する際は、分類レベル毎に1つずつ帳票フ
ォーマットを設定しておき、出力対象のレコードデータ
の分類レベルを判別し、判別された分類レベルに対応す
る帳票フォーマットをその都度出力していくようにし
た。従って、分類レベルの異なる複数のレコードデータ
を帳票出力する場合においても、レコード数(データ
数)が変化したとしても、帳票フォーマットを設定し直
すことなく、自動的に、データ数に見合った無駄のな
い、見栄えの良い帳票を出力できるようになる。
As described above, when outputting a plurality of record data having different classification levels on a form, one form format is set for each classification level, the classification level of the record data to be output is determined, and the determined classification is determined. The form format corresponding to the level is output each time. Therefore, even when a plurality of record data with different classification levels are output on a form, even if the number of records (the number of data) is changed, a waste amount corresponding to the number of data is automatically set without resetting the form format. No, you will be able to output a nice looking report.

[発明の効果] 請求項1の発明によれば、少なくとも帳票上における
レコード出力位置の基準位置と1レコードに対する括り
形態とを任意に設定しておくことで、上記帳票上に出力
される複数のレコードについては、上記設定の基準位置
としてその基準位置から順次自動的に更新された出力位
置に各レコードが出力され、且つその各レコードに対し
ては予め設定した上記括り形態で自動的に出力されるよ
うになるので、出力対象となるレコードの数の大小よら
ず、その出力対象となる各レコードについてはその出力
位置が自動更新された位置で且つ予め設定した同一の括
り形態で帳票上に出力することができる。
[Effects of the Invention] According to the first aspect of the present invention, at least the reference position of the record output position on the form and the binding form for one record are arbitrarily set, so that a plurality of forms output on the form are obtained. As for the record, each record is output to the output position automatically updated sequentially from the reference position as the reference position of the above-mentioned setting, and for each record, the record is automatically output in the above-mentioned preset wrapping form. Therefore, regardless of the number of records to be output, regardless of the number of records to be output, the output position of each record to be output is automatically updated and output on the form in the same preset binding form. can do.

請求項2の発明によれば、複数のレコードを帳票形式
で出力する際は、出力対象となる先頭レコードの基準位
置より順次自動的に更新された出力位置に各レコードが
出力され、且つその各レコードに対しては個々のレコー
ド毎の属性種を判別して、その属性種に対応した出力形
態で自動的に出力されるようになるので、出力対象とな
るレコードの数の大小よらず、その出力対象となる各レ
コードについてはその出力位置が自動更新された位置で
出力されるようになり、且つその帳票内に出力された各
レコードの出力形態から、そのレコードの属性種を直ち
に把握することができる。
According to the second aspect of the present invention, when outputting a plurality of records in the form, each record is output to the output position automatically updated sequentially from the reference position of the first record to be output, and each of the records is output. For a record, the attribute type of each record is determined, and it is automatically output in an output form corresponding to the attribute type. Therefore, regardless of the number of records to be output, For each record to be output, the output position is output at the automatically updated position, and the attribute type of the record is immediately grasped from the output form of each record output in the form. Can be.

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

第1図は第1の発明の機能ブロック図、第2図は第2の
発明の機能ブロック図、第3図は第1実施例の構成図、
第4図は同実施例のファイルメモリ2の内容を示す図、
第5図は第4図の内容の帳票出力例を示す図、第6図は
第5図の帳票出力を得るための帳票フォーマット情報の
設定例を示す図、第7図および第8図は第6図の内容を
説明するための図、第9図および第10図は第1実施例の
帳票出力動作を説明するための図、第11図は第2実施例
ののファイルメモリの内容を示す図、第12図は第11図の
内容を帳票出力するための帳票フォーマット情報の設定
例を示す図、第13図および第14図は第12図の帳票フォー
マット情報に基づく帳票出力例を示す図、第15図は第3
実施例のファイルメモリの内容を示す図、第16図は第15
図のキー項目の分類レベルを説明するための図、第17図
は第15図の内容の帳票出力例を示す図、第18図は第17図
の帳票出力を得るための帳票フォーマット情報の設定例
を示す図、第19図および第20図は第3実施例の帳票出力
動作を説明するための図である。 1……中央制御部、2……キー入力部、3……ファイル
メモリ、4……フォーマット設定メモリ、5……出力
部。
FIG. 1 is a functional block diagram of the first invention, FIG. 2 is a functional block diagram of the second invention, FIG. 3 is a configuration diagram of the first embodiment,
FIG. 4 is a diagram showing the contents of the file memory 2 of the embodiment;
FIG. 5 is a diagram showing an example of a form output of the contents of FIG. 4, FIG. 6 is a diagram showing an example of setting of form format information for obtaining the form output of FIG. 5, and FIGS. FIG. 6 is a diagram for explaining the contents of FIG. 6, FIGS. 9 and 10 are diagrams for explaining the form output operation of the first embodiment, and FIG. 11 is a diagram showing the contents of the file memory of the second embodiment. FIG. 12, FIG. 12 is a diagram showing a setting example of form format information for outputting the contents of FIG. 11 on a form, and FIGS. 13 and 14 are diagrams showing a form output example based on the form format information of FIG. Figure 15 shows the third
FIG. 16 shows the contents of the file memory of the embodiment, and FIG.
Diagram for explaining the classification level of the key items in the figure, FIG. 17 shows a form output example of the contents of FIG. 15, and FIG. 18 sets the form format information for obtaining the form output of FIG. FIGS. 19 and 20 are diagrams illustrating an example of a form output operation according to the third embodiment. 1 central control unit, 2 key input unit, 3 file memory, 4 format setting memory, 5 output unit.

フロントページの続き (58)調査した分野(Int.Cl.6,DB名) B41J 29/26 B41J 21/00 G06F 3/12 G06P 15/20Continuation of the front page (58) Field surveyed (Int.Cl. 6 , DB name) B41J 29/26 B41J 21/00 G06F 3/12 G06P 15/20

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のレコードを記憶するレコード記憶手
段と、 出力対象となる先頭レコードの帳票上における出力基準
位置を任意に設定する基準位置設定手段と、 出力対象となる1レコードに対する出力形態を任意に設
定する出力形態設定手段と、 上記基準位置設定手段により任意に設定された出力基準
位置を記憶する基準位置記憶手段と、 上記出力形態設定手段により任意に設定された出力形態
を記憶する出力形態記憶手段と、 上記レコード記憶手段に記憶された複数のレコードを順
次読み出す読出手段と、 上記読出手段でレコードを読み出す毎に、上記基準位置
記憶手段に記憶された上記帳票上における出力基準位置
を行方向に順次更新する更新手段と、 上記読出手段から順次読み出されたレコードを上記帳票
上に出力する際は、先頭のレコードについては上記基準
位置記憶手段に記憶された上記帳票上の出力位置に出力
し、その先頭レコードに続いて読み出された各レコード
については上記更新手段で順次更新された上記帳票上の
出力位置に出力し、且つ各レコードの出力に当たっては
その各レコードを上記出力形態記憶手段に記憶された出
力形態で出力する出力制御手段と、 を具備したことを特徴とする帳票出力装置。
1. A record storage means for storing a plurality of records, a reference position setting means for arbitrarily setting an output reference position of a first record to be output on a form, and an output form for one record to be output. Output form setting means for arbitrarily setting; reference position storage means for storing an output reference position arbitrarily set by the reference position setting means; and output for storing an output form arbitrarily set by the output form setting means. Form storage means, reading means for sequentially reading a plurality of records stored in the record storage means, and each time a record is read by the reading means, an output reference position on the form stored in the reference position storage means Updating means for sequentially updating in the row direction; and outputting records sequentially read from the reading means to the form, The first record is output to the output position on the form stored in the reference position storage means, and each record read following the first record is updated on the form sequentially updated by the update means. Output control means for outputting to the output position and outputting each record in the output form stored in the output form storage means when outputting each record.
【請求項2】複数の属性種を有し、各レコード毎に何れ
か1つの属性種が割当てられたレコードを複数記憶する
レコード記憶手段と、 出力対象となる先頭レコードの帳票上における出力基準
位置を記憶する基準位置記憶手段と、 上記複数の属性種の夫々に対応して、出力対象となる1
レコードに対する出力形態を記憶する出力形態記憶手段
と、 上記レコード記憶手段に記憶された複数のレコードを順
次読み出す読出手段と、 上記読出手段でレコードを読み出す毎に、上記基準位置
記憶手段に記憶された上記帳票上における出力基準位置
を行方向に順次更新する更新手段と、 上記読出手段で読み出された各レコードに割当てられた
属性種を判別する判別手段と、 上記読出手段から順次読み出されたレコードを上記帳票
上に出力する際は、先頭のレコードについては上記基準
位置記憶手段に記憶された上記帳票上における出力基準
位置に出力し、その先頭レコードに続いて読み出された
各レコードについては上記更新手段で順次更新された上
記帳票上の出力位置に出力し、且つ各レコードの出力に
当たってはその個々のレコード毎に上記判別手段で判別
された属性種に対応する出力形態で出力する出力制御手
段と、 を具備したことを特徴とする帳票出力装置。
2. A record storage means having a plurality of attribute types and storing a plurality of records to which any one attribute type is assigned for each record, an output reference position on a form of a first record to be output And a reference position storage means for storing a plurality of attribute types corresponding to the plurality of attribute types.
Output form storage means for storing an output form for a record; read means for sequentially reading a plurality of records stored in the record storage means; and each time a record is read by the read means, the output form storage means is stored in the reference position storage means. Updating means for sequentially updating the output reference position on the form in the row direction; determining means for determining an attribute type assigned to each record read by the reading means; and reading sequentially from the reading means. When outputting a record on the form, the first record is output to the output reference position on the form stored in the reference position storage means, and for each record read subsequent to the first record, The data is output to the output position on the form sequentially updated by the updating means, and each record is output at the time of output of each record. Output control means for outputting in an output form corresponding to the attribute type determined by the determination means for each of the documents.
JP63175432A 1988-07-14 1988-07-14 Form output device Expired - Lifetime JP2844461B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63175432A JP2844461B2 (en) 1988-07-14 1988-07-14 Form output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63175432A JP2844461B2 (en) 1988-07-14 1988-07-14 Form output device

Publications (2)

Publication Number Publication Date
JPH0225356A JPH0225356A (en) 1990-01-26
JP2844461B2 true JP2844461B2 (en) 1999-01-06

Family

ID=15996001

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63175432A Expired - Lifetime JP2844461B2 (en) 1988-07-14 1988-07-14 Form output device

Country Status (1)

Country Link
JP (1) JP2844461B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5782067A (en) * 1980-11-12 1982-05-22 Casio Comput Co Ltd Printing system
JPS6195970A (en) * 1984-10-17 1986-05-14 Matsushita Electric Ind Co Ltd electronic typewriter
JPS61160171A (en) * 1984-12-29 1986-07-19 Canon Inc Block making device
JPH0767445B2 (en) * 1985-10-14 1995-07-26 株式会社日立メディコ X-ray CT system
JPS6293745A (en) * 1985-10-18 1987-04-30 Nec Corp Table information correcting system at the time of table format data is inputted
JPS6320622A (en) * 1986-07-15 1988-01-28 Brother Ind Ltd document editing device
JPS6375964A (en) * 1986-09-19 1988-04-06 Hitachi Ltd Table creation method

Also Published As

Publication number Publication date
JPH0225356A (en) 1990-01-26

Similar Documents

Publication Publication Date Title
US4240075A (en) Text processing and display system with means for rearranging the spatial format of a selectable section of displayed data
US6247030B1 (en) Table editing apparatus
JPS5846384A (en) Method of indicating ideographic symbol and similar graphic
GB1273372A (en) Data management computer driven display system
KR102006601B1 (en) Method of creating electronic test paper
JP2855207B2 (en) Form output device
US5765005A (en) Method for preparing form
JP2844461B2 (en) Form output device
JPH05342230A (en) Merchandize display data file preparing device
JPS5750008A (en) Sequence generator
JP3047400B2 (en) Data processing device
JPH0430073B2 (en)
US5544296A (en) Document output method
JP3029123B2 (en) Character processing apparatus and method
EP0352065A2 (en) Text editing device
JP2796593B2 (en) Output processing device that outputs predetermined format information
JP3234718B2 (en) Character information display processing device depending on date and time
JP3456481B2 (en) Information processing device
JP2734536B2 (en) Form output device
JPS5850039A (en) List output method
JPH025175A (en) character processing device
JP3082940B2 (en) Character processing apparatus and method
JPS6347908Y2 (en)
JPH01115666A (en) Output processor for outputting predetermined format data
JPH01115665A (en) Output processor for outputting predetermined format data

Legal Events

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

Free format text: PAYMENT UNTIL: 20071030

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20081030

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20081030

Year of fee payment: 10