JPH11184949A - Form processing device and storage medium - Google Patents
Form processing device and storage mediumInfo
- Publication number
- JPH11184949A JPH11184949A JP9351571A JP35157197A JPH11184949A JP H11184949 A JPH11184949 A JP H11184949A JP 9351571 A JP9351571 A JP 9351571A JP 35157197 A JP35157197 A JP 35157197A JP H11184949 A JPH11184949 A JP H11184949A
- Authority
- JP
- Japan
- Prior art keywords
- cell
- character string
- formula
- stored
- cells
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、各種帳票等の表の
作成処理を行う帳票処理装置及び記憶媒体に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a form processing apparatus and a storage medium for preparing tables of various forms.
【0002】[0002]
【従来の技術】近年、納品書、請求書、注文書、帳簿等
の帳票の作成は、表計算処理(帳票処理)プログラムを
備えたコンピュータシステムで行われる。このようなコ
ンピュータシステムにより行われる帳票の作成処理は、
基本的に帳票フォーマットの作成処理とその後のデータ
入力処理との二つの処理に分けられる。帳票ファーマッ
トの作成処理においては、多数のセルから構成される帳
票のレイアウトを作成するとともに、各セルの属性、す
なわち、テキスト、数値、関数(数式)等の属性を定義
する。また、属性がテキストでかつ帳票の項目名(例え
ば、帳票を注文伝票とした場合には、商品名、単価、数
量、合計等)を入力すべきセルに項目名を入力し、属性
が数式のセルには数式データを入力する。これらの操作
により帳票フォーマットが完成する。2. Description of the Related Art In recent years, forms such as delivery notes, invoices, order forms, and ledgers are created by a computer system having a spreadsheet processing (form processing) program. The form creation processing performed by such a computer system includes:
Basically, the processing is divided into two processings, a form format creation processing and a subsequent data input processing. In the form format creation process, a form layout including a large number of cells is created, and attributes of each cell, that is, attributes such as text, numerical values, and functions (formulas) are defined. If the attribute is text and the item name of the form (for example, if the form is an order slip, the item name is entered in the cell where the product name, unit price, quantity, total, etc.) should be entered, and the attribute is Enter formula data in the cells. The form format is completed by these operations.
【0003】そして、データ入力処理においては、例え
ば、各項目名に対応するデータ、すなわち、実際の個々
の製品の商品名、単価、数量等を示すデータを入力する
ことになる。また、データ入力処理においては、データ
の入力とともにコンピュータシステムが、数式のセルに
おいて、数式に基づく演算処理を行い数値を求め、これ
をセルに格納する。In the data input process, for example, data corresponding to each item name, that is, data indicating the actual product name, unit price, quantity, etc. of each product is input. In the data input process, the computer system performs an arithmetic operation based on the mathematical expression in the cell of the mathematical expression and obtains a numerical value together with the data input, and stores the numerical value in the cell.
【0004】以上のような帳票処理によれば、データ入
力処理において、データの入力により数式の演算が自動
的に行われるとともに、各データが保存されるので、帳
票の作成を極めて省力化することができるが、帳票フォ
ーマットの作成には、かなりの手間がかかっていた。特
に、既存の帳票の制定用紙と同一の規格の帳票をプリン
タから出力させるようにする際に、制定用紙と同一のレ
イアウトを有する帳票フォーマットを作成するのに手間
がかかっていた。According to the above-described form processing, in the data input processing, a mathematical operation is automatically performed by inputting data, and each data is stored. However, creating the report format took a lot of work. In particular, when a form having the same standard as that of an existing form is output from a printer, it has been troublesome to create a form format having the same layout as that of the established form.
【0005】そこで、従来、例えば、特開平1−243
174公報に示すように、既存の制定用紙をイメージ入
力し、入力されたイメージデータに基づいて帳票のレイ
アウトを行うことにより、帳票フォーマットの作成を省
力化することが行われている。また、上記公報の発明に
おいては、帳票フォーマットの作成において、帳票の各
セルの配置位置等のレイアウトが決定した段階で、コン
ピュータの操作に不慣れなユーザ用に、各セルに割り当
てられる属性や数式をキーボードを用いて対話的に入力
するのではなく、各セルに対する属性や処理の仕方(数
式等)を用紙に手書きし、この用紙をOCR(optinal
character recognition)の機能により、コンピュータ
に読み取らせるようにすることが行われている。Therefore, conventionally, for example, Japanese Unexamined Patent Publication No.
As described in Japanese Patent Publication No. 174, an effort has been made to save the creation of a form format by inputting an image of an existing established sheet and laying out a form based on the input image data. Further, in the invention of the above publication, in creating a form format, at a stage where a layout such as an arrangement position of each cell of the form is determined, for a user who is unfamiliar with the operation of a computer, attributes and formulas assigned to each cell are defined. Instead of inputting interactively using a keyboard, the attributes and processing methods (e.g., mathematical expressions) for each cell are handwritten on a sheet of paper, and this sheet is written in OCR (optinal).
The function of character recognition) is used to make a computer read.
【0006】すなわち、上記公報の帳票処理装置を含む
システムによれば、操作者が、予め、例えば、帳票フォ
ーマット登録用制定用紙、フィールド属性定義シート、
データ処理定義シートに必要事項を記入し、これをコン
ピュータシステムのイメージリーダに読み取らせること
により、帳票フォーマットが作成されるようになってお
り、キーボード操作をほとんど必要としないものとなっ
ている。That is, according to the system including the form processing device disclosed in the above-mentioned publication, the operator needs to set in advance, for example, a form format registration sheet, a field attribute definition sheet,
By filling out the necessary items on the data processing definition sheet and reading it out by an image reader of a computer system, a form format is created, and almost no keyboard operation is required.
【0007】上記帳票フォーマット登録用制定用紙と
は、既存の制定用紙のセルに対応する各欄(データフィ
ールド)に、属性識別情報と呼ばれる符号(例えば、ア
ルファベット)を記入されるものである。これにより、
各セルに符号が付された状態となる。また、異なるセル
でも属性が同じ場合には、同じ符号が付されることにな
る。なお、ここでの属性とは、テキスト、数値、関数と
いった大まかなものではなく、例えば、商品名、商品コ
ード、単価、数量、金額、合計といった帳票で用いられ
る項目名のようなものである。[0007] The form sheet for registration of the form format is a sheet in which a code (for example, alphabet) called attribute identification information is written in each column (data field) corresponding to a cell of the existing form sheet. This allows
Each cell is assigned a reference numeral. If the attributes are the same even in different cells, the same reference numerals are assigned. Note that the attribute here is not a rough one such as a text, a numerical value, or a function, but is, for example, an item name used in a form such as a product name, a product code, a unit price, a quantity, an amount, and a total.
【0008】上記フィールド属性定義シートとは、上記
属性識別情報と上記属性とを対応づけたデータテーブル
のようなものである。上記データ処理定義シートとは、
上記属性に対して処理を定義づけるものであり、例え
ば、金額という属性には、単価に数量を乗算する数式が
定義され、合計という属性に対しては、金額を全て合算
するSUM(金額)といった関数が割り付けられるよう
になっている。The field attribute definition sheet is like a data table in which the attribute identification information is associated with the attribute. The above data processing definition sheet is
A process is defined for the above attribute. For example, a formula for multiplying a unit price by a quantity is defined for an attribute of money, and a SUM (money) for summing all money is defined for an attribute of total. Functions can be assigned.
【0009】[0009]
【発明が解決しようとする課題】ところで、上述の従来
例においては、既に使用している伝票等の帳票に基づい
て帳票フォーマットを作成できるとともに、各セルに属
性や該属性に基づく処理を設定する際に、キーボードを
用いる必要がほとんどなく、上述のような用紙やシート
に手書きで記入することで設定が行えるようになってお
り、キーボードに不慣れなユーザにおいては、帳票フォ
ーマットを作成する処理を容易なものとすることが可能
である。By the way, in the above-mentioned conventional example, a form format can be created on the basis of a form such as a form already used, and an attribute and a process based on the attribute are set in each cell. In this case, there is almost no need to use a keyboard, and settings can be made by handwriting on the above-mentioned paper or sheet, making it easy for users who are unfamiliar with the keyboard to create a form format. It is possible to be.
【0010】しかし、上述のような帳票フォーマットの
作成方法では、実際にかかる手間自体は、キーボードを
用いた場合よりかえって多くなっており、上述のような
用紙やシートにおいて、項目数や処理の種類が多い場合
には、手書きによる記入が極めて煩雑なものとなり、入
力に非常に時間がかかることになる。[0010] However, in the above-described method of creating a form format, the actual labor involved is actually much more than when a keyboard is used. When there are many entries, the entry by handwriting becomes extremely complicated, and it takes a very long time to input.
【0011】本発明の課題は、帳票処理装置において帳
票フォーマット作成時に操作者が帳票データの各セルに
対してその属性やその処理方法等を入力しなくとも、帳
票フォーマットを作成できるようにすることである。An object of the present invention is to enable a form processing apparatus to create a form format without inputting an attribute, a processing method, and the like to each cell of the form data when the form format is created. It is.
【0012】[0012]
【課題を解決するための手段】本発明の帳票処理装置
は、複数のセルからなる帳票データにおいて、他のセル
に格納される数値を用いた数式を割り付けるセルを決定
し、該セルに上記数式を割り付ける帳票処理装置であっ
て、上記帳票データのセル内に配置される文字列に対応
して、該文字列に従属するセルが、特定の数式が格納さ
れるセルか否かを定めるとともに、特定の数式に用いら
れる数値が格納されるセルか否かを定めた判別情報を記
憶し、かつ、従属するセルに数式が格納される文字列に
対応して、上記数式を上記判別情報に基づく演算方法と
して示した演算情報を記憶する判別情報記憶手段と、文
字列が配置されたセルと他のセルとの配置位置に基づい
て、文字列に従属するセルを判別する従属セル判別手段
と、上記判別情報記憶手段に記憶された判別情報に基づ
いて、上記従属セル判別手段により判別された各文字列
に従属するセルについて、それぞれ、特定の数式が格納
されるセルか否かと、特定の数式に用いられる数値が格
納されるセルか否かとを判別するセル判別手段と、上記
セル判別手段により数式が格納されると判別されたセル
に、上記判別情報記憶手段に記憶された演算情報に基づ
いて、数式に用いられる数値が格納されると判別された
セルのセル名を用いた数式を作成して割り付ける数式割
付手段とを具備してなることを特徴とする。SUMMARY OF THE INVENTION A form processing apparatus according to the present invention determines, in form data including a plurality of cells, a cell to which a formula using a numerical value stored in another cell is allocated, and assigns the formula to the cell. In a form processing device that assigns, in accordance with a character string arranged in a cell of the form data, while determining whether a cell subordinate to the character string is a cell storing a specific formula, Based on the discrimination information, the discrimination information that determines whether or not the cell used to store the numerical value used in the specific formula is stored, and the formula is stored in a subordinate cell, corresponding to the character string in which the formula is stored. Determination information storage means for storing calculation information indicated as a calculation method, and dependent cell determination means for determining cells dependent on the character string based on the arrangement position of the cell in which the character string is arranged and other cells, The above discrimination information Based on the discrimination information stored in the means, for each of the cells dependent on each character string determined by the dependent cell discriminating means, whether each cell is a cell storing a specific formula, and a numerical value used for the specific formula A cell discriminating means for discriminating whether a cell is stored or not, and a cell determined to store a formula by the cell discriminating means, based on the calculation information stored in the discrimination information storage means, And a formula assigning means for creating and assigning a formula using the cell name of the cell determined to store the numerical value to be used.
【0013】上記構成によれば、帳票データで、例え
ば、項目名となる単価、数量、金額、合計といった項目
名が入力された状態、すなわち、既存の帳票の制定用紙
に予め印刷されている項目名が入力されているような状
態において、上記従属セル判別手段が、上記文字列に従
属するセルを判別することになるが、これは、例えば、
上記文字列が格納されたセルを先頭として縦に列となっ
て連続するセルがある場合や、横に行となって連続する
セルがある場合などにおいて、文字列が格納された先頭
のセルに続くセルを上記文字列に従属するセルとする。According to the above configuration, in the form data, for example, the item names such as unit price, quantity, amount, and total, which are the item names, are input, that is, the items printed in advance on the enactment sheet of the existing form. In a state where a name is input, the dependent cell determining means determines a cell dependent on the character string.
In the case where there is a continuous cell as a vertical column with the cell storing the above character string at the top, or when there are continuous cells as a horizontal row, the first cell in which the character string is stored Subsequent cells are assumed to be cells dependent on the character string.
【0014】また、上記セル判別手段は、判別情報記憶
手段に記憶された各文字列に対応する判別情報に基づい
て、各文字列に従属するセルが特定の数式が格納される
セルか否かを判別するとともに、数式に用いられる数値
が格納されるセルか否かを判別する。この際の判別情報
とは、例えば、上記単価及び数量という文字列に対応し
て、これら文字列に従属するセルは、金額という文字列
に従属するセルに格納される数式に用いられる数値が格
納されるセルと定めるといったものとし、金額という文
字列に対応して、この文字列に従属するセルは、数量及
び単価という文字列に従属するセルに格納される数値を
用いた数式が格納されるセルと定めるとともに、金額と
いう文字列に従属するセルは、合計という文字列に従属
するセルに格納される数式に用いられる数値が格納され
るセルと定めるといったものとしても良い。The cell discriminating means determines whether a cell subordinate to each character string is a cell storing a specific mathematical expression based on discrimination information corresponding to each character string stored in the discrimination information storage means. Is determined, and it is determined whether or not the cell stores a numerical value used in the formula. The discrimination information at this time is, for example, corresponding to the character strings of the unit price and the quantity, and a cell dependent on these character strings stores a numerical value used in a mathematical expression stored in a cell dependent on the character string of money amount. In accordance with the character string of the amount, the cell dependent on this character string stores a formula using the numerical value stored in the cell dependent on the character string of the quantity and unit price. In addition to defining the cell as a cell, the cell dependent on the character string of the amount may be defined as a cell storing a numerical value used in a mathematical expression stored in the cell dependent on the character string of the sum.
【0015】また、上記判別情報とは、例えば、上記単
価、数量、金額及び合計という文字列に対応して、単
価、数量、金額及び合計金額という関連付け名称を登録
したものとするとともに、金額及び合計金額は数式が格
納されるセルに付けられる関連付け名称であることがわ
かる情報を付加するものとしても良い。なお、上記金額
という文字列の場合のように、一つのセルが、数式が格
納されるセルであるとともに数式に用いられる数値が格
納されるセルであっても良い。The discrimination information includes, for example, registration of association names of unit price, quantity, amount, and total amount in correspondence with the character strings of unit price, quantity, amount, and total. Information indicating that the total amount is an association name given to the cell storing the formula may be added. Note that, as in the case of the character string of the amount of money, one cell may be a cell in which a formula is stored and a cell in which a numerical value used in the formula is stored.
【0016】また、上記数式割付手段は、上記セル判別
手段により数式が格納されると判別されたセルに、上記
判別情報記憶手段に記憶された演算情報に基づいて、数
式に用いられる数値が格納されると判別されたセルを用
いた数式を作成して割り付ける。この際に、上記演算情
報とは、例えば、金額=数量*単価といったものや金額
の合計=合計といったようなものであり、金額、数量、
単価、合計といった文字列を使って演算方法を示したも
ので良く、また、上述のように判別情報として関連付け
名称を用いた場合には、関連付け名称を使って演算方法
を示したものとしても良い。The formula assigning means stores a numerical value used in the formula based on the calculation information stored in the discriminating information storage means in a cell determined to store the formula by the cell discriminating means. A formula is created and assigned using the cell determined to be performed. At this time, the calculation information is, for example, information such as amount = quantity * unit price or total amount = total.
The calculation method may be indicated by using a character string such as a unit price or a total, and when the association name is used as the discrimination information as described above, the calculation method may be indicated by using the association name. .
【0017】そして、演算情報に基づいて数式を作成す
る際には、例えば、金額という文字列に従属するセル
(もしくは、数量という関連付け名称が付けられたセ
ル)に格納される数式を作成するものとした場合に、数
量という文字列に従属するセル(もしくは、数量という
関連付け名称が付けられたセル)と、単価という文字列
に従属するセル(もしくは、単価という関連付け名称が
付けられたセル)とを掛け合わせる数式を作成するもの
である。When formulas are created based on the calculation information, for example, formulas stored in cells subordinate to a character string of money (or cells with an associated name called quantity) are created. In this case, a cell that depends on the character string of quantity (or a cell with an association name of quantity) and a cell that depends on the character string of unit price (or a cell with an association name of unit price) Is to create a formula that is multiplied by.
【0018】そして、実際には、帳票データの各セルに
は、その配置位置に基づいて、列番号と行番号とを合わ
せたセル番号(数値に代えてアルファベットで列の順番
を示したものでも良い)が付けられているので、単価に
対応するセルのセル番号をA1と仮定し、数量に対応す
るセルのセル番号をB1と仮定すれば、A1*B1とい
う数式となる。In practice, each cell of the form data has a cell number obtained by adding the column number and the row number based on the arrangement position (the column number may be indicated by an alphabet instead of a numerical value). Since the cell number of the cell corresponding to the unit price is assumed to be A1 and the cell number of the cell corresponding to the quantity is assumed to be B1, the formula becomes A1 * B1.
【0019】以上のような処理により、帳票データに項
目名となる文字列を入力するだけで、数式を格納すべき
セルに数式が格納されてしまうので、帳票フォーマット
の作成処理において、オペレータの数式を入力する操作
を省力化することができる。また、帳票フォーマットの
作成処理において、数式を入力する操作は、少なくとも
表計算処理の基礎的知識を必要とするので、表計算処理
においてデータ入力しかしたことがない者にとっては、
難しい操作となるが、この操作が帳票処理装置により自
動処理されてしまうので、初心者にも容易に帳票フォー
マットの作成を行えるようにすることができる。According to the above processing, the formula is stored in the cell where the formula should be stored just by inputting the character string serving as the item name in the form data. Can be saved. In addition, in the process of creating the form format, the operation of inputting the mathematical formula requires at least basic knowledge of the spreadsheet process, so for those who have only input data in the spreadsheet process,
This operation is difficult, but since this operation is automatically processed by the form processing apparatus, even a beginner can easily create a form format.
【0020】また、既存の帳票の制定用紙をイメージス
キャナに読み込ませ、読み込まれた帳票のイメージデー
タから帳票データを自動的に再構築することが可能な帳
票処理装置に本発明を組み合わせれば、上記帳票処理装
置により、帳票の制定用紙を読み込ませることにより、
制定用紙に印刷された項目名が入力された帳票データを
得ることができ、次いで、上述のような処理を行うこと
により、帳票データに数式を入力することができるの
で、帳票の制定用紙を読み込ませるだけの操作で、帳票
フォーマットが作成されてしまうことになり、後は必要
なデータを入力して印字するだけの操作で帳票をプリン
トすることができる。Further, if the present invention is combined with a form processing apparatus capable of reading an existing form enactment sheet into an image scanner and automatically reconstructing form data from the read form image data, By reading the form enactment form by the form processing device,
It is possible to obtain the form data in which the item names printed on the enactment sheet are input, and then, by performing the above-described processing, it is possible to input a formula into the form data. The form format is created only by the operation of making the form, and the form can be printed by simply inputting necessary data and printing.
【0021】[0021]
【発明の実施の形態】以下に、本発明の実施の形態の第
一例の帳票処理装置を図面を参照して説明する。図1
は、第一例の帳票処理装置の概略構成を示すものであ
る。図1に示すように、第一例の帳票処理装置は、基本
的に表計算処理を行うためのコンピュータシステムであ
り、キーボード等を備えた入力装置1と、CRT(Cath
ode Ray Tube)ディスプレイやLCD(liquid crystal
display)等のディスプレイを備えた表示装置2と、印
字を行うためのプリンタ3と、画像入力用のイメージリ
ーダ4と、それぞれ記憶手段となる記憶媒体5を備えた
記憶装置6及びRAM(random access memory)7と、
演算処理を行うCPU(central processing unit)8
とを有するものであり、また、各装置1〜8はバスライ
ン9により接続されている。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a form processing apparatus according to a first embodiment of the present invention will be described with reference to the drawings. FIG.
1 shows a schematic configuration of the form processing apparatus of the first example. As shown in FIG. 1, the form processing device of the first example is basically a computer system for performing spreadsheet processing, and includes an input device 1 having a keyboard and the like, and a CRT (Cath).
ode Ray Tube) display and LCD (liquid crystal)
a display device 2 having a display such as a display, a printer 3 for performing printing, an image reader 4 for inputting an image, a storage device 6 having a storage medium 5 serving as storage means, and a RAM (random access). memory) 7,
CPU (central processing unit) 8 that performs arithmetic processing
Each of the devices 1 to 8 is connected by a bus line 9.
【0022】上記入力装置1は、例えば、上記キーボー
ドとマウス等のポインティングデバイスとを備えたもの
であり、テキストコードと座標位置とを入力するための
ものである。上記表示装置2は、作成中もしくは作成さ
れた帳票を表示するためのものであり、周知の各種ディ
スプレイを用いることができる。上記プリンタ3は、作
成された帳票を印字するためのものであり、周知の各種
プリンタを用いることができる。The input device 1 includes, for example, the keyboard and a pointing device such as a mouse, and is used to input a text code and a coordinate position. The display device 2 is for displaying a form that is being created or that has been created, and various known displays can be used. The printer 3 is for printing the created form, and various known printers can be used.
【0023】上記イメージリーダ4は、これから作成し
ようとする帳票の既存の制定用紙をイメージデータとし
て入力するためのものであり、周知の各種イメージスキ
ャナを用いることができる。上記記憶装置6は、プログ
ラムやデータ等が記憶されている記憶媒体5を有し、こ
の記憶媒体5は磁気的・光学的記憶媒体、もしくは半導
体メモリで構成されている。この記憶媒体5は記憶装置
6に固定的に設けたもの、もしくは着脱自在に装着する
ものであり、この記憶媒体5には、後述する処理を行う
帳票処理プログラムが他のデータやプログラムと共に記
憶される。The image reader 4 is for inputting, as image data, an existing enactment sheet of a form to be created, and can use various well-known image scanners. The storage device 6 has a storage medium 5 in which programs, data, and the like are stored, and the storage medium 5 is formed of a magnetic / optical storage medium or a semiconductor memory. The storage medium 5 is fixedly provided in the storage device 6 or is detachably mounted. The storage medium 5 stores a form processing program for performing processing to be described later, together with other data and programs. You.
【0024】また、上記記憶媒体5に記憶されるプログ
ラムやデータ等は、通信回線等を介して接続された他の
機器から受信して記憶する構成にしても良く、さらに、
通信回線等を介して接続された他の機器側に上記記憶媒
体5を備えた記憶装置6を設け、この記憶媒体5に記憶
されているプログラムやデータを通信回線を介して使用
する構成としても良い。The program and data stored in the storage medium 5 may be received from another device connected via a communication line or the like and stored.
A storage device 6 including the storage medium 5 may be provided on another device connected via a communication line or the like, and programs and data stored in the storage medium 5 may be used via the communication line. good.
【0025】また、記憶装置6の記憶媒体5には、図2
に示すように各データが記憶されている。すなわち、記
憶媒体5においては、イメージデータメモリ5aとし
て、上記イメージリーダ4により読み取られた既存の帳
票のイメージデータが格納され、罫線情報メモリ5bと
して、上記帳票のイメージデータから罫線の配置位置を
示すデータを抽出して得られた罫線情報が格納され、認
識文字メモリ5cとして、上記帳票のイメージデータに
含まれる文字のイメージをOCR機能によりテキストコ
ードに変換した認識文字データが格納され、関連辞書5
dとして、後述するように帳票に記載される項目名など
の文字列と対応してセルの属性等のデータが記憶された
辞書が格納され、セル領域メモリ5eとして、各セルの
セル名と属性等のデータを対応させたデータテーブルが
格納されている。In addition, the storage medium 5 of the storage device 6 includes FIG.
Each data is stored as shown in FIG. That is, in the storage medium 5, the image data of the existing form read by the image reader 4 is stored as the image data memory 5a, and the arrangement position of the ruled line from the image data of the form is indicated as the ruled line information memory 5b. Ruled line information obtained by extracting the data is stored. Recognized character data obtained by converting a character image included in the image data of the form into a text code by the OCR function is stored as a recognized character memory 5c.
As d, a dictionary in which data such as cell attributes and the like are stored corresponding to character strings such as item names described in a form as described later is stored. As the cell area memory 5e, the cell name and attribute of each cell are stored. And the like are stored in the data table.
【0026】そして、上記関連辞書5dは、図3に示す
ように、既存の帳票に一般的に記載される文字列と、該
文字列に従属する帳票データ上のセルの属性と、上記文
字列に従属するセルのうちの数式が格納されるセルもし
くは、数式に用いられる数値が格納されるセルに割り付
けられる関連付け名称(関連付け)と、該関連付け名称
に基づいて決められる他の各セルとの関係(他のセルに
格納された数値を用いた演算方法を示す演算情報が登録
される項目)とを対応づけて登録したデータテーブル状
のものであり、文字列を入力することにより、該文字列
に対応するセルの属性、関連付け名称及び他の各セルと
の関係(演算情報)を読み出すことができるようになっ
たものである。As shown in FIG. 3, the related dictionary 5d includes a character string generally described in an existing form, an attribute of a cell on form data subordinate to the character string, and the character string. Of an association name (association) assigned to a cell in which a formula is stored or a cell in which a numerical value used in a formula is stored, and other cells determined based on the association name (An item in which calculation information indicating a calculation method using a numerical value stored in another cell is registered), and is registered in a data table form. The character string is input by inputting the character string. Can be read out from the attribute of cell, the association name, and the relationship (operation information) with each other cell corresponding to.
【0027】上記文字列とは、基本的には、手書きによ
り書き込まれる既存の帳票に、手書きにより記入する前
に記載されている文字列であり、帳票の項目名を示す文
字列である。例えば、図6に示す既存の手書き用の納品
書aには、品名、数量、単価といったような文字列が記
入前に印刷された状態となっており、上記文字列とはこ
のような文字列である。なお、関連辞書5dには、この
ような文字列をなるべく多く網羅するように多くの文字
列が格納されていることが好ましい。なお、上記文字列
は、必ずしも、既存の帳票に印刷されたものに限られず
に、表データにおいて、項目名として用いられる文字列
でも良い。The above-mentioned character string is basically a character string written before writing by hand on an existing form written by hand, and is a character string indicating the item name of the form. For example, the existing handwritten delivery note a shown in FIG. 6 is in a state where character strings such as an item name, quantity, and unit price are printed before entry, and the character string is such a character string. It is. It is preferable that the related dictionary 5d store a large number of character strings so as to cover as many such character strings as possible. The character string is not necessarily limited to a character string printed on an existing form, but may be a character string used as an item name in table data.
【0028】上記属性とは、上記文字列に対応するセル
に格納されるデータが数値データなのか文字データなの
かを示すものである。なお、この一例の属性としての数
値は、数値自体が直接入力されるセルと、他のセルとの
関係に基づいて数値データが演算されるセル、すなわ
ち、数式が格納されるセルとの両方を含むものである。
なお、数値が直接入力されるセルの属性を数値とし、数
値が演算により求められるセルの属性を数式もしくは関
数として、属性を分けても良い。The attribute indicates whether data stored in a cell corresponding to the character string is numerical data or character data. In addition, a numerical value as an attribute of this example includes both a cell in which the numerical value itself is directly input and a cell in which numerical data is calculated based on a relationship with other cells, that is, a cell in which a formula is stored. Including.
Note that the attribute of a cell to which a numerical value is directly input may be a numerical value, and the attribute of a cell whose numerical value is obtained by calculation may be a mathematical expression or a function, and the attributes may be divided.
【0029】上記関連付け名称とは、例えば、上記文字
列の意味や内容を示すものであると同時に、上記文字列
に対応するセルと他のセルとの関連を示すためのもので
ある。さらに、関連付け名称は、数式が格納されるセル
もしくは数式に用いられる数値が格納されるセルに割り
付けられるものである。また、関連辞書5dにおいて、
各セルとの関係の項目の演算情報と対応している関連付
け名称が付けられたセルは、数式が格納されるセルであ
り、上記関連付け名称と演算情報とを対応づけたデータ
が、数式に用いられる数値が格納されるセルと、数式が
格納されるセルとを他のセルから判別するための判別情
報となっている。The association name indicates, for example, the meaning and content of the character string and also indicates the association between the cell corresponding to the character string and another cell. Further, the association name is assigned to a cell in which a formula is stored or a cell in which a numerical value used in the formula is stored. In the related dictionary 5d,
A cell with an association name corresponding to the operation information of the item related to each cell is a cell in which a formula is stored, and data in which the association name is associated with the operation information is used in the formula. This is discrimination information for discriminating, from other cells, a cell in which a numerical value to be stored is stored and a cell in which a formula is stored.
【0030】例えば、図3に示すように、文字列が金額
であれば、その意味も金額となり、関連付け名称は金額
とされる。なお、ここでいう金額とは、納品書やその他
の伝票等の帳票に記載される金額であり、基本的には、
単価と数量とを乗算したものを示すものである。従っ
て、関連付け名称が金額とされたセルには、後述するよ
うに関連付け名称が単価及び数量とされたセルが関連付
けられていることを示している。また、関連辞書5dに
おいては、金額に対応して各セルとの関係に演算情報が
登録されているので、関連付け名称が金額とされたセル
は、数式が格納されるセルである。さらに、文字列が合
計の項における各セルとの関係に金額セルの数値合計と
いう記載があり、金額という関連付け名称が付けられた
セルは、数式に用いられる数値が格納されるセルでもあ
る。For example, as shown in FIG. 3, if the character string is a money amount, the meaning is also a money amount, and the association name is a money amount. In addition, the amount of money referred to here is the amount of money described on a form such as a delivery note or other slip, and basically,
It shows the result of multiplying the unit price and the quantity. Therefore, it is shown that the cell whose association name is unit price and the quantity is associated with the cell whose association name is money as described later. Further, in the related dictionary 5d, since the calculation information is registered in relation to each cell corresponding to the amount, the cell whose association name is the amount is a cell in which the formula is stored. Furthermore, there is a description that the character string is related to each cell in the term of the sum, that is, the sum of the numerical value of the money amount cell, and the cell with the associated name of the money amount is also a cell in which the numerical value used in the formula is stored.
【0031】また、同様に、文字列が合計であれば、該
文字列の帳票(具体的には図6で示す納品書)上での意
味は、金額の項目に記入された数値の合計を示すもので
あり、上記文字列に対応するセルの関連付け名称は合計
金額とされるとともに、上記セルには関連付け名称が上
記金額とされたセルが関連付けられていることを示すも
のである。また、上記合計金額に対応して演算情報が登
録されているので、合計金額という関連付け名称が付け
られたセルは、数式が格納されるセルである。また、消
費税額及び税込合計金額という文字列に対応する演算情
報に合計金額という関連付け名称があり、合計金額とい
う関連付け名称が付けられたセルは、数式に用いられる
数値が格納されるセルでもある。Similarly, if the character string is the sum, the meaning of the character string on the form (specifically, the delivery note shown in FIG. 6) is expressed by the sum of the numerical values entered in the item of the amount of money. This indicates that the association name of the cell corresponding to the character string is the total amount, and that the cell whose association name is the amount is associated with the cell. Further, since the calculation information is registered corresponding to the total amount, the cell with the association name of the total amount is a cell in which the formula is stored. In addition, the operation information corresponding to the character strings of the consumption tax amount and the tax-included total amount includes an association name of the total amount, and the cell with the association name of the total amount is also a cell in which a numerical value used in a mathematical expression is stored.
【0032】また、同様に、数量、単価、税率という文
字列に対応するそれぞれのセルの関連付け名称は、文字
列の意味や内容から関連付け名称がそれぞれ数量、単
価、税率とされることになる。また、数量、単価、税率
という関連付け名称に対応して演算情報が登録されてい
ないので、これらの関連付け名称が付けられたセルに
は、数式が格納されることがなく、数式に用いられる数
値が格納されることになる。なお、関連付け名称が対応
して登録されていない文字列に従属するセルは、他のセ
ルと関連しないセルであり、数式が格納されることも、
数式に用いられる数値が格納されることもないものであ
る。Similarly, the association names of the cells corresponding to the character strings of quantity, unit price, and tax rate are the quantity, unit price, and tax rate, respectively, from the meaning and content of the character string. In addition, since the calculation information is not registered corresponding to the association names of quantity, unit price, and tax rate, the cells with these association names do not store the formula, and the numerical values used in the formula are not stored. Will be stored. Note that a cell that depends on a character string whose association name is not registered correspondingly is a cell that is not related to other cells, and may store a formula.
Numerical values used in mathematical expressions are not stored.
【0033】上記各セルとの関係に登録される演算情報
は、基本的に、該演算情報に対応するセルに格納される
数式を、それぞれ関連付け名称を項とする加減乗除のよ
うに、関連付け名称を用いた演算方法として示すもので
ある。例えば、関連付け名称が金額のセルに対応する各
セルとの関係は、金額が単価に数量を乗算したものであ
ることから数量*単価とされる。また、同様に、関連付
け名称が消費税額のセルに対応する各セルとの関係は、
消費税額が合計金額に税率を乗算したものであることか
ら合計金額*税率とされ、関連付け名称が税込合計金額
のセルに対応する各セルとの関係は、税込合計金額が合
計金額に消費税額を加算したものであることから合計金
額+消費税額となる。The operation information registered in relation to each of the above-mentioned cells basically includes a mathematical expression stored in a cell corresponding to the operation information as an association name such as addition, subtraction, multiplication, and division with the association name as a term. This is shown as an arithmetic method using. For example, the relationship with each cell corresponding to the cell whose association name is the amount is “quantity × unit price” because the amount is obtained by multiplying the unit price by the quantity. Similarly, the relationship between each cell whose association name corresponds to the cell of the consumption tax amount is
Since the consumption tax amount is obtained by multiplying the total amount by the tax rate, the total amount is calculated by multiplying the tax rate by the tax amount. The sum is the sum of the sum and the consumption tax because the sum is added.
【0034】なお、各セルとの関係は、必ずしも上述の
ような式の形式で表される必要はなく、例えば、関連付
け名称が合計金額のセルに対応する各セルとの関係は、
合計金額が金額を全て加算したものであることから各セ
ルとの関係を、金額セルの数値合計としている。すなわ
ち、各セルとの関係は、最終的に数式が格納されるセル
の数式を後述するように確定できるものならば良い。The relationship with each cell does not necessarily need to be expressed in the form of the above formula. For example, the relationship with each cell whose association name corresponds to the cell of the total amount is
Since the total amount is the sum of all amounts, the relationship with each cell is defined as the sum of numerical values of the amount cells. That is, the relationship with each cell may be any as long as the formula of the cell in which the formula is finally stored can be determined as described later.
【0035】なお、上記帳票上に印刷される文字列は、
内容や意味が同じでも、違う文字列が用いられる場合が
あり、例えば、数量と同じ内容や意味の文字列として、
数、個数、QTY等といった文字列が用いられたり、単
価と同じ内容や意味の文字列として、単価@や税抜き単
価等の文字列が用いられる場合がある。そこで、関連辞
書5dにおいては、同じ内容や意味を有する文字列をグ
ループ化しておき、グループ毎に属性、関連付け名称及
び演算情報を登録するようにしても良い。The character string printed on the form is
Even if the content and meaning are the same, a different character string may be used.For example, as a character string with the same content and meaning as the quantity,
A character string such as a number, a number, or QTY may be used, or a character string such as a unit price @ or a unit price without tax may be used as a character string having the same content and meaning as the unit price. Therefore, in the related dictionary 5d, character strings having the same content and meaning may be grouped, and the attribute, the association name, and the calculation information may be registered for each group.
【0036】このようにすれば、関連辞書5dのデータ
数を大きく増やすことなく、関連辞書5dの対応可能な
既存の帳票の種類を容易に増やすことができる。また、
関連辞書5dは、新たな文字列とそれに対応する属性、
関連付け名称及び各セルとの関係のデータをユーザが登
録可能となっていることが好ましく、このようにすれ
ば、関連辞書5dに登録されていない文字列が帳票で用
いられる場合に容易に対応することができる。This makes it possible to easily increase the types of existing forms that can be supported by the related dictionary 5d without greatly increasing the number of data in the related dictionary 5d. Also,
The related dictionary 5d stores a new character string and its corresponding attribute,
It is preferable that the user can register the association name and the data of the relationship with each cell. In this way, it is possible to easily cope with a case where a character string not registered in the association dictionary 5d is used in the form. be able to.
【0037】上記セル領域メモリ5eとは、図4に示す
ように、後述する帳票処理により設定された各セルのセ
ル名と、上記属性と、上記関連付け名称と、グループ情
報と、数式とを対応づけて登録したデータテーブルであ
る。上記セル名(セル番号)とは、ここでは、横方向
(行方向)に並んだセルに上から下に順番にA、B、C
…といったアルファベット(行番号)を付け、縦方向
(列方向)に並んだセルに左から右に順番に1、2、3
…といった連番(列番号)を付け、これら列番号と行番
号とをセル毎に合わせて示したものであり、例えば、図
8に示すように各セルにセル名が付されることになり、
一番上のセルのうちの一番左よりのセルのセル名がA1
となり、上から五番目で左から3番目のセルのセル名が
E3となる。As shown in FIG. 4, the cell area memory 5e stores the cell name of each cell set by the form processing described later, the attribute, the association name, the group information, and the mathematical expression. This is a registered data table. Here, the cell names (cell numbers) refer to cells arranged in the horizontal direction (row direction) in the order of A, B, C from top to bottom.
.., And cells arranged in the vertical direction (column direction) are assigned in order from left to right in order of 1, 2, 3
.., And these column numbers and row numbers are shown for each cell. For example, as shown in FIG. 8, each cell is given a cell name. ,
The cell name of the leftmost cell in the top cell is A1
And the cell name of the fifth cell from the top and the third cell from the left is E3.
【0038】上記属性及び関連付け名称は、上述のもの
である。また、上記グループ情報とは、基本的に、行の
先頭のセルに続いて行方向に並んだ各セルのセル名と、
列の先頭のセルに続いて列方向に並んだ各セルのセル名
とであり、行の先頭のセルと列の先頭のセルに付される
ものであるが、後述する処理により決められるものであ
る。上記数式とは、上記演算情報に基づいて決められる
ものであり、演算情報においては、関連付け名称を用い
た演算方法として示されていたものを、各セルに関連付
け名称が割り付けられた段階で、関連付け名称をセル名
(セル番号)に変換し、セル名を用いた数式に変換した
ものである。なお、関連辞書5dの演算情報から数式を
導き出す方法については後述の帳票処理において説明す
る。The above attributes and association names are as described above. In addition, the group information basically includes a cell name of each cell arranged in the row direction following the first cell of the row,
The cell name of each cell arranged in the column direction following the first cell of the column, and is added to the first cell of the row and the first cell of the column, and is determined by a process described later. is there. The above formula is determined based on the above calculation information. In the calculation information, what was indicated as the calculation method using the association name is associated at the stage where the association name is assigned to each cell. The name is converted into a cell name (cell number) and converted into a mathematical expression using the cell name. A method of deriving a mathematical expression from the operation information of the related dictionary 5d will be described in a form process described later.
【0039】上記RAM7は、後述するようにCPU8
により処理される帳票処理プログラムや、その処理に係
わるデータを一時的に格納するメモリエリアを形成す
る。上記CPU8は、記憶装置6の記憶媒体5に記憶さ
れている帳票処理プログラムをRAM7に展開して後述
する帳票処理を行うものである。すなわち、CPU8
は、既存の帳票をイメージリーダ4で読み取ることによ
り得られたイメージデータから罫線を抽出し、抽出され
た罫線に基づいて帳票データの各セルをレイアウトして
割り当るとともに、上記イメージデータから文字を抽出
し、該文字を示すイメージから文字認識処理を行ってテ
キストデータ(認識文字)を得るようになっている。The RAM 7 stores a CPU 8 as described later.
Forms a memory area for temporarily storing a form processing program to be processed and data relating to the processing. The CPU 8 expands a form processing program stored in the storage medium 5 of the storage device 6 into the RAM 7 and performs form processing described later. That is, the CPU 8
Extracts the ruled lines from the image data obtained by reading the existing form with the image reader 4, lays out and assigns each cell of the form data based on the extracted ruled lines, and extracts characters from the image data. The text data (recognized character) is obtained by extracting and performing character recognition processing from an image representing the character.
【0040】そして、CPU8は、上述のように各セル
が割り当てられた帳票データに、上記認識文字の配置位
置のデータに基づいて認識文字を文字列として割り付け
るようになっている。そして、CPU8は、上記文字列
が割り付けられた帳票データにおいて、関連辞書5dに
登録されたデータに基づき、各セルに属性を割り付ける
ようになっているとともに、数式が格納されるセルを判
別し、該セルに数式を割り付けるようになっている。Then, the CPU 8 assigns a recognized character as a character string to the form data to which each cell is allocated as described above, based on the data on the arrangement position of the recognized character. Then, the CPU 8 assigns an attribute to each cell based on the data registered in the related dictionary 5d in the form data to which the character string is assigned, and determines the cell in which the formula is stored. A formula is assigned to the cell.
【0041】次に、上述のような第一例の帳票処理装置
による帳票処理について、図5のフローチャートと、他
の図面とを参照して説明する。なお、帳票処理は、上述
の帳票処理プログラムに基づいて行われるものであり、
帳票処理を説明することにより、帳票処理プログラムを
説明する。まず、例えば、図6に示す既存の紙の納品書
(帳票用紙)aのイメージをイメージリーダ4により読
み取り、読み取られた納品書aのイメージデータを記憶
装置6の記憶媒体5のイメージデータメモリ5aに格納
する(ステップS1)。Next, the form processing by the form processing apparatus of the first example as described above will be described with reference to the flowchart of FIG. 5 and other drawings. The form processing is performed based on the form processing program described above.
The form processing program will be described by describing the form processing. First, for example, an image of an existing paper delivery note (form paper) a shown in FIG. 6 is read by the image reader 4, and the read image data of the delivery note a is stored in the image data memory 5 a of the storage medium 5 of the storage device 6. (Step S1).
【0042】次に、イメージデータメモリ5aから納品
書aのイメージデータを読み出し、該イメージデータか
ら図7に示すように罫線データbを抽出する(ステップ
S2)。すなわち、各罫線の配置位置を求め、これを記
憶装置6の記憶媒体5の罫線情報メモリ5bに格納す
る。なお、この際には罫線の配置位置だけではなく、罫
線の太さも読み取るようになっている。次に、図8に示
すように、各罫線の配置位置から帳票データの各セルを
割り当てる(ステップS3)。すなわち、各セルの配置
位置とサイズとを決定して、セルのレイアウトされた帳
票データcが求められることになる。Next, the image data of the delivery note a is read from the image data memory 5a, and ruled line data b is extracted from the image data as shown in FIG. 7 (step S2). That is, the arrangement position of each ruled line is obtained and stored in the ruled line information memory 5b of the storage medium 5 of the storage device 6. In this case, not only the arrangement position of the ruled line but also the thickness of the ruled line is read. Next, as shown in FIG. 8, each cell of the form data is allocated from the arrangement position of each ruled line (step S3). That is, the layout position and size of each cell are determined, and the form data c in which the cells are laid out is obtained.
【0043】この際には、既存の紙の帳票上の各記入欄
に帳票データの各セルが対応して配置されることになる
が、上記記入欄は、必ずしも、その上下左右が罫線に囲
まれた状態となっていないので、基本的には、横の罫線
の上側に、罫線の端から端までセルが配置されるものと
し、横の罫線の端から端までの間に、縦の罫線がある場
合には、上記セルを縦の罫線の位置で二つに分割するも
のとなっている。これにより、セルの配置が決定される
とともに、セルの左右幅が決定される。In this case, each cell of the form data is arranged in correspondence with each entry column on the existing paper form, but the entry column is not necessarily surrounded by ruled lines at the top, bottom, left and right. Basically, cells are placed above the horizontal ruled lines from end to end of the ruled lines, and vertical ruled lines are placed between the ends of the horizontal ruled lines. When there is a cell, the cell is divided into two at the position of the vertical ruled line. As a result, the arrangement of the cells is determined, and the left and right widths of the cells are determined.
【0044】また、上記横の罫線の上にさらに横の罫線
がある場合は、セルの上下幅を二本の上下の横の罫線の
間隔と同じものとし、セルの左右幅及び上下幅が決定さ
れることにより、セルのサイズが決定されることにな
る。なお、上記横の罫線の上側に、横の罫線が無い場合
には、例えば、予め決められた上下幅とするものとして
も良いし、上記セルの位置に予め文字列がある場合に
は、文字列の上下幅より所定長さだけ長い長さを上下幅
としても良い。また、上下に複数の横の罫線があり、か
つ、一番上の罫線が他の罫線より太い場合には、その罫
線上にセルを形成しないものとしても良い。また、セル
の配置が決定した段階で各セルに上述の行番号と列番号
とからなるセル名(セル番号)を付ける。なお、このよ
うにして得られた帳票データcも記憶装置6に記憶され
る。また、作成された帳票データcのセルの配置に誤り
がある場合には、入力装置1からの指示により訂正可能
となっている。When there is a horizontal ruled line above the horizontal ruled line, the upper and lower widths of the cells are set to be the same as the interval between the two upper and lower horizontal ruled lines, and the left and right widths and the upper and lower widths of the cells are determined. This determines the size of the cell. If there is no horizontal ruled line above the horizontal ruled line, for example, a predetermined vertical width may be used. A length longer than the vertical width of the row by a predetermined length may be used as the vertical width. If there are a plurality of horizontal ruled lines above and below, and the top ruled line is thicker than other ruled lines, cells may not be formed on the ruled lines. At the stage where the cell arrangement is determined, each cell is given a cell name (cell number) composed of the above-described row number and column number. The form data c thus obtained is also stored in the storage device 6. Further, when there is an error in the arrangement of the cells of the created form data c, it can be corrected by an instruction from the input device 1.
【0045】一方、上記イメージデータから文字を抽出
し、これを周知のOCR機能により認識する(ステップ
S4)。すなわち、イメージデータ上の文字をテキスト
データに変換する。なお、この際には、イメージデータ
上の文字を単にテキストデータに変換するだけではな
く、テキストデータに関連付けて文字の配置位置、文字
の大きさといったデータも読み取る必要がある。そし
て、一つの単語や、一つのセンテンスとして文字列を構
成する各テキストデータと、各テキストデータの配置位
置と、各テキストデータのフォントのサイズとが記憶装
置6の記憶媒体5の認識文字メモリ5cに格納される。
なお、文字の書体も読み取れる場合には、書体も読み取
ることが好ましい。On the other hand, characters are extracted from the image data and recognized by a well-known OCR function (step S4). That is, characters on the image data are converted to text data. In this case, it is necessary not only to convert characters on the image data into text data, but also to read data such as a character arrangement position and a character size in association with the text data. The text data constituting a character string as one word or one sentence, the arrangement position of each text data, and the font size of each text data are stored in the recognized character memory 5 c of the storage medium 5 of the storage device 6. Is stored in
It should be noted that if a character typeface can also be read, it is preferable to read the typeface as well.
【0046】そして、図9は、認識された文字を再び読
み取られた配置位置に読み取られた大きさで配置された
イメージdを示すものである。なお、この例において
は、抽出された罫線のデータに基づいて、セルを割り当
てるものとしたが、罫線のデータと認識された文字の配
置とからセルを割り当てるものとしても良い。FIG. 9 shows an image d in which the recognized character is arranged at the arrangement position where the character has been read again in the read size. In this example, the cells are allocated based on the extracted ruled line data. However, the cells may be allocated based on the ruled line data and the arrangement of the recognized characters.
【0047】次いで、認識された文字を再び読み取られ
た配置位置に読み取られた大きさで配置された図9に示
すイメージdと、各セルの配置位置とサイズとを決定し
て得られた図8に示すセルがレイアウトされた帳票デー
タcとを結び付ける(ステップS5)。すなわち、帳票
データcに、認識された文字を入力する。この際には、
各セルと配置位置が一致する認識文字は、位置が一致す
るセルに格納する。また、セルの位置と配置位置が一致
しない認識文字は、背景の文字として割り付けられる。Next, the image d shown in FIG. 9 in which the recognized characters are arranged at the read position at the read position again and the arrangement position and size of each cell are determined. 8 is linked with the form data c in which the cells are laid out (step S5). That is, the recognized character is input to the form data c. In this case,
Recognized characters whose arrangement positions match each cell are stored in cells whose positions match. Recognized characters whose cell positions and arrangement positions do not match are assigned as background characters.
【0048】従って、図10に示すように、上記イメー
ジdと帳票データcとを結び付けることにより得られた
帳票データeにおいては、イメージdに配置された認識
文字の文字列のうちの、レイアウトされたセルと配置位
置が一致する文字列がセルに格納された状態となってい
る。次に、上述のように各セルに格納された文字列に基
づいて、関連辞書5dを参照し、セルの属性と、関連付
け名称及び各セルとの関係を判別する(ステップS
6)。Therefore, as shown in FIG. 10, in the form data e obtained by linking the image d and the form data c, the layout of the character strings of the recognition characters arranged in the image d is performed. A character string whose arrangement position matches that of the placed cell is stored in the cell. Next, based on the character string stored in each cell as described above, the relation between the cell attribute, the association name, and each cell is determined by referring to the related dictionary 5d (step S).
6).
【0049】なお、この段階では、実際に各セルに対し
て属性等を割り付けるのではなく、上記文字列毎に、セ
ルの属性と、関連付け名称及び各セルとの関係とが割り
付けられる。また、上述の文字列が格納されたセル自体
は、数字以外の文字列が入力された段階でその属性が文
字とされるので、関連辞書5d上において、文字列に対
応する属性が割り付けられるものではない。At this stage, instead of actually assigning attributes and the like to each cell, the attributes of the cell, the association name, and the relationship with each cell are assigned for each character string. The cell itself in which the above-described character string is stored has its attribute changed to a character when a character string other than a number is input, so that an attribute corresponding to the character string is assigned on the related dictionary 5d. is not.
【0050】次いで、罫線の状態及び認識文字の配列に
より縦方向に各セルをグループ化する(ステップS
7)。例えば、図10に示す帳票データにおいて、二本
の縦の罫線の間に上下に連続して配置される複数のセ
ル、すなわち、左右幅が同じで、かつ、左右の配置位置
が一致し、かつ、上下に連続して配置される複数のセル
が、一つのグループとされる。従って、図10において
は、D1〜M1までの縦の列で配置されたセル、D2〜
M2までの縦の列で配置されたセル、D3〜M3までの
縦の列で配置されたセル、D4〜M4までの縦の列で配
置されたセル、D5〜M5までの縦の列で配置されたセ
ルがそれぞれグループとされる。Next, the cells are grouped in the vertical direction according to the ruled line state and the arrangement of the recognized characters (step S).
7). For example, in the form data shown in FIG. 10, a plurality of cells arranged vertically consecutively between two vertical ruled lines, that is, the left and right widths are the same, the left and right arrangement positions match, and , A plurality of cells arranged continuously one above the other constitute a group. Therefore, in FIG. 10, the cells D2 to D1 arranged in the vertical columns
Cells arranged in the vertical columns up to M2, cells arranged in the vertical columns D3 to M3, cells arranged in the vertical columns D4 to M4, and arranged in the vertical columns D5 to M5 The selected cells are grouped.
【0051】さらに、例えば、各グループにおいて、グ
ループ内の各セルに文字列が格納されているか否かが判
定され、さらに、文字列が格納されているセルがあった
場合に、文字列が格納されたセルに続いて、文字列が格
納されていない空白のセルがあるか否かが判定される。
そして、上述のグループ内において、文字列が格納され
たセルに続く空白のセルが、文字列に従属する従属グル
ープとされる。Further, for example, in each group, it is determined whether or not a character string is stored in each cell in the group. If there is a cell in which the character string is stored, the character string is stored. It is determined whether there is a blank cell in which no character string is stored, following the cell that has been set.
Then, in the above-mentioned group, a blank cell following the cell in which the character string is stored is set as a subordinate group subordinate to the character string.
【0052】そして、図10においては、上述のように
D1〜M1のグループからD5〜M5のグループま
で、5つの縦方向のグループがグループ化されるととも
に、各縦のグループにおいては、それぞれ先頭のセルに
文字列が格納され、その後に空白のグループが配置され
るので、各グループのうちの文字列が格納された先頭の
セルを除く部分が、従属グループとされる。なお、D1
〜M1のグループには、最後のセルであるM1のセルに
文字列が配置されているが、その後に空白のセルがない
ので、M1の下に縦の従属グループはないものとされ
る。In FIG. 10, as described above, five vertical groups are grouped from the group of D1 to M1 to the group of D5 to M5. Since a character string is stored in a cell and a blank group is placed after that, a portion of each group excluding the first cell in which the character string is stored is set as a subordinate group. Note that D1
In the groups M1 to M1, a character string is arranged in the last cell M1, but since there is no blank cell thereafter, there is no vertical subordinate group below M1.
【0053】また、ここで、グループ化に際して罫線の
太さを参考にするものとしても良く、例えば、図6に示
すように、C1〜C3の横の行と、D1〜D5の横の行
との間に対応する罫線が太くされ、L1〜L5の横の行
と、M1〜M5の横の行との間に対応する罫線が太くさ
れている場合に、これらの太い二本の罫線の間におい
て、上述のように、二本の縦の罫線の間に上下に連続し
て配置される複数のセルが一つのグループとされるよう
にしても良い。この場合には、上述の各従属グループか
らセル名にMが含まれるセルが除かれることになる。Here, the thickness of the ruled line may be referred to at the time of grouping. For example, as shown in FIG. 6, the horizontal rows of C1 to C3 and the horizontal rows of D1 to D5 Between the two horizontal lines L1 to L5 and the horizontal line between M1 to M5. In the above, as described above, a plurality of cells vertically arranged between two vertical ruled lines may be grouped together. In this case, the cells in which M is included in the cell name are excluded from the above-described subordinate groups.
【0054】次いで、罫線の状態及び認識文字の配列に
より横方向に各セルをグループ化する(ステップS
8)。例えば、縦方向のグループ化と略同様に、図10
に示す帳票データにおいて、二本の横の罫線の間に上下
に連続して配置される複数のセル、すなわち、上下幅が
同じで、かつ、上下の配置位置が一致し、かつ、左右に
連続して配置される複数のセルが、一つのグループとさ
れる。Next, the cells are grouped in the horizontal direction according to the state of the ruled lines and the arrangement of the recognized characters (step S).
8). For example, substantially in the same manner as vertical grouping, FIG.
In the form data shown in, a plurality of cells arranged vertically consecutively between two horizontal ruled lines, that is, the same upper and lower widths, and the upper and lower arrangement positions match, and the A plurality of cells arranged in a group are grouped together.
【0055】従って、図10においては、C1〜C3ま
での横の列で配置されたセル、D1〜D5までの横の列
で配置されたセル、E1〜E5までの横の列で配置され
たセル、F1〜F5までの横の列で配置されたセル、G
1〜G5までの横の列で配置されたセル、H1〜H5ま
での横の列で配置されたセル、I1〜I5までの横の列
で配置されたセル、J1〜J5までの横の列で配置され
たセル、K1〜K5までの横の列で配置されたセル、L
1〜L5までの横の列で配置されたセル、M1〜M5ま
での横の列で配置されたセルがそれぞれグループとされ
る。Therefore, in FIG. 10, cells arranged in horizontal rows C1 to C3, cells arranged in horizontal rows D1 to D5, and cells arranged in horizontal rows E1 to E5. Cells, cells arranged in horizontal rows from F1 to F5, G
Cells arranged in horizontal rows from 1 to G5, cells arranged in horizontal rows from H1 to H5, cells arranged in horizontal rows from I1 to I5, horizontal rows from J1 to J5 , Cells arranged in horizontal rows from K1 to K5, L
Cells arranged in horizontal columns from 1 to L5 and cells arranged in horizontal columns from M1 to M5 are grouped.
【0056】また、ここで、全てのセルに文字列が格納
され、空白のセルが無いグループは、グループとしない
ものとする。すなわち、C1〜C3のグループと、D1
〜D5のグループは、グループを解除する。なお、上記
縦方向のグループ化においても、全てのセルに文字列が
格納されたグループがあった場合には、そのグループは
グループ化を解除する。さらに、例えば、各グループに
おいて、グループ内の各セルに文字列が格納されている
か否かが判定され、さらに、文字列が格納されているセ
ルがあった場合に、文字列が格納されたセルに続いて、
文字列が格納されていない空白のセルがあるか否かが判
定される。そして、上述のグループ内において、文字列
が格納されたセルに続く空白のセルが、従属グループと
される。Here, a character string is stored in all cells, and a group having no blank cell is not regarded as a group. That is, the group of C1 to C3 and the group of D1
The group of D5 is canceled. In the vertical grouping, if there is a group in which a character string is stored in all cells, the group is canceled. Further, for example, in each group, it is determined whether or not a character string is stored in each cell in the group, and further, if there is a cell in which the character string is stored, a cell in which the character string is stored Followed by,
It is determined whether there is a blank cell in which no character string is stored. Then, in the above-mentioned group, a blank cell following the cell in which the character string is stored is set as a subordinate group.
【0057】図10いおいては、M2〜M5のグループ
が従属グループとされる。ここで、縦の従属グループと
横の従属グループとがセル名にMを含むセルで重なるの
で、例えば、縦の従属グループからセル名にMを含むセ
ルを除くものとする。なお、帳票データに含まれるセル
のうちのA1、A2及びB1は、独立して存在するの
で、それぞれ、縦にも横にもグループ化されない独立の
セルとして扱われる。さらに、C1〜C3については、
上述のように全て文字列が格納されているので、横方向
にグループ化されることがなく、かつ、縦方向に続く空
白のセルがないので、縦方向のグループに属することも
ないので、独立したセルとして扱われる。In FIG. 10, groups M2 to M5 are set as subordinate groups. Here, since the vertical subordinate group and the horizontal subordinate group are overlapped with the cell including M in the cell name, for example, the cell including M in the cell name is excluded from the vertical subordinate group. Since A1, A2, and B1 of the cells included in the form data exist independently, they are treated as independent cells that are not grouped vertically or horizontally. Further, for C1 to C3,
Since all character strings are stored as described above, they are not grouped in the horizontal direction, and there are no blank cells that continue in the vertical direction. Is treated as a lost cell.
【0058】なお、上記グループ化の方法は、一例であ
り、他の方法を用いても良く、例えば、まず、文字列が
格納されているセルを求め、該セルに続いて空白のセル
が縦方向もしくは横方向に沿って配置される場合に、こ
れらのセルのグループを上記従属グループとするものと
しても良い。また、上記グループ化においては、図6に
示す納品書aを例にとって説明したが、基本的に、グル
ープ化の方法は、縦横に配置されたセルにおいて、縦方
向に並んだ各列のセルがそれぞれ縦のグループとされ、
横方向に並んだ各行のセルがそれぞれ横のグループとさ
れ、かつ、文字列が格納されたセルの後に、横方向もし
くは縦方向に空白のセルが続く場合に、これらの空白の
セルが従属グループとされるものである。The above grouping method is merely an example, and other methods may be used. For example, first, a cell storing a character string is obtained, and a blank cell is placed next to the cell. When arranged along the direction or the lateral direction, a group of these cells may be the subordinate group. In addition, in the above-described grouping, the delivery note a illustrated in FIG. 6 has been described as an example. However, basically, the grouping method is such that cells in each column arranged in a vertical direction in cells arranged vertically and horizontally. Each is a vertical group,
When cells in each row arranged in the horizontal direction are grouped in the horizontal direction, and cells containing character strings are followed by blank cells in the horizontal or vertical direction, these blank cells are subordinate groups. It is said that.
【0059】なお、罫線の太さが違うような場合に、他
の罫線と異なる罫線が用いられている部分で従属グルー
プを区切るものである。また、上述のように設けられた
各グループに含まれるセル名を示すグループ情報は、記
憶装置6の記憶媒体5のセル領域メモリ5eに格納され
る。なお、この際には、グループの先頭のセルに、該セ
ルに続く同じグループのセル名が登録されるようになっ
ており、例えば、図4に示すようにD1〜M1までの縦
方向のグループの先頭のセルであるD1のセルに、グル
ープ情報として、E1〜M1までのセルが登録される、
また、E1〜E5までの横方向のグループの先頭のセル
であるE1のセルには、グループ情報としてE2〜E5
までのセルが登録される。なお、図4においては、従属
グループの情報が図示されていないが、実際には従属グ
ループの情報もセル領域メモリ5eに登録されている。In the case where the ruled lines have different thicknesses, the subordinate groups are separated by portions where ruled lines different from other ruled lines are used. The group information indicating the cell names included in each group provided as described above is stored in the cell area memory 5 e of the storage medium 5 of the storage device 6. In this case, the cell name of the same group following the cell is registered in the first cell of the group. For example, as shown in FIG. The cells E1 to M1 are registered as group information in the cell D1 which is the first cell of
In addition, the cell of E1, which is the first cell of the horizontal group of E1 to E5, has E2 to E5 as group information.
Up to the cell are registered. Although the information of the subordinate group is not shown in FIG. 4, the information of the subordinate group is actually registered in the cell area memory 5e.
【0060】次に、上述のようなセルのグループ化の結
果に基づいて、上述の関連辞書5dから参照して各文字
列に割り付けられた属性、関連付け名称とを各セルに割
り付ける。そして、各セル毎に割り付けられたデータ
を、記憶装置6の記憶媒体5のセル領域メモリ5eに格
納する(ステップS9)。例えば、セル名がA1及びA
2のセルには、図10に示すように、文字列である年月
日及びNo.がそれぞれ格納されているので、それぞれ
属性が文字となるが、ここでは、A1及びA2は、グル
ープ化されていない独立したセルであり、従属するセル
が無いので、上記文字列に基づいて図3に示す、関連辞
書5dを参照して得られた属性である数値が割り当てら
れることになる。そして、セルに元々格納された文字列
は、実際にセルに格納されるデータではなく、背景の文
字として登録される。また、年月日及びNo.には、関
連付け名称が関連辞書5dにないので、セルに属性だけ
を割り付けることになる。Next, based on the result of the grouping of cells as described above, the attribute and the association name assigned to each character string with reference to the above-mentioned related dictionary 5d are assigned to each cell. Then, the data allocated to each cell is stored in the cell area memory 5e of the storage medium 5 of the storage device 6 (Step S9). For example, if the cell names are A1 and A
As shown in FIG. Are stored, respectively, so that their attributes are characters. In this case, A1 and A2 are independent cells that are not grouped and have no subordinate cells. Are assigned as the attributes obtained by referring to the related dictionary 5d. Then, the character string originally stored in the cell is registered as a background character, not the data actually stored in the cell. In addition, date and No. Has no association name in the association dictionary 5d, so only the attribute is assigned to the cell.
【0061】また、同様に、B1、C1〜C3のセルに
おいても、文字列が格納されているにも係わらず、グル
ープ化されておらず、従属する空白のセルがないので、
セルに格納された文字列が、背景の文字とされ、セルに
は別のデータが格納されることになる。そして、関連辞
書5dから文字列に基づいて検索されたデータに基づい
て、様が格納されていたセルB1には、属性として文字
が割り付けられ、税込合計金額が格納されていたセルC
1には、属性として数値が割り付けられるとともに、関
連付け名称として税込合計金額が割り付けられ、税率が
格納されていたセルC2には、属性として数値が割り付
けられるとともに、関連付け名称として税率が割り付け
られ、消費税額が格納されていたセル3には、属性とし
て数値が割り付けられるとともに、関連付け名称として
消費税額が割り付けられる。Similarly, the cells B1 and C1 to C3 are not grouped and have no subordinate blank cells even though the character strings are stored.
The character string stored in the cell is used as the background character, and another data is stored in the cell. Then, based on the data retrieved from the related dictionary 5d based on the character string, the cell B1 in which the state is stored is assigned a character as an attribute, and the cell C1 in which the total amount including tax is stored.
Numeral 1 is assigned a numerical value as an attribute, a tax-included total amount is assigned as an association name, and a numerical value is assigned as an attribute to the cell C2 in which the tax rate is stored, and a tax rate is assigned as an association name, and To the cell 3 in which the tax amount has been stored, a numerical value is assigned as an attribute, and a consumption tax amount is assigned as an association name.
【0062】また、品名、摘要がそれぞれ格納されたセ
ルD1、D5には、E1〜L1、E5〜L5の縦の従属
グループが従属している。従って、品名もしくは摘要に
従属するE1〜L1、E5〜L5までの従属グループに
属するセルに、関連辞書5dにおいて、品名、摘要に対
応する属性として文字が割り付けられる。すなわち、文
字列が格納された独立したセルの場合とは異なり、文字
列が格納されるとともに従属グループのセルが従属する
セルにおいては、関連辞書5dにおいて、上記文字列に
対応する属性及び関連付け名称が、文字列が格納された
セルに続く従属グループに属するセルに割り付けられる
ようになっている。Further, the cells D1 and D5 in which the product name and the description are stored, respectively, are subordinate to the vertical subordinate groups E1 to L1 and E5 to L5. Therefore, characters are assigned to the cells belonging to the subgroups E1 to L1 and E5 to L5 subordinate to the product name or description in the related dictionary 5d as attributes corresponding to the product name and description. That is, unlike the case of an independent cell in which a character string is stored, in a cell in which a character string is stored and a cell of a subordinate group is dependent, an attribute and an association name corresponding to the character string are stored in a related dictionary 5d. Is assigned to a cell belonging to a subordinate group following the cell in which the character string is stored.
【0063】なお、品名や摘要という文字列が格納され
た先頭のセルは、文字列が格納されることにより属性が
そのまま文字とされる。また、同様に、それぞれ、数
量、単価、金額が格納されたセルD2、D3、D4に
は、縦のE2〜L2、E3〜L3、E4〜L4の従属グ
ループが従属している。従って、文字列が格納されたD
2、D3、D4に続くE2〜L2、E3〜L3、E4〜
L4までの従属グループに属するセルに、関連辞書5d
において、数量、単価、金額に対応する属性として数値
が割り付けられる。なお、セルD2、D3、D4は、文
字列が格納されているので、属性がそのまま文字とされ
る。The attribute of the first cell in which a character string such as an article name or a summary is stored is directly changed to a character by storing the character string. Similarly, the subordinate groups E2 to L2, E3 to L3, and E4 to L4 are subordinate to the cells D2, D3, and D4 in which the quantities, unit prices, and amounts are stored, respectively. Therefore, when the character string is stored in D
2, D3, D4 followed by E2 to L2, E3 to L3, E4 to
A cell belonging to the subordinate group up to L4 has a related dictionary 5d
In, numerical values are assigned as attributes corresponding to the quantity, unit price, and amount. Since cells D2, D3, and D4 each store a character string, the attribute is directly used as a character.
【0064】また、E2〜L2、E3〜L3、E4〜L
4の従属グループに属するセルには、関連辞書5dにお
いて、数量、単価、金額に対応する関連付け名称とし
て、それぞれ、数量、単価、金額が割り付けられる。ま
た、合計が格納されたセルM1には、横のM2〜M5の
従属グループが従属している。従って、M2〜M5の従
属グループに属するセルに、関連辞書5dにおいて、合
計に対応する属性及び関連付け名称として、数値及び合
計金額が割り付けれることになるが、ここでは、合計の
関連付け名称が合計金額となっており、該関連付け名称
が、関連辞書5dの各セルとの関係に示されるように関
連付け名称が金額とされたセルとだけ関連するので、関
連データが金額とされたセルE4〜L4を含むグループ
(D4〜M4)に含まれるM4だけに、属性として数値
が割り付けられ、関連付け名称として合計金額が割り付
けられる。なお、M2、M3及びM5のセルには、属性
を割り付けないものとしても良いし、属性として数値を
割り付けるものとしても良い。Further, E2 to L2, E3 to L3, E4 to L
To the cells belonging to the subordinate group No. 4, the quantity, the unit price, and the amount are respectively assigned as the association names corresponding to the quantity, the unit price, and the amount in the related dictionary 5d. In addition, the cell M1 in which the total is stored is subordinate to the subordinate groups M2 to M5. Therefore, a numerical value and a total amount are assigned to the cells belonging to the subordinate groups of M2 to M5 as the attribute and the association name corresponding to the total in the association dictionary 5d. Since the association name is related only to the cell whose association name is an amount as shown in the relationship with each cell of the association dictionary 5d, the cells E4 to L4 whose association data is an amount are A numerical value is assigned as an attribute to only M4 included in the containing group (D4 to M4), and a total amount is assigned as an association name. Note that attributes may not be assigned to the cells M2, M3, and M5, or numerical values may be assigned as attributes.
【0065】次に、各セルに割り付けられた関連付け名
称と関連辞書5dとに基づいて、演算結果を割り当てる
演算結果セル、すなわち、数式が格納されるセルを判別
する(ステップS10)。例えば、関連辞書5dには、
今回の帳票データで用いられた関連付け名称のうちの各
セルとの関係の演算情報に対応付けられている関連付け
名称として、金額、合計金額、消費税額、税込合計金額
が登録されている。Next, an operation result cell to which an operation result is assigned, that is, a cell storing a mathematical expression, is determined based on the association name assigned to each cell and the association dictionary 5d (step S10). For example, in the related dictionary 5d,
Among the association names used in the present form data, the amount, the total amount, the consumption tax amount, and the total amount including tax are registered as the association names associated with the calculation information of the relationship with each cell.
【0066】そして、図4に示すセル領域メモリ5eに
示されるように、関連付け名称として、金額、合計金
額、消費税額、税込合計金額が割り付けられたセルは、
E4〜L4、M4、C3、C1となり、これらのセルが
数式が格納される演算結果セルとなる。次いで、これら
の演算結果セルに数式を展開し、該数式をセルに対応し
てセル領域メモリ5eに格納する(ステップS11)。Then, as shown in the cell area memory 5e shown in FIG. 4, the cell to which the amount, the total amount, the consumption tax amount, and the total amount including tax are assigned as the association names is
E4 to L4, M4, C3, and C1, and these cells are calculation result cells in which formulas are stored. Next, a mathematical expression is developed in these operation result cells, and the mathematical expression is stored in the cell area memory 5e corresponding to the cell (step S11).
【0067】例えば、E4〜L4のセルにおいては、上
述のように関連付け名称が金額とされ、関連辞書5dに
おいて、金額に対応する各セルとの関係が数量*単価と
されている。従って、E4〜L4には、関連付け名称が
数量のセルに格納される数値に関連付け名称が単価のセ
ルに格納される数値を乗算する数式が格納されることに
なる。For example, in the cells E4 to L4, the association name is the amount as described above, and the relation with each cell corresponding to the amount is the quantity * unit price in the association dictionary 5d. Therefore, in E4 to L4, a formula for multiplying the numerical value stored in the cell of the association name by the numerical value stored in the cell of the unit price is stored.
【0068】ここで、関連付け名称が数量とされるセル
は、E2〜L2であり、関連付け名称が単価とされるセ
ルは、E3〜L3であり、それぞれの関連付け名称に複
数のセルが対応している。このような場合には、基本的
に同じグループ内に属するセル同士で演算を行うように
なっており、関連付け名称が金額とされたE4のセルに
は、同じ横のグループに属する関連付け名称が数量とさ
れたE2と、関連付け名称が単価とされたE3とで演算
を行う数式が格納されることになり、実際には、E2*
E3といった数式が格納される。Here, cells whose association names are quantities are E2 to L2, cells whose association names are unit prices are E3 to L3, and a plurality of cells correspond to each association name. I have. In such a case, the calculation is basically performed between cells belonging to the same group, and the cell of E4 in which the association name is a monetary amount has the association name belonging to the same horizontal group as the quantity. Is calculated, and a mathematical expression for performing an operation using E3 whose association name is a unit price is stored. Actually, E2 *
A mathematical expression such as E3 is stored.
【0069】同様に、関連付け名称が金額とされたF
4、G4、H4、I4、J4、K4、L4には、それぞ
れ同じグループ内に属するセルで、且つ、関連付け名称
が数量、単価とされたセル同士を演算させる式として、
F2*F3、G2*G3、H2*H3、I2*I3、J
2*J3、K2*K3、L2*L3が格納される。Similarly, F in which the association name is the amount
4, G4, H4, I4, J4, K4, and L4 are expressions for calculating cells belonging to the same group and having associated names of quantity and unit price, respectively.
F2 * F3, G2 * G3, H2 * H3, I2 * I3, J
2 * J3, K2 * K3, L2 * L3 are stored.
【0070】また、M4のセルは、関連付け名称が合計
金額とされ、関連辞書5dにおいて、合計金額に対応す
る各セルとの関係が、金額セルの数値合計となっている
ので、関連付け名称が金額のセルに格納される数値が合
計されることになる。そして、関連付け名称が金額とさ
れたセルは、E4〜L4までのセルであり、これらのセ
ルに格納される数値が合計されることになるので、M4
に格納される数式は合計の関数式であるSUMを用い
て、SUM(E4:L4)という数式が格納される。In the cell of M4, the association name is the total amount, and the relation with each cell corresponding to the total amount is the sum of the numerical value cells in the association dictionary 5d. The numbers stored in the cells of are summed. Then, the cells whose association names are the amounts are the cells from E4 to L4, and the numerical values stored in these cells are summed up.
The expression stored in is stored as SUM (E4: L4) using SUM which is a total function expression.
【0071】また、C3のセルは、関連付け名称が消費
税額とされ、関連辞書5dにおいて、消費税額に対応す
る各セルとの関係が、合計金額*税率となっているの
で、関連付け名称が合計金額のセルに格納される数値
に、関連付け名称が税率のセルに格納された数値を乗算
することになる。そして、関連付け名称が合計金額とさ
れたセルは、M4のセルであり、関連付け名称が税率と
されたセルは、C2のセルなので、M4のセルに格納さ
れた数値に、C2のセルに格納された数値を乗算するこ
とになる。従って、消費税額とされたC3のセルに、M
4*C2という数式が格納されることになる。The cell C3 has an association name of the consumption tax amount, and the relation with each cell corresponding to the consumption tax amount in the association dictionary 5d is "total amount * tax rate". Is multiplied by the numerical value stored in the cell whose association name is the tax rate. Then, the cell whose association name is the total amount is the cell of M4, and the cell whose association name is the tax rate is the cell of C2. Therefore, the cell stored in the cell of M4 is stored in the cell of C2. Multiplied by Therefore, the cell of C3 determined as the consumption tax amount includes M
The mathematical expression 4 * C2 is stored.
【0072】また、C1のセルは、関連付け名称が税込
合計金額とされ、関連辞書5dにおいて、税込合計金額
に対応する各セルとの関係の演算情報が、合計金額+消
費税額となっているので、関連付け名称が合計金額のセ
ルに格納される数値に、関連付け名称が消費税額のセル
に格納された数値を加算することになる。The cell C1 has an association name of the total tax-included amount, and in the related dictionary 5d, the calculation information of the relationship with each cell corresponding to the total tax-included amount is the total amount + the consumption tax amount. Then, the numerical value stored in the cell of the consumption tax amount is added to the numerical value of the association name stored in the cell of the total amount.
【0073】そして、関連付け名称が合計金額とされた
セルは、M4のセルであり、関連付け名称が消費税額と
されたセルは、C3のセルでなので、M4のセルに格納
された数値に、C2のセルに格納された数値を乗算する
ことになる。従って、消費税額とされたC3のセルに、
M4+C3という数式が格納されることになる。Since the cell whose association name is the total amount is the cell of M4 and the cell whose association name is the consumption tax amount is the cell of C3, the numerical value stored in the cell of M4 is C2. Will be multiplied by the number stored in the cell. Therefore, the cell of C3, which is regarded as the consumption tax amount,
The formula of M4 + C3 is stored.
【0074】そして、演算結果セルに数式が割り付けら
れると表示装置2の表示画面上においては、図11に示
すように、帳票データfにおいて演算結果セルに数式が
表示された状態となる(ステップS12)。また、これ
により帳票フォーマットを作成する処理が終了すること
になるが、実際に帳票を作成する際には、上述の帳票デ
ータの空白のセルに必要事項を入力するデータ入力処理
を行なった後に、帳票データを印刷することになる。When the formula is assigned to the calculation result cell, the formula is displayed in the calculation result cell in the form data f on the display screen of the display device 2 as shown in FIG. 11 (step S12). ). Also, this ends the process of creating the form format, but when actually creating the form, after performing the data input process of inputting the necessary items to the blank cells of the form data described above, The form data will be printed.
【0075】なお、図12の帳票データgは、図11に
示される表示装置2の表示画面上の帳票データfをデー
タを入力せずに印字したものであり、各罫線の配置、罫
線の太さ、フォントの大きさがイメージリーダ4で読み
取られた既存の紙の帳票に基づいて再現されるようにな
っている。また、図12の帳票データgにおいては、演
算結果セルに数式を表示させるようにして印刷されてい
るが、実際に使用される納品書として帳票データgを印
字する場合には、数式は表示されないものとなってい
る。The form data g shown in FIG. 12 is obtained by printing the form data f on the display screen of the display device 2 shown in FIG. 11 without inputting the data. The font size is reproduced based on the existing paper form read by the image reader 4. Further, in the form data g of FIG. 12, the formula is printed so as to display the formula in the calculation result cell. However, when the form data g is printed as a delivery note to be actually used, the formula is not displayed. It has become something.
【0076】以上のように、上記帳票処理装置による帳
票処理によれば、既存の紙の帳票をイメージ入力した後
には、文字の誤認式の訂正や、その他の訂正を必要とし
ないかぎり、自動的にセルに格納するデータを入力する
だけの状態となる。すなわち、各セルの属性が決められ
るとともに、数式が格納されるセルに数式が格納され
て、帳票フォーマットが完成した状態となる。As described above, according to the form processing by the form processing apparatus, after inputting an image of an existing paper form, unless a correction of an erroneous character recognition type or other correction is required, it is automatically performed. Only the data to be stored in the cell is input. That is, the attribute of each cell is determined, and the formula is stored in the cell where the formula is stored, and the form format is completed.
【0077】従って、オペレータにより帳票フォーマッ
トの設定を行う必要がなく、オペレータの操作を大幅に
省力化することができる。また、帳票フォーマットの作
成処理には、基本的に、表計算プログラムについての専
門知識が必要であるが、その部分が上記帳票処理方法に
よりコンピュータで自動処理可能となり、誰でもが簡単
に既存の紙の帳票から帳票フォーマットを作成すること
が可能となる。Accordingly, there is no need to set the form format by the operator, and the operation of the operator can be greatly saved. In addition, the processing of creating a form format basically requires specialized knowledge of a spreadsheet program, but this part can be automatically processed by a computer using the form processing method described above, and anyone can easily use an existing paper format. It is possible to create a form format from this form.
【0078】次に、本発明の実施の形態の第二例の帳票
処理装置を説明する。第二例の帳票処理装置において
は、本発明をイメージリーダ4を用いずに、キーボー
ド、マウス等を有する入力装置1を用いた帳票フォーマ
ットの作成処理に応用したものである。そして、第二例
の帳票処理装置は、基本的に、図1に示される第一例の
帳票処理装置と同一のものであるが、第二例の帳票処理
装置は、イメージリーダ4を必ずしも必要とせず、第一
例の帳票処理装置からイメージリーダ4を除いたものと
しても良い。Next, a description will be given of a form processing apparatus according to a second embodiment of the present invention. In the form processing apparatus of the second example, the present invention is applied to the processing of creating a form format using the input device 1 having a keyboard, a mouse, etc., without using the image reader 4. The form processing apparatus of the second example is basically the same as the form processing apparatus of the first example shown in FIG. 1, but the form processing apparatus of the second example does not necessarily require the image reader 4. Instead, the image reader 4 may be removed from the form processing apparatus of the first example.
【0079】また、第二例においては、上述のようにイ
メージリーダ4が用いられないので、CPU8におい
て、イメージリーダ4により読み取られた紙の帳票のイ
メージデータから罫線を抽出してその配置位置や太さの
データを読み取ったり、イメージデータ上の文字を認識
したりする必要がなく、第二例においてCPU8がイメ
ージデータを用いた認識処理の機能を持たなくても良
い。Further, in the second example, since the image reader 4 is not used as described above, the CPU 8 extracts ruled lines from the image data of the paper form read by the image reader 4 to determine There is no need to read thickness data or recognize characters on image data, and in the second example, the CPU 8 may not have a function of a recognition process using image data.
【0080】なお、ここでは、第2例の帳票処理装置
は、基本的に、第一例の帳票処理装置と同様なものが用
いられるものとしてその説明を省略する。以下に、第二
例の帳票処理装置による帳票処理プログラムを用いた帳
票処理方法について説明する。まず、帳票処理装置にお
いては、従来のいわゆる表計算処理プログラムと同様の
処理が行われることになり、縦横のセルからなる帳票デ
ータにオペレータがデータを入力する状態となる。Here, the form processing device of the second example is basically the same as the form processing device of the first example, and the description thereof is omitted. A form processing method using a form processing program by the form processing apparatus of the second example will be described below. First, in the form processing apparatus, the same processing as that of a conventional so-called spreadsheet processing program is performed, and the operator enters data into form data composed of vertical and horizontal cells.
【0081】この際に、表示装置2の表示画面には、左
端側に縦に個々の行を示す行番号が表示され、上端側に
横に個々の列を示す列番号(ここでは、数字ではなくア
ルファベットが用いられている)が表示されている。す
なわち、印刷時のフォーマットが決められる前の状態の
帳票データが表示されている。At this time, on the display screen of the display device 2, row numbers indicating individual rows are displayed vertically on the left end side, and column numbers indicating individual columns horizontally (here, numerals are shown) on the upper end side. Without the use of alphabets). That is, the form data before the format at the time of printing is determined is displayed.
【0082】例えば、この状態で、オペレータが、帳票
で用いられる項目名を入力することになる。例えば、図
13(A)に示すように、帳票データhに、名称、規
格、QTY(数量)、単価、金額、備考、合計といった
項目名を入力する。ここまでは、基本的に従来の表計算
処理プログラムを用いた表の作成と同様の処理となる。For example, in this state, the operator inputs an item name used in the form. For example, as shown in FIG. 13A, item names such as name, standard, QTY (quantity), unit price, amount of money, remarks, and total are input to the form data h. Up to this point, the processing is basically the same as the creation of a table using a conventional spreadsheet processing program.
【0083】次いで、項目名を入力した後に、例えば、
図13(B)に示すように、帳票データiにおいて、演
算処理に関係するセルを指定する。ここでは、QTY
(数量)、単価、金額及び合計という項目名を指定して
選択する。なお、ここでは、合計という項目名が入力さ
れたセルではなく、合計という項目名が入力されたセル
と同じ行で、かつ、金額と同じ列のセルを指定している
が、これは、合計が金額の合計を示すものであり、QT
Yや単価の合計を示すものではないことを示すものであ
る。Next, after inputting the item name, for example,
As shown in FIG. 13B, in the form data i, a cell related to the arithmetic processing is specified. Here, QTY
Specify and select the item names (quantity), unit price, amount and total. Note that here, instead of the cell in which the item name “Sum” is input, the cell in the same row as the cell in which the item name “Sum” is input and in the same column as the amount is specified. Indicates the total amount of money, and QT
It does not indicate the sum of Y or the unit price.
【0084】なお、合計は、図13(D)に示す関連辞
書5dの抜粋5d1において、金額の列の数値合計であ
り、特に上述のセルを指定しなくとも、合計という項目
名が入力されたセルを指定しても良い。また、ここで用
いられる関連辞書5dには、図3に示す関連辞書5dの
データの他に図13(d)の関連辞書5dの抜粋5d1
に示されるようなデータが登録されている。ここで、上
記第一例の帳票処理のステップS6以降と同様の処理を
開始するようになっており、例えば、帳票処理の開始を
命令することにより、項目名として入力された文字列に
基づいて関連辞書5dを参照し、セルの属性や他のセル
との関連付けを判別する。The sum is the sum of the numerical values in the column of the amount of money in the excerpt 5d1 of the related dictionary 5d shown in FIG. 13 (D), and the item name “sum” is input without particularly specifying the above-mentioned cell. A cell may be specified. The related dictionary 5d used here includes, in addition to the data of the related dictionary 5d shown in FIG. 3, an excerpt 5d1 of the related dictionary 5d in FIG.
Is registered as shown in FIG. Here, the same processing as that after step S6 of the form processing of the first example is started. For example, by instructing the start of the form processing, based on the character string input as the item name, The attribute of the cell and the association with other cells are determined with reference to the related dictionary 5d.
【0085】ここでは、例えば、図3に示す関連辞書5
d及び関連辞書5dの抜粋5diに示すように、金額と
いう文字列に従属するセルの関連付け名称が金額とされ
るとともに各セルとの関係がQTY*単価とされ、単価
という文字列に従属するセルの関連付け名称が単価とさ
れる。Here, for example, the related dictionary 5 shown in FIG.
d and an extract 5di of the related dictionary 5d, the association name of the cell subordinate to the character string of the amount is set to the amount, and the relationship with each cell is set to QTY * unit price. Is associated with the unit price.
【0086】また、例えば、QTY(数量)という文字
列に従属するセルの関連付け名称がQTYとされ、合計
という文字列に従属するセルの関連付け名称が合計金額
とされるとともに各セルとの関係が金額の列の数値合計
とされている。次に、第一例のステップS8及びステッ
プS9と同様に、セルのグループ化の処理が行われる。Further, for example, the association name of the cell subordinate to the character string QTY (quantity) is set to QTY, the association name of the cell subordinate to the character string total is the total amount, and the relationship with each cell is determined. It is the sum of the numbers in the amount column. Next, similar to steps S8 and S9 of the first example, a cell grouping process is performed.
【0087】例えば、QTY、単価及び金額という文字
列が先頭のセルに入力された各列のセルがそれぞれグル
ープ化されるとともに、横の各行のセルがグループ化さ
れる。また、ここで、先頭のセルに合計という文字列が
入力された横(行)のグループとQTY、単価及び金額
という文字列が入力された縦(列)のグループとが重な
るので、QTY、単価及び金額のグループのうちのこれ
ら文字列に従属する従属グループをそれぞれC2〜C1
0、D2〜D10、E2〜E10とし、合計に従属する
従属グループをB11〜F11とするものとする。For example, cells in each column in which a character string of QTY, unit price, and amount are input in the first cell are grouped, and cells in each horizontal row are grouped. Also, here, the horizontal (row) group in which the character string “total” is input in the first cell and the vertical (column) group in which the character strings “QTY”, “unit price” and “amount” are input overlap each other. And the subordinate groups subordinate to these character strings of the group of amounts are C2 to C1, respectively.
0, D2 to D10, E2 to E10, and the subordinate groups subordinate to the total are B11 to F11.
【0088】そして、上記一例のステップS9の処理と
同様に、属性、関連付け名称、グループ情報をセル領域
メモリ5eに設定する。すなわち、各セルに数値、文字
等の属性が従属グループ毎に割り付けられる。たとえ
ば、QTY、単価及び金額のそれぞれの従属グループに
属性としてそれぞれ数値が割り付けられ、関連付け名称
としてそれぞれQTY、単価、金額が割り付けられる。Then, similarly to the process of step S9 in the above example, the attribute, the association name, and the group information are set in the cell area memory 5e. That is, attributes such as numerical values and characters are assigned to each cell for each subordinate group. For example, a numerical value is assigned as an attribute to each of the subordinate groups of QTY, unit price, and amount, and QTY, unit price, and amount are assigned as association names, respectively.
【0089】また、合計の従属グループとして、B11
〜F11のうちの金額の列であるE11に属性として数
値が割り付けられ、関連付け名称として合計金額が割り
付けられる。これは、E11が金額の列と合計の行の交
点となるセルであり、かつ、合計が関連辞書5dにおい
て金額の列の数値合計とされているからである。Further, as a total subordinate group, B11
A numerical value is assigned as an attribute to E11 which is a column of the amount of money from F11 to F11, and a total amount is assigned as an association name. This is because E11 is a cell that is the intersection of the amount column and the total line, and the total is the numerical sum of the amount column in the related dictionary 5d.
【0090】そして、上記第一例と同様にステップS1
0の処理を行い、関連辞書5dにおいて、各セルとの関
係の演算情報と対応して登録された関連付け名称が割り
付けられたセル、ここでは、関連付け名称として金額及
び合計金額が割り付けられたセル(E2〜E10、E1
1)が数式が格納される演算結果セルとされる。Then, as in the first example, step S1
0, and in the related dictionary 5d, the cell to which the association name registered corresponding to the calculation information of the relationship with each cell is assigned, in this case, the cell to which the amount and the total amount are assigned as the association name ( E2 to E10, E1
1) is an operation result cell in which a formula is stored.
【0091】そして、上記第一例と同様にステップS1
1の処理を行い、上記演算結果セルに数式を割り付ける
ことになる。例えば、図13(C)の帳票データjに示
すように、E2〜E10の関連付け名称が金額とされた
セルは、各セルとの関係のデータがQTY*単価とされ
ているので、上記第一例の場合と同様に同一行の関連付
け名称がQTYとされたセルと、関連付け名称が単価と
されたセルとにそれぞれ格納された数値を乗算する数
式、例えば、C2*D2、C3*D3、C4*D4、…
が格納される。Then, as in the first example, step S1
1 is performed, and a formula is assigned to the operation result cell. For example, as shown in the form data j in FIG. 13C, the cells whose association names of E2 to E10 are monetary values have QTY * unit prices because the data relating to each cell is QTY * unit price. As in the case of the example, a mathematical expression for multiplying the numerical value stored in each cell of the same row whose association name is QTY and the cell whose association name is unit price, for example, C2 * D2, C3 * D3, C4 * D4, ...
Is stored.
【0092】従って、上記第二例の帳票処理において
は、第一例のように、既存の紙の帳票のイメージを読み
込んで帳票データを作成する場合ではなく、コンピュー
タ上において最初から帳票データを作成する場合におい
ても、各セルに属性や数式をオペレータが割り付ける必
要がなく、項目名を入力するだけで、属性や数式が各セ
ルに割り付けられるので、帳票データの作成を含むいわ
ゆる表計算処理において、オペレータの操作を大幅に省
力化することができる。さらに、第二例においては、帳
票データ上の指定された範囲のセルにおいて、上記帳票
処理を行うことができるので、大きな帳票データなどに
おいて、必要の箇所だけ上述のような帳票処理を行うこ
とができ、処理時間の短縮を図ることができる。なお、
上記帳票処理装置においては、上記数式以外の処理とし
て、他のデータファイルからデータを取り出すような処
理も定義できるようになっているものとしても良く、例
えば、商品名や単価といった文字列に従属するセルに対
する処理として商品データファイルから商品コードに対
応する商品名や単価を読み出すようにする処理を定義で
きるようにしても良い。Therefore, in the form processing of the second example, the form data is created from the beginning on the computer instead of reading the image of the existing paper form and creating the form data as in the first example. Even in the case where the operator does not need to assign attributes and formulas to each cell, simply enter an item name, attributes and formulas are assigned to each cell, so in a so-called spreadsheet process including creation of form data, The labor of the operator can be greatly reduced. Furthermore, in the second example, since the above-described form processing can be performed in a specified range of cells on the form data, it is possible to perform the above-described form processing only on a necessary portion in a large form data. The processing time can be shortened. In addition,
In the form processing device, as a process other than the mathematical formula, a process for extracting data from another data file may be defined. For example, the process depends on a character string such as a product name or a unit price. As a process for a cell, a process for reading a product name and a unit price corresponding to a product code from a product data file may be defined.
【0093】[0093]
【発明の効果】本発明の請求項1記載の帳票処理装置に
よれば、帳票データに項目名となる文字列を入力するだ
けで、数式を格納すべきセルに数式が格納されてしまう
ので、帳票フォーマットの作成処理において、オペレー
タの数式を入力する操作を省力化することができる。ま
た、帳票フォーマットの作成処理において、数式を入力
する操作は、少なくとも表計算処理の基礎的知識を必要
とするので、表計算処理においてデータ入力しかしたこ
とがない者にとっては、難しい操作となるが、この操作
が帳票処理装置により自動処理されてしまうので初心者
にも容易に帳票フォーマットの作成を行えるようにする
ことができる。According to the form processing apparatus according to the first aspect of the present invention, a formula is stored in a cell where a formula is to be stored simply by inputting a character string serving as an item name in the form data. In the process of creating the form format, the operation of inputting the mathematical formula by the operator can be saved. In addition, in the process of creating a form format, the operation of inputting a mathematical expression requires at least basic knowledge of spreadsheet processing, which is a difficult operation for those who have only input data in spreadsheet processing. Since this operation is automatically processed by the form processing apparatus, a beginner can easily create a form format.
【0094】本発明の請求項2記載の帳票処理装置によ
れば、特定の数式が格納されるセルか否かと、特定の数
式に用いられる数値が格納されるセルか否かとを判別す
るための判別情報を、上記関連付け名称と演算情報との
組み合わせで現すことができるとともに、関連付け名称
は基本的に短い文字列であり、演算情報は基本的に上記
関連付け名称を用いた式であり、判別情報を極めて簡潔
なものとすることができる。従って、判別情報の記憶容
量を削減することができる。According to the form processing apparatus according to the second aspect of the present invention, it is determined whether a cell stores a specific formula and a cell stores a numerical value used for the specific formula. The discrimination information can be represented by a combination of the association name and the operation information, and the association name is basically a short character string, and the operation information is basically an expression using the association name. Can be made very simple. Therefore, the storage capacity of the determination information can be reduced.
【0095】本発明の請求項3記載の帳票処理装置によ
れば、帳票の制定用紙を読み込ませることにより、制定
用紙に印刷された項目名が入力された帳票データを得る
ことができ、次いで、請求項1または2記載の構成と同
様な処理を行うことにより、帳票データに数式を入力す
ることができるので、帳票の制定用紙を読み込ませるだ
けの操作で、帳票フォーマットが作成されてしまうこと
になり、後は必要なデータを入力して印字するだけの操
作で帳票をプリントすることが可能となる。従って、さ
らに帳票処理を省力化することが可能となるとともに、
初心者にも極めて容易に帳票フォーマットの作成を行う
ことが可能となる。According to the form processing device of the third aspect of the present invention, the form data in which the item names printed on the form sheets are input can be obtained by reading the form form sheets. By performing the same processing as in the configuration of claim 1 or 2, it is possible to input a formula into the form data, so that a form format is created only by reading the form enactment sheet. After that, the form can be printed by simply inputting necessary data and printing. Therefore, it becomes possible to further reduce the form processing,
Even a beginner can very easily create a form format.
【0096】本発明の請求項4記載の帳票処理装置によ
れば、帳票データ上に指定された範囲において、上記請
求項1または2記載の構成と同様の処理により、セルの
数式を割り付けることが可能なる。従って、セルに格納
される数式に関連するセルだけを処理対象とすることに
より、処理時間の削減を図ることができる。本発明の請
求項5記載の記憶媒体によれば、コンピュータシステム
において、上記請求項1記載の帳票処理装置と同様の処
理を行うことが可能となり、請求項1記載の構成と同様
の効果を奏することができる。According to the form processing apparatus of the fourth aspect of the present invention, within the range specified on the form data, the formula of the cell can be allocated by the same processing as in the configuration of the first or second aspect. Possible. Therefore, the processing time can be reduced by processing only the cells related to the formula stored in the cells. According to the storage medium of the fifth aspect of the present invention, it is possible to perform the same processing as that of the form processing apparatus of the first aspect in the computer system, and the same effect as the configuration of the first aspect is obtained. be able to.
【図1】本発明の実施形態の第一例の帳票処理装置の概
略構成を示すブロック図である。FIG. 1 is a block diagram illustrating a schematic configuration of a form processing device according to a first example of an embodiment of the present invention.
【図2】第一例の帳票処理装置の記憶装置に記憶される
データを説明するための図面である。FIG. 2 is a diagram for explaining data stored in a storage device of the form processing apparatus of the first example.
【図3】第一例の帳票処理装置の記憶装置に記憶される
関連辞書を説明するための図面である。FIG. 3 is a diagram for explaining a related dictionary stored in a storage device of the form processing device of the first example.
【図4】第一例の帳票処理装置の記憶装置に記憶される
セル領域メモリを説明するための図面である。FIG. 4 is a diagram for explaining a cell area memory stored in a storage device of the form processing apparatus of the first example.
【図5】第一例の帳票処理装置による帳票処理を説明す
るための図面である。FIG. 5 is a drawing for explaining a form processing by the form processing apparatus of the first example.
【図6】第一例の帳票処理装置によりイメージデータと
して読み込まれる帳票を示す図面である。FIG. 6 is a drawing showing a form read as image data by the form processing apparatus of the first example.
【図7】第一例の帳票処理装置に読み込まれた帳票のイ
メージデータから抽出される罫線データを示す図面であ
る。FIG. 7 is a diagram showing ruled line data extracted from image data of a form read into the form processing apparatus of the first example.
【図8】第一例の帳票処理装置に読み込まれた帳票のイ
メージデータから作成される帳票データを示す図面であ
る。FIG. 8 is a drawing showing form data created from image data of a form read into the form processing apparatus of the first example.
【図9】第一例の帳票処理装置に読み込まれた帳票のイ
メージデータから認識される文字の配置イメージを示す
図面である。FIG. 9 is a diagram showing an arrangement image of characters recognized from image data of a form read by the form processing apparatus of the first example.
【図10】第一例の帳票処理装置により作成されるとと
もに文字列が入力された帳票データを示す図面である。FIG. 10 is a diagram showing form data created by the form processing apparatus of the first example and having a character string input.
【図11】第一例の帳票処理装置により作成されるとと
もに数式が入力された帳票データを示す図面である。FIG. 11 is a drawing showing form data created by the form processing apparatus of the first example and into which a mathematical expression has been input.
【図12】第一例の帳票処理装置から出力される帳票を
示す図面である。FIG. 12 is a drawing showing a form output from the form processing apparatus of the first example.
【図13】第二例の帳票処理装置による帳票処理を説明
するための帳票データを示す図面である。FIG. 13 is a drawing showing form data for explaining form processing by the form processing apparatus of the second example.
1 入力装置(指定手段) 4 イメージリーダ(イメージ読取手段) 6 記憶装置(判別情報記憶手段) 8 CPU(従属セル判別手段、セル判別手段、数式
割付手段、認識手段、帳票データ作成手段)Reference Signs List 1 input device (designating means) 4 image reader (image reading means) 6 storage device (discrimination information storing means) 8 CPU (dependent cell discriminating means, cell discriminating means, formula assigning means, recognizing means, form data creating means)
Claims (5)
て、他のセルに格納される数値を用いた数式を割り付け
るセルを決定し、該セルに上記数式を割り付ける帳票処
理装置であって、 上記帳票データのセル内に配置される文字列に対応し
て、該文字列に従属するセルが、特定の数式が格納され
るセルか否かを定めるとともに、特定の数式に用いられ
る数値が格納されるセルか否かを定めた判別情報を記憶
し、かつ、従属するセルに数式が格納される文字列に対
応して、上記数式を上記判別情報に基づく演算方法とし
て示した演算情報を記憶する判別情報記憶手段と、 文字列が配置されたセルと他のセルとの配置位置に基づ
いて、文字列に従属するセルを判別する従属セル判別手
段と、 上記判別情報記憶手段に記憶された判別情報に基づい
て、上記従属セル判別手段により判別された各文字列に
従属するセルについて、それぞれ、特定の数式が格納さ
れるセルか否かと、特定の数式に用いられる数値が格納
されるセルか否かとを判別するセル判別手段と、 上記セル判別手段により数式が格納されると判別された
セルに、上記判別情報記憶手段に記憶された演算情報に
基づいて、数式に用いられる数値が格納されると判別さ
れたセルのセル名を用いた数式を作成して割り付ける数
式割付手段とを具備してなることを特徴とする帳票処理
装置。1. A form processing apparatus for deciding a cell to which a formula using a numerical value stored in another cell is assigned in form data including a plurality of cells, and assigning the formula to the cell. In response to a character string arranged in a cell, a cell that depends on the character string determines whether or not a cell in which a specific formula is stored, and a cell in which a numerical value used in the specific formula is stored Discrimination information that stores discrimination information that determines whether or not, and that stores calculation information that indicates the formula as a calculation method based on the discrimination information, corresponding to a character string in which a formula is stored in a dependent cell. Storage means; subordinate cell discriminating means for discriminating a cell dependent on the character string based on the arrangement position of the cell in which the character string is arranged and another cell; and discrimination information stored in the discrimination information storage means. On the basis of, For each of the cells dependent on each character string determined by the dependent cell determination means, it is determined whether or not each of the cells stores a specific formula and whether or not the cell stores a numerical value used for the specific formula. Cell discriminating means, and it is determined that a numerical value used in the formula is stored in the cell in which the formula is stored by the cell discriminating means, based on the calculation information stored in the discriminating information storage means. A form processing apparatus comprising: a formula assigning unit that creates and assigns a formula using a cell name of a cell.
もに数式が格納されるセル、もしくは、文字列に従属す
るとともに数式に用いられる数値が格納されるセルに文
字列に対応して付けられる関連付け名称とされ、上記演
算情報が関連付け名称を用いた演算方法を示すものとさ
れ、 上記セル判別手段が、上記判別情報記憶手段において上
記関連付け名称が対応して登録されている文字列に従属
するセルに上記関連付け名称を割り付け、 上記数式割付手段は、上記関連付け名称のうちの判別情
報記憶手段において演算情報が対応して登録される関連
付け名称が付けられたセルに、上記演算情報を関連付け
名称が割り付けられた各セルを示す各セル番号を用いた
数式に変換して割り付けることを特徴とする請求項1記
載の帳票処理装置。2. The discrimination information is attached to a cell that depends on a character string and stores a mathematical expression, or a cell that depends on a character string and stores a numerical value used in the mathematical expression, corresponding to the character string. An association name, wherein the operation information indicates an operation method using the association name, and the cell discriminating means is subordinate to a character string corresponding to the association name registered in the discrimination information storage means. The above-mentioned association name is assigned to the cell, and the formula assigning means assigns the above-mentioned computation information to the cell having the association name registered with the computation information in the discrimination information storage means among the above-mentioned association names. 2. The form processing apparatus according to claim 1, wherein the form is converted into a mathematical expression using each cell number indicating each allocated cell and allocated.
ータとして読み取るイメージ読取手段と、 上記帳票イメージデータ上の罫線及び文字列の配置位置
を認識するとともに、文字列を文字認識する認識手段
と、 上記認識手段により求められた罫線の配置位置に基づい
て、セルのレイアウトを決めるとともに、上記認識手段
により認識された認識文字列をレイアウトされたセルに
割り付けた帳票データを作成する帳票データ作成手段と
を備え、 該帳票データの数式を格納すべきセルに、上記判別情報
記憶手段に登録された判別情報及び演算情報と、上記従
属セル判別手段と、上記セル判別手段と、上記数式割付
手段とを用いて数式を格納することを特徴とする請求項
1または2記載の帳票処理装置。3. An image reading means for reading an image of an existing form as form image data, a recognition means for recognizing an arrangement position of a ruled line and a character string on the form image data, and recognizing a character string as a character. Form data creating means for deciding the cell layout based on the arrangement positions of the ruled lines determined by the recognizing means and creating form data in which the recognized character strings recognized by the recognizing means are allocated to the laid-out cells. Using, in a cell where the formula of the form data is to be stored, the discrimination information and calculation information registered in the discrimination information storage means, the dependent cell discrimination means, the cell discrimination means, and the formula assignment means. The form processing device according to claim 1, wherein the formula is stored by using a formula.
段を備え、 上記帳票データの任意のセルに上記文字列が割り当てら
れた状態で、上記指定手段に指定されたセルのうちの数
式を格納すべきセルに、上記判別情報記憶手段に登録さ
れた判別情報及び演算情報と、上記従属セル判別手段
と、上記セル判別手段と、上記数式割付手段とを用いて
数式を格納することを特徴とする請求項1〜3のいずれ
か一つに記載の帳票処理装置。4. A designating means for designating each cell on the form data, wherein the character string is assigned to an arbitrary cell of the form data, and a formula among the cells designated by the designating means is entered. In a cell to be stored, a formula is stored using the discrimination information and calculation information registered in the discrimination information storage means, the dependent cell discrimination means, the cell discrimination means, and the formula assignment means. The form processing apparatus according to any one of claims 1 to 3.
格納した記憶媒体であって、 複数のセルからなる帳票データにおいて任意のセル内に
文字列が配置された状態で、上記文字列が配置されたセ
ルと他のセルとの配置位置に基づいて、文字列に従属す
るセルを判別するプログラムコードと、 文字列に従属するセルが、文字列に対応して特定の数式
が格納されるセルか否かを定めるとともに、文字列に対
応して特定の数式に用いられる数値が格納されるセルか
否かを定めた判別情報に基づいて、文字列に従属するセ
ルが、それぞれ、特定の数式が格納されるセルか否か
と、特定の数式に用いられる数値が格納されるセルか否
かとを判別するプログラムコードと、 数式が格納されると判別されたセルに、数式を上記判別
情報に基づく演算方法として示した演算情報に基づい
て、数式に用いられる数値が格納されると判別されたセ
ルのセル名を用いた数式を作成して割り付けるプログラ
ムコードと、 を含むプログラムを格納したことを特徴とする記憶媒
体。5. A storage medium storing a computer-executable program, wherein a cell in which a character string is arranged in an arbitrary cell in form data including a plurality of cells. And a program code for determining a cell dependent on a character string based on the arrangement position of other cells and whether or not the cell dependent on the character string is a cell storing a specific formula corresponding to the character string Based on the determination information that determines whether or not a cell is used to store a numerical value used in a specific mathematical expression corresponding to a character string, cells dependent on the character string are each stored with a specific mathematical expression. A program code for determining whether the cell is a cell that stores a numerical value used in a specific formula, and a calculation method based on the above-described determination information. And a program code for creating and assigning a formula using a cell name of a cell determined to store a numerical value used in the formula based on the calculation information shown in the formula, and storing a program including Storage media.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP35157197A JP3663865B2 (en) | 1997-12-19 | 1997-12-19 | Form processing apparatus and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP35157197A JP3663865B2 (en) | 1997-12-19 | 1997-12-19 | Form processing apparatus and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH11184949A true JPH11184949A (en) | 1999-07-09 |
| JP3663865B2 JP3663865B2 (en) | 2005-06-22 |
Family
ID=18418185
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP35157197A Expired - Fee Related JP3663865B2 (en) | 1997-12-19 | 1997-12-19 | Form processing apparatus and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3663865B2 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012190434A (en) * | 2011-02-24 | 2012-10-04 | Ricoh Co Ltd | Form defining device, form defining method, program and recording medium |
| JP2014010795A (en) * | 2012-07-03 | 2014-01-20 | Fujitsu Ltd | Electronic business form system, management method for electronic business form, and management program for electronic business form |
| JP2021002183A (en) * | 2019-06-21 | 2021-01-07 | 辻・本郷税理士法人 | Accounting support apparatus, accounting support program, and accounting support method |
-
1997
- 1997-12-19 JP JP35157197A patent/JP3663865B2/en not_active Expired - Fee Related
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012190434A (en) * | 2011-02-24 | 2012-10-04 | Ricoh Co Ltd | Form defining device, form defining method, program and recording medium |
| JP2014010795A (en) * | 2012-07-03 | 2014-01-20 | Fujitsu Ltd | Electronic business form system, management method for electronic business form, and management program for electronic business form |
| JP2021002183A (en) * | 2019-06-21 | 2021-01-07 | 辻・本郷税理士法人 | Accounting support apparatus, accounting support program, and accounting support method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3663865B2 (en) | 2005-06-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR950006410B1 (en) | Image display and processing method of formatted and document and apparatus therefor | |
| KR930009639B1 (en) | Method of text data processing using image data | |
| JPH04343190A (en) | Character data input method | |
| JPH09134349A (en) | Information processor and method for preparing document and business form | |
| CN101542511A (en) | Form making system, network system using same, and form making method | |
| US20020184261A1 (en) | Process of inputting and outputting a display table derived from a worksheet and data storage media programmed to perform the same | |
| JP2568180B2 (en) | Image processing method | |
| JP3663865B2 (en) | Form processing apparatus and storage medium | |
| JP7430219B2 (en) | Document information structuring device, document information structuring method and program | |
| JP2001005886A (en) | Data processing device and storage medium | |
| JPH0452866A (en) | Business program automatic generation method | |
| JP3275629B2 (en) | Layout correction device | |
| JPH11316792A (en) | Information processor and slip creating method | |
| JP4734551B2 (en) | Table format data processing method and table format data processing apparatus | |
| JP3028833B2 (en) | Document processing method and program automatic generation method | |
| JP2000163271A (en) | Method and apparatus for information processing | |
| JPH0748230B2 (en) | Screen form format automatic creation method | |
| JPH11119879A (en) | Information processor, and definition method | |
| JP2001357342A (en) | Information processing method and apparatus | |
| JP3018980U (en) | Data input / output device | |
| JPH10320492A (en) | Method and device for information processing | |
| JPH096875A (en) | Document creation device | |
| JPH09123381A (en) | Composition style deciding and supporting method | |
| JP2006119816A (en) | Method and apparatus for processing table format data | |
| JP2001005904A (en) | Information processor and form preparing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040216 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040511 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040708 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20050308 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050321 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090408 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090408 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100408 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110408 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120408 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120408 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130408 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130408 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140408 Year of fee payment: 9 |
|
| LAPS | Cancellation because of no payment of annual fees |