JP2000099595A - Form creation device and storage medium - Google Patents
Form creation device and storage mediumInfo
- Publication number
- JP2000099595A JP2000099595A JP10270215A JP27021598A JP2000099595A JP 2000099595 A JP2000099595 A JP 2000099595A JP 10270215 A JP10270215 A JP 10270215A JP 27021598 A JP27021598 A JP 27021598A JP 2000099595 A JP2000099595 A JP 2000099595A
- Authority
- JP
- Japan
- Prior art keywords
- data
- database
- definition
- 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.)
- Pending
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
(57)【要約】
【課題】 本発明の課題は、定型的な帳票作成におい
て、作成した帳票を電子的に交換することができ、更に
帳票のデータを帳票作成時に追加、変更して出力できる
ようにした帳票作成装置及び記憶媒体を提供することで
ある。
【解決手段】 所望する帳票に対応してこの帳票に必要
なフィールドをデータベース100から抜粋するための
情報を表すビュー定義310と、この帳票上にデータを
出力するための情報を表すレイアウト定義320とを記
憶しており、データベース100のレコードに含まれる
複数のフィールドからビュー定義310に基づいて必要
なフィールドを抽出し、この抽出されたフィールドによ
り構成される所望する帳票に対応する帳票データベース
200を作成し、この作成された帳票データベース20
0と前記レイアウト定義320とに基づいて前記帳票2
01を出力する。
(57) [Summary] [Problem] To solve the problem of the present invention, in a standard form creation, a created form can be electronically exchanged, and further, data of the form can be added, changed, and output at the time of form creation. An object of the present invention is to provide a form creation device and a storage medium as described above. SOLUTION: A view definition 310 representing information for extracting fields required for the form from a database 100 corresponding to a desired form, a layout definition 320 representing information for outputting data on the form, and the like. And extracts necessary fields from a plurality of fields included in the records of the database 100 based on the view definition 310, and creates a form database 200 corresponding to a desired form composed of the extracted fields. Then, the created form database 20
0 based on the layout definition 320
01 is output.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、帳票作成装置及び
記憶媒体に係り、詳細には、帳票の電子的なデータ交換
を効率的に実行し、帳票作成時に新規フィールドを追加
して出力する等の編集を可能とする帳票作成装置及び記
憶媒体に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a form creation device and a storage medium, and more specifically, to efficiently execute electronic data exchange of a form, and to add and output a new field when a form is created. The present invention relates to a form creation device and a storage medium capable of editing a document.
【0002】[0002]
【従来の技術】近年、大量の情報を効率的に管理する有
効な手段としてデータベースが用いられている。このデ
ータベースは、販売管理,在庫管理といった様々な用途
に利用されており、これらのデータベースに蓄積された
情報は帳票として出力される。2. Description of the Related Art In recent years, a database has been used as an effective means for efficiently managing a large amount of information. This database is used for various purposes such as sales management and inventory management, and information stored in these databases is output as a form.
【0003】帳票を作成して出力するために利用される
帳票作成ソフトウェアには、大別して2種類のものがあ
る。There are roughly two types of form creation software used to create and output forms.
【0004】一つは、非定型の帳票を扱うもので、主に
プレゼンテーション用資料やDTP(Desk Top Publi
shing)のように、文字や図、画像などの素材を作成す
る文書の好きな位置に任意のサイズで貼り付ける編集機
能に優れている。[0004] The first type deals with atypical forms, and is mainly used for presentation materials and DTP (Desk Top Publi).
shing), it is excellent in the editing function of pasting in a desired position in a document where materials such as characters, figures, and images are created at an arbitrary size.
【0005】一つは、定型的な帳票を扱うもので、主に
販売管理帳票に代表されるように、決められたフォーマ
ットにしたがって一覧形式で出力するもので、フォーマ
ットの定義とデータベースとの連携機能に優れている。[0005] One is to handle a fixed form, which is output in a list format in accordance with a predetermined format as represented mainly by a sales management form. Excellent in function.
【0006】一方、最近ではインターネットや社内LA
N(Local Area Network)等のネットワークの普及や
情報のペーパーレス化により、これらの帳票の電子化が
進みつつあり、帳票をネットワーク上でやり取りし、複
数ユーザーがデータベースを活用し、自己の操作する端
末で帳票を作成して出力するといった利用形態が増えて
きている。On the other hand, recently, the Internet and in-house LA
With the spread of networks such as N (Local Area Network) and the paperless use of information, these forms are being digitized. Forms can be exchanged over a network, and multiple users can use a database and operate their own terminals. There is an increasing use form of creating and outputting forms.
【0007】更に、帳票作成ソフトウェアの中には、出
力される帳票を印刷する代わりに再表示し、印刷可能な
データ形式に変換する機能を有した帳票作成ソフトウェ
アも開発されている。[0007] Further, among form creation software, form creation software having a function of redisplaying an output form instead of printing it and converting the form into a printable data format has been developed.
【0008】[0008]
【発明が解決しようとする課題】しかしながら、上述の
定型的な帳票作成は、データベースから抽出するデータ
や、そのレイアウトを定義するなどの出力フォーマット
を定義した後、この定義されたフォーマットに基づいて
データベースより必要なデータを抽出後、定義された出
力形式で印刷するといった手順を踏み、基本的に出力先
は紙であった。However, in the above-described standard form creation, data to be extracted from a database and an output format such as a layout thereof are defined, and then a database is created based on the defined format. After extracting more necessary data, printing was performed in a defined output format, and the output destination was basically paper.
【0009】現実的な業務を考えると、同じデータベー
スを使用するとしても、帳票上に表示すべき資料の提出
先の部署など固有の情報を、帳票作成時に変更、追加す
る必要があるケースが少なくない。[0009] Considering a practical business, even if the same database is used, there are few cases where it is necessary to change or add unique information such as a department to which materials to be displayed on a form are submitted when the form is created. Absent.
【0010】このような場合の解決策としては、 複数の専用のフォーマットを定義しておき、全く同じ
帳票の単位で作成する。 定型の帳票には用途・提出先などで異なる情報を入れ
ないようにフォーマットを定義し、異なる情報を表示す
る部分は非定型用の帳票作成ソフトウェアを使用して作
成する。As a solution in such a case, a plurality of dedicated formats are defined and created in exactly the same form unit. The format is defined so that different information is not included in the fixed form depending on the application and destination, and the part that displays the different information is created using non-standard form creation software.
【0011】などが考えられるが、いずれの場合も複数
の処理又は帳票作成ソフトウェアを使用するので効率が
良くないといった問題があった。[0011] In any case, there is a problem that efficiency is not high because a plurality of processes or form creation software is used.
【0012】この他、帳票を出力する際に、参照元デー
タベースの各フィールドのデータである明細データを帳
票作成ソフトウェア上で変更することは不可能であるた
め、明細データを帳票作成ソフトウェア上で変更するた
めには、参照元データベースに明細データを変更する目
的のためのフィールドを新たに設けたり、又は専用の帳
票作成ソフトウェアを開発しなければならない、といっ
た必要が生じていた。In addition, when outputting a form, it is impossible to change the detail data, which is the data of each field of the reference source database, on the form creation software. Therefore, the detail data is changed on the form creation software. In order to do so, it has been necessary to provide a new field for the purpose of changing the detailed data in the reference source database, or to develop dedicated form creation software.
【0013】また、帳票の出力を紙上でなく電子文書に
して配布する場合は、以下の方法が考えられる。帳票
作成環境(参照元のデータベースと帳票作成ソフトウェ
アで作成した帳票のフォーマット)をそのままデータと
して交換する。帳票の出力結果を交換可能な形式に変
換する。When the form output is distributed as an electronic document instead of on paper, the following method is conceivable. The form creation environment (the format of the form created by the reference source database and the form creation software) is directly exchanged as data. Convert the output result of the form to an interchangeable format.
【0014】しかしながら、の方法では、一般にデー
タベースは容量が大きいので、データとして交換するこ
とは現実的でない。また、の方法では、1帳票に含ま
れるデータの容量自体はそれ程大きくならないが、その
データを編集するための情報が含まれないので、出力時
に編集することができない、といった問題がある。However, in the above method, since the database generally has a large capacity, it is not practical to exchange it as data. Further, in the method (1), although the capacity of the data included in one form does not become so large, there is a problem that the information cannot be edited at the time of output because information for editing the data is not included.
【0015】本発明の課題は、上述の問題を解決するた
め、定型的な帳票作成において、作成した情報を電子的
に交換することが可能であり、更に利用者側で作成され
た帳票のレイアウトやデータを変更できるようにし、更
に出力帳票の明細行に任意のフィールドを追加できるよ
うにして参照元のデータベースのない明細データを追加
できるようにした帳票作成装置及び記憶媒体を提供する
ことである。An object of the present invention is to solve the above-mentioned problems, in a fixed form creation, it is possible to electronically exchange the created information, and further, a layout of the form created by the user side. The present invention provides a form creation device and a storage medium that allow the user to change data and data and further add an optional field to a description line of an output form so that detailed data without a reference source database can be added. .
【0016】[0016]
【課題を解決するための手段】請求項1記載の発明は、
所望する帳票に対応してこの帳票に必要なフィールドを
データベースから抜粋するための情報を表すビュー定義
と、この帳票上にデータを出力するための情報を表すレ
イアウト定義とを記憶する記憶手段と、データベースの
レコードに含まれる複数のフィールドからビュー定義に
基づいて必要なフィールドを抽出する抽出手段と、この
抽出手段により抽出されたフィールドにより構成される
所望する帳票に対応する帳票データベースを作成する帳
票データベース作成手段と、この帳票データベース作成
手段によって作成された帳票データベースと前記記憶手
段に記憶されたレイアウト定義とに基づいて前記帳票を
出力する出力手段と、を備えたことを特徴としている。According to the first aspect of the present invention,
Storage means for storing a view definition representing information for extracting fields necessary for this form from a database corresponding to a desired form, and a layout definition representing information for outputting data on the form; Extraction means for extracting necessary fields based on a view definition from a plurality of fields included in a record of a database, and a form database for creating a form database corresponding to a desired form constituted by the fields extracted by the extraction means It is characterized by comprising a creating means, and an output means for outputting the form based on the form database created by the form database creating means and the layout definition stored in the storage means.
【0017】この請求項1記載の発明の帳票作成装置に
よれば、所望する帳票に対応してこの帳票に必要なフィ
ールドをデータベースから抜粋するための情報を表すビ
ュー定義と、この帳票上にデータを出力するための情報
を表すレイアウト定義とを記憶手段に記憶しており、デ
ータベースのレコードに含まれる複数のフィールドから
ビュー定義に基づいて必要なフィールドを抽出し、この
抽出されたフィールドにより構成される所望する帳票に
対応する帳票データベースを作成し、この作成された帳
票データベースと前記記憶手段に記憶されたレイアウト
定義とに基づいて前記帳票を出力する。According to the form creation device of the present invention, a view definition representing information for extracting fields required for the form from a database corresponding to a desired form, and data on the form Is stored in a storage means, and necessary fields are extracted from a plurality of fields included in the record of the database based on the view definition, and are configured by the extracted fields. A form database corresponding to a desired form is created, and the form is output based on the created form database and the layout definition stored in the storage means.
【0018】したがって、フォーマットが定義されてい
る定型的な帳票であっても、このフォーマットが定義さ
れた後に、所望する帳票に対応する帳票データベースを
ビュー定義を参照することにより作成して、帳票出力の
際には、この帳票データベースとレイアウト定義とによ
り所望の帳票を出力することが可能となる。その結果、
参照元のデータベースやフォーム定義がなくても、帳票
データベース及びレイアウト定義といった必要最小限の
データを基に帳票を作成して出力することが可能となる
ので、帳票の電子的なデータ交換を効率的に行うことが
できる。Therefore, even for a standard form having a defined format, a form database corresponding to a desired form is created by referring to the view definition after this format is defined, and the form output is performed. In this case, a desired form can be output based on the form database and the layout definition. as a result,
Even without a reference database or form definition, it is possible to create and output a form based on the minimum required data such as a form database and layout definition, so efficient electronic data exchange of forms is possible. Can be done.
【0019】[0019]
【発明の実施の形態】[第1の実施の形態]以下、図1〜
図9を参照して本発明に係る帳票作成装置の第1の実施
の形態を詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS [First Embodiment] FIGS.
The first embodiment of the form creation device according to the present invention will be described in detail with reference to FIG.
【0020】まず構成を説明する。First, the configuration will be described.
【0021】図1は、本第1の実施の形態における帳票
作成装置1の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of a form creation device 1 according to the first embodiment.
【0022】図1に示すように、帳票作成装置1は、C
PU(Central Processing Unit)2、入力装置3、
表示装置4、RAM(Random Access Memory)5、記
憶装置6、記憶媒体7、印刷装置8により構成されてお
り、記憶媒体7を除く各部はバスに接続されている。As shown in FIG. 1, the form creation device 1
PU (Central Processing Unit) 2, input device 3,
It comprises a display device 4, a RAM (Random Access Memory) 5, a storage device 6, a storage medium 7, and a printing device 8. Each part except the storage medium 7 is connected to a bus.
【0023】CPU2は、入力装置3を介して入力され
る指示に基づいて、記憶媒体7から所定のプログラムを
読み出してRAM5に一時格納し、当該プログラムに基
づく各種処理を実行して帳票作成装置1の各部を集中制
御する。すなわち、CPU2は、前記読み出した所定プ
ログラムに基づいて各種処理を実行し、その処理結果を
RAM5に格納するともに、表示装置4に表示させる。
また、入力装置3を介して入力される指示に基づいて、
前記処理結果を記憶装置6を介して記憶媒体7に保存さ
せ、印刷装置8から帳票を出力する。The CPU 2 reads out a predetermined program from the storage medium 7 based on an instruction input through the input device 3 and temporarily stores it in the RAM 5, executes various processes based on the program, and executes the various processes based on the program. Centralized control of each part. That is, the CPU 2 executes various processes based on the read predetermined program, stores the processing results in the RAM 5, and causes the display device 4 to display the results.
Also, based on an instruction input via the input device 3,
The processing result is stored in the storage medium 7 via the storage device 6, and a form is output from the printing device 8.
【0024】図2は、帳票作成装置1で作成される帳票
201の例を示す図であり、帳票201は、データベー
スから抽出したデータに依存する部分と依存しない部分
に分けられており、依存する部分は抽出したデータベー
スのレコードに対応しており、一般に明細行202と呼
ばれる。明細行202にはデータベースの各レコードの
フィールドの明細部から抽出したデータ203の他に明
細行202のデータの見出し等の明細行固定データ20
4がある。またデータベースに依存しない部分には、帳
票毎の固定データ205や、ページ番号、印刷日付等の
印刷物に依存した特殊データ206がある。FIG. 2 is a diagram showing an example of a form 201 created by the form creation apparatus 1. The form 201 is divided into a part dependent on data extracted from the database and a part not dependent on the data, and depends on it. The part corresponds to the extracted record of the database and is generally called a detail line 202. In the detail line 202, in addition to the data 203 extracted from the detail part of the field of each record of the database, the detail line fixed data 20 such as a heading of the data of the detail line 202 is stored.
There are four. In addition, the part which does not depend on the database includes fixed data 205 for each form and special data 206 depending on a printed material such as a page number and a print date.
【0025】CPU2は、帳票作成及びその出力に関す
る処理として、後述する帳票データベース作成処理(図
6参照)を実行して、帳票201毎に定義されているフ
ォーム定義300に定義されたビュー定義310(図3
参照)、レイアウト定義320(図4参照)に基づいて
参照元となるデータベース100から必要なフィールド
を抽出し、更に追加フィールドを追加して帳票データベ
ース200を作成してRAM5内の帳票データメモリ5
bに格納し、更に作成された帳票データベース200の
各フィールドの明細データ203をレイアウト定義32
0に定義された参照元となるデータベース100から抽
出してRAM5内の帳票データメモリ5bに格納し、後
述する帳票印刷処理(図7参照)を実行して帳票の描画
データを生成して、印刷装置8に出力して帳票201を
印刷させる。The CPU 2 executes a form database creation process (see FIG. 6), which will be described later, as a process relating to form creation and output thereof, and executes a view definition 310 (defined in the form definition 300 defined for each form 201). FIG.
Based on the layout definition 320 (see FIG. 4), necessary fields are extracted from the database 100 as a reference source, and additional fields are added to create a form database 200, and the form data memory 5 in the RAM 5 is created.
b, and further describes the detailed data 203 of each field of the created form database 200 in the layout definition 32.
The data is extracted from the database 100 serving as a reference source defined as 0, stored in the form data memory 5b in the RAM 5, and the form print processing (see FIG. 7) to be described later is executed to generate drawing data of the form. The form 201 is output to the device 8 and printed.
【0026】ここで帳票データベース200とは、各帳
票に出力するための情報をレコード単位で管理するデー
タベースであり、参照元データベース100で管理され
るフィールドのうち必要なフィールドと追加フィールド
とを併せ持つデータベースである。Here, the form database 200 is a database for managing information to be output to each form on a record-by-record basis, and has a necessary field and an additional field among the fields managed by the reference source database 100. It is.
【0027】後述する帳票データベース作成処理(図6
参照)において、CPU2は、フォーム定義300に含
まれるビュー定義310及びレイアウト定義320を読
み込み、レイアウト定義320を参照して、このレイア
ウト定義320に定義されている帳票の各印刷要素の印
刷データ属性323を確認し、その印刷データが強制入
力項目である場合は入力用ウィンドウを表示装置4に表
示させ、この入力用ウィンドウに対して入力されたデー
タをレイアウト定義に反映させ、また印刷要素の印刷デ
ータ種別322が帳票データベースフィールドである場
合は、まずビュー定義310に該当するフィールドがあ
るか否かを判別し、ビュー定義310には定義されてい
ない項目である場合は追加フィールドと認識し、この追
加フィールドとビュー定義310に予め定義されている
フィールドとで新たな帳票データベース200のフィー
ルドを作成する。また、この帳票データベース200の
フィールドの各明細データは、レイアウト定義320の
印刷データ種別322に定義されるデータベースから抽
出条件に合致する明細データを読み出して、この明細デ
ータを帳票データベース200の該当するフィールドに
格納し、新規追加したフィールドである場合は、未定義
としておく。A form database creation process described later (FIG. 6)
2), the CPU 2 reads the view definition 310 and the layout definition 320 included in the form definition 300, refers to the layout definition 320, and prints the print data attribute 323 of each print element of the form defined in the layout definition 320. Is checked, and if the print data is a forced input item, an input window is displayed on the display device 4. The data input to the input window is reflected in the layout definition. If the type 322 is a form database field, it is first determined whether or not there is a field corresponding to the view definition 310. If the type is not defined in the view definition 310, it is recognized as an additional field. New fields and fields predefined in view definition 310 To create such a field of the form database 200. As for the detailed data of the fields of the form database 200, the detailed data that matches the extraction condition is read from the database defined by the print data type 322 of the layout definition 320, and the detailed data is stored in the corresponding field of the form database 200. And if it is a newly added field, leave it undefined.
【0028】また、後述する帳票印刷処理(図7参照)
において、CPU2は、レイアウト定義320を読み込
んで、各印刷要素の印刷データ属性323を確認し、入
力必須項目の有無を確認し、入力必須項目がある場合で
あって、印刷データ324が未定義である場合は、その
旨を表示装置4に表示し、未定義の印刷データ324が
ない場合は、レイアウト定義320を読み込んで、ペー
ジ毎の固定データ205である印刷要素をレイアウト定
義320で指定された位置に指定された形式で描画し、
さらに明細毎に帳票作成処理において作成された帳票デ
ータベース200から該当するレコードの印刷データ3
24を読み出し、印刷位置を計算して、その印刷データ
324を計算された印刷位置に描画して、その後1ペー
ジ分の描画データを印刷する。A form printing process described later (see FIG. 7)
In step 2, the CPU 2 reads the layout definition 320, checks the print data attribute 323 of each print element, checks whether or not there is a required input item, and indicates that there is a required input item, and the print data 324 is undefined. If there is, print information is displayed on the display device 4. If there is no undefined print data 324, the layout definition 320 is read, and the print element that is the fixed data 205 for each page is designated by the layout definition 320. Draw in the format specified at the position,
Further, the print data 3 of the corresponding record from the form database 200 created in the form creation processing for each item
24, the print position is calculated, the print data 324 is drawn at the calculated print position, and then the drawing data for one page is printed.
【0029】入力装置3は、文字入力キー、数字入力キ
ー、上下左右移動キー、及び各種機能キー等によって構
成されるキーボードを備え、押下されたキーの押下信号
をCPU2に出力する。The input device 3 includes a keyboard composed of character input keys, numeric input keys, up / down / left / right keys, various function keys, and the like, and outputs a pressing signal of the pressed key to the CPU 2.
【0030】表示装置4は、CRT(Cathode Ray Tu
be)等により構成され、CPU2から入力される表示デ
ータに基づく信号を生成して各種表示を行う。The display device 4 is a CRT (Cathode Ray Tu).
be) and the like, and generates various signals based on the display data input from the CPU 2 to perform various displays.
【0031】RAM5は、指定されたアプリケーション
プログラム、入力指示、入力データ及び処理結果等を一
時格納するワークメモリ5aと、帳票データ作成に関す
る帳票データメモリ5bとを有する。The RAM 5 has a work memory 5a for temporarily storing designated application programs, input instructions, input data, processing results, and the like, and a form data memory 5b for creating form data.
【0032】以下、図3、図4を参照してRAM5の帳
票データメモリ5bに格納される帳票データについて詳
細に説明する。Hereinafter, the form data stored in the form data memory 5b of the RAM 5 will be described in detail with reference to FIGS.
【0033】帳票データメモリ5bに格納される帳票デ
ータは、帳票を作成するのに必要な情報としてフォーム
定義300が定義されている。このフォーム定義300
は、帳票の種類毎に複数用意されており、各フォーム定
義300は更にビュー定義310(図3参照)とレイア
ウト定義320(図4参照)とを有している。In the form data stored in the form data memory 5b, a form definition 300 is defined as information necessary for creating a form. This form definition 300
Are prepared for each type of form, and each form definition 300 further includes a view definition 310 (see FIG. 3) and a layout definition 320 (see FIG. 4).
【0034】図3は、ビュー定義310の定義内容を示
す図である。FIG. 3 is a diagram showing the definition contents of the view definition 310.
【0035】ビュー定義310は、リンクされたフィー
ルドに関してどのデータベースのどのテーブルを使用し
てフィールドの明細データを抽出するかといったデータ
参照の仕方を定義したものであり、CPU2は、このビ
ュー定義310に基づいて、定義された参照元データベ
ース100から必要なフィールドを抽出して単純なレコ
ード形式に変換し、帳票データベース200の一部とす
る。The view definition 310 defines a data reference method such as which database of which database is used to extract detailed data of a field with respect to a linked field. Based on this, necessary fields are extracted from the defined reference source database 100, converted into a simple record format, and used as a part of the form database 200.
【0036】図4はレイアウト定義320の定義内容を
示す図である。FIG. 4 is a diagram showing the definition contents of the layout definition 320.
【0037】レイアウト定義320は、印刷要素毎の印
刷データ324の出力形式や出力位置、帳票印刷時に必
ず明細データが入力されていなければならないものであ
るか等といった情報を示す印刷データ属性等を定義した
ものであり、具体的には、各印刷要素別に「印刷要素種
別」321、「印刷データ種別」322、「印刷データ
属性」323、「印刷データ」324、「印刷位置情
報」325、「印刷領域情報」326、「印刷形式情
報」327等の印刷要素のレイアウトの編集、出力に必
要なデータが設定されている。The layout definition 320 defines print data attributes and the like indicating information such as the output format and output position of the print data 324 for each print element and whether detailed data must be input when printing a form. Specifically, “print element type” 321, “print data type” 322, “print data attribute” 323, “print data” 324, “print position information” 325, “print Data necessary for editing and outputting the layout of print elements such as “area information” 326 and “print format information” 327 are set.
【0038】印刷要素種別321はその印刷データ32
4が文字列であるか、数値であるか、イメージであるか
等のデータ型を示す情報を指定するものである。The print element type 321 is the print data 32
4 designates information indicating a data type such as a character string, a numerical value, or an image.
【0039】印刷データ種別322は、印刷データ32
4が帳票のフォームの固定データとして格納されている
のか、帳票データベース200のフィールドの見出し、
又は明細データとして格納されているのか等の印刷デー
タ324の参照元を示す。この印刷データ種別322が
帳票データベースフィールドとされている場合は帳票デ
ータベース200からデータを抽出するが、ビュー定義
310に該当するフィールドがない場合は追加フィール
ドとされ、CPU2の実行する帳票データベース作成処
理(図6参照)において作成される帳票データベース2
00に追加フィールドが反映される。The print data type 322 is the print data 32
4 is stored as fixed data of the form of the form, the heading of the field of the form database 200,
Or a reference source of the print data 324 such as whether the print data 324 is stored as detailed data. If the print data type 322 is a form database field, data is extracted from the form database 200, but if there is no corresponding field in the view definition 310, the data is extracted as an additional field. Form database 2 created in FIG. 6)
00 reflects the additional field.
【0040】印刷データ属性323は、印刷データの属
性として、「強制入力項目」、「入力必須項目」、「操
作禁止項目」等を示す情報である。即ち、「強制入力項
目」は印刷データ324、印刷形式、印刷位置等が予め
定義されている印刷要素ではあるが、データ抽出時にユ
ーザーに問い合わせることにより予め定義されている印
刷データ324等を変更することが可能であることを示
す指示であり、「入力必須項目」は帳票データベース2
00に必ずデータが入力されていないと印刷、出力でき
ないことを示す指示であり、「操作禁止項目」は帳票デ
ータベース200作成後には訂正できないことを示す指
示である。The print data attribute 323 is information indicating print data attributes such as “forced input item”, “input required item”, “operation prohibited item”, and the like. In other words, the “forced input item” is a print element whose print data 324, print format, print position, and the like are predefined, but changes the predefined print data 324 and the like by inquiring the user at the time of data extraction. "Input required item" is the form database 2
00 is an instruction indicating that printing and output cannot be performed unless data is always input, and the “operation prohibited item” is an instruction indicating that correction cannot be performed after the form database 200 is created.
【0041】CPU2は、帳票データベース200作成
時にこの印刷データ属性323を確認し、印刷データ属
性323が強制入力項目の場合は、データ入力をするた
めの入力用ウィンドウを表示し、レイアウト定義の印刷
データを入力されたデータに更新して記憶する。したが
って、例えば「○×△向け新商品案内」とある印刷要素
の印刷データ属性323が強制入力項目である場合に
は、帳票データベース作成時に「△△△向け新商品案
内」と入力されると、レイアウト定義はこの入力された
データに変更され、変更後のデータで帳票が出力され
る。The CPU 2 checks the print data attribute 323 when the form database 200 is created. If the print data attribute 323 is a forced input item, the CPU 2 displays an input window for data input, and prints the layout definition print data. Is updated to the input data and stored. Therefore, for example, if the print data attribute 323 of the print element “New Product Information for XX” is a forced input item, and “New Product Information for △△△” is input when creating the form database, The layout definition is changed to the input data, and a form is output with the changed data.
【0042】印刷データ324は、印刷するデータの実
際の文字データ、数値データ、画像データ等を示す情報
であり、この印刷データ324は、印刷位置情報325
により指定される位置に、印刷領域情報326により指
定される領域内に印刷される。The print data 324 is information indicating actual character data, numerical data, image data, and the like of the data to be printed.
Is printed in the area specified by the print area information 326 at the position specified by.
【0043】印刷位置情報325は、印刷領域情報32
6により指定される領域内における印刷データ324の
位置を示す情報であり、例えば「絶対値」、「相対値」
等の位置が指定される。The print position information 325 is the print area information 32
6 is information indicating the position of the print data 324 in the area specified by the number 6, for example, “absolute value”, “relative value”
Etc. are specified.
【0044】印刷領域情報326は、印刷データ324
を印刷する領域を示す情報であり、帳票上のその印刷デ
ータ324が出力される領域を示す情報である。The print area information 326 includes the print data 324
Is information indicating an area where the print data 324 is output on the form.
【0045】印刷形式情報327は、印刷データ324
の書式等を示す情報であり、例えば、印刷要素種別32
1が文字列であれば印刷領域内に右づめで太字で印刷す
る、数値であれば三桁毎にカンマを入れて右詰で印刷す
るなどの書式に関する情報が格納されている。The print format information 327 includes the print data 324
Indicating the format or the like of the print element type 32, for example.
If the character string 1 is a character string, information on the format is stored in the print area, such as printing in a bold character rightward, and if it is a numerical value, a comma is inserted every three digits and printing is performed right-justified.
【0046】本第1の実施の形態における帳票作成装置
1では、レイアウト定義320に定義されているデータ
が、CPU2により読み出され、このレイアウト定義3
20の各印刷要素の印刷データ属性323や印刷データ
種別322が確認されて、帳票データベース200が作
成され、更に帳票を印刷する際に、帳票データベース2
00とレイアウト定義320とから印刷する帳票の描画
データが生成され、印刷される。In the form creation device 1 according to the first embodiment, the data defined in the layout definition 320 is read out by the CPU 2 and the layout definition 3 is read.
The print data attribute 323 and the print data type 322 of each print element 20 are checked, and the form database 200 is created. When the form is further printed, the form database 2
The drawing data of the form to be printed is generated from the 00 and the layout definition 320 and printed.
【0047】印刷装置8は、帳票作成装置1に対応する
各種アプリケーションプログラムによって作成されたデ
ータ等を印刷する。The printing device 8 prints data and the like created by various application programs corresponding to the form creation device 1.
【0048】記憶装置6は、プログラムやデータ等を記
憶する記憶媒体7を有しており、この記憶媒体7は磁気
的、光学的記憶媒体、若しくは半導体メモリで構成され
ている。この記憶媒体7は記憶装置6に固定的に設けた
もの、若しくは着脱自在に装着するものであり、この記
憶媒体7には当該帳票作成装置1に対応する各種処理プ
ログラム及び各処理プログラムで処理されたデータ等を
記憶する。The storage device 6 has a storage medium 7 for storing programs, data, and the like, and the storage medium 7 is constituted by a magnetic or optical storage medium or a semiconductor memory. The storage medium 7 is fixedly provided in the storage device 6 or is detachably mounted. The storage medium 7 is processed by various processing programs and processing programs corresponding to the form creation device 1. The stored data is stored.
【0049】また、この記憶媒体7に記憶するプログラ
ム、データ等は、通信回線等を介して接続された他の機
器から受信して記憶する構成にしてもよく、更に、通信
回線等を介して接続された他の機器側に前記記憶媒体7
を備えた帳票作成装置1を設け、この記憶媒体7に記憶
されているプログラム、データ等を通信回線を介して使
用する構成にしてもよい。The program, data, and the like stored in the storage medium 7 may be configured to be received and stored from another device connected via a communication line or the like. The storage medium 7 is stored in another connected device.
May be provided, and a program, data, and the like stored in the storage medium 7 may be used via a communication line.
【0050】次に動作を説明する。Next, the operation will be described.
【0051】図5は帳票作成装置1が実行する帳票作成
処理のデータの流れを示す図である。まず図5を参照し
て、帳票作成の全体の流れを説明する。FIG. 5 is a diagram showing a data flow of a form creation process executed by the form creation device 1. First, an overall flow of form creation will be described with reference to FIG.
【0052】帳票を作成する際、入力装置3から作成す
る帳票201が選択されると、帳票データベース作成処
理(図6参照)を実行して、CPU2はその帳票201
に対応するフォーム定義300を記憶装置6から読み出
し、更にフォーム定義300に含まれるビュー定義31
0に基づいて参照元のデータベースを決定し、印刷に必
要なフィールドを抽出して単純なレコード形式に変換
後、帳票作成装置1の帳票データベース200に格納す
る。When a form 201 to be created is selected from the input device 3 when the form is created, a form database creation process (see FIG. 6) is executed, and the CPU 2
Is read from the storage device 6, and the view definition 31 included in the form definition 300 is read out.
Based on 0, a reference source database is determined, fields necessary for printing are extracted, converted into a simple record format, and stored in the form database 200 of the form creating apparatus 1.
【0053】その後、CPU2は帳票印刷処理(図7参
照)を実行して帳票を印刷する。即ちフォーム定義30
0に含まれるレイアウト定義320を参照し、このレイ
アウト定義320の有する情報と作成された帳票データ
ベース200とに基づいて帳票を出力する。Thereafter, the CPU 2 executes a form printing process (see FIG. 7) to print the form. That is, form definition 30
With reference to the layout definition 320 included in the form definition 0, a form is output based on the information of the layout definition 320 and the created form database 200.
【0054】以下、図6、図7を参照してCPU2によ
り実行される帳票データベース作成処理の流れ、及び帳
票印刷処理の流れを詳述する。The flow of a form database creation process and the form printing process executed by the CPU 2 will be described below in detail with reference to FIGS.
【0055】図6は、帳票データベース作成処理の流れ
を示す図である。FIG. 6 is a diagram showing the flow of the form database creation process.
【0056】作成する帳票の種類が入力装置3から指定
されると、CPU2は、指定された帳票の種類に対応す
るフォーム定義300をRAM5内の帳票データメモリ
5bから読み込み、そのフォーム定義300に含まれる
ビュー定義310及びレイアウト定義320を取得する
(ステップS101)。そしてCPU2は、取得したレ
イアウト定義320を参照して、レイアウト定義320
に定義されている印刷要素の数を数える(ステップS1
02)。そして、まず1番目の印刷要素についてその印
刷要素の印刷データ属性323が「強制入力項目」であ
るか否かを判定する(ステップS103)。「強制入力
項目」である場合は(ステップS103;Yes)、強
制入力項目であることをRAM5のワークメモリ5aに
記憶する(ステップS104)。When the type of the form to be created is specified from the input device 3, the CPU 2 reads the form definition 300 corresponding to the specified type of the form from the form data memory 5b in the RAM 5, and includes the form definition 300 in the form definition 300. The view definition 310 and the layout definition 320 to be acquired are acquired (step S101). Then, the CPU 2 refers to the acquired layout definition 320 and
Is counted (step S1).
02). Then, first, it is determined whether or not the print data attribute 323 of the first print element is a "forced input item" (step S103). If the item is a "forced input item" (step S103; Yes), the fact that the item is a forced input item is stored in the work memory 5a of the RAM 5 (step S104).
【0057】印刷要素の印刷データ属性323が「強制
入力項目」でない場合は(ステップS103;No)、
ステップS104を経ずに次のステップへ移行する。If the print data attribute 323 of the print element is not "forced input item" (step S103; No),
The process proceeds to the next step without going through step S104.
【0058】次にCPU2は、レイアウト定義320に
定義された印刷データ種別322を確認し、印刷データ
種別322が帳票データベースフィールドであるか否か
を判定する(ステップS105)。そして、帳票データ
ベースフィールドである場合(ステップS105;Ye
s)はビュー定義310を参照してビュー定義310に
該当のフィールドがあるか否かを判定する(ステップS
106)。そしてビュー定義310に該当のフィールド
がある場合は(ステップS106;Yes)、そのまま
次の処理へ移行し、ビュー定義310に該当のフィール
ドがない場合は(ステップS106;No)、この印刷
要素についてレイアウト定義320の印刷要素種別32
1に対応するデータ型とフィールド名称とを定義して、
当該印刷要素を追加フィールドとしてRAM5のワーク
メモリ5aに記憶する(ステップS107)。Next, the CPU 2 checks the print data type 322 defined in the layout definition 320 and determines whether the print data type 322 is a form database field (step S105). If it is a form database field (step S105; Yes)
S) refers to the view definition 310 to determine whether or not the view definition 310 has a corresponding field (step S).
106). If there is a corresponding field in the view definition 310 (step S106; Yes), the process proceeds to the next process. If there is no corresponding field in the view definition 310 (step S106; No), the layout is performed for this print element. Print element type 32 of definition 320
Define the data type and field name corresponding to 1,
The print element is stored in the work memory 5a of the RAM 5 as an additional field (step S107).
【0059】その後、全ての印刷要素について、強制入
力項目の確認と印刷データ種別322の確認とが終了し
たか否かを判定し(ステップS108)、終了しない場
合は(ステップS108;No)、ステップS103に
戻って、次の印刷要素について印刷データ属性323が
強制入力項目であるかの確認、印刷データ種別322が
帳票データベースフィールドの項目であるかのを確認を
して、必要な情報をRAM5のワークメモリ5aに記憶
する(ステップS103〜ステップS107)。以下、
すべての印刷要素についてステップS103〜ステップ
S107の処理を繰り返し実行し、各印刷要素の印刷デ
ータ属性323、印刷データ種別322を確認して必要
な情報を記憶する。Thereafter, it is determined whether the confirmation of the forced input item and the confirmation of the print data type 322 have been completed for all print elements (step S108). If not (step S108; No), the process proceeds to step S108. Returning to S103, it is checked whether the print data attribute 323 is a forced input item for the next print element, and whether the print data type 322 is an item of the form database field. It is stored in the work memory 5a (steps S103 to S107). Less than,
The processes of steps S103 to S107 are repeatedly executed for all print elements, and the print data attribute 323 and print data type 322 of each print element are checked and necessary information is stored.
【0060】その後、全ての印刷要素について確認が終
了すると(ステップS108;Yes)、次に、帳票デ
ータベース200のフィールドを作成する(ステップS
109)。即ち、ビュー定義310に定義されているフ
ィールドに、ステップS107において追加フィールド
としてRAM5のワークメモリ5aに記憶された印刷要
素(レイアウト定義320の印刷データ種別322が帳
票データベースフィールドであるが、ビュー定義310
には該当のフィールドが存在しない印刷要素)について
新たなフィールドを生成して追加することでデータのな
い帳票データベース200を作成してRAM5の帳票デ
ータメモリ5bに格納する。Thereafter, when the confirmation has been completed for all the print elements (step S108; Yes), the fields of the form database 200 are created (step S108).
109). That is, in the field defined in the view definition 310, the print element (the print data type 322 of the layout definition 320 is a form database field stored in the work memory 5a of the RAM 5 as an additional field in step S107.
A form database 200 having no data is created by generating and adding a new field for a print element having no corresponding field), and stored in the form data memory 5b of the RAM 5.
【0061】その後、CPU2は、ステップS104に
おいて強制入力項目としてRAM5のワークメモリ5a
に記憶された印刷要素を取得して、その強制入力項目で
ある印刷要素数を数え(ステップS110)、各印刷要
素毎に印刷データ324の入力用ウィンドウを表示し、
更にユーザーにデータ入力を促すメッセージを表示装置
4に表示させる(ステップS111)。入力装置3から
強制入力項目の印刷データ324が入力されると(ステ
ップS112)、レイアウト定義の印刷データ324を
この入力されたデータに更新して記憶する。(ステップ
S113)。そして、強制入力項目として記憶された全
ての印刷要素について印刷データ324に対する入力が
終了すると(ステップS114;Yes)、次に帳票デ
ータベース200のデータ作成を行う。Thereafter, in step S104, the CPU 2 sets the work memory 5a of the RAM 5 as a forced input item.
Is obtained, the number of print elements as compulsory input items is counted (step S110), and a window for inputting print data 324 is displayed for each print element.
Further, a message prompting the user to input data is displayed on the display device 4 (step S111). When the print data 324 of the forced input item is input from the input device 3 (step S112), the print data 324 of the layout definition is updated to the input data and stored. (Step S113). Then, when the input to the print data 324 is completed for all the print elements stored as the forced input items (step S114; Yes), the data of the form database 200 is created next.
【0062】即ち、帳票データベース200のデータ作
成は、まず、ビュー定義310に定義される参照元デー
タベース100のレコード数を取得し(ステップS11
5)、ビュー定義310で定義されている参照元データ
ベース100から参照できるすべてのデータをレコード
単位で取り出し(ステップS116)、フォーム定義3
00に定義されている抽出条件(参照元データベース1
00のどのテーブルからデータを抽出するか、そのテー
ブルのどのフィールドからデータを抽出するか、テーブ
ル間のデータを抽出する関係等)で指定する条件に合致
するデータであるか否かを判定し(ステップS11
7)、抽出条件の範囲内である場合は(ステップS11
7;Yes)、そのデータを抽出して帳票データベース
200の対応する各フィールドの明細データとして格納
する。この時ステップS109において帳票データベー
ス200に追加した追加フィールドの明細データは未定
義とする(ステップS118)。That is, to create data in the form database 200, first, the number of records in the reference source database 100 defined in the view definition 310 is obtained (step S11).
5), all data that can be referenced from the reference source database 100 defined in the view definition 310 is retrieved in units of records (step S116), and the form definition 3
Extraction condition (reference source database 1)
00, which table to extract data from, which field of the table to extract data from, the relation of extracting data between tables, and so on). Step S11
7) If it is within the range of the extraction condition (step S11)
7; Yes), the data is extracted and stored as detailed data of each corresponding field of the form database 200. At this time, the detailed data of the additional field added to the form database 200 in step S109 is undefined (step S118).
【0063】このように、CPU2は参照元データベー
ス100の対象となるレコードを、1レコードずつ取り
出し、抽出条件に基づいてデータを抽出し、帳票データ
ベース200の各フィールドへデータの格納を行い、す
べてのレコードについて以上の処理を終了すると(ステ
ップS119;Yes)、本帳票データベース200の
作成処理を終了する。As described above, the CPU 2 retrieves target records of the reference source database 100 one record at a time, extracts data based on extraction conditions, stores data in each field of the form database 200, and stores all data. When the above processing is completed for the record (Step S119; Yes), the creation processing of the form database 200 is completed.
【0064】この帳票データベース作成処理が終了する
と、ビュー定義に定義されたフィールドに追加フィール
ドが追加された帳票データベース200が作成された状
態となる。When the form database creation processing is completed, a form database 200 is created in which the additional fields are added to the fields defined in the view definition.
【0065】次に、図7を参照して帳票作成装置1の実
行する帳票印刷処理を説明する。Next, a form printing process executed by the form creating apparatus 1 will be described with reference to FIG.
【0066】帳票印刷処理は、帳票データベース作成処
理において作成された帳票データベース200から帳票
に必要な情報を抽出して出力するための処理である。The form printing process is a process for extracting and outputting information necessary for a form from the form database 200 created in the form database creating process.
【0067】まず、CPU2は作成した帳票が印刷可能
であるか否かを判定するために、レイアウト定義320
の印刷データ属性323の入力必須項目をチェックし
て、入力必須項目である印刷要素全てに印刷データ32
4が入力されているか判定する(ステップS201)。
この入力必須項目のチェックの詳細については後述する
(図8参照)。First, the CPU 2 determines the layout definition 320 to determine whether the created form is printable.
Of the print data attribute 323 of the print data attribute 323 is checked, and the print data 32
It is determined whether 4 has been input (step S201).
The details of the check of the required input items will be described later (see FIG. 8).
【0068】そして、この入力必須項目のチェック終了
後、入力必須項目の印刷データ324が未定義である場
合は(ステップS202;Yes)、その旨警告し(ス
テップS203)、印刷処理を中止する。After the check of the required input items is completed, if the print data 324 of the required input items is undefined (step S202; Yes), a warning is issued to that effect (step S203), and the printing process is stopped.
【0069】入力必須項目である印刷要素全てにデータ
が入力されている場合は(ステップS202;No)、
次にレイアウト定義320を読み込み(ステップS20
4)、印刷処理を開始する。CPU2は印刷するページ
数を取得して(ステップS205)、その各ページにつ
いてページ単位で印刷処理を実行する。まず各ページの
印刷時、最初にレイアウト定義320に定義された印刷
データ種別322がページに固有の情報である固定デー
タである場合は、この固定データである印刷データ32
4を定義されている印刷位置に対して描画するための描
画データを生成する(ステップS206)。If data has been input to all print elements that are required input items (step S202; No),
Next, the layout definition 320 is read (step S20).
4), start the printing process. The CPU 2 obtains the number of pages to be printed (step S205), and executes a printing process for each page in page units. First, when printing each page, if the print data type 322 defined in the layout definition 320 is fixed data that is information unique to the page, the print data 32 that is the fixed data is used.
4 is generated at the defined print position (step S206).
【0070】次に帳票データベース200から対応する
明細データを明細行毎に処理する。明細行単位の処理で
は、そのページに含まれる明細行の数を取得して(ステ
ップS207)、まず帳票データベース200から対応
するレコードを読み込み(ステップS208)、読み込
まれたレコードが以前に読み込まれたレコードであるか
否かを確認し(ステップS209)、まだ読み込まれて
いないレコードである場合(ステップS209;No)
は、ページ内の処理レコード数に応じた明細行の印刷位
置を計算し、固定位置として印刷要素を描画する描画デ
ータを生成してRAM5のワークメモリ5aに格納する
(ステップS210)。以前に読み込まれたレコードで
ある場合(ステップS209;Yes)は、ステップS
210を経ずに、全ての明細行についての印刷要素の描
画データの生成が終了したか否かを判定して(ステップ
S211)、まだ終了していない場合は(ステップS2
11;No)、ステップS208に戻り、次のレコード
を読み込む。このようにページに含まれる明細行につい
て対応するレコードを帳票データベース200から読み
込み、描画データを生成して、その後ページに含まれる
全ての印刷要素について描画データの生成が終了すると
(ステップS211;Yes)、1ページ分の描画デー
タをRAM5のワークメモリ5aから取得して、印刷装
置8に出力し、印刷させる(ステップS212)。そし
て全てのページについての印刷が終了すると(ステップ
S213;YES)、印刷処理を終了する。Next, the corresponding detailed data from the form database 200 is processed for each detailed line. In the process for each detail line, the number of detail lines included in the page is obtained (step S207), and the corresponding record is first read from the form database 200 (step S208), and the read record is read before. It is confirmed whether or not the record is a record (step S209). If the record is not yet read (step S209; No)
Calculates the print position of the detail line according to the number of processed records in the page, generates drawing data for drawing a print element as a fixed position, and stores it in the work memory 5a of the RAM 5 (step S210). If the record is a previously read record (step S209; Yes), the
It is determined whether the generation of the drawing data of the print elements for all the detail lines has been completed without going through step 210 (step S211), and if not completed (step S2).
11; No), the process returns to step S208, and the next record is read. As described above, the record corresponding to the detail line included in the page is read from the form database 200, and the drawing data is generated. Then, when the generation of the drawing data is completed for all the print elements included in the page (step S211; Yes). The drawing data for one page is obtained from the work memory 5a of the RAM 5, output to the printing device 8, and printed (step S212). When printing for all pages is completed (step S213; YES), the printing process is completed.
【0071】図8は、図7に示す帳票印刷処理のステッ
プS201において実行される入力必須項目のチェック
処理の詳細な流れを示すフローチャートである。FIG. 8 is a flowchart showing a detailed flow of the check process for the required input items executed in step S201 of the form printing process shown in FIG.
【0072】まず、CPU2は、チェックする対象とな
るデータを調べるためにレイアウト定義320を読み込
む(ステップS301)。チェックする内容は全ページ
固有の情報である固定データと帳票データベース200
のレコード毎に異なる情報である帳票データベースを参
照するデータ(「印刷データ種別」322が「帳票デー
タベースフィールド」であるもの)とから構成されるの
で、最初にページ固有の情報である固定データをチェッ
クする。チェックは該当する印刷要素毎に行われる。First, the CPU 2 reads the layout definition 320 to check the data to be checked (step S301). The contents to be checked are fixed data, which is information unique to all pages, and the form database 200.
, Which is information that is different for each record, and refers to a form database (the “print data type” 322 is a “form database field”). First, check the fixed data that is page-specific information. I do. The check is performed for each corresponding print element.
【0073】CPU2は、レイアウト定義320を参照
して、印刷データ種別322が固定データとなる印刷要
素を数え、固定データの印刷要素数としてRAM5のワ
ークメモリ5aに格納する(ステップS302)。The CPU 2 refers to the layout definition 320, counts the print elements whose print data type 322 is fixed data, and stores it in the work memory 5a of the RAM 5 as the number of fixed data print elements (step S302).
【0074】その後CPU2は、レイアウト定義320
を参照して対象となっている印刷要素の印刷データ属性
323を調べ、「入力必須項目」の指定があれば(ステ
ップS303;Yes)、更に印刷データ324は未定
義か否かを判定する(ステップS304)。印刷定義が
未定義であれば(ステップS304;Yes)、未定義
データであることをRAM5のワークメモリ5aに記憶
し(ステップS305)、処理を終了し帳票印刷処理に
戻る。Thereafter, the CPU 2 sets the layout definition 320
, The print data attribute 323 of the target print element is checked, and if "input required item" is specified (Step S303; Yes), it is further determined whether the print data 324 is undefined (Step S303). Step S304). If the print definition is undefined (Step S304; Yes), the fact that the data is undefined is stored in the work memory 5a of the RAM 5 (Step S305), and the processing is ended and the processing returns to the form printing processing.
【0075】ステップS304の判定において印刷デー
タ324が未定義でなければ(ステップS304;N
o)、次に固定データである印刷要素全てについて入力
必須項目の有無の判定が終了したか否かを判定する(ス
テップS306)。まだ、全ての固定データである印刷
要素について、入力必須項目の有無が判定されていない
場合は(ステップS306;No)、次の印刷要素につ
いてステップS303〜ステップS305に示す処理と
同様の処理を実行し、全ての印刷要素について「入力必
須項目」のチェックを行う。If it is determined in step S304 that the print data 324 is not defined (step S304; N
o) Next, it is determined whether or not the determination of the presence or absence of the required input item has been completed for all the print elements that are the fixed data (step S306). If the presence or absence of the mandatory input item has not been determined for all the print elements that are fixed data (step S306; No), the same processing as the processing shown in steps S303 to S305 is executed for the next print element. Then, the “input required items” are checked for all print elements.
【0076】全ての固定データの印刷要素について入力
必須項目のチェックが終了すると(ステップS306;
Yes)、次に帳票データベース200のフィールドを
参照して印刷データ324を決定する印刷要素について
チェックを行う。When the check of required items for all fixed data print elements is completed (step S306).
Yes) Next, a check is made for a print element for determining the print data 324 with reference to a field of the form database 200.
【0077】チェックは対象となる帳票データベース2
00のフィールドに対し、レコード毎にデータを参照す
る手順で行う。Check is made on the target form database 2
This is performed in the procedure of referring to data for each record in the field of 00.
【0078】CPU2は、帳票データベース200のフ
ィールドを参照して印刷データ324を決定する印刷要
素の数を取得する。即ち、印刷データ種別322が「帳
票データベースフィールド」である印刷要素の印刷要素
数を認識する(ステップS307)。また、帳票データ
ベース200のレコード数を取得する(ステップS30
8)。The CPU 2 obtains the number of print elements for determining the print data 324 by referring to the fields of the form database 200. That is, the number of print elements of the print elements whose print data type 322 is “form database field” is recognized (step S307). Further, the number of records in the form database 200 is obtained (step S30).
8).
【0079】そしてレイアウト定義320を参照して対
象となっている印刷要素の印刷データ属性323を調
べ、「入力必須項目」の指定があれば(ステップS30
9;Yes)、更に印刷データ324は未定義か否かを
判定する(ステップS310)。印刷データが未定義で
あれば(ステップS310;Yes)、未定義データが
あるとして、RAM5のワークメモリ5aに記憶し(ス
テップS305)、処理を終了して、帳票印刷処理に戻
る。The print data attribute 323 of the target print element is checked by referring to the layout definition 320, and if "input required item" is specified (step S30).
9; Yes), and it is determined whether the print data 324 is undefined (step S310). If the print data is undefined (step S310; Yes), it is determined that there is undefined data, and is stored in the work memory 5a of the RAM 5 (step S305), and the process is terminated, and the process returns to the form printing process.
【0080】印刷データ属性323に「入力必須項目」
の指定がされている場合において、印刷データ324は
未定義であるか否かを各レコードについて確認し、全て
のレコードについて確認し終えると(ステップS31
1;Yes)、次の印刷要素について、ステップS30
9〜ステップS311を更に繰り返し、各レコードにつ
いて印刷データ324が未定義であるか否かを判定して
未定義である場合は未定義データがあることを記憶す
る。以下、全ての印刷要素について帳票データベース2
00の確認が終了し(ステップS312;Yes)、印
刷データ324が未定義であるものが発見できない場合
は(ステップS310;No)、未定義データ無しとし
てRAM5のワークメモリ5aに記憶して(ステップS
313)、本処理を終了し、帳票印刷処理(図7参照)
に移行する。“Required input item” is added to the print data attribute 323.
Is specified, it is checked for each record whether or not the print data 324 is undefined, and when all records have been checked (step S31).
1; Yes), for the next print element, step S30
9 to step S311 are further repeated, and it is determined whether or not the print data 324 is undefined for each record. If the print data 324 is not defined, the fact that there is undefined data is stored. Hereinafter, the form database 2 for all print elements
If the print data 324 is not found (step S310; No), the print data 324 is stored in the work memory 5a of the RAM 5 as no undefined data (step S312; Yes). S
313), this process ends, and the form printing process (see FIG. 7)
Move to
【0081】図9は帳票データベース作成処理において
作成される帳票データベース200の例、及び印刷され
る帳票201の例を示す図である。FIG. 9 is a diagram showing an example of a form database 200 created in the form database creation process and an example of a form 201 to be printed.
【0082】帳票データベース作成処理が実行される
と、CPU2は帳票201のフォーム定義300からビ
ュー定義310とレイアウト定義320とを読み出し、
レイアウト定義320を参照して各印刷要素の印刷デー
タ属性323から「強制入力項目」と定義される印刷要
素を記憶する。図9の例では、帳票201の「○×△向
け新商品案内」とある印刷要素のレイアウト定義320
を参照すると、その印刷データ属性323が「強制入力
項目」であるので、この印刷要素について「強制入力項
目」であるということを記憶する。When the form database creation processing is executed, the CPU 2 reads out the view definition 310 and the layout definition 320 from the form definition 300 of the form 201, and
With reference to the layout definition 320, a print element defined as a "forced input item" from the print data attribute 323 of each print element is stored. In the example of FIG. 9, the layout definition 320 of the print element “New product information for XX” in the form 201
, Since the print data attribute 323 is “forced input item”, the fact that this print element is a “forced input item” is stored.
【0083】更に、CPU2は各印刷要素についてその
レイアウト定義320を参照して、印刷データ種別32
2が「帳票データベースフィールド」である印刷要素を
検出して、更に印刷データ種別322が「帳票データベ
ースフィールド」であり、このフィールドがビュー定義
310にあるフィールドであるかを確認する。図9の例
では、帳票201の印刷要素のうち、「俯瞰図」と「備
考」の印刷要素の印刷データ種別322が「帳票データ
ベースフィールド」である。さらにこれら二つの印刷要
素についてビュー定義310を参照すると、「俯瞰図」
はビュー定義310のフィールドに定義されているが、
「備考」はビュー定義310に定義されていない。この
場合、「備考」に関しては追加フィールドとして、デー
タ型、フィールド名等を定義して、RAM5に記憶す
る。Further, the CPU 2 refers to the layout definition 320 for each print element and print data type 32
2 is detected, and it is confirmed whether the print data type 322 is a "form database field" and this field is a field in the view definition 310. In the example of FIG. 9, among the print elements of the form 201, the print data type 322 of the print elements “overhead view” and “remarks” is “form database field”. Further, referring to the view definition 310 for these two print elements, the “overhead view”
Is defined in the fields of the view definition 310,
“Remarks” is not defined in the view definition 310. In this case, regarding “remarks”, a data type, a field name, and the like are defined as additional fields and stored in the RAM 5.
【0084】そしてCPU2は、ビュー定義310にあ
るフィールドと、追加フィールドから帳票データベース
200を作成してRAM5の帳票データメモリ5bに格
納する。更に強制入力項目と記憶されている印刷要素に
ついて、入力されたデータをその印刷要素のデータとす
る。先程の「○×△向け新商品案内」を「△△△向け新
商品案内」とすれば、帳票印刷時には新規入力した「△
△△向け新商品案内」が印刷される。The CPU 2 creates a form database 200 from the fields in the view definition 310 and the additional fields, and stores the form database 200 in the form data memory 5b of the RAM 5. Further, regarding the print element stored as the forced input item, the input data is used as the data of the print element. If “New Product Information for ○ × △” was changed to “New Product Information for △△△”, the newly entered “△
New Product Information for △△ ”is printed.
【0085】更に作成された帳票データベース200
は、各フィールド毎に指定されている参照元データベー
ス100からデータを抽出して帳票データメモリ5bに
格納する。追加フィールドのデータは未定義として記憶
する。The form database 200 created further
Extracts data from the reference source database 100 specified for each field and stores it in the form data memory 5b. The data of the additional field is stored as undefined.
【0086】次に帳票データベース200が作成された
帳票について帳票の印刷を行う際は、CPU2は、印刷
データ属性323が「入力必須項目」である印刷要素を
チェックして、未定義のデータがある場合は、その旨警
告を表示して印刷が実行できないようにする。Next, when printing a form on the form created in the form database 200, the CPU 2 checks a print element whose print data attribute 323 is "input required item" and finds undefined data. In such a case, a warning is displayed so that printing cannot be executed.
【0087】図9の例では、印刷データ属性323が入
力必須項目である印刷要素がないので、次に印刷ページ
毎に固定データの描画データを生成し、また明細行毎に
帳票データベース200から該当する印刷データ324
を読み込んで、更に印刷位置情報325、印刷領域情報
326、印刷形式情報327等から印刷位置を計算して
1ページ分の描画データを生成して、生成された描画デ
ータをRAM5に格納するとともに印刷装置8に出力し
て、1ページの帳票201を印刷させる。更に次ページ
も同様に印刷する。In the example of FIG. 9, since there is no print element in which the print data attribute 323 is a required item to be input, next, drawing data of fixed data is generated for each print page. Print data 324
Is read, the print position is further calculated from the print position information 325, print area information 326, print format information 327, etc. to generate drawing data for one page, and the generated drawing data is stored in the RAM 5 and printed. The data is output to the device 8 and a one-page form 201 is printed. Further, the next page is similarly printed.
【0088】以上説明したように、CPU2は、帳票デ
ータベース作成処理を実行して、ビュー定義310及び
レイアウト定義320を読み込み、データベースのレコ
ードに含まれる複数のフィールドからビュー定義310
に基づいて必要なフィールドを抽出し、抽出されたフィ
ールドと追加された追加フィールドとで所望する帳票に
対応する帳票データベース200を作成し、更に帳票印
刷処理において、この生成された帳票データベース20
0とレイアウト定義320とを参照して帳票を印刷す
る。As described above, the CPU 2 executes the form database creation processing, reads the view definition 310 and the layout definition 320, and reads the view definition 310 from the plurality of fields included in the record of the database.
The required fields are extracted on the basis of the extracted fields and the extracted fields and the added additional fields are used to create a form database 200 corresponding to a desired form. Further, in the form printing process, the generated form database 20 is created.
The form is printed with reference to 0 and the layout definition 320.
【0089】したがって、帳票の出力に必要な情報を格
納する帳票データベース200を参照元となるデータベ
ースとは別個に設けて、レイアウト定義320に定義さ
れる情報をフォーマットの定義後に編集することでこの
帳票データベース200に追加フィールドを追加した
り、フォーム定義300とは異なるデータを入力するこ
とが可能となるので、定型の帳票に対しては参照元のデ
ータベースに新規フィールドを追加したり、明細データ
を変更するためのフィールドを設けることなく、帳票の
出力部署毎に自由にそのデータを変更、追加することが
可能となる。その結果、同種の帳票について、部署毎の
フォーマットを別に作る必要がなくなり作業負担を低減
させることが可能となる。また、印刷時において入力さ
れていなければならない入力必須項目がある場合は、印
刷が実行されないので、情報の漏れのない帳票を出力す
ることが可能となる。 [第2の実施の形態]次に、図10、図11を参照して本
発明に係る帳票作成装置の第2の実施の形態を詳細に説
明する。Therefore, a form database 200 for storing information necessary for outputting a form is provided separately from a database serving as a reference source, and information defined in the layout definition 320 is edited after the format is defined, whereby the form can be edited. Since it is possible to add additional fields to the database 200 or to input data different from the form definition 300, for fixed forms, add new fields to the reference source database or change the statement data It is possible to freely change and add the data for each output section of the form without providing a field for performing the operation. As a result, it is not necessary to create a separate format for each department for the same kind of form, and the work load can be reduced. In addition, when there is an input required item that must be input at the time of printing, printing is not performed, so that it is possible to output a form without any omission of information. [Second Embodiment] Next, a second embodiment of a form creation device according to the present invention will be described in detail with reference to FIGS.
【0090】本第2の実施の形態における帳票作成装置
1は、図1に示す第1の実施の形態における帳票作成装
置1と同様の構成であるので、その構成説明を省略し、
同一の構成要素に対しては同一の符号を附して、以下第
2の実施の形態における帳票作成装置1について説明す
る。The form creation apparatus 1 according to the second embodiment has the same configuration as the form creation apparatus 1 according to the first embodiment shown in FIG.
The same components are denoted by the same reference numerals, and a form creation device 1 according to the second embodiment will be described below.
【0091】この第2の実施の形態における帳票作成装
置1は、上述の第1の実施の形態において作成された帳
票の出力先が紙であったのに対して、本第2の実施の形
態においては出力の形態を電子的なデータとしている。
即ち、帳票データを送出する帳票作成装置1(以下、第
1の帳票作成装置1と呼ぶ。)において、後述する帳票
データ送出処理(図10参照)を実行して、帳票データ
を他の帳票作成装置1(以下、第2の帳票作成装置1と
呼ぶ。)でも使用できる形式に変換して出力し、更に当
該第2の帳票作成装置1において後述する帳票データ取
り込み処理(図11参照)を実行して、第1の帳票作成
装置1により実行された帳票データ送出処理において送
出されたデータを帳票として再現して出力する。The form creation apparatus 1 according to the second embodiment differs from the form creation apparatus according to the first embodiment in that the form output destination is paper. In, the form of output is electronic data.
That is, the form creation device 1 that sends out the form data (hereinafter referred to as the first form creation device 1) executes a form data sending process (see FIG. 10), which will be described later, and converts the form data into another form. The document is converted into a format that can also be used by the apparatus 1 (hereinafter, referred to as a second form creation apparatus 1) and output, and the second form creation apparatus 1 executes a form data import process (see FIG. 11) described later. Then, the data transmitted in the form data transmission processing executed by the first form creation device 1 is reproduced and output as a form.
【0092】この第2の実施の形態において、第1の帳
票作成装置1における帳票データ送出処理(図10参
照)において、CPU2はレイアウト定義320を参照
して入力必須項目をチェックし(図8参照)、入力必須
項目のデータが未定義である場合は、警告を表示して帳
票データの送出処理を中止し、未定義のデータがない場
合は、入力装置3により入力された出力先にレイアウト
定義320を出力し、更に作成された帳票データベース
200のフィールドのデータ型などを定義しているフィ
ールド定義情報を出力する。その後、帳票データベース
200のレコード毎にそのレコードに格納されているデ
ータをCSV形式に変換して、変換されたCSV形式の
レコードをを出力先に出力する。In the second embodiment, in the form data sending process (see FIG. 10) in the first form creation device 1, the CPU 2 checks the required input items with reference to the layout definition 320 (see FIG. 8). If the data of the required items is undefined, a warning is displayed and the sending process of the form data is stopped. If there is no undefined data, the layout definition is output to the output destination input by the input device 3. 320, and further outputs field definition information defining the data types of the fields of the created form database 200. After that, for each record in the form database 200, the data stored in the record is converted into the CSV format, and the converted record in the CSV format is output to the output destination.
【0093】また、第2の帳票作成装置1における帳票
データの取り込み処理において、CPU2は、入力され
た読み込み先に、帳票データベース200のフィールド
定義情報を読み込んで、読み込んだフィールド定義情報
に従って、帳票データベース200を作成し、RAM5
の帳票データメモリ5bに格納する。そしてCPU2
は、CSV形式のデータを帳票データベース200の形
式に変換して、変換されたデータを帳票データベース2
00に出力する。その後、CPU2はレイアウト定義3
20を読み出し、RAM5の帳票データメモリ5bに格
納する。Further, in the form data fetching process in the second form creation device 1, the CPU 2 reads the field definition information of the form database 200 into the input reading destination, and according to the read field definition information, the form database. Create 200, RAM5
In the form data memory 5b. And CPU2
Converts the data in CSV format into the format of the form database 200, and converts the converted data into the form database 2
Output to 00. After that, the CPU 2 sets the layout definition 3
20 is read out and stored in the form data memory 5b of the RAM 5.
【0094】次に動作を説明する。Next, the operation will be described.
【0095】図10は、第1の帳票作成装置1の実行す
る帳票データ送出処理の流れを示すフローチャートであ
る。FIG. 10 is a flowchart showing the flow of the form data sending process executed by the first form creation device 1.
【0096】まず、ユーザーにより送出する帳票データ
が入力装置3から入力されると、第1の実施の形態にお
いて説明した帳票印刷処理(図7参照)のステップS2
01と同様に作成した帳票がデータ出力可能であるか否
かを判定するために、入力必須項目である印刷要素にデ
ータが全て入力されているか判定する(ステップS40
1)。この入力必須項目のチェックの流れは図8に示す
フローチャートと同様の流れで処理される。First, when form data to be transmitted by the user is input from the input device 3, step S2 of the form print processing (see FIG. 7) described in the first embodiment.
01, it is determined whether all data has been input to the print element, which is an essential input item, in order to determine whether or not the form created can be output data (step S40).
1). The flow of the check of the required input items is processed in the same flow as the flowchart shown in FIG.
【0097】そして、この入力必須項目に未定義データ
がある場合は(ステップS402;Yes)、その旨警
告し(ステップS403)、帳票データ送出処理を中止
する。If there is undefined data in the required items (step S402; Yes), a warning is issued to that effect (step S403), and the form data transmission process is stopped.
【0098】入力必須項目全てにデータが入力されてい
る場合は、次にCPU2は帳票データの互換用データの
出力先を入力する旨の表示を表示装置4に表示させ、入
力装置3から帳票データの互換用データの出力先が入力
されると、入力された出力先を互換用データの出力先と
して決定する(ステップS404)。If the data has been entered in all the required items, the CPU 2 causes the display device 4 to display a message indicating that the output destination of the form data compatibility data is to be input. When the output destination of the compatible data is input, the input destination is determined as the output destination of the compatible data (step S404).
【0099】次に、入力された出力先に指定された帳票
データを出力するが、第2の帳票作成装置1において受
け取った帳票データに基づいて帳票を印刷等の処理をす
る際は、フォーム定義300にあるレイアウト定義32
0とこのレイアウト定義320に基づいて作成する帳票
データベース200に基づいて印刷等の処理をするの
で、このレイアウト定義320と帳票データベース20
0とを送出対象とする。Next, the designated form data is output to the input destination. When the form is printed or the like based on the form data received by the second form creation device 1, a form definition is required. Layout definition 32 in 300
0 and the form database 200 created based on the layout definition 320, processing such as printing is performed.
0 is the transmission target.
【0100】即ち、指定された帳票データのフォーム定
義300のレイアウト情報をフォーム定義300から抽
出したファイルに出力し(ステップS405)、次に指
定されている帳票で印刷対象となっている帳票データベ
ース200のレコード数分だけ出力処理を行うが、印刷
対象のデータは文字列以外の形式もあるので、レコード
の各フィールドのデータ格納形式を帳票データベース2
00のフィールド定義情報として出力する(ステップS
406)。That is, the layout information of the form definition 300 of the designated form data is output to a file extracted from the form definition 300 (step S405), and the form database 200 to be printed next in the designated form is output. Output processing is performed for the number of records of the record. However, since the data to be printed has a format other than the character string, the data storage format of each field of the record is set in the form database 2
00 as field definition information (step S
406).
【0101】帳票データベース200のデータの出力は
レコード単位で行い、CPU2は出力するレコード数を
認識して(ステップS407)、帳票データベース20
0から1レコードのデータを読み込み(ステップS40
8)、この読み込んだレコードに含まれるデータをどの
帳票作成装置1でも扱えるようにCSV(Comma Separ
ated Value format)形式に変換する(ステップS4
09)。ここでCSV形式とは、データベースのデータ
をテキストファイルとして保存する場合の形式のひとつ
であって、1レコードを1行とし、1行中、フィールド
ごとにカンマ「,」で区切ってデータが並べられる。な
お,カンマの代わりにタブで区切ったテキストファイル
を利用してもよい。The output of the data of the form database 200 is performed in units of records, and the CPU 2 recognizes the number of records to be output (step S407), and
Data of one record is read from 0 (step S40)
8), CSV (Comma Separation) so that any form creation device 1 can handle the data contained in the read record.
ated Value format) (Step S4)
09). Here, the CSV format is one of formats in which data of a database is stored as a text file, and one record is one line, and data is arranged in one line by delimiting each field with a comma “,”. . A text file separated by tabs may be used instead of commas.
【0102】そして、このCSV形式に変換されたレコ
ードの情報を指定されたファイルに出力する(ステップ
S410)。次に出力される全てのレコードについてレ
コードの読み込み、CSV形式への変換、出力が終了し
たか否かを判定し、終了していない場合は(ステップS
411;No)、更にステップS408に戻り、帳票デ
ータベース200から次のレコードを読み込んで、レコ
ードをCSV形式に変換し、変換されたレコードのデー
タを指定されたファイルに出力する。以下、同様にレコ
ードの読み込み、レコード形式の変換、ファイル出力を
繰り返し実行し送出すべき全てのレコードについての出
力が終了すると、本帳票データ送出処理を終了する。Then, the record information converted into the CSV format is output to the specified file (step S410). It is determined whether or not the reading of all records to be output next, conversion into CSV format, and output have been completed, and if not completed (Step S
411; No), and further returns to step S408 to read the next record from the form database 200, convert the record to CSV format, and output the data of the converted record to the specified file. After that, similarly, the reading of the record, the conversion of the record format, and the output of the file are repeatedly executed, and when the output for all the records to be sent is completed, the form data sending process is ended.
【0103】以上の帳票データ送出処理において、レイ
アウト定義320と帳票データベース200のCSV形
式に変換されたデータとが出力されたファイルを、第2
の帳票作成装置1において読み込み、以下に詳述する帳
票データの取り込み処理を実行することによって帳票は
再現される。In the above-described form data sending process, the file in which the layout definition 320 and the data converted to the CSV format of the form database 200 are output to the second form.
The form is reproduced by reading the form by the form creation device 1 and executing a form data fetching process described in detail below.
【0104】図11は、第2の帳票作成装置1の実行す
る帳票データ取り込み処理の流れを示すフローチャート
である。FIG. 11 is a flowchart showing the flow of the form data fetching process executed by the second form creation device 1.
【0105】この帳票データの取り込み処理の実行指示
が入力されると、CPU2は、まず帳票データの送出処
理の際にデータが出力されたファイルの格納場所を指定
し(ステップS501)、指定された格納場所から帳票
データベース200のフィールド定義情報を読み出す
(ステップS502)。次に、CPU2は読み込んだフ
ィールド定義情報にしたがって、第2の帳票作成装置1
で管理している帳票データベース200に、ファイルに
格納されたレコードと同一のレコードのデータベースを
作成する(ステップS503)。When an instruction to execute the form data fetching process is input, the CPU 2 first designates a storage location of a file to which data was output during the form data sending process (step S501). The field definition information of the form database 200 is read from the storage location (step S502). Next, the CPU 2 reads the second form creation device 1 according to the read field definition information.
Then, a database of the same records as the records stored in the file is created in the form database 200 managed in step S503 (step S503).
【0106】次に、ファイルからCSV形式で格納され
ている各レコードのデータを読み込む。このファイル
は、1レコードを1行として格納したものであるので、
ファイルに格納されているレコードの行数分、以下レコ
ード変換処理を行う。Next, the data of each record stored in the CSV format is read from the file. Since this file stores one record as one line,
The following record conversion processing is performed for the number of rows of the records stored in the file.
【0107】レコード変換処理は、CSV形式で読み込
まれたレコードをステップS502で読み込んだ帳票デ
ータベース200のフィールド定義情報に変換する処理
である。CPU2は、まず、CSV形式のデータが格納
されているファイルに格納されているレコード数を取得
する(ステップS504)。そして、ファイルから1レ
コード分のデータを読み込むと(ステップS505)、
このレコードのデータを帳票データベース200のフィ
ールド定義情報で定義されている形式のデータに変換す
る(ステップS506)。その後、変換されたレコード
をステップS503で作成されたデータベースに出力す
る(ステップS507)。The record conversion process is a process of converting a record read in CSV format into field definition information of the form database 200 read in step S502. First, the CPU 2 acquires the number of records stored in the file storing the data in the CSV format (step S504). When one record of data is read from the file (step S505),
The data of this record is converted into data of the format defined by the field definition information of the form database 200 (step S506). Thereafter, the converted record is output to the database created in step S503 (step S507).
【0108】そして、全てのレコードについてレコード
の読み込み、変換出力の処理が終了したか否かを判定し
(ステップS508)、終了していない場合は(ステッ
プS508;No)、次にファイルから次レコードを読
み出し、同様にデータを帳票データベース200のフィ
ールド定義情報で定義される形式にデータを変換し、そ
の変換されたレコードを帳票データベース200に出力
する。以下同様に、全てのレコードについてレコードの
形式の変換と出力を繰り返し、全てのレコードについて
処理が終了すると(ステップS508;Yes)、CP
U2はレイアウト定義320をファイルから読み出して
RAM5の帳票データメモリ5bに格納し(ステップS
509)、以上で帳票データの取り込み処理を終了す
る。Then, it is determined whether or not the record reading and conversion output processing has been completed for all records (step S508). If not completed (step S508; No), then the next record is read from the file. , And similarly converts the data into a format defined by the field definition information of the form database 200 and outputs the converted record to the form database 200. In the same manner, the conversion and output of the record format are repeated for all the records, and when the processing is completed for all the records (Step S508; Yes), the CP
U2 reads the layout definition 320 from the file and stores it in the form data memory 5b of the RAM 5 (step S2).
509) Then, the process of loading the form data is completed.
【0109】以上説明したように、第2の実施の形態に
おいて帳票作成装置1は、第1の帳票作成処理1におい
て作成した帳票データベース200を、CSV形式に変
換して、レイアウト定義320、帳票データベース20
0のフィールド定義とともにファイルに出力する。As described above, in the second embodiment, the form creation device 1 converts the form database 200 created in the first form creation processing 1 into a CSV format, and converts the layout definition 320, the form database 20
Output to file with field definition of 0.
【0110】したがって、帳票を紙でなく、電子的に出
力することが可能となる。更に、このファイルに出力さ
れたデータは、CSV形式に変換されているので、他の
帳票作成装置1においても容易に再現することができ、
また、他の帳票作成装置1において、取り込まれたCS
V形式のデータを帳票データベース200に対応する形
式のデータに変換することができ、再現された帳票デー
タベース200と取り込まれたレイアウト定義320と
から第1の実施の形態において示した帳票印刷処理を実
行することにより、データを取り込んだ第2の帳票作成
装置1においても、第1の実施の形態と同様に帳票を印
刷することができる。Therefore, it is possible to output the form electronically instead of on paper. Further, since the data output to this file has been converted into the CSV format, it can be easily reproduced in another form creation device 1 as well.
In the other form creation device 1, the CS
The data in the V format can be converted into data in a format corresponding to the form database 200, and the form print processing described in the first embodiment is executed from the reproduced form database 200 and the fetched layout definition 320. By doing so, the form can be printed also in the second form creation device 1 that has taken in the data in the same manner as in the first embodiment.
【0111】[0111]
【発明の効果】請求項1及び4記載の発明によれば、フ
ォーマットが定義されている定型的な帳票であっても、
このフォーマットが定義された後に、所望する帳票に対
応する帳票データベースをビュー定義を参照することに
より作成して、帳票出力の際には、この帳票データベー
スとレイアウト定義とにより所望の帳票を出力すること
が可能となる。その結果、参照元のデータベースやフォ
ーム定義がなくても、帳票データベース及びレイアウト
定義といった必要最小限のデータを基に帳票を作成して
出力することが可能となるので、帳票の電子的なデータ
交換を効率的に行うことができる。According to the first and fourth aspects of the present invention, even a fixed form having a defined format,
After this format is defined, a form database corresponding to the desired form is created by referring to the view definition, and at the time of form output, the desired form is output based on the form database and the layout definition. Becomes possible. As a result, it is possible to create and output a form based on the minimum required data such as a form database and layout definition without a reference source database or form definition, and thus to exchange forms electronically. Can be performed efficiently.
【0112】請求項2記載の発明によれば、請求項1記
載の発明の効果に加え、参照元のデータベースにない追
加フィールドをレイアウト定義に定義すれば、ビュー定
義に定義されているフィールドと任意の追加フィールド
とにより構成される帳票データベースを作成して、帳票
出力時に任意のデータを追加して出力することができる
ので、定型的な帳票の編集が可能となり、帳票のフォー
マットを作成する管理者の負担を軽減することができ
る。According to the second aspect of the present invention, in addition to the effect of the first aspect of the present invention, if an additional field that is not present in the database of the reference source is defined in the layout definition, the field defined in the view definition and the An administrator who creates a form database consisting of additional fields, and can add and output any data when the form is output, enables standard form editing, and creates a form format Burden can be reduced.
【0113】請求項3記載の発明によれば、請求項1又
は2に記載の発明の効果に加え、レイアウト定義に出力
要素のデータ属性が強制入力項目として定義されている
出力要素については、フォーム定義に予め定義されてい
ないデータを入力することができ、この入力されたデー
タを帳票上に反映させることができるので、同じフォー
マットの帳票で内容の異なる固定文字列を含む帳票を簡
単に作成して出力することができる。その結果、一つの
フォーマットの帳票の応用範囲を広げることができる。According to the third aspect of the present invention, in addition to the effects of the first or second aspect, for an output element whose data attribute is defined as a forced input item in the layout definition, a form You can enter data that is not defined in the definition in advance, and this input data can be reflected on the form, so you can easily create forms containing fixed character strings with different contents in forms of the same format. Can be output. As a result, the application range of a form in one format can be expanded.
【図1】帳票作成装置1の構成を示すブロック図であ
る。FIG. 1 is a block diagram showing a configuration of a form creation device 1.
【図2】出力された帳票201の例を示す図である。FIG. 2 is a diagram illustrating an example of an output form 201;
【図3】ビュー定義に定義されるデータの例を示す図で
ある。FIG. 3 is a diagram illustrating an example of data defined in a view definition.
【図4】レイアウト定義に定義されるデータの例を示す
図である。FIG. 4 is a diagram illustrating an example of data defined in a layout definition.
【図5】帳票作成装置1が実行する帳票作成処理のデー
タの流れを示す図である。FIG. 5 is a diagram showing a data flow of a form creation process executed by the form creation device 1.
【図6】帳票データベース作成処理の流れを示すフロー
チャートである。FIG. 6 is a flowchart showing a flow of a form database creation process.
【図7】帳票印刷処理の流れを示すフローチャートであ
る。FIG. 7 is a flowchart illustrating a flow of a form printing process.
【図8】入力必須項目チェックの処理の流れを示す図で
ある。FIG. 8 is a diagram showing a flow of processing of a required input item check.
【図9】帳票データベース作成処理において作成される
帳票データベース200の例、及び印刷される帳票20
1の例を示す図である。FIG. 9 shows an example of a form database 200 created in a form database creation process, and a form 20 to be printed.
FIG. 3 is a diagram showing an example of No. 1.
【図10】帳票データ送出処理の流れを示すフローチャ
ートである。FIG. 10 is a flowchart showing a flow of a form data sending process.
【図11】帳票データ取り込み処理の流れを示すフロー
チャートである。FIG. 11 is a flowchart showing a flow of a form data import process.
1 帳票作成装置 2 CPU 3 入力装置 4 表示装置 5 RAM 5a ワークメモリ 5b 帳票データメモリ 6 記憶装置 7 記憶媒体 8 印刷装置 100 参照元データベース 200 帳票データベース 300 フォーム定義 310 ビュー定義 320 レイアウト定義 REFERENCE SIGNS LIST 1 form creation device 2 CPU 3 input device 4 display device 5 RAM 5 a work memory 5 b form data memory 6 storage device 7 storage medium 8 printing device 100 reference database 200 form database 300 form definition 310 view definition 320 layout definition
Claims (4)
フィールドをデータベースから抜粋するための情報を表
すビュー定義と、この帳票上にデータを出力するための
情報を表すレイアウト定義とを記憶する記憶手段と、 データベースのレコードに含まれる複数のフィールドか
らビュー定義に基づいて必要なフィールドを抽出する抽
出手段と、 この抽出手段により抽出されたフィールドにより構成さ
れる所望する帳票に対応する帳票データベースを作成す
る帳票データベース作成手段と、 この帳票データベース作成手段によって作成された帳票
データベースと前記記憶手段に記憶されたレイアウト定
義とに基づいて前記帳票を出力する出力手段と、 を備えたことを特徴とする帳票作成装置。1. A view definition representing information required for extracting fields required for a form from a database corresponding to a desired form, and a layout definition representing information for outputting data on the form are stored. Means for extracting necessary fields based on a view definition from a plurality of fields included in records of a database, and a form database corresponding to a desired form constituted by the fields extracted by the extracting means And a means for outputting the form based on the form database created by the form database creating means and the layout definition stored in the storage means. Form creation device.
ルドをレイアウト定義に定義した場合、前記帳票データ
ベース作成手段は、前記抽出手段により抽出されたフィ
ールドと当該追加フィールドとにより構成される帳票デ
ータベースを作成することを特徴とする請求項1記載の
帳票作成装置。2. When a desired additional field that is not present on the database is defined in a layout definition, the form database creating means creates a form database composed of the field extracted by the extracting means and the additional field. 2. The form creation device according to claim 1, wherein:
性として強制入力項目が定義されている場合に、この強
制入力項目として定義されている出力要素のデータを入
力するための入力手段と、 前記レイアウト定義に定義されている出力要素のデータ
をこの入力手段により入力されたデータに更新して記憶
する更新手段と、を更に備え、 前記出力手段は、この更新手段により更新されたレイア
ウト定義と前記帳票データベースとに基づいて帳票を出
力することを特徴とする請求項1又は2に記載の帳票作
成装置。3. An input means for inputting data of an output element defined as a forced input item when a forced input item is defined as a data attribute of an output element in the layout definition, and Updating means for updating the data of the output element defined in the definition to the data inputted by the input means and storing the updated data, wherein the output means comprises a layout definition updated by the updating means and the form 3. The form creation device according to claim 1, wherein the form is output based on a database.
納した記憶媒体であって、 所望する帳票に対応してこの帳票に必要なフィールドを
データベースから抜粋するための情報を表すビュー定義
と、この帳票上にデータを出力するための情報を表すレ
イアウト定義とを記憶するためのコンピュータが実行可
能なプログラムコードと、 データベースのレコードに含まれる複数のフィールドか
らビュー定義に基づいて必要なフィールドを抽出するた
めのコンピュータが実行可能なプログラムコードと、 この抽出されたフィールドにより構成される所望する帳
票に対応する帳票データベースを作成するためのコンピ
ュータが実行可能なプログラムコードと、 この作成された帳票データベースと前記レイアウト定義
とに基づいて前記帳票を出力するためのコンピュータが
実行可能なプログラムコードと、 を含むプログラムを格納したことを特徴とする記憶媒
体。4. A storage medium storing a computer-executable program, comprising: a view definition representing information for extracting fields required for a form corresponding to a desired form from a database; A computer-executable program code for storing a layout definition representing information for outputting data to a computer, and a method for extracting necessary fields based on a view definition from a plurality of fields included in a record of a database. A computer-executable program code; a computer-executable program code for creating a form database corresponding to a desired form composed of the extracted fields; the created form database and the layout definition Output the form based on A computer-readable storage medium storing a program including: a computer-executable program code.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10270215A JP2000099595A (en) | 1998-09-24 | 1998-09-24 | Form creation device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10270215A JP2000099595A (en) | 1998-09-24 | 1998-09-24 | Form creation device and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2000099595A true JP2000099595A (en) | 2000-04-07 |
Family
ID=17483154
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10270215A Pending JP2000099595A (en) | 1998-09-24 | 1998-09-24 | Form creation device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2000099595A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006146450A (en) * | 2004-11-18 | 2006-06-08 | Hitachi Ltd | General-purpose form creation device and creation program |
| JP2007179495A (en) * | 2005-12-28 | 2007-07-12 | Nippon Digital Kenkyusho:Kk | Business form preparation method, business form preparation device, business form preparation system and business form preparation program |
-
1998
- 1998-09-24 JP JP10270215A patent/JP2000099595A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006146450A (en) * | 2004-11-18 | 2006-06-08 | Hitachi Ltd | General-purpose form creation device and creation program |
| JP2007179495A (en) * | 2005-12-28 | 2007-07-12 | Nippon Digital Kenkyusho:Kk | Business form preparation method, business form preparation device, business form preparation system and business form preparation program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20040193465A1 (en) | Automated workflow assignment to print jobs | |
| JP2006074601A (en) | Document management system and method | |
| JP2010039542A (en) | Operation information management system | |
| JP4959501B2 (en) | Information processing apparatus, information processing method, and program | |
| JP2000099595A (en) | Form creation device and storage medium | |
| JP4396205B2 (en) | Form data input device and program | |
| JP2004280473A (en) | Workflow program generation apparatus and method | |
| JP2002342342A (en) | Document management method and its execution system, and its processing program and recording medium | |
| JP2002083254A (en) | Document preparation system | |
| US7345789B2 (en) | Image processing apparatus for prepress printing and prepress printing system | |
| JP2004145736A (en) | Character recognition device, character recognition data output method, program and recording medium | |
| JPH08147445A (en) | Document management method and document processing apparatus for realizing the same | |
| JP2001202362A (en) | Character editing processor | |
| JP3083424B2 (en) | External character management system | |
| JP2000022937A (en) | Facsimile consignment distribution system that edits and distribute similar document to many receiving terminals | |
| JP2020126469A (en) | Information processing apparatus, control method and program | |
| JP4530572B2 (en) | Document creation system and document creation method | |
| JP4566237B2 (en) | Character code input support system, character code input support program | |
| JP2008165409A (en) | Electronic business form retrieving device, electronic business form retrieving method, and program | |
| JP2000123045A (en) | Database device | |
| JP2001344556A (en) | Information management system and information management method | |
| JPH09274580A (en) | Document storage / output system | |
| JPH0764981A (en) | Document processor | |
| JP2008158727A (en) | Electronic business form system | |
| JP2001202438A (en) | Funeral hall reception device, funeral hall reception method, and recording medium therefor |