JPH0749229B2 - Form output device - Google Patents
Form output deviceInfo
- Publication number
- JPH0749229B2 JPH0749229B2 JP2198156A JP19815690A JPH0749229B2 JP H0749229 B2 JPH0749229 B2 JP H0749229B2 JP 2198156 A JP2198156 A JP 2198156A JP 19815690 A JP19815690 A JP 19815690A JP H0749229 B2 JPH0749229 B2 JP H0749229B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- format
- control information
- output
- 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
Links
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、任意に設定された書式に基づいて帳票上にデ
ータを出力する帳票出力装置に関する。The present invention relates to a form output device for outputting data on a form based on an arbitrarily set format.
従来、帳票に所定の印字データをプリンタによって印字
しようとする場合に、印字データの帳票上のフォーマッ
トすなわち書式を書式モジュールで与えて、印字データ
を帳票上に所定のフォーマットで印字させる帳票出力装
置が知られている。Conventionally, when a printer is to print predetermined print data on a form, a form output device which gives a print data format on the form, that is, a format by a format module, and prints the print data on the form in a predetermined format is known. Are known.
この種の帳票出力装置のシステム構成図を第4図に示
す。第4図において、書式モジュール格納域101は、帳
票のフォーマットすなわち書式を定める書式モジュール
を格納している。この装置では、書式モジュールは、印
字桁数、データの種類、印字位置等の書式データだけで
構成されており、帳票に実際に印字されるべき印字デー
タを含んでいない。書式モジュールは書式オーバレイゼ
ネレータ102によって書式モジュール格納域101に格納さ
れるようになっている。A system configuration diagram of this type of form output device is shown in FIG. In FIG. 4, a format module storage area 101 stores a format module that defines the format of the form, that is, the format. In this device, the format module is composed only of format data such as the number of print digits, the type of data, and the print position, and does not include print data to be actually printed on the form. The format module is stored in the format module storage area 101 by the format overlay generator 102.
一方、プリンタ106により帳票に実際に印字される全て
の印字データは印字データ格納域103に予め作成されて
いる。ここで、印字データ格納域103に作成される印字
データとしては、一つの種類の帳票で定まっている印字
固定データ(罫線データ、伝票名データ等)と、帳票ご
とに異なる印字変動データ(日付、金額等の数値デー
タ)がある。印字プログラム手段104は印字データ格納
域103から印字データを取出して、印字データを書式モ
ジュール格納域101の書式モジュールに従って帳票に実
際に印字されるイメージでイメージRAM105へ格納するよ
うになっている。On the other hand, all the print data actually printed on the form by the printer 106 are created in advance in the print data storage area 103. Here, as print data created in the print data storage area 103, print fixed data (ruled line data, slip name data, etc.) determined by one type of form and print variation data (date, There is numerical data such as amount). The print program means 104 takes out print data from the print data storage area 103 and stores the print data in the image RAM 105 as an image actually printed on the form according to the format module in the format module storage area 101.
ところで、帳票のフォーマットすなわち書式を変更しよ
うとする場合には、印字位置、桁数等の書式データを変
更すると同時に、変更の対象となる帳票において定まっ
ている印字固定データを変更しなければならない。By the way, when changing the format of the form, that is, the format, it is necessary to change the print position, the number of digits, and other format data, and at the same time, change the fixed print data defined in the form to be changed.
従って、上述した従来の帳票出力装置において帳票のフ
ォーマットを変更しようとする場合には、書式オーバレ
イゼネレータ102によって書式データの変更に関する制
御情報を書式モジュール格納域101に対して与えると同
時に、印字固定データが印字データ格納域103に格納さ
れているために、書式データの変更を伴い、印字プログ
ラム手段104も変更し再構成しなければならなかった。Therefore, when trying to change the format of the form in the above-described conventional form output device, at the same time as giving the control information regarding the change of the form data to the form module storage area 101 by the form overlay generator 102, the fixed print data Is stored in the print data storage area 103, the format data must be changed, and the print program means 104 must be changed and reconfigured.
また、従来の帳票出力装置では、複数の印字変動データ
に対して個々に書式データを設定する必要があり、印字
変動データが帳票上で複数行にわたる場合には、その書
式データの設定が大変であった。In addition, in the conventional form output device, it is necessary to set the format data individually for a plurality of print variation data, and when the print variation data spans multiple lines on the form, it is difficult to set the format data. there were.
本発明の課題は、固定データ及びその出力位置の設定と
共に、複数行分の変動データの出力位置の設定を簡易化
することである。An object of the present invention is to simplify setting of output positions of variable data for a plurality of lines together with setting of fixed data and its output position.
本発明の手段は次の通りである。 The means of the present invention are as follows.
複数行分の変動データを記憶する変動データ記憶手段
(実施例の印字データ格納部12に相当する)と、帳票上
に固定的に出力すべき固定データとその固定データの帳
票上における出力位置を示す頁制御情報と、上記変動デ
ータの先頭の1行分の変動データの帳票上における出力
位置を示す行制御情報を任意に設定する設定手段(実施
例の書式制御装置13、第3図のステップS2あるいはS4の
処理に相当する)と、この設定手段により設定された頁
制御情報及び行制御情報を記憶する書式記憶手段(実施
例の書式モジュール格納部11に相当する)と、この書式
記憶手段の頁制御情報に基づいて、設定された上記固定
データを帳票上の対応する出力位置に出力する第1の出
力手段(実施例の書式制御装置13、第3図のステップS6
の処理に相当する)と、上記書式記憶手段の行制御情報
に基づいて上記変動データ記憶手段に記憶された1行目
の変動データを上記行制御情報で決まる帳票上の出力位
置に出力し、上記変動データ記憶手段に記憶された2行
目以降の変動データを上記行制御情報のY座標成分を更
新した出力位置で決まる帳票上の出力位置に出力する第
2の出力手段(実施例の書式制御装置13、第3図のステ
ップS10の処理に相当する)とを備える。A variable data storage unit (corresponding to the print data storage unit 12 of the embodiment) that stores variable data for a plurality of lines, fixed data to be fixedly output on a form, and an output position on the form of the fixed data are displayed. Setting means for arbitrarily setting the page control information shown and the line control information indicating the output position on the form of the variation data for the first line of the variation data (the format control device 13 of the embodiment, the step of FIG. 3). S2 or S4), format storage means (corresponding to the format module storage section 11 of the embodiment) for storing the page control information and line control information set by this setting means, and this format storage means. Based on the page control information of No. 1, first output means for outputting the set fixed data to the corresponding output position on the form (the format control device 13 of the embodiment, step S6 of FIG. 3).
Corresponding to the process) and output the variation data of the first row stored in the variation data storage means based on the row control information of the format storage means to the output position on the form determined by the row control information, Second output means for outputting the variation data of the second and subsequent rows stored in the variation data storage means to the output position on the form determined by the output position where the Y coordinate component of the row control information is updated (the format of the embodiment). The controller 13 corresponds to the process of step S10 in FIG. 3).
本発明の手段の作用は次の通りである。 The operation of the means of the present invention is as follows.
まず、帳票出力に先立って1頁上の帳票フォーマットの
設定を行なう必要がある。この場合、1頁上における固
定データの出力位置と変動データの先頭の1行目の帳票
上における出力位置とを決め、設定手段により固定デー
タとその出力位置とを示す頁制御情報を設定し、また変
動データの先頭1行目の出力位置を示す行制御情報を設
定する。そしてこの設定手段によって設定された頁制御
情報と行制御情報とは書式記憶手段に記憶される。First, it is necessary to set the form format on one page before outputting the form. In this case, the output position of the fixed data on one page and the output position of the first line of the variable data on the form are determined, and the setting means sets the page control information indicating the fixed data and the output position thereof. Further, the row control information indicating the output position of the first row of the variation data is set. The page control information and line control information set by the setting means are stored in the format storage means.
このような設定の後、変動データ記憶手段に記憶された
変動データを上記書式記憶手段に記憶された頁制御情報
及び行制御情報に基づいて出力する際は、まず第1の出
力手段が作動し、上記頁制御情報に基づいて、予め設定
された固定データを帳票上の対応する出力位置に出力す
る。次いで第2の出力手段が作動し、上記行制御情報に
基づいて上記変動データ記憶手段に記憶された1行目の
変動データを上記行制御情報で決まる帳票上の出力位置
に出力し、また2行目以降の変動データについては上記
行制御情報のY座標成分を更新した出力位置で決まる帳
票上の位置に出力する。After such setting, when outputting the variation data stored in the variation data storage means based on the page control information and the line control information stored in the format storage means, first the first output means operates. Based on the page control information, preset fixed data is output to the corresponding output position on the form. Then, the second output means operates to output the variation data of the first row stored in the variation data storage means on the basis of the row control information to the output position on the form determined by the row control information. The variation data after the line is output to the position on the form determined by the output position where the Y coordinate component of the line control information is updated.
従って、帳票の1頁上に固定データを出力させる頁制御
情報と、帳票の1頁上における変動データの先頭1行目
の出力位置を決める行制御情報とを設定するだけで、帳
票の1頁上の所望する出力位置に所望する固定データを
出力でき、また帳票の1頁上の所望する位置に複数行に
わたる変動データを出力させることができる。Therefore, by setting the page control information that outputs fixed data on one page of the form and the line control information that determines the output position of the first line of the first variable data on one page of the form, one page of the form can be set. The desired fixed data can be output to the desired output position above, and the variable data over a plurality of lines can be output to the desired position on one page of the form.
(1)構 成 以下に図面を用いて本発明の一実施例を説明する。 (1) Configuration One embodiment of the present invention will be described below with reference to the drawings.
第1図は本発明の帳票出力装置のシステム構成図であ
る。第1図において、書式モジュール格納部11(磁気デ
ィスクやRAM等からなる)には、例えば第4図に示すよ
うな書式オーバレイゼネレータ102によって書式モジュ
ールFMTが格納される。第2図(b)はこのようにして
格納された書式モジュールFMTの一例を示している。書
式モジュールFMTは、主に印字桁数、データの種類、印
字位置等の印字データを制御する書式データを有するも
のであり、第2図(b)に示す例では、書式モジュール
名、例えば“Xレイアウト”、“Yレイアウト”と、帳
票上で何行かにわたって繰返しては印字されない印字デ
ータを制御する頁制御情報と、帳票上で何行かにわたっ
て繰返して印字される印字データを制御する行制御情報
とから構成されている。第2図(b)の例では頁制御情
報は、帳票上で繰返し行に印字されない印字データの印
字位置P1、乃至P8を有しており、行制御情報は、帳票上
で繰返して何行かにわたり印字される印字データの印字
位置P9乃至P13を有している。なお、それぞれの印字位
置はX座標位置とY座標位置とからなっている。行制御
情報の印字位置P9乃至P13は、第2図(c)からわかる
ように、繰返し行のうちで最初の行の印字位置であり、
行制御情報としては繰返し行のうちの最初の一行分の印
字位置のみが指定されるものとする。最初の行に続く繰
返し行についての印字位置の制御情報は後述のように第
1図の書式制御装置13によって作成される。FIG. 1 is a system configuration diagram of a form output device of the present invention. In FIG. 1, a format module FMT is stored in a format module storage unit 11 (made up of a magnetic disk, RAM, etc.) by a format overlay generator 102 as shown in FIG. 4, for example. FIG. 2 (b) shows an example of the format module FMT thus stored. The format module FMT mainly has format data for controlling print data such as the number of print digits, data type, print position, etc. In the example shown in FIG. 2B, the format module name, for example, "X" is used. "Layout", "Y layout", page control information that controls print data that is not repeatedly printed over several lines on the form, and line control information that controls print data that is repeatedly printed over several lines on the form It consists of In the example of FIG. 2 (b), the page control information has print positions P1 to P8 of the print data that are not printed in repeated lines on the form, and the line control information is repeated on the form for several lines. It has print positions P9 to P13 for print data to be printed. Each print position is composed of an X coordinate position and a Y coordinate position. The print positions P9 to P13 of the line control information are print positions of the first line among the repeated lines, as can be seen from FIG. 2 (c).
As the line control information, only the print position of the first one of the repeated lines is specified. The print position control information for the repeated lines following the first line is created by the format controller 13 of FIG. 1 as described later.
本実施例では、従来の書式モジュールの形態と異なり、
一つの種類の帳票で定まっていて帳票ごとに変動するこ
とのない印字固定データSD1乃至SD7を書式モジュール内
にさらに含めている。印字固定データSD1乃至SD7は、第
2図(c)に示すように例えば“得意先元帳”、“日
付”、“商品コード”、“商品名”、“数量”、“単
価”、“金額”の帳票で定まっている印字データであ
る。第2図(b)に示すように、印字固定データSD1乃
至SD7は書式モジュールFMT内でそれぞれ印字位置P1、P
2、P4乃至P8に対応づけられている。印字固定データは
頁制御情報として取扱われ、従って行制御情報には含ま
れていない。In this embodiment, unlike the conventional form module form,
The print fixed data SD1 to SD7, which are determined by one type of form and do not change from form to form, are further included in the format module. The fixed print data SD1 to SD7 are, for example, "customer ledger", "date", "product code", "product name", "quantity", "unit price", "amount" as shown in FIG. 2 (c). The print data is determined by the form. As shown in FIG. 2 (b), the print fixed data SD1 to SD7 are printed at the print positions P1 and P in the format module FMT.
2, associated with P4 to P8. The fixed print data is treated as page control information and is therefore not included in the line control information.
第2図(b)において、頁制御情報の印字位置P3、およ
び行制御情報の印字位置P9乃至P13に対応させて符号*
が記されているが、符号*は、印字位置P3、P9乃至P13
について後述するように書式制御装置13により印字デー
タ格納部12(磁気ディスクやRAM等からなる)内の印字
変動データVD1乃至VD8(第2図(a)参照)がそれぞれ
対応づけられることを意味している。In FIG. 2 (b), reference characters * correspond to the print position P3 of the page control information and the print positions P9 to P13 of the line control information.
Is printed, the symbol * indicates the print positions P3, P9 to P13.
As will be described later, it means that the print controller 13 associates the print variation data VD1 to VD8 (see FIG. 2 (a)) in the print data storage unit 12 (including a magnetic disk, RAM, etc.) with each other. ing.
なお、第2図(c)のような帳票の書式を印字するに
は、書式モジュールFMTの頁制御情報として、さらに罫
線の印字位置、罫線の印字固定データが必要であるが、
第2図(b)書式フォーマットFMTでは説明を簡単にす
るために罫線に関する情報を省略している。In addition, in order to print the form format as shown in FIG. 2C, as the page control information of the format module FMT, the print position of the ruled line and the fixed print data of the ruled line are necessary.
In FIG. 2 (b), format format FMT, information about ruled lines is omitted to simplify the description.
第1図において、印字データ格納部12には、第2図
(a)に示すように、書式モジュール名、例えば“Xレ
イアウト”、“Yレイアウト”と、帳票ごとに異なる印
字変動データVD1乃至VD8とが格納されている。印字変動
データVD1乃至VD8は、第2図(c)に示す例では、それ
ぞれ“86.07.10"、“001"、“シャツ”、“1"、“100
0"、“1000"、“002"、“セータ”であり、主に帳票ご
とで変わる数値データ等からなる。In FIG. 1, the print data storage unit 12 stores format module names, such as “X layout” and “Y layout”, and print variation data VD1 to VD8 different for each form, as shown in FIG. 2A. And are stored. The print variation data VD1 to VD8 are "86.07.10", "001", "shirt", "1", "100", respectively, in the example shown in FIG. 2 (c).
These are 0 "," 1000 "," 002 ", and" seater ", and mainly consist of numerical data that changes for each form.
書式制御装置13は、書式モジュール格納部11に格納され
ている書式モジュールFMTと、印字データ格納部12に格
納されている印字データ(本実施例では印字変動データ
のみ)とを組合わせて帳票に印字するイメージでプロセ
ッサ14へ出力するものである。The form control device 13 forms a form by combining the form module FMT stored in the form module storage unit 11 and the print data (only print variation data in this embodiment) stored in the print data storage unit 12. The image to be printed is output to the processor 14.
書式制御装置13は、図示しないがマイクロコンピュータ
を用いてマイクロコンピュータによって制御を行なうよ
うになっている。Although not shown, the format controller 13 is adapted to be controlled by a microcomputer using a microcomputer.
書式制御装置13は、印字装置16に出力されるべき帳票名
が例えばオペレータにより指示されると、この帳票名に
該当する書式モジュール名を書式モジュール格納部11内
で検索し、そのモジュール名、例えば第2図(a)、
(b)、(c)に示す“Xレイアウト”が検出される
と、“Xレイアウト”の頁制御情報を取出し、頁制御情
報のうち印字固定データSD1乃至SD7を印字位置P1、P2、
P4乃至P8に基づいて編集してプロセッサ14に送出する。
書式制御装置13は、引続き、書式モジュール格納部11か
ら行制御情報を取出し、さらに印字データ格納部12にお
いて“Xレイアウト”の書式モジュール名を検索してこ
れに含まれている印字変動データVD1乃至VD8を順次に取
出す。次いでこれらの印字変動データVD1乃至VD8を書式
モジュールの頁制御情報の印字位置P3および行制御情報
の印字位置P9乃至P13に基づいて編集してプロセッサ14
に送出するようになっている。すなわち、印字変動デー
タVD1は頁制御情報の印字位置P3に基づいて編集され、
印字変動データVD2乃至VD8は行制御情報の印字位置P9乃
至P13に基づいて編集される。The form control device 13, when the form name to be output to the printing device 16 is instructed by the operator, for example, searches the form module storage unit 11 for a form module name corresponding to this form name, and the module name, for example, FIG. 2 (a),
When the "X layout" shown in (b) and (c) is detected, the page control information of the "X layout" is extracted, and the print fixed data SD1 to SD7 of the page control information are printed at the print positions P1, P2,
It is edited based on P4 to P8 and sent to the processor 14.
The format control device 13 continues to retrieve the line control information from the format module storage unit 11, searches the print data storage unit 12 for the format module name of "X layout", and print variation data VD1 to VD1 to Take out VD8 sequentially. Then, these print variation data VD1 to VD8 are edited based on the print position P3 of the page control information and the print positions P9 to P13 of the line control information of the format module, and the processor 14
It is designed to be sent to. That is, the print variation data VD1 is edited based on the print position P3 of the page control information,
The print variation data VD2 to VD8 are edited based on the print positions P9 to P13 of the line control information.
行制御情報には、最初の1行分の印字位置P9乃至P13が
指定されているだけであるので、書式制御装置13は行制
御情報に基づく編集に際して2行目、3行目の繰返し行
の印字位置を1行目の印字位置P9乃至P13から算出す
る。すなわち、繰返し行の印字位置のX座標位置は1行
目の印字位置P9乃至P13のX座標位置と同じであるの
で、これをそのまま用いる。繰返し行の印字位置のY座
標位置は1行目の印字位置のY座標位置を順次に増加さ
せたものを用いる。Since only the print positions P9 to P13 for the first line are designated in the line control information, the format controller 13 edits the second line and the third line after editing the line control information. The print position is calculated from the print positions P9 to P13 of the first line. That is, since the X coordinate position of the print position of the repeated line is the same as the X coordinate position of the print positions P9 to P13 of the first line, this is used as it is. As the Y coordinate position of the print position of the repeated line, the Y coordinate position of the print position of the first line is sequentially increased.
このようにして、印字データ格納部12からの印字変動デ
ータVD2乃至VD6は1行目の印字位置P9乃至P13に基づい
て編集され、印字変動データVD7乃至VD8は印字位置P9乃
至P13から算出される2行目の印字位置に基づいて編集
される。In this way, the print variation data VD2 to VD6 from the print data storage unit 12 are edited based on the print positions P9 to P13 of the first line, and the print variation data VD7 to VD8 are calculated from the print positions P9 to P13. It is edited based on the print position of the second line.
プロセッサ14は、書式制御装置13において編集された印
字固定データ、印字変動データをイメージRAM15へ転送
し、イメージRAM15内に1つの帳票分の全ての印字デー
タが記憶された後、イメージRAM15から印字データを取
出して印字位置16へ転送するものである。The processor 14 transfers the print fixed data and print variation data edited in the format control device 13 to the image RAM 15, and after all the print data for one form is stored in the image RAM 15, the print data is printed from the image RAM 15. This is taken out and transferred to the printing position 16.
書式モジュール格納部11、印字データ格納部12にそれぞ
れ第2図(a)、第2図(b)に示すような書式モジュ
ール、印字変動データが格納されていると、プロセッサ
14によりイメージRAM15内に格納される印字データは第
2図(c)のようになる。If the format module storage unit 11 and the print data storage unit 12 store the format module and print variation data as shown in FIGS. 2A and 2B, respectively, the processor
The print data stored in the image RAM 15 by 14 is as shown in FIG. 2 (c).
第2図(c)において、斜線部分には印字固定データSD
1乃至SD7が格納され、斜線部分以外の領域には印字変動
データVD1乃至VD8が格納される。このようにイメージRA
M15内の印字データはすでに印字装置16に印字されるイ
メージで格納される。In Fig. 2 (c), the print fixed data SD is shown in the shaded area.
1 to SD7 are stored, and print variation data VD1 to VD8 are stored in areas other than the shaded area. Image RA like this
The print data in M15 is stored as an image already printed on the printer 16.
(2)動 作 以上のような構成の帳票出力装置の動作を第3図のフロ
ーチャートを用いて説明する。(2) Operation The operation of the form output device having the above configuration will be described with reference to the flowchart of FIG.
第3図において、ステップS1では帳票のフォーマットを
新たに作成するのであるか否かを判断する。フォーマッ
トを新たに作成するときにはステップS2に進み、ステッ
プS2では書式オーバレイゼネレータ(図示せず)によっ
て書式モジュールを作成して書式モジュール格納部11へ
格納する。この際、書式オーバレイゼネレータによって
作成される書式モジュールは、第2図(b)に示すよう
に、書式モジュール名“Xレイアウト”、“Yレイアウ
ト”と、頁制御情報と、行制御情報とからなる。また、
頁制御情報には印字位置P1乃至P8の書式データの他に、
一つの種類の帳票で定まっている印字固定データSD1乃
至SD7が含まれる。また頁制御情報、行制御情報の印字
位置P3、P9乃至P13には符号*が付され、印字装置16へ
実際に印字する際に印字データ格納部11の印字変動デー
タVD1乃至VD8がこれらの印字位置にそれぞれ割当てられ
るようになっている。In FIG. 3, in step S1, it is determined whether or not a form format is newly created. When a new format is created, the process proceeds to step S2. In step S2, a format module is created by a format overlay generator (not shown) and stored in the format module storage unit 11. At this time, the format module created by the format overlay generator includes format module names "X layout" and "Y layout", page control information, and line control information, as shown in FIG. 2 (b). . Also,
In addition to the format data of print positions P1 to P8, page control information
The fixed print data SD1 to SD7, which are determined by one type of form, are included. Further, the print positions P3 and P9 to P13 of the page control information and the line control information are marked with a symbol *, and the print variation data VD1 to VD8 in the print data storage unit 11 are actually printed on the printing device 16 when they are actually printed. It is designed to be assigned to each position.
このように従来の装置では、印字データ格納部に格納さ
れていた印字固定データを書式モジュールに含ませ、印
字データ格納部12には印字変動データだけが格納される
ようになっているので、印字データ格納部12の作成に当
たり帳票のフォーマットを何ら考慮しなくとも良いとい
う利点がある。As described above, in the conventional device, the fixed print data stored in the print data storage unit is included in the format module, and only the print variation data is stored in the print data storage unit 12. There is an advantage that it is not necessary to consider the format of the form when creating the data storage unit 12.
ステップS2において書式モジュールを作成すると帳票の
フォーマット作成処理を終了する。When the format module is created in step S2, the form format creation process ends.
ステップS1においてフォーマット作成でないと判断され
ると、ステップS3に進み、帳票のフォーマットを変更す
るのであるか否かを判断する。フォーマット変更のとき
にはステップS4に進む。ステップS4では、書式モジュー
ル格納部11にすでに作成され格納されている書式モジュ
ールを書式オーバレイゼネレータ(図示せず)により変
更する。書式オーバレイゼネレータは先ず書式モジュー
ル内の印字位置P1乃至P13等の書式データを変更する。
さらに本実施例では書式モジュール内に一つの種類の帳
票で定まっている印字固定データSD1乃至SD7を含めてい
るので、印字位置P1乃至P13等の書式データの変更に伴
う印字固定データSD1乃至SD7の変更は書式モジュール内
でだけで行なわれ、従って、従来の装置のように印字プ
ログラム手段等を変更する必要はなくなる。If it is determined that the format is not created in step S1, the process proceeds to step S3, and it is determined whether or not the format of the form is changed. When changing the format, the process proceeds to step S4. In step S4, the format module already created and stored in the format module storage unit 11 is changed by the format overlay generator (not shown). The format overlay generator first changes the format data such as the print positions P1 to P13 in the format module.
Further, in this embodiment, since the print fixed data SD1 to SD7 defined in one type of form are included in the format module, the print fixed data SD1 to SD7 associated with the change of the format data such as the print positions P1 to P13. Modifications are made only within the form module, thus eliminating the need to modify print program means and the like as in conventional devices.
ステップS4において、書式オーバレイゼネレータによっ
て書式モジュールを変更した後、フォーマット変更処理
は終了する。In step S4, after changing the format module by the format overlay generator, the format changing process ends.
ステップS3において、フォーマット変更でないと判断さ
れると、書式制御装置13によって印字データを編集して
イメージRAM15へ格納しイメージRAM15内の印字データを
印字装置に出力するために、ステップS5乃至S11の処理
へ進む。このときに、書式モジュール名“Xモジュー
ル”の印字が指定されたとする。In step S3, if it is determined that the format is not changed, the print data is edited by the format controller 13 and stored in the image RAM 15, and the print data in the image RAM 15 is output to the printer. Go to. At this time, it is assumed that the printing of the format module name "X module" is designated.
ステップS5では、書式制御装置13は先ず、書式モジュー
ル格納部11から所定の書式モジュール名“Xモジュー
ル”を検索して、“Xモジュール”の頁制御情報を読出
す。頁制御情報は第2図(b)に示すように印字位置P1
乃至P8と印字固定データSD1乃至SD7とからなる。ステッ
プS6では書式制御装置13は、印字固定データSD1乃至SD7
をそれぞれ印字位置P1、P2、P4乃至P8のところに印字す
べく編集してプロセッサ14へ送出し、プロセッサ14はこ
れらの編集された印字固定データSD1乃至SD7を印字装置
16によって印字されるイメージでイメージRAM15へ格納
する。このようにして、頁制御情報内の印字固定データ
SD1乃至SD7は第2図(c)において斜線で示す部分のよ
うにイメージRAM15内へ格納される。ところで頁制御情
報の印字位置には更に符号*で示すように印字変動デー
タが対応づけられるべきものがある。第2図(b)の例
では、印字位置P3に対して印字変動データを対応づけね
ばならない。このためにステップS7では書式制御装置13
は、印字データ格納域12から書式モジュール名“Xレイ
アウト”を検索し、“Xレイアウト”の印字変動データ
VD1乃至VD8を順次に読出す。次いでステップS8では頁制
御情報において符号*の付されている印字位置に対応す
る印字変動データをステップS7で読出した順に割当て
る。従って、印字位置P3には最初に読出された印字変動
データVD1が対応づけられて、書式制御装置13は印字変
動データVD1を印字位置P3のところに印字すべく編集し
てプロセッサ14へ送出し、プロセッサ14は編集された印
字変動データVD1を印字装置16によって印字されるイメ
ージでイメージRAM15へ格納する。In step S5, the format control device 13 first searches the format module storage unit 11 for a predetermined format module name "X module" and reads the page control information of "X module". The page control information is printed at the print position P1 as shown in FIG. 2 (b).
To P8 and fixed print data SD1 to SD7. In step S6, the format control device 13 determines the print fixed data SD1 to SD7.
Are edited to be printed at the printing positions P1, P2, P4 to P8 and sent to the processor 14, and the processor 14 prints these edited print fixed data SD1 to SD7.
The image printed by 16 is stored in the image RAM 15. In this way, the print fixed data in the page control information
SD1 to SD7 are stored in the image RAM 15 as shown by the hatched portions in FIG. By the way, the print position of the page control information may be associated with print variation data as indicated by a symbol *. In the example of FIG. 2B, print variation data must be associated with the print position P3. Therefore, in step S7, the format control device 13
Retrieves the format module name "X layout" from the print data storage area 12 and prints the print variation data of "X layout".
VD1 to VD8 are sequentially read. Next, at step S8, the print variation data corresponding to the print position marked with * in the page control information is assigned in the order read out at step S7. Accordingly, the print position P3 is associated with the first read print variation data VD1, and the format controller 13 edits the print variation data VD1 to print at the print position P3 and sends it to the processor 14, The processor 14 stores the edited print variation data VD1 in the image RAM 15 as an image printed by the printing device 16.
このようにして、ステップS5乃至S8では書式モジュール
の頁制御情報に基づいて、印字固定データ、及び印字デ
ータ格納部12内の印字変動データを編集してイメージRA
M15内へ格納する。In this way, in steps S5 to S8, based on the page control information of the format module, the print fixed data and the print variation data in the print data storage unit 12 are edited to obtain the image RA.
Store in M15.
次いでステップS9乃至S10では書式モジュールの行制御
情報に基づいて印字変動データを繰返し行で印字しうる
ように編集してイメージRAM15内へ格納する。Next, in steps S9 to S10, the print variation data is edited based on the line control information of the format module so that it can be printed in repeated lines and stored in the image RAM 15.
すなわち、ステップS9では先ず書式モジュール格納部11
から行制御情報を読出す。第2図(b)に示す例では、
書式モジュール名“Xレイアウト”の行制御情報の印字
位置P9乃至P13が読出される。印字位置P9乃至P13は前述
のように繰返し行の第1行目に印字される印字変動デー
タの印字位置を示すものであり、2行目以後の印字位置
はこの第1行目の印字位置P9乃至P13から算出される。
すなわち、2行目以後の印字位置のうちX座標位置は第
1行目のX座標位置と同じであるので、これを用いる。
また、2行目以後の印字位置のうちY座標位置は、第1
行目のY座標位置を“+1"つづ増加させて算出される。
このようにして第1行目、および第2行目以後の印字位
置を算出した後、ステップS10に進み、ステップS9で算
出された繰返し行の印字位置を基にして印字変動データ
を順次に編集する。このときに第2図(a)において印
字変動データVD1は前述のとおりすでにイメージRAM15に
格納されたので、次の印字変動データVD2乃至VD8が順次
に繰返し行の印字位置に基づいて編集される。すなわ
ち、第2図(c)に示すようにVD2乃至VD8が印字位置P9
乃至P13のところに印字されるように編集されてプロセ
ッサ14を介しイメージRAM15へ格納され、次いで印字変
動データVD7乃至VD8が印字位置P9乃至P10から算出され
た次の行の印字位置P9′、P10′のところに印字される
よう編集されてプロセッサ14を介しイメージRAM15へ格
納される。印字データ格納部12内の印字変動データがVD
8で終わりであるときには、イメージRAM15への格納処理
を終了する。印字変動データがVD8に次いでさらにある
ときには、これを印字位置P10′に続く位置に格納す
る。That is, in step S9, first the format module storage unit 11
Read row control information from. In the example shown in FIG. 2 (b),
The print positions P9 to P13 of the line control information of the format module name "X layout" are read. The print positions P9 to P13 indicate the print positions of the print fluctuation data printed on the first line of the repeated line as described above, and the print positions of the second and subsequent lines are the print positions P9 of the first line. Through P13.
That is, since the X coordinate position of the print positions of the second and subsequent lines is the same as the X coordinate position of the first line, this is used.
In addition, the Y coordinate position of the print positions of the second and subsequent lines is the first
It is calculated by incrementing the Y coordinate position of the line by "+1".
After calculating the print positions of the first line and the second and subsequent lines in this way, the process proceeds to step S10, and the print variation data is sequentially edited based on the print positions of the repeated lines calculated in step S9. To do. At this time, in FIG. 2A, the print variation data VD1 has already been stored in the image RAM 15 as described above, so that the next print variation data VD2 to VD8 are sequentially edited based on the print positions of the repeated lines. That is, as shown in FIG. 2 (c), VD2 to VD8 are set at the printing position P9.
Print position P9 ', P10 of the next line calculated from print positions P9 to P10 are stored in the image RAM 15 through the processor 14 after being edited so as to be printed at positions P9 to P13. It is edited so as to be printed at the position 'and stored in the image RAM 15 via the processor 14. The print fluctuation data in the print data storage unit 12 is VD
When the process ends at 8, the storage process in the image RAM 15 ends. When the print variation data is further present next to VD8, it is stored in a position following the print position P10 '.
このようにして、第2図(c)に示すように印字固定デ
ータSD1乃至SD7および印字データ格納部12内の全ての印
字変動データVD1乃至VD8をイメージRAM15内の所定位置
へ格納した後、ステップS11へ進む。ステップS11ではイ
メージRAM15に格納された印字データをプロセッサ14を
介して印字装置16へ転送し、印字装置16は帳票に所定の
フォーマットのイメージで印字データを印字することが
できる。In this way, as shown in FIG. 2 (c), the print fixed data SD1 to SD7 and all the print variation data VD1 to VD8 in the print data storage unit 12 are stored in predetermined positions in the image RAM 15, and then the step Proceed to S11. In step S11, the print data stored in the image RAM 15 is transferred to the print device 16 via the processor 14, and the print device 16 can print the print data on a form with an image of a predetermined format.
以上のようにこの実施例によると、書式モジュール格納
部11内には書式データと印字固定データとが格納されて
いるので、書式制御装置13は印字固定データを効率良く
編集することができ、さらに印字データ格納部12には印
字変動データだけが格納されているので、書式制御装置
13は書式データに印字変動データを容易に対応させるこ
とができる。これによって書式制御装置13は印字データ
を極めて迅速に編集することができてイメージRAM15へ
の転送速度を向上させることができる。As described above, according to this embodiment, since the format data and the print fixed data are stored in the format module storage unit 11, the format control device 13 can efficiently edit the print fixed data. Since only the print variation data is stored in the print data storage unit 12, the format control device
13 can easily correspond print variation data to format data. As a result, the format control device 13 can edit the print data extremely quickly and can improve the transfer speed to the image RAM 15.
本発明によれば、帳票の1頁上に固定データを出力させ
る頁制御情報と、帳票の1頁上における変動データの先
頭の1行目の出力位置を決める行制御情報とを設定する
だけで、帳票の1頁上の所望する位置に所望する固定デ
ータを固定的に出力させることができ、また帳票の1頁
上の所望する位置に複数行にわたる変動データを出力さ
せることができる。According to the present invention, it is only necessary to set page control information for outputting fixed data on one page of a form and line control information for determining the output position of the first line at the beginning of the variable data on one page of the form. The desired fixed data can be fixedly output at a desired position on one page of the form, and the variable data over a plurality of lines can be output at the desired position on one page of the form.
第1図は本発明の帳票出力装置の一実施例のシステム構
成図、 第2図は帳票のフォーマットがどのように構成されるか
を説明する図であり、(a)、(b)、(c)はそれぞ
れ第1図に示す印字データ格納部の構成の一例、書式モ
ジュール格納部の構成の一例、イメージRAMに格納され
る印字データの構成の一例を示す図、 第3図は上記実施例の帳票出力装置の処理の流れを示す
フローチャート、 第4図は従来の帳票出力装置のシステム構成図である。 11……書式モジュール格納部、 12……印字データ格納部、 13……書式制御装置、 14……CPU、 15……イメージRAM、 16……印字装置。FIG. 1 is a system configuration diagram of an embodiment of a form output device of the present invention, and FIG. 2 is a diagram for explaining how the form format is configured. (A), (b), ( FIG. 3C is a diagram showing an example of the configuration of the print data storage unit shown in FIG. 1, an example of the configuration of the format module storage unit, and an example of the configuration of the print data stored in the image RAM, and FIG. FIG. 4 is a flowchart showing a processing flow of the form output device of FIG. 4, and FIG. 4 is a system configuration diagram of a conventional form output device. 11 …… Format module storage, 12 …… Print data storage, 13 …… Format control device, 14 …… CPU, 15 …… Image RAM, 16 …… Printing device.
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭59−90181(JP,A) 特開 昭59−94139(JP,A) 特開 昭58−92076(JP,A) 特開 昭55−123731(JP,A) 実開 昭58−69458(JP,U) ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-59-90181 (JP, A) JP-A-59-94139 (JP, A) JP-A-58-92076 (JP, A) JP-A-55- 123731 (JP, A) Actual development Sho 58-69458 (JP, U)
Claims (1)
タ記憶手段と、 帳票上に固定的に出力すべき固定データとその固定デー
タの帳票上における出力位置を示す頁制御情報と、上記
変動データの先頭の1行分の変動データの帳票上におけ
る出力位置を示す行制御情報を任意に設定する設定手段
と、 この設定手段により設定された頁制御情報及び行制御情
報を記憶する書式記憶手段と、 この書式記憶手段の頁制御情報に基づいて、設定された
上記固定データを帳票上の対応する出力位置に出力する
第1の出力手段と、 上記書式記憶手段の行制御情報に基づいて上記変動デー
タ記憶手段に記憶された1行目の変動データを上記行制
御情報で決まる帳票上の出力位置に出力し、上記変動デ
ータ記憶手段に記憶された2行目以降の変動データを上
記行制御情報のY座標成分を更新した出力位置で決まる
帳票上の出力位置に出力する第2の出力手段と、 を具備することを特徴とする帳票出力装置。1. A variable data storage means for storing variable data for a plurality of lines, fixed data to be fixedly output on a form, page control information indicating an output position of the fixed data on the form, and the change. Setting means for arbitrarily setting the line control information indicating the output position on the form of the variation data for the first line of the data, and format storage means for storing the page control information and the line control information set by the setting means. A first output means for outputting the set fixed data to a corresponding output position on the form based on the page control information of the format storage means; The variation data of the first row stored in the variation data storage means is output to the output position on the form determined by the row control information, and the variation data of the second and subsequent rows stored in the variation data storage means is output. A form output device comprising: second output means for outputting the Y coordinate component of the writing control information to an output position on the form determined by the updated output position.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2198156A JPH0749229B2 (en) | 1990-07-26 | 1990-07-26 | Form output device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2198156A JPH0749229B2 (en) | 1990-07-26 | 1990-07-26 | Form output device |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2198155A Division JPH0749228B2 (en) | 1990-07-26 | 1990-07-26 | Form output device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03246620A JPH03246620A (en) | 1991-11-05 |
| JPH0749229B2 true JPH0749229B2 (en) | 1995-05-31 |
Family
ID=16386397
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2198156A Expired - Lifetime JPH0749229B2 (en) | 1990-07-26 | 1990-07-26 | Form output device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0749229B2 (en) |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5892076A (en) * | 1981-11-25 | 1983-06-01 | オムロン株式会社 | Ticket printing system |
| JPS5990181A (en) * | 1982-11-15 | 1984-05-24 | Hitachi Ltd | printer control device |
| JPS5994139A (en) * | 1982-11-19 | 1984-05-30 | Japanese National Railways<Jnr> | Format control method |
-
1990
- 1990-07-26 JP JP2198156A patent/JPH0749229B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH03246620A (en) | 1991-11-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0749229B2 (en) | Form output device | |
| JPH0749228B2 (en) | Form output device | |
| JPH0430074B2 (en) | ||
| JPH09109351A (en) | Display information layout device | |
| JPS5833784A (en) | Word processor with frame opening function | |
| JPH07182565A (en) | Receipt print control method for POS terminal | |
| JPS60263987A (en) | Document display method | |
| JP2893935B2 (en) | Form output device | |
| JPS6318770B2 (en) | ||
| JPH0430073B2 (en) | ||
| JPH04220378A (en) | Apparatus for distribution processing of general-purpose slip to terminal printer | |
| JP2837984B2 (en) | Slip making device | |
| JPS63202487A (en) | Reprint control mechanism | |
| JPH01103467A (en) | Document output method | |
| JP3029729B2 (en) | Label printer | |
| JPS6386068A (en) | Production of general-purpose business slip | |
| JPS60251465A (en) | Character editing processing system | |
| JPH0711799B2 (en) | Typesetting system | |
| JPH0561622A (en) | Device for editing fixed printing position | |
| JPH0462551B2 (en) | ||
| JPH04272879A (en) | Printing date processor | |
| JPH0425477A (en) | Label printer | |
| JPH0481516B2 (en) | ||
| JPH0836569A (en) | File editing processor | |
| JPS6061269A (en) | Pattern-outputting device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |