JP6500640B2 - PRINT DATA GENERATION PROGRAM, PRINT DATA GENERATION DEVICE, AND PRINT DATA GENERATION METHOD - Google Patents

PRINT DATA GENERATION PROGRAM, PRINT DATA GENERATION DEVICE, AND PRINT DATA GENERATION METHOD Download PDF

Info

Publication number
JP6500640B2
JP6500640B2 JP2015130287A JP2015130287A JP6500640B2 JP 6500640 B2 JP6500640 B2 JP 6500640B2 JP 2015130287 A JP2015130287 A JP 2015130287A JP 2015130287 A JP2015130287 A JP 2015130287A JP 6500640 B2 JP6500640 B2 JP 6500640B2
Authority
JP
Japan
Prior art keywords
value
print data
item
data
calculation result
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.)
Active
Application number
JP2015130287A
Other languages
Japanese (ja)
Other versions
JP2017016269A (en
Inventor
隆好 水間
隆好 水間
道生 藤江
道生 藤江
兼治 浦
兼治 浦
泰至 高成田
泰至 高成田
美知代 山下
美知代 山下
晴香 山岸
晴香 山岸
敦子 杉村
敦子 杉村
誠 佐々原
誠 佐々原
秀和 寺岸
秀和 寺岸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2015130287A priority Critical patent/JP6500640B2/en
Publication of JP2017016269A publication Critical patent/JP2017016269A/en
Application granted granted Critical
Publication of JP6500640B2 publication Critical patent/JP6500640B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

本発明は、印刷データ生成プログラム、印刷データ生成装置、および印刷データ生成方法に関する。   The present invention relates to a print data generation program, a print data generation apparatus, and a print data generation method.

従来、データベースから条件に合致するレコード群を表データとして抽出し、抽出した表データを含む印刷データを生成する技術がある。また、ある印刷データに含まれる表データの項目の項目値に対して、合計、平均等の演算処理を行い、演算処理の演算結果の値を、ある印刷データに含めることがある。関連する先行技術として、例えば、集計計算を実行するときに各集計表の各フィールドに対してどのような計算を実行するかを識別する集計計算要素ID(IDentity)とその内容を、処理IDと集計IDと集計フィールドIDに関連づけて定義する集計計算要素テーブルとを記憶するものがある。   2. Description of the Related Art Conventionally, there is a technique of extracting a record group meeting a condition from a database as tabular data and generating print data including the extracted tabular data. In addition, calculation processing such as total and average may be performed on item values of items of table data included in certain print data, and values of calculation results of the calculation processing may be included in certain print data. As related prior art, for example, an aggregation calculation element ID (Identity) for identifying what kind of calculation is to be performed on each field of each aggregation table when the aggregation calculation is performed, a process ID thereof and There is one that stores a tabulation calculation element table that is defined in association with a tabulation ID and a tabulation field ID.

特開2005−327136号公報JP, 2005-327136, A

しかしながら、従来技術によれば、表データを含む複数の印刷データから所定の条件に合致するデータを集約した印刷データを生成する際、元の印刷データに項目値の演算結果の値が含まれると、集約した印刷データにおいて正確な値を出力することが難しい。   However, according to the prior art, when generating print data in which data meeting the predetermined condition is aggregated from a plurality of print data including tabular data, it is assumed that the original print data includes the value of the operation result of the item value. It is difficult to output accurate values in aggregated print data.

具体的には、例えば、データベースにアクセスせずに、複数の印刷データから集約した印刷データを生成することが考えられる。この場合、元の印刷データの印字上では項目値の演算結果の値が含まれていたとしても、そもそも、元の帳票データに印字されている値が、演算結果の値であるか明確でない場合がある。さらに、演算結果の値であることが明確であったとしても、演算結果の値が、どの項目の項目値の演算結果の値なのか明確でない場合がある。演算結果の値であるか明確でない場合、または、どの項目の項目値の演算結果の値なのか明確でない場合、集約した印刷データにおいて正確な値を出力することができない。   Specifically, for example, it is conceivable to generate print data aggregated from a plurality of print data without accessing a database. In this case, even if the original print data print contains the value of the operation result of the item value, it is not clear whether the value printed in the original form data is the value of the operation result originally There is. Furthermore, even if it is clear that the value is the result of the operation, it may not be clear which item the value of the item is the result of the operation. If it is not clear that it is the value of the calculation result, or if it is not clear which item is the calculation result of the item value, it is not possible to output an accurate value in the aggregated print data.

一方、複数の印刷データに含まれる表データの抽出元となるデータベースにアクセスし、データベースに演算処理を行わせることにより、集約した印刷データにおける正確な値を特定することが考えられる。しかしながら、この際、データベースに対して負荷が発生することになり、発生する負荷にデータベースが耐えられない可能性がある。また、集約した印刷データの生成要求を行った利用者の権限では、データベースにアクセスすることが許容されていない場合がある。   On the other hand, it is conceivable to specify an accurate value in the aggregated print data by accessing a database as a source of extraction of tabular data included in a plurality of print data and causing the database to perform arithmetic processing. However, at this time, a load is generated on the database, and the database may not be able to withstand the generated load. In addition, there are cases where access to the database is not permitted by the authority of the user who has made the generation request of aggregated print data.

1つの側面では、本発明は、表データを含む複数の印刷データから所定の条件に合致するデータを集約した印刷データに含まれる項目値に対する演算処理の値を正確に出力できる印刷データ生成プログラム、印刷データ生成装置、および印刷データ生成方法を提供することを目的とする。   In one aspect, the present invention is a print data generation program capable of accurately outputting the value of arithmetic processing for an item value included in print data obtained by aggregating data meeting a predetermined condition from a plurality of print data including tabular data. An object of the present invention is to provide a print data generation device and a print data generation method.

本発明の一態様によれば、定義情報を同じくする複数の印刷データのうちの少なくともいずれかに含まれる表データの、数値情報を項目値に含む項目の、項目値に対する演算処理を行い、演算処理の演算結果の値に基づいて、演算処理を行った印刷データにおける表データの項目値の演算結果の値の有無、および該演算結果の値が印字される印刷データにおける位置を特定し、複数の印刷データの表データから、所定の条件に基づいて抽出した部分データを集約した印刷データを生成する際に、部分データを集約した印刷データに含まれる項目値に対する演算処理の演算結果の値が、特定された位置に対応する位置に印字された印刷データを生成する印刷データ生成プログラム、印刷データ生成装置、および印刷データ生成方法が提案される。   According to one aspect of the present invention, calculation processing is performed on item values of items including numerical value information in item values of table data included in at least one of a plurality of print data having the same definition information, Based on the value of the operation result of the process, the presence or absence of the value of the operation result of the item value of the table data in the print data subjected to the operation process, and the position in the print data where the value of the operation result is printed When generating print data by aggregating partial data extracted based on a predetermined condition from the table data of the print data, the value of the operation result of the arithmetic processing for the item value included in the print data into which the partial data is aggregated is A print data generation program, a print data generation apparatus, and a print data generation method for generating print data printed at a position corresponding to a specified position are proposed

本発明の一側面によれば、表データを含む複数の印刷データから所定の条件に合致するデータを集約した印刷データに含まれる項目値に対する演算処理の値を正確に出力できるという効果を奏する。   According to one aspect of the present invention, it is possible to accurately output the value of arithmetic processing for an item value included in print data obtained by aggregating data that meets predetermined conditions from a plurality of print data including tabular data.

図1は、本実施の形態にかかる印刷データ生成装置101の動作例を示す説明図である。FIG. 1 is an explanatory view showing an operation example of the print data generation apparatus 101 according to the present embodiment. 図2は、電子文書システム200の構成図を示す説明図である。FIG. 2 is an explanatory view showing the configuration of the electronic document system 200. As shown in FIG. 図3は、印刷データ生成装置101のハードウェア構成例を示す説明図である。FIG. 3 is an explanatory view showing an example of the hardware configuration of the print data generation apparatus 101. As shown in FIG. 図4は、印刷データ生成装置101の機能構成例を示す説明図である。FIG. 4 is an explanatory view showing an example of the functional configuration of the print data generation apparatus 101. As shown in FIG. 図5は、項目情報ファイル411の記憶内容の一例を示す説明図である。FIG. 5 is an explanatory view showing an example of the storage content of the item information file 411. As shown in FIG. 図6は、検索情報ファイル412の記憶内容の一例を示す説明図である。FIG. 6 is an explanatory view showing an example of the storage content of the search information file 412. As shown in FIG. 図7は、描画データ413の記憶内容の一例を示す説明図である。FIG. 7 is an explanatory view showing an example of the storage content of the drawing data 413. As shown in FIG. 図8は、検索属性ファイル414の記憶内容の一例を示す説明図である。FIG. 8 is an explanatory view of an example of the storage content of the search attribute file 414. As shown in FIG. 図9は、2次帳票生成処理の動作の一例を示す説明図(その1)である。FIG. 9 is an explanatory view (part 1) of an example of the operation of the secondary form generation process. 図10は、2次帳票生成処理の動作の一例を示す説明図(その2)である。FIG. 10 is an explanatory view (part 2) of an example of the operation of the secondary form generation process. 図11は、2次帳票生成処理の動作の一例を示す説明図(その3)である。FIG. 11 is an explanatory view (part 3) of an example of the operation of the secondary form generation process. 図12は、2次帳票生成処理手順の一例を示すフローチャートである。FIG. 12 is a flowchart of an example of a secondary form generation process. 図13は、合計対象項目ごとの合計値集計処理手順の一例を示すフローチャートである。FIG. 13 is a flowchart illustrating an example of a total value tabulation processing procedure for each total target item. 図14は、合計値印字位置特定処理手順の一例を示すフローチャート(その1)である。FIG. 14 is a flowchart (part 1) illustrating an example of a total value printing position specifying process procedure. 図15は、合計値印字位置特定処理手順の一例を示すフローチャート(その2)である。FIG. 15 is a flowchart (part 2) illustrating an example of a total value print position specifying process procedure.

以下に図面を参照して、開示の印刷データ生成プログラム、印刷データ生成装置、および印刷データ生成方法の実施の形態を詳細に説明する。   Embodiments of the disclosed print data generation program, print data generation apparatus, and print data generation method will be described in detail with reference to the drawings.

図1は、本実施の形態にかかる印刷データ生成装置101の動作例を示す説明図である。印刷データ生成装置101は、表データを含む複数の印刷データから所定の条件に合致するデータを集約した印刷データを生成するコンピュータである。印刷データ生成装置101は、例えば、サーバである。ここで、印刷データは、表データを有しており、さらに、印刷時の文字そのもののデータや、文字の位置、大きさ、フォント名、文字間隔等の書式情報を有する。例えば、表データを含む印刷データは、表データを含む帳票を示す印刷データである。以下、表データを含む印刷データは、表データを含む帳票を示す印刷データであるとする。そして、表データを含む帳票を示す印刷データを、以下、「帳票データ」と称する。また、複数の帳票データから所定の条件に合致するデータを集約した帳票データを、「2次帳票データ」と称する。ここで、所定の条件は、印刷データ生成装置101の利用者が指定した条件である。   FIG. 1 is an explanatory view showing an operation example of the print data generation apparatus 101 according to the present embodiment. The print data generation apparatus 101 is a computer that generates print data in which data meeting the predetermined condition is aggregated from a plurality of print data including table data. The print data generation apparatus 101 is, for example, a server. Here, the print data has table data, and further has data of the character itself at the time of printing, and format information such as the position, size, font name, and character spacing of the character. For example, print data including tabular data is print data indicating a form including tabular data. Hereinafter, print data including table data is print data indicating a form including table data. Then, print data indicating a form including table data is hereinafter referred to as "form data". Further, form data obtained by aggregating data meeting a predetermined condition from a plurality of form data is referred to as “secondary form data”. Here, the predetermined condition is a condition designated by the user of the print data generation apparatus 101.

ここで、帳票は、金銭や物品、サービスの取引や出入りを記録した、帳簿や伝票などの定型的な書類の総称である。従って、帳票データは、金銭や物品、サービスの取引や出入りを記録した、帳簿や伝票などの定型的な書類の印刷データである。例えば、帳票データは、口座の取引内容を記録した印刷データでもよいし、ある店舗の一日の売上内容を記録した印刷データでもよい。   Here, the slip is a generic name of fixed documents such as books and slips, which record transactions and in / out of money, goods, and services. Therefore, the form data is print data of a fixed document such as a book or a slip, which records money, goods, and transaction of the service, and in / out. For example, the form data may be print data in which the transaction content of the account is recorded, or print data in which the daily sales content of a certain store is recorded.

また、帳票データは、帳票データに含まれる表データの項目の項目値に対して、合計、平均等の演算処理の演算結果の値を含むことがある。例えば、帳票データが口座の取引内容を記録した印刷データである場合、帳票データは、口座の取引金額の小計値や合計値を含むことがある。項目値に対する演算処理は、1つ以上の値を集計する処理であれば、どのような処理であってもよい。例えば、項目値に対する演算処理は、項目値の合計値を算出する処理でもよいし、項目値の平均値を算出する処理でもよい。図1の例では、説明の簡略化のため、項目値に対する演算処理は、項目値の合計値を算出する処理であるとする。   In addition, the form data may include the value of the operation result of the arithmetic processing such as the sum or average with respect to the item value of the item of the table data included in the form data. For example, when the form data is print data in which the transaction content of the account is recorded, the form data may include a subtotal value or a total value of the transaction amount of the account. Arithmetic processing on the item value may be any processing as long as it is processing of totaling one or more values. For example, the calculation process on the item value may be a process of calculating a total value of the item values, or a process of calculating an average value of the item values. In the example of FIG. 1, in order to simplify the description, it is assumed that the calculation process on the item value is a process of calculating the total value of the item values.

ここで、帳票データの生成例について説明する。印刷データ生成装置101は、利用者が利用するクライアント端末から、例えば、利用者の口座の帳票データの生成要求を受け付ける。生成要求を受け付けた印刷データ生成装置101は、データベース(DB:DataBase)サーバに対して、利用者の口座の帳票データを生成するために用いるデータの検索要求をSQLにより依頼する。印刷データ生成装置101、クライアント装置、DBサーバの接続関係については、図2で説明する。そして、DBサーバは、検索要求に対応したデータを検索し、印刷データ生成装置101に検索結果となる表データを返す。印刷データ生成装置101は、表データから帳票データを生成し、クライアント装置に帳票データを出力する。   Here, a generation example of form data will be described. The print data generation apparatus 101 receives, for example, a request for generating form data of a user account from a client terminal used by the user. Upon receiving the generation request, the print data generation apparatus 101 requests a database (DB: DataBase) server to use a SQL to request a search for data used to generate form data of the account of the user. The connection relationship between the print data generation apparatus 101, the client device, and the DB server will be described with reference to FIG. Then, the DB server searches for data corresponding to the search request, and returns table data as a search result to the print data generation apparatus 101. The print data generation apparatus 101 generates form data from table data and outputs the form data to the client apparatus.

また、ここで、2次帳票データが生成される契機について説明する。例えば、印刷データ生成装置101のある利用者が複数の口座を有するとする。この場合、利用者自身や、利用者が有する口座の金融機関は、印刷データ生成装置101に対して、複数の口座の各々に対する帳票データを生成させる。さらに、利用者や金融機関は、印刷データ生成装置101に対して、複数の口座の各々に対する帳票データから所定の条件で検索を行わせ、条件に合致するデータを集約した2次帳票データを作成させる。そして、利用者や金融機関は、作成された2次帳票データにより、情報分析を行う。   In addition, here, a trigger for generating secondary form data will be described. For example, it is assumed that a user of the print data generation apparatus 101 has a plurality of accounts. In this case, the user himself or a financial institution of the account owned by the user causes the print data generation apparatus 101 to generate form data for each of the plurality of accounts. Further, the user or the financial institution causes the print data generation apparatus 101 to search the form data for each of the plurality of accounts under predetermined conditions, and creates secondary form data in which the data meeting the conditions are aggregated. Let Then, the user or the financial institution analyzes the information based on the created secondary form data.

ここで、2次帳票データを生成する際、元の帳票データに項目値の演算結果の値が含まれると、2次帳票データにおいて正確な値を出力することが難しい。   Here, when the secondary form data is generated, if the original form data includes the value of the operation result of the item value, it is difficult to output the correct value in the secondary form data.

具体的には、例えば、DBサーバにアクセスせずに、複数の帳票データから2次帳票データを生成することが考えられる。この場合、元の帳票データの印字上では項目値の合計値が含まれていたとしても、そもそも、元の帳票データに印字されている値が、項目値の合計値であるか明確でない場合がある。元の帳票データには、結果となる値が格納されており、どのような演算を行ったかは含まれていないためである。そして、元の帳票データに印字されている値が、項目値の合計値でない例としては、元の帳票データに印字されている値が、帳票データを生成した日付である場合がある。また、演算結果の値であることが明確であったとしても、演算結果の値が、どの項目の項目値の演算結果の値なのか明確でない場合がある。演算結果の値であるか明確でない場合、または、どの項目の項目値の演算結果の値なのか明確でない場合、集約した印刷データにおいて正確な値を出力することができない。   Specifically, for example, it is conceivable to generate secondary form data from a plurality of form data without accessing a DB server. In this case, even if the total value of the item values is included in the printing of the original form data, it may not be clear whether the value printed in the original form data is the total value of the item values. is there. This is because the original form data stores the resulting values and does not include what operation was performed. Then, as an example in which the value printed on the original form data is not the total value of the item values, the value printed on the original form data may be the date when the form data was generated. In addition, even if it is clear that the value is the result of the operation, it may not be clear which item the value of the item is the result of the operation. If it is not clear that it is the value of the calculation result, or if it is not clear which item is the calculation result of the item value, it is not possible to output an accurate value in the aggregated print data.

一方、DBサーバにアクセスし、DBサーバに演算処理を行わせることにより、2次帳票データにおける正確な値を特定することが考えられる。しかしながら、この際、DBサーバに対して負荷が発生することになり、発生する負荷にDBサーバが耐えられない可能性がある。この場合、DBサーバに演算処理を行わせるという形態を適用することは現実的にはできない。また、DBサーバにSQLにより問い合わせるには、元の帳票データの項目が、DB上のどのレコードに属しているかといった、DB構造を把握することになり、DBサーバに問い合わせることは困難である。また、集約した印刷データの生成要求を行った利用者の権限では、DBサーバにアクセスすることが許容されていない場合がある。   On the other hand, it is conceivable to specify an accurate value in the secondary form data by accessing the DB server and causing the DB server to perform arithmetic processing. However, at this time, a load is generated on the DB server, and there is a possibility that the DB server can not bear the generated load. In this case, it is practically impossible to apply the form of causing the DB server to perform arithmetic processing. Further, in order to inquire the DB server by SQL, it is difficult to inquire of the DB server because the DB structure is grasped as to which record on the DB the item of the original form data belongs to. In addition, there are cases where access to the DB server is not permitted by the authority of the user who has made the generation request of aggregated print data.

従って、2次帳票データにおける項目値の合計値を得ようとするならば、利用者は、2次帳票データの項目値を表計算ソフトウェア等にコピーして、表計算ソフトウェア等に合計値を算出させることになり、利用者の手間がかかる。   Therefore, when trying to obtain the total value of item values in secondary form data, the user copies the item value of secondary form data to spreadsheet software etc, and calculates the total value to spreadsheet software etc. It takes time and effort for the user.

そこで、本実施の形態では、複数の帳票データのある帳票データの項目の合計値と同じ値がある帳票データにあれば、ある帳票データにおける合計値の位置に複数の帳票データを集約した項目の合計値を印字した2次帳票データを生成する方法について説明する。   Therefore, in the present embodiment, if there is form data having the same value as the total value of items of form data having a plurality of form data, an item in which a plurality of form data are aggregated at the position of the total value in a certain form data A method of generating secondary form data on which the total value is printed will be described.

図1を用いて、印刷データ生成装置101の動作を説明する。図1に示す印刷データ生成装置101は、複数の帳票データ111を生成した状態である。ここで、複数の帳票データ111は、定義情報112を同じくするデータである。定義情報112は、帳票データ111のフォーマットを定義する情報である。   The operation of the print data generation apparatus 101 will be described with reference to FIG. The print data generation apparatus 101 illustrated in FIG. 1 is in a state in which a plurality of form data 111 is generated. Here, the plurality of form data 111 is data having the same definition information 112. The definition information 112 is information that defines the format of the form data 111.

具体的には、定義情報112は、図1に示す、複数の帳票データ111のいずれかとなる帳票データ111−1における「売上伝票」、「売上合計」を示すそれぞれの文字のデータや、それぞれの位置、大きさ、フォント名、文字間隔を含む。さらに、定義情報112は、帳票データ111−1における「売上合計」の下に、数値情報が印字される項目があることを示す情報を含む。なお、帳票データ111−1に印字されている「¥202,000」は定義情報112に含まれず、複数の帳票データ111のそれぞれで異なる値である。   Specifically, the definition information 112 is data of respective characters indicating “sales slip” and “sales total” in the form data 111-1 as one of the plurality of form data 111 shown in FIG. Includes position, size, font name, and letter spacing. Furthermore, the definition information 112 includes information indicating that there is an item on which numerical information is to be printed, under “total sales” in the form data 111-1. Note that “¥ 202,000” printed in the form data 111-1 is not included in the definition information 112, and is a different value for each of the plurality of form data 111.

さらに、定義情報112は、帳票データ111−1における表データ113−1の項目名「商品名」や、「金額」を示すそれぞれの文字のデータや、それぞれの位置、大きさ、フォント名、文字間隔を含む。さらに、定義情報112は、項目名「商品名」の項目値がテキスト情報であり、項目名「金額」の項目値が数値情報であることを示す情報を含む。なお、表データ113−1の項目値となる「カラーテレビ」、「¥120,000」、「カラオケセット」、「¥82,000」については、定義情報112に含まれず、複数の帳票データ111のそれぞれで異なる値である。   Furthermore, the definition information 112 includes the item name “product name” of the table data 113-1 in the form data 111-1, the data of each character indicating “amount of money”, the position, size, font name, and character of each. Including intervals. Further, the definition information 112 includes information indicating that the item value of the item name “product name” is text information and the item value of the item name “amount” is numerical value information. Note that “color TV”, “¥ 120,000”, “Karaoke set”, and “¥ 82,000”, which are the item values of the table data 113-1, are not included in the definition information 112, and a plurality of form data 111 Each has a different value.

印刷データ生成装置101は、複数の帳票データ111のうちの少なくともいずれかの帳票データ111−1に含まれる表データ113−1の数値情報を項目値に含む項目の項目値に対する合計値を算出する。ここで、算出対象とする帳票データは、1つでもよいし、複数でもよい。複数の帳票データ111に対して算出する例については、図4で説明する。   The print data generation apparatus 101 calculates the total value for the item value of the item including the numerical value information of the tabular data 113-1 included in the form data 111-1 of at least one of the plurality of form data 111 in the item value. . Here, the form data to be calculated may be one or plural. An example of calculation for a plurality of form data 111 will be described with reference to FIG.

例えば、図1の(1)で示すように、印刷データ生成装置101は、数値情報の項目として項目名「金額」の項目値に対する合計値を算出する。具体的には、印刷データ生成装置101は、項目名「金額」の項目値に対する合計値を、120000+82000=202000と算出する。   For example, as shown in (1) of FIG. 1, the print data generation apparatus 101 calculates a total value for the item value of the item name “amount” as an item of numerical information. Specifically, the print data generation apparatus 101 calculates the total value for the item value of the item name “amount” as 120000 + 82000 = 202000.

次に、印刷データ生成装置101は、算出した合計値に基づき、帳票データ111−1における表データ113−1の項目値に対する合計値の有無、および表データ113−1の項目値に対する合計値が印字される帳票データ111−1における位置を特定する。以下、表データ113−1の項目値に対する合計値が印字される帳票データ111−1における位置を、単に、「合計値印字位置」と称する。具体的には、印刷データ生成装置101は、算出した合計値が、帳票データ111−1に含まれているか否かを判断する。算出した合計値が帳票データ111−1に含まれていれば、印刷データ生成装置101は、帳票データ111−1における表データ113−1の項目値に対する合計値が有ると特定するとともに、合計値印字位置を特定する。また、算出した合計値が帳票データ111−1に含まれていなければ、印刷データ生成装置101は、帳票データ111−1における表データ113−1の項目値に対する和が無いと特定する。   Next, the print data generation apparatus 101 determines, based on the calculated total value, whether there is a total value for the item value of the table data 113-1 in the form data 111-1 and the total value for the item value of the table data 113-1. The position in the form data 111-1 to be printed is specified. Hereinafter, the position in the form data 111-1 where the total value for the item value of the table data 113-1 is printed is simply referred to as "total value print position". Specifically, the print data generation apparatus 101 determines whether the calculated total value is included in the form data 111-1. If the calculated total value is included in the form data 111-1, the print data generation apparatus 101 specifies that there is a total value for the item value of the table data 113-1 in the form data 111-1, and the total value Identify the print position. If the calculated total value is not included in the form data 111-1, the print data generation apparatus 101 identifies that there is no sum for the item value of the table data 113-1 in the form data 111-1.

例えば、図1の(2)で示すように、印刷データ生成装置101は、算出した「202000」が、帳票データ111−1に含まれていることを検出する。従って、印刷データ生成装置101は、帳票データ111−1における表データ113−1の項目値に対する合計値が有ると特定するとともに、合計値印字位置を特定する。ここで、特定する合計値印字位置について、印刷データ生成装置101は、合計値印字位置として、項目値の合計値が印字される領域の左上の座標位置を特定してもよいし、項目値の合計値が印字される領域の中央の座標位置を特定してもよい。   For example, as illustrated in (2) of FIG. 1, the print data generation apparatus 101 detects that the calculated “202000” is included in the form data 111-1. Therefore, the print data generation apparatus 101 specifies that there is a total value for the item value of the table data 113-1 in the form data 111-1, and specifies the total value print position. Here, for the total value printing position to be specified, the print data generation apparatus 101 may specify the coordinate position of the upper left of the area where the total value of the item values is printed as the total value printing position. The coordinate position of the center of the area where the sum value is printed may be specified.

そして、印刷データ生成装置101は、複数の帳票データ111の表データ113から、所定の条件に基づいて抽出した部分データを集約した2次帳票データ121を生成する。ここで、部分データは、表データ113のレコードとなる。また、部分データは、表データ113が有する全ての項目の項目値を有するレコードでもよいし、一部の項目の項目値を有するレコードでもよい。また、印刷データ生成装置101は、定義情報112に従って2次帳票データ121を生成する。なお、印刷データ生成装置101は、定義情報112に基づいた定義情報に従って2次帳票データ121を生成してもよい。   Then, the print data generation apparatus 101 generates, from the table data 113 of the plurality of form data 111, secondary form data 121 in which partial data extracted based on a predetermined condition is integrated. Here, the partial data is a record of the table data 113. The partial data may be a record having item values of all items included in the table data 113 or a record having item values of some items. Also, the print data generation apparatus 101 generates the secondary form data 121 in accordance with the definition information 112. The print data generation apparatus 101 may generate the secondary form data 121 in accordance with definition information based on the definition information 112.

例えば、図1の(3)で示すように、印刷データ生成装置101は、複数の帳票データ111の表データ113から、所定の条件として「カラーテレビ」を含むレコードを抽出し、抽出したレコードを集約した2次帳票データ121を生成する。   For example, as shown in (3) of FIG. 1, the print data generation apparatus 101 extracts a record including “color television” as a predetermined condition from the table data 113 of the plurality of form data 111, and extracts the extracted record. The consolidated secondary form data 121 is generated.

ここで、2次帳票データ121を生成する際に、印刷データ生成装置101は、2次帳票データ121に含まれる項目値の合計値が、特定した帳票データ111−1における位置に対応する位置に印字されるようにする。具体的には、まず、印刷データ生成装置101は、図1の(3−1)で示すように、項目名「金額」の項目値に対する合計値を算出する。具体的には、印刷データ生成装置101は、項目名「金額」の項目値に対する合計値を、120000+70000=190000と算出する。そして、印刷データ生成装置101は、図1の(3−2)で示すように、算出した合計値「190,000」を、2次帳票データ121における、特定した合計値印字位置と同じ位置に設定する。   Here, when generating the secondary form data 121, the print data generation apparatus 101 sets the total value of the item values included in the secondary form data 121 to a position corresponding to the position in the specified form data 111-1. Make it printed. Specifically, first, the print data generation apparatus 101 calculates a total value for the item value of the item name “amount”, as indicated by (3-1) in FIG. 1. Specifically, the print data generation apparatus 101 calculates the total value for the item value of the item name “amount” as 120000 + 70000 = 190000. Then, as indicated by (3-2) in FIG. 1, the print data generation apparatus 101 places the calculated total value “190,000” at the same position as the specified total value print position in the secondary form data 121. Set

以上により、印刷データ生成装置101は、2次帳票データ121において項目値の合計値を正確に出力することができる。次に、印刷データ生成装置101を含めた電子文書システムについて、図2を用いて説明する。   As described above, the print data generation apparatus 101 can accurately output the total value of the item values in the secondary form data 121. Next, an electronic document system including the print data generation apparatus 101 will be described with reference to FIG.

図2は、電子文書システム200の構成図を示す説明図である。電子文書システム200は、帳票データ111を電子登録するシステムである。電子文書システム200は、印刷データ生成装置101と、DBサーバ201と、クライアント装置202とを有する。印刷データ生成装置101とDBサーバ201とは、ネットワーク203により接続される。また、印刷データ生成装置101とクライアント装置202とは、ネットワーク204により接続される。ここで、ネットワーク203、204は、LAN(Local Area Network)、WAN(Wide Area Network)、インターネットなどである。DBサーバ201は、DB211に接続する。   FIG. 2 is an explanatory view showing the configuration of the electronic document system 200. As shown in FIG. The electronic document system 200 is a system for electronically registering the form data 111. The electronic document system 200 includes a print data generation apparatus 101, a DB server 201, and a client apparatus 202. The print data generation apparatus 101 and the DB server 201 are connected by a network 203. Also, the print data generation apparatus 101 and the client apparatus 202 are connected by a network 204. Here, the networks 203 and 204 are a LAN (Local Area Network), a WAN (Wide Area Network), the Internet, and the like. The DB server 201 connects to the DB 211.

クライアント装置202は、電子文書システム200を利用する利用者によって操作されるコンピュータである。DBサーバ201は、印刷データ生成装置101からの検索要求に対応したデータをDB211から検索し、印刷データ生成装置101に検索結果となる表データを返す。   The client device 202 is a computer operated by a user who uses the electronic document system 200. The DB server 201 searches the DB 211 for data corresponding to the search request from the print data generation apparatus 101, and returns table data as a search result to the print data generation apparatus 101.

(印刷データ生成装置101のハードウェア構成例)
図3は、印刷データ生成装置101のハードウェア構成例を示す説明図である。図3において、印刷データ生成装置101は、CPU301と、ROM(Read−Only Memory)302と、RAM(Random Access Memory)303と、を含む。また、印刷データ生成装置101は、ディスクドライブ304およびディスク305と、通信インターフェース306と、を含む。また、CPU301〜ディスクドライブ304、通信インターフェース306はバス307によってそれぞれ接続される。
(Hardware Configuration Example of Print Data Generation Device 101)
FIG. 3 is an explanatory view showing an example of the hardware configuration of the print data generation apparatus 101. As shown in FIG. In FIG. 3, the print data generation apparatus 101 includes a CPU 301, a ROM (Read-Only Memory) 302, and a RAM (Random Access Memory) 303. The print data generation apparatus 101 also includes a disk drive 304 and a disk 305, and a communication interface 306. The CPU 301 to the disk drive 304 and the communication interface 306 are connected by a bus 307, respectively.

CPU301は、印刷データ生成装置101の全体の制御を司る演算処理装置である。また、印刷データ生成装置101は、複数のCPUを有してもよい。ROM302は、ブートプログラムなどのプログラムを記憶する不揮発性メモリである。RAM303は、CPU301のワークエリアとして使用される揮発性メモリである。   The CPU 301 is an arithmetic processing unit that controls the entire print data generation apparatus 101. Also, the print data generation apparatus 101 may have a plurality of CPUs. The ROM 302 is a non-volatile memory that stores programs such as a boot program. The RAM 303 is a volatile memory used as a work area of the CPU 301.

ディスクドライブ304は、CPU301の制御に従ってディスク305に対するデータのリードおよびライトを制御する制御装置である。ディスクドライブ304には、例えば、磁気ディスクドライブ、光ディスクドライブ、ソリッドステートドライブなどを採用することができる。ディスク305は、ディスクドライブ304の制御で書き込まれたデータを記憶する不揮発性メモリである。例えばディスクドライブ304が磁気ディスクドライブである場合、ディスク305には、磁気ディスクを採用することができる。また、ディスクドライブ304が光ディスクドライブである場合、ディスク305には、光ディスクを採用することができる。また、ディスクドライブ304がソリッドステートドライブである場合、ディスク305には、半導体素子によって形成された半導体メモリ、いわゆる半導体ディスクを採用することができる。   The disk drive 304 is a control device that controls reading and writing of data with respect to the disk 305 under the control of the CPU 301. For the disk drive 304, for example, a magnetic disk drive, an optical disk drive, a solid state drive or the like can be employed. The disk 305 is a non-volatile memory that stores data written under control of the disk drive 304. For example, when the disk drive 304 is a magnetic disk drive, a magnetic disk can be employed as the disk 305. When the disk drive 304 is an optical disk drive, an optical disk can be adopted as the disk 305. When the disk drive 304 is a solid state drive, a semiconductor memory formed by semiconductor elements, so-called semiconductor disk can be adopted as the disk 305.

通信インターフェース306は、ネットワーク203、204と内部のインターフェースを司り、他の装置からのデータの入出力を制御する制御装置である。具体的に、通信インターフェース306は、通信回線を通じてネットワーク203、204を介して他の装置に接続される。通信インターフェース306には、例えば、モデムやLANアダプタなどを採用することができる。   The communication interface 306 is a control device that controls the internal interfaces with the networks 203 and 204 and controls input and output of data from other devices. Specifically, the communication interface 306 is connected to other devices via the networks 203 and 204 through a communication line. For example, a modem or a LAN adapter may be employed as the communication interface 306.

また、電子文書システム200の管理者が、印刷データ生成装置101を直接操作する場合、印刷データ生成装置101は、ディスプレイ、キーボード、マウスといったハードウェアを有してもよい。また、図示していないが、DBサーバ201も、印刷データ生成装置101と同様のハードウェアを有する。また、図示していないが、クライアント装置202も、印刷データ生成装置101が有するハードウェアと、ディスプレイ、キーボード、マウスといったハードウェアとを有する。   When the administrator of the electronic document system 200 directly operates the print data generation apparatus 101, the print data generation apparatus 101 may have hardware such as a display, a keyboard, and a mouse. Although not shown, the DB server 201 also has the same hardware as the print data generation apparatus 101. Although not shown, the client device 202 also has hardware included in the print data generation apparatus 101 and hardware such as a display, a keyboard, and a mouse.

(印刷データ生成装置101の機能構成例)
図4は、印刷データ生成装置101の機能構成例を示す説明図である。印刷データ生成装置101は、制御部400を有する。制御部400は、演算処理実行部401と、検索部402と、特定部403と、生成部404と、を含む。制御部400は、記憶装置に記憶されたプログラムをCPU301が実行することにより、各部の機能を実現する。記憶装置とは、具体的には、例えば、図3に示したROM302、RAM303、ディスク305などである。また、各部の処理結果は、CPU301のレジスタや、CPU301のキャッシュメモリ等に格納される。
(Example of functional configuration of print data generation apparatus 101)
FIG. 4 is an explanatory view showing an example of the functional configuration of the print data generation apparatus 101. As shown in FIG. The print data generation apparatus 101 includes a control unit 400. The control unit 400 includes an arithmetic processing execution unit 401, a search unit 402, a specification unit 403, and a generation unit 404. The control unit 400 realizes the functions of the respective units by the CPU 301 executing a program stored in the storage device. Specifically, the storage device is, for example, the ROM 302, the RAM 303, the disk 305, etc. shown in FIG. The processing result of each unit is stored in a register of the CPU 301, a cache memory of the CPU 301, or the like.

また、印刷データ生成装置101は、項目情報ファイル411と、検索情報ファイル412と、描画データ413と、検索属性ファイル414とにアクセス可能である。項目情報ファイル411〜検索属性ファイル414は、RAM303、ディスク305といった記憶装置に格納される。   Also, the print data generation apparatus 101 can access the item information file 411, the search information file 412, the drawing data 413, and the search attribute file 414. The item information file 411 to the search attribute file 414 are stored in a storage device such as the RAM 303 and the disk 305.

項目情報ファイル411は、帳票データ111に含まれる表データ113の項目の種別が記憶されたファイルである。項目情報ファイル411の記憶内容の一例については、図5で示す。検索情報ファイル412は、帳票データ111に含まれる表データ113の実際の値が記憶されたファイルである。検索情報ファイル412の記憶内容の一例については、図6で示す。ここで、DB201は、帳票データ111の表データ113を生成した際に、項目情報ファイル411と検索情報ファイル412とを出力する。具体的には、複数の帳票データ111のうちのいずれかとして、DB201は、帳票データ111−1の表データ113を生成した際に、併せて、項目情報ファイル411と検索情報ファイル412とを出力する。   The item information file 411 is a file in which the type of the item of the table data 113 included in the form data 111 is stored. An example of the storage content of the item information file 411 is shown in FIG. The search information file 412 is a file in which the actual values of the table data 113 included in the form data 111 are stored. An example of the storage content of the search information file 412 is shown in FIG. Here, when the table data 113 of the form data 111 is generated, the DB 201 outputs the item information file 411 and the search information file 412. Specifically, the DB 201 outputs the item information file 411 and the search information file 412 at the same time when the table data 113 of the form data 111-1 is generated as one of the plurality of form data 111. Do.

描画データ413は、帳票データ111を印字する際に描画するデータである。描画データ413の記憶内容の一例については、図7で説明する。検索属性ファイル414は、2次帳票データを生成する際に、利用者の操作によってクライアント装置202から送信されるファイルである。検索属性ファイル414の記憶内容の一例については、図8で説明する。   The drawing data 413 is data to be drawn when the form data 111 is printed. An example of the storage content of the drawing data 413 will be described with reference to FIG. The search attribute file 414 is a file transmitted from the client device 202 by the operation of the user when generating the secondary form data. An example of the storage content of the search attribute file 414 will be described with reference to FIG.

演算処理実行部401は、定義情報112を同じくする複数の帳票データ111のうちの少なくともいずれかに含まれる表データ113の、数値情報を項目値に含む項目の、項目値に対する演算処理を行う。図1で説明したように、項目値に対する演算処理は、1つ以上の値を集計する処理であれば、どのような処理でもよい。項目値に対する演算処理は、図1に挙げた以外にも、例えば、項目値の分散値を算出する処理でもよいし、項目値の標準偏差を算出する処理でもよい。以下の説明では、項目値に対する演算処理は、項目値の合計値を算出する処理であるとする。   The calculation processing execution unit 401 performs calculation processing on the item value of the item including the numerical value information in the item value of the table data 113 included in at least one of the plurality of form data 111 having the same definition information 112. As described with reference to FIG. 1, any processing may be performed on the item value, as long as it is processing for aggregating one or more values. The calculation process for the item value may be, for example, a process of calculating a variance value of the item value, or a process of calculating a standard deviation of the item value, other than those described in FIG. 1. In the following description, it is assumed that the calculation process on the item value is a process of calculating the total value of the item values.

検索部402は、帳票データ111から、項目値の合計値を算出する処理の処理内容を示す文字列が印字される帳票データ111における位置を検索する。具体的には、例えば、項目値の合計値を算出する処理の処理内容を示す文字列として、検索属性ファイル414により「売上合計」が指定されているとする。この場合、検索部402は、帳票データ111から、「売上合計」が印字される帳票データ111における位置を検索する。また、例えば、演算処理が、項目値の平均値を算出する処理であれば、項目値の平均値を算出する処理の処理内容を示す文字列は、「平均」が指定される。   The search unit 402 searches the form data 111 for a position in the form data 111 where the character string indicating the processing content of the process of calculating the total value of the item values is printed. Specifically, for example, it is assumed that "total sales" is designated by the search attribute file 414 as a character string indicating the processing content of the process of calculating the total value of the item values. In this case, the search unit 402 searches the form data 111 for the position in the form data 111 where the “total sales” is printed. Further, for example, if the arithmetic processing is processing for calculating an average value of item values, “average” is designated as the character string indicating the processing content of the processing for calculating the average value of item values.

特定部403は、演算処理実行部401による項目値の合計値を算出する処理の結果の値に基づいて、項目値の合計値を算出する処理を行った帳票データ111における表データ113の項目値の合計値の値の有無、および合計値印字位置を特定する。   The identifying unit 403 is an item value of the table data 113 in the form data 111 for which the process of calculating the total value of the item values is performed based on the value of the process result of calculating the total value of the item values by the arithmetic processing execution unit 401. Specify the presence or absence of the total value and the print position of the total value.

また、特定部403は、検索部402が検索した位置と、演算処理実行部401による項目値の合計値を算出する処理の結果の値とに基づいて、帳票データ111における表データ113の項目値の合計値の値の有無、および合計値印字位置を特定してもよい。例えば、特定部403は、検索部402が検索した位置の周囲にある数値項目の値と、演算処理実行部401による結果の値とが一致すれば、帳票データ111における表データ113の項目値の合計値の値が有ると特定する。   Further, the identifying unit 403 determines the item value of the table data 113 in the form data 111 based on the position searched by the searching unit 402 and the value of the result of the process of calculating the total value of item values by the arithmetic processing execution unit 401. The presence or absence of the value of the total value of, and the total value printing position may be specified. For example, if the value of the numerical value item around the position searched by the search unit 402 matches the value of the result of the calculation process execution unit 401, the specification unit 403 matches the item value of the table data 113 in the form data 111. It is specified that there is a total value.

また、検索属性ファイル414により「下方向」が指定されているとする。この場合、特定部403は、検索部402が検索した位置の下方向にある数値項目の値と、演算処理実行部401による結果の値とが一致すれば、帳票データ111における表データ113の項目値の合計値の値が有ると特定する。   Further, it is assumed that “down” is designated by the search attribute file 414. In this case, if the value of the numerical item in the lower direction of the position searched by the search unit 402 matches the value of the result by the arithmetic processing execution unit 401, the specifying unit 403 indicates the item of the table data 113 in the form data 111. It is specified that there is a total value of values.

また、演算処理実行部401による項目値の合計値を算出する処理の結果の値と、帳票データ111における表データ113の項目値の合計値との差分が所定の範囲内であるとする。所定の範囲は、印刷データ生成装置101が予め決めた数値の範囲でもよいし、検索属性ファイル414により指定された数値の範囲でもよい。このとき、特定部403は、帳票データ111における表データ113の項目値の合計値の値が有ることを特定するとともに、合計値印字位置を特定してもよい。   Further, it is assumed that the difference between the value of the processing result of calculating the total value of the item values by the arithmetic processing execution unit 401 and the total value of the item values of the table data 113 in the form data 111 is within a predetermined range. The predetermined range may be a range of numerical values predetermined by the print data generation apparatus 101, or may be a range of numerical values designated by the search attribute file 414. At this time, the specifying unit 403 may specify that the value of the total value of the item values of the table data 113 in the form data 111 is present, and specify the total value printing position.

所定の範囲を設定する理由としては、帳票データ111における表データ113の項目値の合計値が、真に項目値の合計値であるとしても、帳票データ111における表データ113の項目値の合計値と算出した項目値の合計値とが異なる場合があるためである。具体的には、例えば、帳票データ111に印字されている項目値が、切り捨て、四捨五入等により丸められた値であり、帳票データ111における表データ113の項目値の合計値が、丸められる前の値で算出されたものである場合である。   As a reason for setting the predetermined range, even if the total value of the item values of the table data 113 in the form data 111 is truly the total value of the item values, the total value of the item values of the table data 113 in the form data 111 And the calculated sum of the item values may be different. Specifically, for example, the item value printed in the form data 111 is a value rounded off or rounded off, and the total value of the item values of the table data 113 in the form data 111 is not rounded. It is a case where it is calculated by the value.

生成部404は、2次帳票データ121を生成する際に、2次帳票データ121に含まれる項目値の合計値を算出する処理の結果の値が、特定部403が特定した位置に対応する位置に印字された帳票データ111を生成する。例えば、定義情報112に従って2次帳票データ121を生成するものとする。この場合、生成部404は、2次帳票データ121に含まれる項目値の合計値を算出する処理の結果の値が、特定部403が特定した合計値印字位置と同じ位置に設定されるように、2次帳票データ121を生成する。   When the generation unit 404 generates the secondary form data 121, a position at which the value of the process of calculating the total value of the item values included in the secondary form data 121 corresponds to the position specified by the identification unit 403. The form data 111 printed on is generated. For example, the secondary form data 121 is generated in accordance with the definition information 112. In this case, the generation unit 404 sets the value of the result of the process of calculating the total value of the item values included in the secondary form data 121 to the same position as the total value printing position specified by the specifying unit 403. , Secondary form data 121 is generated.

また、生成部404が、定義情報112に基づいた定義情報に従って2次帳票データ121を生成するものとする。定義情報112に基づいた定義情報は、具体的には、例えば、定義情報112に含まれる文字、図等が下方向に所定画素数移動しており、かつ、2次帳票データ121の上部に、2次帳票データ121であることを示す文字列が付与されたものであるとする。この場合、2次帳票データ121に含まれる項目値の合計値を算出する処理の結果の値が、特定部403が特定した合計値印字位置より所定画素数分下となる位置に設定されるように、2次帳票データ121を生成する。   Further, it is assumed that the generation unit 404 generates the secondary form data 121 in accordance with definition information based on the definition information 112. Specifically, in the definition information based on the definition information 112, for example, characters, figures, etc. included in the definition information 112 are moved downward by a predetermined number of pixels, and the upper part of the secondary form data 121, It is assumed that a character string indicating that it is the secondary form data 121 is added. In this case, the value resulting from the process of calculating the total value of the item values included in the secondary form data 121 is set to a position that is lower by a predetermined number of pixels than the total value printing position specified by the identification unit 403. The second form data 121 is generated.

また、帳票データ111における表データ113の項目のうち数値情報を項目値に含む項目が複数ある場合がある。この場合、演算処理実行部401は、帳票データ111における表データ113の項目のうち数値情報を項目値に含む項目が複数ある場合、数値情報を項目値に含む各項目の項目値の合計値を算出する処理を行う。例えば、表データ113に、数値情報を項目値に含む項目として、項目名「単価」、「金額」があるとする。この場合、演算処理実行部401は、表データ113の項目名「単価」、「金額」のそれぞれに対して、項目値の合計値を算出する。   Further, among the items of the tabular data 113 in the form data 111, there may be a plurality of items including numerical information in the item value. In this case, when there are a plurality of items including numerical information in the item value among the items of the table data 113 in the form data 111, the arithmetic processing execution unit 401 calculates the total value of the item values of the items including the numerical information in the item value. Perform processing to calculate. For example, it is assumed that the table data 113 includes item names “unit price” and “amount” as items including numerical information in the item values. In this case, the arithmetic processing execution unit 401 calculates the total value of the item values for each of the item names “unit price” and “amount” of the table data 113.

また、特定部403は、さらに、演算処理実行部401による各項目の項目値に対する項目値の合計値を算出する処理の結果の値と帳票データ111における表データ113の項目値の演算結果の値との比較結果に基づいて、各項目からいずれかの項目を特定する。例えば、演算処理実行部401が、項目名「単価」、「金額」のそれぞれに対して、項目値の合計値を算出したとする。この場合、特定部403は、例えば、項目名「単価」、「金額」のそれぞれに対する項目値の合計値と、帳票データ111における表データ113の項目値の演算結果の値とを比較して、より値が近い項目をいずれかの項目として特定する。   Further, the specification unit 403 further calculates the sum of the item values for the item values of each item by the calculation process execution unit 401 and the value of the calculation result of the item values of the table data 113 in the form data 111. Identify any item from each item based on the comparison result with. For example, it is assumed that the arithmetic processing execution unit 401 calculates the total value of the item values for each of the item names “unit price” and “amount”. In this case, the identifying unit 403 compares, for example, the total value of the item values for each of the item names “unit price” and “amount” with the value of the calculation result of the item values of the table data 113 in the form data 111. Identify items that are closer in value as any of the items.

ここで、値が近い項目が複数存在する場合も考えられる。例えば、表データ113に、数値情報を項目値に含む項目として、項目名「単価」、「数量」、「金額」があるとする。そして、項目名「金額」の項目値は、項目名「単価」の項目値に、項目名「数量」の項目値を掛けた値であるとする。このとき、ある帳票データ111において、項目名「数量」の項目値が全て1である場合、項目名「単価」の項目値の合計値と、項目名「金額」の項目値の合計値とは一致することになる。このように、合計値が近い項目が複数存在する場合、演算処理実行部401は、項目名「数量」の項目値が全て1となった帳票データ111とは別の帳票データ111に対して、項目値の合計値を算出してもよい。そして、特定部403は、別の帳票データ111に対して算出した各項目の項目値の合計値と、別の帳票データ111における表データ113の項目値の演算結果の値との比較結果に基づいて、各項目からいずれかの項目を特定する。   Here, it may be considered that there are a plurality of items having similar values. For example, it is assumed that the table data 113 includes item names “unit price”, “quantity”, and “amount” as items including numerical information in the item value. The item value of the item name “amount” is a value obtained by multiplying the item value of the item name “unit price” by the item value of the item name “quantity”. At this time, when the item value of the item name "quantity" is all 1 in a certain form data 111, the total value of the item values of the item name "unit price" and the total value of the item values of the item name "amount" are It will match. As described above, when there are a plurality of items whose total values are close to each other, the arithmetic processing execution unit 401 transmits the form data 111 different from the form data 111 in which the item values of the item names “quantity” are all 1. The total value of the item values may be calculated. The identifying unit 403 then compares the sum of the item values of each item calculated for another form data 111 with the calculation result of the item value of the table data 113 in another form data 111. To identify any item from each item.

また、生成部404は、2次帳票データ121を生成する際に、2次帳票データ121に含まれるいずれかの項目の項目値に対する項目値の合計値を算出する処理の値が、特定部403が特定した位置に対応する位置に印字された帳票データ121を生成する。   In addition, when the generation unit 404 generates the secondary form data 121, the value of the process of calculating the total value of the item values for the item values of any item included in the secondary form data 121 is the identification unit 403. The form data 121 printed at the position corresponding to the specified position is generated.

図5は、項目情報ファイル411の記憶内容の一例を示す説明図である。図5に示す項目情報ファイル411は、行501−1〜6を有する。   FIG. 5 is an explanatory view showing an example of the storage content of the item information file 411. As shown in FIG. The item information file 411 shown in FIG. 5 has lines 501-1 to 50-6.

項目情報ファイル411は、CSV(Comma Separated Values)形式として、1つの行に、定義体番号と、定義体名と、項目番号と、項目名と、項目種別(数値)と、項目詳細(数値)という情報を有する。   The item information file 411 has a definition body number, a definition body name, an item number, an item name, an item type (numeric value), and an item detail (numeric value) on one line as a CSV (Comma Separated Values) format. Have the information.

定義体番号は、定義体を一意に識別する番号である。また、定義体番号は、定義体名と1対1で対応する番号であり、1以上の値となる。定義体名は、項目が定義されている定義体名である。項目番号は、項目の番号である。また、項目番号は、帳票の項目を一意に識別する値である。また、項目番号は、項目名と1対1で対応する番号であり、1以上の値となる。項目名は、帳票の項目の名称である。項目種別(数値)は、帳票の項目の種別を示す識別子である。具体的には、例えば、項目種別(数値)は、帳票の項目が数値項目であることを示す識別子「1」か、帳票の項目がテキスト項目であることを示す識別子「2」か、帳票の項目が矩形テキスト項目であることを示す識別子「3」かのいずれかとなる。   The definition body number is a number that uniquely identifies the definition body. Further, the definition body number is a number corresponding to the definition body name on a one-to-one basis, and has a value of 1 or more. The definition name is the name of the definition in which the item is defined. The item number is the number of the item. The item number is a value that uniquely identifies the item of the form. The item number is a number corresponding to the item name on a one-to-one basis, and has a value of 1 or more. The item name is the name of the item of the form. The item type (numerical value) is an identifier indicating the type of the item of the form. Specifically, for example, the item type (numerical value) is an identifier "1" indicating that the item of the form is a numeric item, or an identifier "2" indicating that the item of the form is a text item, or It is one of the identifiers "3" indicating that the item is a rectangular text item.

項目詳細(数値)は、帳票の項目の詳細を示す識別子である。項目詳細(数値)は、項目種別(数値)に応じて示す意味が変わる。具体的には、例えば、項目種別(数値)が数値項目であることを示す識別子「1」である場合には、項目詳細(数値)は、次に示す4つの識別子のいずれかとなる。1つ目が、帳票の項目に入力される値が数値であることを示す識別子「0」である。2つ目が、帳票の項目に入力される値が通貨であることを示す識別子「1」である。3つ目が、帳票の項目に入力される値が区切りであることを示す識別子「2」である。4つ目が、帳票の項目に入力される値が日付であることを示す識別子「3」である。   The item detail (numerical value) is an identifier indicating the detail of the item of the form. The meaning of the item details (numerical values) changes depending on the item type (numerical values). Specifically, for example, when the item type (numerical value) is an identifier “1” indicating that the item type is a numerical value item, the item detail (numerical value) is one of the following four identifiers. The first is an identifier “0” indicating that the value input to the form item is a numeric value. The second is an identifier "1" that indicates that the value input to the form item is a currency. The third is an identifier "2" indicating that the value input to the item of the form is a delimiter. The fourth is an identifier "3" indicating that the value input to the form item is a date.

また、例えば、項目種別(数値)がテキスト項目であることを示す識別子「2」である場合には、項目詳細(数値)は、次に示す3つの識別子のいずれかとなる。1つ目が、帳票の項目に入力されるテキストが標準であることを示す識別子「0」である。2つ目が、帳票の項目に入力されるテキストがハイパーリンクであることを示す識別子「1」である。3つ目が、帳票の項目に入力されるテキストが郵便番号であることを示す識別子「2」である。   Further, for example, when the item type (numerical value) is an identifier “2” indicating that the item is a text item, the item detail (numerical value) is any of the following three identifiers. The first is an identifier "0" that indicates that the text input to the form item is standard. The second is an identifier “1” indicating that the text input to the form item is a hyperlink. The third is an identifier "2" indicating that the text input to the form item is a zip code.

また、例えば、項目種別(数値)が矩形テキスト項目であることを示す識別子「3」である場合には、項目詳細(数値)は、固定で、識別子「0」となる。   Further, for example, when the item type (numerical value) is an identifier “3” indicating that the item is a rectangular text item, the item detail (numerical value) is fixed and becomes an identifier “0”.

図6は、検索情報ファイル412の記憶内容の一例を示す説明図である。図6に示す検索情報ファイル412は、行601−1〜8を有する。   FIG. 6 is an explanatory view showing an example of the storage content of the search information file 412. As shown in FIG. The search information file 412 shown in FIG. 6 has lines 601-1 to 8-8.

検索情報ファイル412は、CSV形式として、1つの行に、3つの情報を有する。1つ目の情報は、帳票データの項目が出力されたページ数である。2つ目の情報は、ix=ファイル番号−インデックスというkey=value形式で表現される情報である。ここで、ファイル番号は、トレースインデックスファイルのファイル番号である。また、インデックスは、トレースインデックスファイルのインデックスである。3つ目の情報は、項目番号=データという形式で表現される情報である。ここで、項目番号は、帳票データの項目の番号である。また、データは、等号の左辺で示された項目番号の項目種別がテキスト項目または矩形テキスト項目であれば、実際に出力されたデータである。また、等号の左辺で示された項目番号の項目種別が数字項目であれば、データは、区切り、通貨記号等がない、入力されたデータである。また、等号の左辺で示された項目番号の項目種別がテキスト項目または矩形テキスト項目である場合に、データは、「”」で囲まれた形式となる。また、データに「”」が含まれる場合には、データに含まれる「”」は、「””」に変換される。   The search information file 412 has three pieces of information in one line as a CSV format. The first information is the number of pages on which the item of form data is output. The second information is information expressed in a key = value format ix = file number-index. Here, the file number is the file number of the trace index file. Also, the index is an index of the trace index file. The third information is information expressed in the form of item number = data. Here, the item number is the number of the item of the form data. The data is data that is actually output if the item type of the item number indicated by the left side of the equal sign is a text item or a rectangular text item. Also, if the item type of the item number indicated by the left side of the equal sign is a numeric item, the data is input data without a break, a currency symbol, and the like. In addition, when the item type of the item number indicated by the left side of the equal sign is a text item or a rectangular text item, the data is in a format enclosed by "". Also, when the data includes "", the "" included in the data is converted to "" ".

図7は、描画データ413の記憶内容の一例を示す説明図である。図7に示す描画データ413は、レコード701−1、2を有する。   FIG. 7 is an explanatory view showing an example of the storage content of the drawing data 413. As shown in FIG. The drawing data 413 illustrated in FIG. 7 includes the records 701-1 and 2.

描画データ413は、開始X座標と、開始Y座標と、文字属性と、数値/文字データというフィールドを含む。開始X座標フィールドには、数値/文字データが印字される帳票データにおける開始位置のX座標が格納される。開始Y座標フィールドには、数値/文字データが印字される帳票データにおける開始位置のY座標が格納される。文字属性フィールドには、数値/文字データの文字の大きさ、フォント名、文字間隔といった書式情報が格納される。数値/文字データフィールドには、描画する実際の数値や文字そのものの情報が格納される。   The drawing data 413 includes fields of start X coordinate, start Y coordinate, character attribute, and numerical value / character data. The start X coordinate field stores the X coordinate of the start position in the form data on which numerical value / character data is printed. In the start Y coordinate field, the Y coordinate of the start position in the form data on which numerical value / character data is printed is stored. The character attribute field stores format information such as character size, font name, and character spacing of numeric / character data. The numeric / character data field stores information of the actual numeric value to be drawn and the character itself.

図8は、検索属性ファイル414の記憶内容の一例を示す説明図である。検索属性ファイル414は、SearchKey、Key、Direction、Marginという4つのキーワードを有し得る。検索属性ファイル414は、SearchKey以外の3つのキーワードについては有してなくともよい。   FIG. 8 is an explanatory view of an example of the storage content of the search attribute file 414. As shown in FIG. The search attribute file 414 may have four keywords: SearchKey, Key, Direction, and Margin. The search attribute file 414 may not have three keywords other than SearchKey.

SearchKeyキーワードは、帳票データ111の表データからレコードを抽出する条件となる文字列を指定するキーワードである。Keyキーワードは、項目値の合計値を算出する処理の処理内容を示す文字列を指定するキーワードである。ここで、SearchKeyキーワードとKeyキーワードとについては、任意の長さの任意の文字を示す「*」といったワイルドカードや、文字列の集合を一つの文字列で表現する方法の1つである正規表現を用いてもよい。   The SearchKey keyword is a keyword that designates a character string serving as a condition for extracting a record from the tabular data of the form data 111. The Key keyword is a keyword that designates a character string indicating the processing content of the process of calculating the total value of the item values. Here, for the SearchKey keyword and the Key keyword, a wildcard such as "*" indicating an arbitrary character of an arbitrary length, or a regular expression which is one of the methods of expressing a set of character strings with one character string May be used.

Directionキーワードは、Keyキーワードにより見つかった文字列が印字される帳票データ111における位置から、合計値印字位置を探索する方向を指定するキーワードである。Marginキーワードは、帳票データ111に印字されている値と、印刷データ生成装置101が算出した合計値とが一致したと見做す範囲を指定するキーワードである。   The Direction keyword is a keyword for specifying the direction in which the total value print position is to be searched from the position in the form data 111 where the character string found by the Key keyword is printed. The Margin keyword is a keyword for specifying a range in which it is considered that the value printed in the form data 111 matches the total value calculated by the print data generation apparatus 101.

例えば、図8に示す検索属性ファイル414は、SearchKeyキーワードにより、帳票データ111の表データから「カラーテレビ」という文字列を含むレコードを2次帳票として生成することを示す。さらに、図8に示す検索属性ファイル414は、演算処理の処理内容を示す文字列が「売上合計」であることを示す。さらに、図8に示す検索属性ファイル414は、「売上合計」が印字される帳票データ111における位置から下方向に、合計値印字位置を探索することを示す。さらに、図8に示す検索属性ファイル414は、帳票データ111に印字されている値と、印刷データ生成装置101が算出した項目の項目値の合計値との差分が10%以内であれば、一致したと見做し、印刷データ生成装置101が項目を特定することを示す。   For example, the search attribute file 414 illustrated in FIG. 8 indicates that a record including a character string “color TV” is generated as a secondary form from the front data of the form data 111 by the SearchKey keyword. Further, the search attribute file 414 shown in FIG. 8 indicates that the character string indicating the processing content of the arithmetic processing is “total sales”. Further, the search attribute file 414 shown in FIG. 8 indicates that the total value print position is searched downward from the position in the form data 111 where the “total sales” is printed. Furthermore, the search attribute file 414 shown in FIG. 8 matches if the difference between the value printed in the form data 111 and the total value of the item values of the items calculated by the print data generation apparatus 101 is within 10%. It is assumed that the print data generation apparatus 101 specifies an item.

次に、2次帳票データを生成する2次帳票生成処理の動作を、図9〜図11を用いて説明する。ここで、図9〜図11で示す例では、帳票データ111に合計値があるものとする。また、図9〜図11で示す例では、クライアント装置202から、図8に示す検索属性ファイル414が送信されたものとする。   Next, the operation of secondary form generation processing for generating secondary form data will be described using FIG. 9 to FIG. Here, in the example shown in FIGS. 9 to 11, it is assumed that the form data 111 has a total value. Further, in the example shown in FIGS. 9 to 11, it is assumed that the search attribute file 414 shown in FIG. 8 is transmitted from the client apparatus 202.

図9は、2次帳票生成処理の動作の一例を示す説明図(その1)である。図9に示す状態は、DB201が、複数の帳票データ111の表データ113を出力し、印刷データ生成装置101が複数の帳票データ111を出力した状態である。ここで、図4で説明したように、DB201は、帳票データ111の表データ113を生成した際に、項目情報ファイル411と検索情報ファイル412とを出力する。具体的には、例えば、行601−1の「01」は、帳票データ111−1のNo項目のデータである「01」に相当する。   FIG. 9 is an explanatory view (part 1) of an example of the operation of the secondary form generation process. The state illustrated in FIG. 9 is a state in which the DB 201 outputs the table data 113 of the plurality of form data 111 and the print data generation apparatus 101 outputs the plurality of form data 111. Here, as described with reference to FIG. 4, when the table data 113 of the form data 111 is generated, the DB 201 outputs the item information file 411 and the search information file 412. Specifically, for example, "01" in the row 601-1 corresponds to "01" which is data of the No item of the form data 111-1.

印刷データ生成装置101は、帳票データ111−1から、合計対象項目ごとに、合計値を集計する。図9の例では、印刷データ生成装置101は、図9の(1)で示すように、合計対象項目として、数値項目であるNo、商品コード、数量、単価、金額という項目を取り出して、各項目の項目値の合計値を算出する。印刷データ生成装置101は、算出した合計値を項目に対応付けて、一時的に用意した合計値群テーブル901に書き込む。   From the form data 111-1, the print data generation apparatus 101 tabulates the total value for each total target item. In the example of FIG. 9, the print data generation apparatus 101 takes out the items of numeric item No, product code, quantity, unit price and amount as total target items as shown in (1) of FIG. Calculate the total value of item values of items. The print data generation apparatus 101 associates the calculated total value with the item, and writes the total value group table 901 prepared temporarily.

ここで、帳票データ111−1から数値項目である項目を取り出して、各項目の項目値の合計値を算出する方法として、印刷データ生成装置101は、項目情報ファイル411−1と検索情報ファイル412−1とを用いる。具体的には、印刷データ生成装置101は、項目情報ファイル411−1を参照して、項目種別が数字項目であり、項目詳細が数値である項目を取り出す。さらに、印刷データ生成装置101は、項目種別が数字項目であり、項目詳細が通貨、区切り、日付である項目を取り出してもよい。図9の例では、印刷データ生成装置101は、行501−1、2、4〜6を取り出す。   Here, as a method of taking out the items which are numeric items from the form data 111-1 and calculating the total value of the item values of each item, the print data generation apparatus 101 includes an item information file 411-1 and a search information file 412. Use -1 and. Specifically, the print data generation apparatus 101 refers to the item information file 411-1 and takes out an item whose item type is a numeric item and whose item detail is a numeric value. Furthermore, the print data generation apparatus 101 may retrieve an item whose item type is a numeric item and whose item details are a currency, a break, and a date. In the example of FIG. 9, the print data generation apparatus 101 takes out the lines 501-1, 2, and 4 to 6.

そして、印刷データ生成装置101は、検索情報ファイル412−1を参照して、取り出した項目の項目値を取り出し、取り出した項目値の合計値を算出する。図9の例では、印刷データ生成装置101は、行501−1に対応する行601−1、7、…を参照して、「01」、「02」、…を取り出し、取り出した「01」、「02」、…の合計値「21」を算出する。同様に、印刷データ生成装置101は、行501−2、4〜6についても同様に、描画データ413から対応する行を取り出し、取り出した項目値の合計値を算出する。ここで、項目詳細が通貨、区切り、日付である項目の項目値の合計値を算出する場合、印刷データ生成装置101は、通貨、区切り、日付を数値に変換して合計値を算出してもよいし、項目値をそのまま数値と見做して算出してもよい。   Then, the print data generation apparatus 101 refers to the search information file 412-1, extracts the item value of the extracted item, and calculates the total value of the extracted item values. In the example of FIG. 9, the print data generation apparatus 101 extracts “01”, “02”,... With reference to the lines 601-1, 7,. , “02”,... Is calculated. Similarly, the print data generation apparatus 101 similarly extracts the corresponding line from the drawing data 413 for the lines 501-2 and 4 to 6, and calculates the total value of the extracted item values. Here, when calculating the total value of item values of items whose item details are currency, section, date, the print data generation apparatus 101 may convert the currency, section, date into a numerical value and calculate the total value. The item value may be calculated by regarding it as a numerical value as it is.

図9の(1)で示す処理が完了した結果、合計値群テーブル901は、以下の通りとなる。   As a result of the completion of the process shown in (1) of FIG. 9, the total value group table 901 is as follows.

項目名「No」に対応付けた「21」
項目名「商品コード」に対応付けた「204」
項目名「数量」に対応付けた「19」
項目名「単価」に対応付けた「635000」
項目名「金額」に対応付けた「1758000」
"21" associated with the item name "No"
"204" associated with the item name "product code"
"19" associated with the item name "quantity"
"635000" associated with the item name "unit price"
"1758000" associated with the item name "amount"

図10は、2次帳票生成処理の動作の一例を示す説明図(その2)である。図10に示す状態は、図9の(1)で示す処理が完了した状態である。印刷データ生成装置101は、合計値印字位置を検索する処理として、合計の処理内容を示す文字列が印字される帳票データ111−1における位置を特定する。図10の例では、印刷データ生成装置101は、図10の(1)で示すように、検索属性ファイル414のKeyキーワードで指定された“売上合計”が印字される帳票データ111−1における位置を特定する。より具体的には、印刷データ生成装置101は、描画データ413から、データが“売上合計”となるレコードを探索し、見つかったレコードの開始X座標と開始Y座標とを、“売上合計”が印字される帳票データ111−1における位置として特定する。   FIG. 10 is an explanatory view (part 2) of an example of the operation of the secondary form generation process. The state shown in FIG. 10 is a state in which the process shown in (1) of FIG. 9 is completed. The print data generation apparatus 101 specifies a position in the form data 111-1 in which a character string indicating the processing content of the total is printed as a process of searching for the total value print position. In the example of FIG. 10, the print data generation apparatus 101 is, as shown in (1) of FIG. 10, a position in the form data 111-1 at which “sales total” designated by the Key keyword of the search attribute file 414 is printed. Identify More specifically, the print data generation apparatus 101 searches the drawing data 413 for a record in which the data is "total sales", and the "total sales" indicates the start X coordinate and the start Y coordinate of the found record. It specifies as a position in form data 111-1 printed.

次に、印刷データ生成装置101は、合計値群テーブル901と、合計の処理内容を示す文字列が印字される帳票データ111−1における位置とに基づいて、帳票データ111における合計の値の有無と、合計の値が印字される位置とを特定する。図10の例では、検索属性ファイル414のDirectionキーワードとして“下方向”が指定されている。従って、印刷データ生成装置101は、図10の(2)で示すように、“売上合計”が印字される帳票データ111−1における位置の下方向にある数値描画データを探索する。より具体的には、印刷データ生成装置101は、描画データ413を参照して、“売上合計”が印字される帳票データ111−1における位置の下方向にある数値描画データを探索する。図10の例では、印刷データ生成装置101は、「¥1,758,000」を見つける。   Next, the print data generation apparatus 101 determines whether or not there is a total value in the form data 111 based on the total value group table 901 and the position in the form data 111-1 where the character string indicating the processing content of the total is printed. And the position where the value of the sum is to be printed. In the example of FIG. 10, “down” is designated as the Direction keyword of the search attribute file 414. Therefore, as shown in (2) of FIG. 10, the print data generation apparatus 101 searches for numerical drawing data located below the position in the form data 111-1 on which the "total sales" is printed. More specifically, the print data generation apparatus 101 refers to the drawing data 413 and searches for numerical drawing data in the lower direction of the position in the form data 111-1 on which the "total sales" is printed. In the example of FIG. 10, the print data generation apparatus 101 finds “¥ 1,758,000”.

そして、印刷データ生成装置101は、図10の(3)で示すように、合計値群テーブル901と、「¥1,758,000」とを比較することにより、帳票データ111−1における合計の値の有無と、合計の値が印字される位置を特定する。具体的には、印刷データ生成装置101は、合計値群テーブル901の各合計値と「¥1,758,000」とを比較する。そして、一致した合計値があれば、印刷データ生成装置101は、帳票データ111において合計の値が有ると特定するとともに、「¥1,758,000」の位置を、合計の値が印字される位置として特定する。一方、一致した合計値がなければ、印刷データ生成装置101は、帳票データ111において合計の値が無いと特定する。   Then, as shown in (3) of FIG. 10, the print data generation apparatus 101 compares the total value group table 901 with “¥ 1,758,000” to obtain the total of the form data 111-1. Specify the presence or absence of the value and the position where the total value is printed. Specifically, the print data generation apparatus 101 compares each total value of the total value group table 901 with “¥ 1,758,000”. Then, if there is a matching total value, the print data generation apparatus 101 specifies that there is a total value in the form data 111 and the total value is printed at the position of “¥ 1,758,000”. Identify as a location. On the other hand, if there is no matching total value, the print data generation apparatus 101 specifies that there is no total value in the form data 111.

さらに、図10の例では、検索属性ファイル414のMarginキーワードとして10%が指定されている。従って、印刷データ生成装置101は、合計値群テーブル901の各合計値のうち、「¥1,758,000」との差分が10%以内となる合計値があれば、帳票データ111において合計の値が有ると特定する。   Further, in the example of FIG. 10, 10% is designated as the Margin keyword of the search attribute file 414. Therefore, if there is a total value in which the difference with “¥ 1,758,000” is within 10% among the total values of the total value group table 901, the print data generation apparatus 101 calculates the total of the form data 111. Identify if there is a value.

図10の例では、合計値群テーブル901のうち、項目名「金額」に対応する「1758000」が、「¥1,758,000」と一致する。従って、印刷データ生成装置101は、帳票データ111において合計の値が有ると特定するとともに、「¥1,758,000」の位置を、合計の値が印字される位置として特定する。さらに、印刷データ生成装置101は、図10の(4)で示すように、合計値群テーブル901のうち、一致した項目名「金額」を特定する。   In the example of FIG. 10, “1758000” corresponding to the item name “amount” in the total value group table 901 matches “¥ 1,758,000”. Therefore, the print data generation apparatus 101 specifies that the total value is present in the form data 111 and specifies the position of “¥ 1,758,000” as the position where the total value is to be printed. Further, as shown in (4) of FIG. 10, the print data generation apparatus 101 identifies the matching item name “amount” in the total value group table 901.

図11は、2次帳票生成処理の動作の一例を示す説明図(その3)である。図11に示す状態は、SearchKeyキーワードにより、帳票データ111の表データから「カラーテレビ」という文字列を含むレコードを2次帳票データ121として生成中であり、かつ、図10の(4)で示す処理が完了した状態である。   FIG. 11 is an explanatory view (part 3) of an example of the operation of the secondary form generation process. In the state shown in FIG. 11, a record including the character string “color TV” is being generated as secondary form data 121 from the table data of form data 111 by the SearchKey keyword, and is shown by (4) in FIG. Processing is complete.

印刷データ生成装置101は、図11の(1)で示すように、2次帳票データ121の表データから、特定した項目名「金額」の項目値を取り出し、合計値を算出する。具体的には、印刷データ生成装置101は、項目名「金額」の項目値を取り出し、合計値を690000+660000+…+490000=2482000というように合計値を算出する。   As shown in (1) of FIG. 11, the print data generation apparatus 101 extracts the item value of the specified item name “amount” from the table data of the secondary form data 121, and calculates the total value. Specifically, the print data generation apparatus 101 takes out the item value of the item name “amount”, and calculates the total value such as 690000 + 660000 +... + 490000 = 2482000.

そして、印刷データ生成装置101は、図11の(2)で示すように、算出した合計値を、図10の(1)で特定した位置に対応する位置に印字されるように2次帳票データ121を設定する。具体的には、印刷データ生成装置101は、2次帳票データ121の描画データ413から、特定した位置に一致するレコードを検索し、見つかったレコードの数値/文字データフィールドに、算出した合計値を格納する。算出した合計値を格納することにより、印刷データ生成装置101は、2次帳票データ121の生成を完了する。   Then, as shown by (2) in FIG. 11, the print data generation apparatus 101 prints secondary form data so that the calculated total value is printed at the position corresponding to the position identified by (1) in FIG. Set 121. Specifically, the print data generation apparatus 101 searches the drawing data 413 of the secondary form data 121 for a record matching the specified position, and calculates the calculated total value in the numerical value / character data field of the found record. Store. By storing the calculated total value, the print data generation apparatus 101 completes the generation of the secondary form data 121.

次に、図12〜図15を用いて、印刷データ生成装置101が行う2次帳票生成処理のフローチャートを示す。   Next, a flowchart of secondary document generation processing performed by the print data generation apparatus 101 will be described with reference to FIGS. 12 to 15.

図12は、2次帳票生成処理手順の一例を示すフローチャートである。印刷データ生成装置101は、複数の帳票データ111から、SearchKeyキーワードが示す条件に一致するレコードを抽出する(ステップS1201)。次に、印刷データ生成装置101は、合計対象項目ごとの合計値集計処理を実行する(ステップS1202)。合計対象項目ごとの合計値集計処理については、図13で説明する。そして、印刷データ生成装置101は、合計値印字位置特定処理を実行する(ステップS1203)。合計値印字位置特定処理は、図14と図15とで説明する。   FIG. 12 is a flowchart of an example of a secondary form generation process. The print data generation apparatus 101 extracts a record that matches the condition indicated by the SearchKey keyword from the plurality of form data 111 (step S1201). Next, the print data generation apparatus 101 executes total value tabulation processing for each total target item (step S1202). The total value tabulation processing for each total target item will be described with reference to FIG. Then, the print data generation apparatus 101 executes a total value print position specifying process (step S1203). The total value print position specifying process will be described with reference to FIGS. 14 and 15.

次に、印刷データ生成装置101は、抽出したレコードを集約した2次帳票データ121を生成する(ステップS1204)。そして、印刷データ生成装置101は、2次帳票データ121内の記憶した位置座標に、抽出したレコードの合計値を設定する(ステップS1205)。ステップS1205の処理終了後、印刷データ生成装置101は、2次帳票生成処理を終了する。2次帳票生成処理を実行することにより、印刷データ生成装置101は、合計値が正確な値となる2次帳票データ121を生成することができる。   Next, the print data generation apparatus 101 generates secondary form data 121 in which the extracted records are aggregated (step S1204). Then, the print data generation apparatus 101 sets the total value of the extracted records in the position coordinates stored in the secondary form data 121 (step S1205). After the process of step S1205 ends, the print data generation apparatus 101 ends the secondary form generation process. By executing the secondary form generation process, the print data generation apparatus 101 can generate the secondary form data 121 whose total value is an accurate value.

図13は、合計対象項目ごとの合計値集計処理手順の一例を示すフローチャートである。印刷データ生成装置101は、検索情報ファイル412と項目情報ファイル411とを読み込む(ステップS1301)。次に、印刷データ生成装置101は、項目情報ファイル411内に読み込む数値項目がなくなったか否かを判断する(ステップS1302)。項目情報ファイル411内に読み込む数値項目がなくなった場合(ステップS1302:Yes)、印刷データ生成装置101は、合計対象項目ごとの合計値集計処理を終了する。   FIG. 13 is a flowchart illustrating an example of a total value tabulation processing procedure for each total target item. The print data generation apparatus 101 reads the search information file 412 and the item information file 411 (step S1301). Next, the print data generation apparatus 101 determines whether there are no more numerical items to be read in the item information file 411 (step S1302). If there are no more numerical items to be read in the item information file 411 (step S1302: YES), the print data generation apparatus 101 ends the total value tabulation processing for each total object item.

一方、項目情報ファイル411内に読み込む数値項目がある場合(ステップS1302:No)、印刷データ生成装置101は、項目情報ファイル411の数値項目の項目番号を取り出す(ステップS1303)。次に、印刷データ生成装置101は、検索情報ファイル412内に読み込む項目番号の値がなくなったか否かを判断する(ステップS1304)。検索情報ファイル412内に読み込む項目番号の値がある場合(ステップS1304:No)、印刷データ生成装置101は、検索情報ファイル412内の同一項目名の値を取り出す(ステップS1305)。次に、印刷データ生成装置101は、取り出した値を加算する(ステップS1306)。そして、印刷データ生成装置101は、ステップS1304の処理に移行する。   On the other hand, when there is a numerical value item to be read in the item information file 411 (step S1302: No), the print data generation apparatus 101 takes out the item number of the numerical value item of the item information file 411 (step S1303). Next, the print data generation apparatus 101 determines whether the value of the item number read in the search information file 412 is exhausted (step S1304). If there is a value of the item number read in the search information file 412 (step S1304: No), the print data generation apparatus 101 takes out the value of the same item name in the search information file 412 (step S1305). Next, the print data generation apparatus 101 adds the extracted value (step S1306). Then, the print data generation apparatus 101 proceeds to the process of step S1304.

一方、検索情報ファイル412内に読み込む項目番号の値がなくなった場合(ステップS1304:Yes)、印刷データ生成装置101は、加算結果を合計値として合計値群テーブル901に書き込む(ステップS1307)。そして、印刷データ生成装置101は、ステップS1302の処理に移行する。   On the other hand, if there is no value of the item number read into the search information file 412 (step S1304: YES), the print data generation apparatus 101 writes the addition result as a total value in the total value group table 901 (step S1307). Then, the print data generation apparatus 101 proceeds to the process of step S1302.

図14は、合計値印字位置特定処理手順の一例を示すフローチャート(その1)である。また、図15は、合計値印字位置特定処理手順の一例を示すフローチャート(その2)である。   FIG. 14 is a flowchart (part 1) illustrating an example of a total value printing position specifying process procedure. FIG. 15 is a flowchart (part 2) illustrating an example of a total value print position specifying process procedure.

印刷データ生成装置101は、検索情報ファイル412を読み込む(ステップS1401)。次に、印刷データ生成装置101は、検索属性ファイル414にKeyキーワードがあるか否かを判断する(ステップS1402)。一方、Keyキーワードがない場合(ステップS1402:No)、印刷データ生成装置101は、探索キーワードを「*計」に設定する(ステップS1403)。一方、Keyキーワードがある場合(ステップS1402:Yes)、印刷データ生成装置101は、探索キーワードをKeyキーワード指定値に設定する(ステップS1404)。   The print data generation apparatus 101 reads the search information file 412 (step S1401). Next, the print data generation apparatus 101 determines whether the search attribute file 414 includes a Key keyword (step S1402). On the other hand, if there is no Key keyword (step S1402: NO), the print data generation apparatus 101 sets the search keyword to "total" (step S1403). On the other hand, if the key keyword is present (step S1402: YES), the print data generation apparatus 101 sets the search keyword to the key keyword specification value (step S1404).

ステップS1403、またはステップS1404の処理終了後、印刷データ生成装置101は、Directionキーワードがあるか否かを判断する(ステップS1405)。Directionキーワードがない場合(ステップS1405:No)、印刷データ生成装置101は、探索方向を「下方向」に設定する(ステップS1406)。一方、Directionキーワードがある場合(ステップS1405:Yes)、印刷データ生成装置101は、探索方向をDirectionキーワード指定値に設定する(ステップS1407)。   After the process of step S1403 or step S1404 is completed, the print data generation apparatus 101 determines whether there is a Direction keyword (step S1405). If there is no Direction keyword (step S1405: NO), the print data generation apparatus 101 sets the search direction to "downward" (step S1406). On the other hand, if the Direction keyword is present (step S1405: YES), the print data generation apparatus 101 sets the search direction to the Direction keyword specified value (step S1407).

ステップS1406、またはステップS1407の処理終了後、印刷データ生成装置101は、Marginキーワードがあるか否かを判断する(ステップS1408)。Marginキーワードがない場合(ステップS1408:No)、印刷データ生成装置101は、誤差を±20%に設定する(ステップS1409)。一方、Marginキーワードがある場合(ステップS1408:Yes)、印刷データ生成装置101は、誤差をMarginキーワード指定値に設定する(ステップS1410)。   After the process of step S1406 or step S1407, the print data generation apparatus 101 determines whether there is a margin keyword (step S1408). If there is no Margin keyword (step S1408: NO), the print data generation apparatus 101 sets an error to ± 20% (step S1409). On the other hand, if there is a Margin keyword (step S1408: YES), the print data generation apparatus 101 sets an error to the Margin keyword specification value (step S1410).

ステップS1409、またはステップS1410の処理終了後、印刷データ生成装置101は、描画データ413から、探索キーワードが示す条件に一致するレコードを探索する(ステップS1501)。次に、印刷データ生成装置101は、描画データ413から、見つかったレコードが示す座標位置の探索方向にある誤差範囲の数値描画データを探索する(ステップS1502)。そして、印刷データ生成装置101は、見つかった数値描画データ内の数値と、合計値群テーブル901の各合計値とを比較する(ステップS1503)。次に、印刷データ生成装置101は、比較した結果、値が一致した項目名と、数値描画データ内の位置座標とを記憶する(ステップS1504)。ステップS1504の処理終了後、印刷データ生成装置101は、合計値印字位置特定処理を終了する。合計値印字位置特定処理を実行することにより、印刷データ生成装置101は、合計値印字位置を特定することができる。   After the process of step S1409 or step S1410, the print data generation apparatus 101 searches the drawing data 413 for a record that matches the condition indicated by the search keyword (step S1501). Next, the print data generation apparatus 101 searches the drawing data 413 for numerical drawing data of an error range in the search direction of the coordinate position indicated by the found record (step S1502). Then, the print data generation apparatus 101 compares the numerical value in the found numerical value drawing data with each total value of the total value group table 901 (step S1503). Next, the print data generation apparatus 101 stores the item name whose value matches as a result of comparison and the position coordinates in the numerical value drawing data (step S1504). After the process of step S1504, the print data generation apparatus 101 ends the total value print position identification process. By executing the total value printing position specifying process, the print data generation device 101 can specify the total value printing position.

以上説明したように、印刷データ生成装置101は、帳票データ111−1の項目の合計値と同じ値が帳票データ111−1にあれば、合計値印字位置に複数の帳票データ111を集約した項目の合計値を印字した2次帳票データ121を生成する。これにより、印刷データ生成装置101は、2次帳票データ121において項目値の合計値を正確に出力することができる。また、印刷データ生成装置101は、DBサーバ201にアクセスせずに、2次帳票データ121において項目値の合計値を正確に出力することができる。また、印刷データ生成装置101は、項目情報ファイル411と検索情報ファイル412とを使用することにより、数値項目のデータにアクセスし、テキスト項目や矩形テキスト項目に対してアクセスしない。従って、印刷データ生成装置101は、2次帳票データ121を生成する際にかかる負荷を抑制することができる。   As described above, if the form data 111-1 has the same value as the total value of the items of the form data 111-1, the print data generation apparatus 101 is an item in which a plurality of form data 111 are aggregated at the total value printing position. The secondary form data 121 in which the total value of is printed is generated. As a result, the print data generation apparatus 101 can accurately output the total value of the item values in the secondary form data 121. Further, the print data generation apparatus 101 can accurately output the total value of the item values in the secondary form data 121 without accessing the DB server 201. Further, the print data generation apparatus 101 accesses the data of the numerical value item by using the item information file 411 and the search information file 412, and does not access the text item or the rectangular text item. Therefore, the print data generation apparatus 101 can suppress the load applied when generating the secondary form data 121.

また、印刷データ生成装置101は、項目値の合計値を算出する処理の処理内容を示す文字列が印字される帳票データ111における位置を検索し、検索により見つかった位置と、演算処理の演算結果の値とに基づいて、合計値印字位置を特定してもよい。これにより、帳票データ111内に複数の数値項目があったとしても、印刷データ生成装置101は、合計値印字位置を特定でき、2次帳票データ121における合計値を正確に出力することができる。また、印刷データ生成装置101は、検索により見つかった位置と、予め指定された探索方向と、演算処理の演算結果の値とに基づいて、合計値印字位置を特定してもよい。これにより、検索により見つかった位置と合計値が印字された位置とが離れた位置にあったとしても、見つかった位置を始点として予め指定された探索方向に合計値が印字されていれば、印刷データ生成装置101は、合計値印字位置を特定することができる。   Further, the print data generation apparatus 101 searches for a position in the form data 111 on which the character string indicating the processing content of the processing for calculating the total value of item values is printed, and the position found by the search and the calculation result of the calculation process The total value printing position may be specified based on the value of. Thereby, even if there are a plurality of numerical value items in the form data 111, the print data generation device 101 can specify the total value printing position, and can accurately output the total value in the secondary form data 121. Also, the print data generation apparatus 101 may specify the total value print position based on the position found by the search, the search direction designated in advance, and the value of the calculation result of the calculation process. As a result, even if the position found by the search and the position where the total value is printed are apart, if the total value is printed in the search direction designated in advance with the found position as the start point, printing is performed. The data generation device 101 can specify the total value printing position.

また、印刷データ生成装置101は、算出した合計値と、帳票データ111における表データ113の項目値の演算結果の値との差分が所定の範囲内であれば、合計値印字位置を特定してもよい。これにより、帳票データ111に印字されている項目値が、四捨五入等により丸められた値であったとしても、印刷データ生成装置101は、合計値印字位置を特定でき、2次帳票データ121における合計値を正確に出力することができる。   Further, if the difference between the calculated total value and the value of the calculation result of the item value of the table data 113 in the form data 111 is within a predetermined range, the print data generation device 101 specifies the total value print position. It is also good. Thus, even if the item value printed in the form data 111 is a value rounded by rounding off, the print data generation apparatus 101 can specify the total value print position, and the total in the secondary form data 121 Values can be output correctly.

また、印刷データ生成装置101は、帳票データ111における表データ113の項目のうち数値情報を項目値に含む項目が複数ある場合、各項目の項目値の合計値を算出し、いずれかの項目を特定してもよい。これにより、印刷データ生成装置101は、帳票データ111の数値情報を項目値に含む項目が複数あったとしても、合計値を算出した項目を正確に特定することができ、2次帳票データ121における合計値を正確に出力することができる。   In addition, when there are a plurality of items including numerical information in the item value among the items of the table data 113 in the form data 111, the print data generation apparatus 101 calculates the total value of the item values of each item, and selects one of the items. It may be specified. As a result, even if there are a plurality of items including the numerical value information of the form data 111 in the item values, the print data generation apparatus 101 can accurately specify the item for which the total value has been calculated. The total value can be output accurately.

なお、本実施の形態では、印刷データ生成装置101は、複数の帳票データから2次帳票データを生成したが、複数の帳票データと2次帳票データとから、前述の2次帳票データとは異なる2次帳票データを生成してもよい。さらに、印刷データ生成装置101は、2つ以上の2次帳票データから、前述の2つ以上の2次帳票データとは異なる2次帳票データを生成してもよい。   In the present embodiment, the print data generation apparatus 101 generates secondary form data from a plurality of form data. However, the print data generation apparatus 101 differs from the above-described secondary form data from the plurality of form data and the secondary form data. Secondary form data may be generated. Furthermore, the print data generation apparatus 101 may generate secondary form data different from the above-mentioned two or more secondary form data from the two or more secondary form data.

また、本実施の形態では、表データを含む印刷データを帳票データとしたが、他の印刷データであってもよい。例えば、表データを含む印刷データは、表データを含むプログラムの設計仕様書を示す印刷データでもよい。プログラムの設計仕様書を示す印刷データに含まれる表データは、例えば、プログラム内の関数の各引数の型と各引数の説明が記載されたデータである。   Further, in the present embodiment, print data including tabular data is used as form data, but other print data may be used. For example, print data including tabular data may be print data indicating a design specification of a program including tabular data. Table data included in print data indicating a design specification of a program is, for example, data in which types of arguments of functions in the program and descriptions of the arguments are described.

また、本実施の形態で説明した印刷データ生成方法は、予め用意されたプログラムをパーソナル・コンピュータやワークステーション等のコンピュータで実行することにより実現することができる。本印刷データ生成プログラムは、ハードディスク、フレキシブルディスク、CD−ROM(Compact Disc−Read Only Memory)、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録され、コンピュータによって記録媒体から読み出されることによって実行される。また本印刷データ生成プログラムは、インターネット等のネットワークを介して配布してもよい。   The print data generation method described in the present embodiment can be realized by executing a prepared program on a computer such as a personal computer or a workstation. The print data generation program is recorded on a computer-readable recording medium such as a hard disk, a flexible disk, a CD-ROM (Compact Disc-Read Only Memory), a DVD (Digital Versatile Disk), etc., and read from the recording medium by the computer. Is performed by The print data generation program may be distributed via a network such as the Internet.

上述した実施の形態に関し、さらに以下の付記を開示する。   The following appendices will be further disclosed regarding the embodiment described above.

(付記1)コンピュータに、
定義情報を同じくする複数の印刷データのうちの少なくともいずれかに含まれる表データの、数値情報を項目値に含む項目の、項目値に対する演算処理を行い、
前記演算処理の演算結果の値に基づいて、前記演算処理を行った前記印刷データにおける前記表データの項目値の演算結果の値の有無、および該演算結果の値が印字される前記印刷データにおける位置を特定し、
前記複数の印刷データの表データから、所定の条件に基づいて抽出した部分データを集約した印刷データを生成する際に、前記部分データを集約した印刷データに含まれる項目値に対する演算処理の演算結果の値が、特定された前記位置に対応する位置に印字された印刷データを生成する、
処理を実行させることを特徴とする印刷データ生成プログラム。
(Supplementary Note 1)
Arithmetic processing is performed on item values of items including numerical value information in item values of table data included in at least one of a plurality of print data having the same definition information.
The presence or absence of the value of the calculation result of the item value of the table data in the print data subjected to the calculation processing based on the value of the calculation result of the calculation processing, and in the print data to which the value of the calculation result is printed Locate and
When generating print data by aggregating partial data extracted based on a predetermined condition from table data of the plurality of print data, calculation result of arithmetic processing on item values included in the print data into which the partial data is aggregated Generating print data printed at a position corresponding to the specified position, the value of
A print data generation program characterized by executing processing.

(付記2)前記コンピュータに、
前記印刷データから、前記演算処理の処理内容を示す文字列が印字される前記印刷データにおける位置を検索する、処理を実行させ、
前記特定する処理は、
検索した前記文字列が印字される前記印刷データにおける位置と、前記演算処理の演算結果の値とに基づいて、前記印刷データにおける前記表データの項目値の演算結果の値の有無、および該演算結果の値が印字される前記印刷データにおける位置を特定することを特徴とする付記1に記載の印刷データ生成プログラム。
(Supplementary Note 2)
A process of searching for a position in the print data on which a character string indicating the processing content of the arithmetic processing is printed from the print data is executed.
The process for specifying is
The presence or absence of the value of the calculation result of the item value of the table data in the print data based on the position in the print data where the searched character string is printed and the value of the calculation result of the calculation process, and the calculation The print data generation program according to appendix 1, wherein a position in the print data to which a value of a result is printed is specified.

(付記3)前記特定する処理は、
前記演算処理の演算結果の値と、前記印刷データにおける前記表データの項目値の演算結果の値との差分が所定の範囲内であれば、前記演算処理を行った前記印刷データにおける前記表データの項目値の演算結果の値が有ることを特定するとともに、該演算結果の値が印字される前記印刷データにおける位置を特定することを特徴とする付記1または2に記載の印刷データ生成プログラム。
(Supplementary Note 3) The process for specifying
If the difference between the value of the calculation result of the calculation process and the value of the calculation result of the item value of the table data in the print data is within a predetermined range, the table data in the print data subjected to the calculation process The print data generation program according to claim 1 or 2, characterized in that it specifies that there is a value of an operation result of the item value, and specifies a position in the print data where the value of the operation result is printed.

(付記4)前記演算処理を行う処理は、
前記印刷データにおける前記表データの項目のうち数値情報を項目値に含む項目が複数ある場合、数値情報を項目値に含む各項目の項目値に対する演算処理を行い、
前記特定する処理は、
さらに、前記各項目の項目値に対する前記演算処理の演算結果の値と前記印刷データにおける前記表データの項目値の演算結果の値との比較結果に基づいて、前記各項目からいずれかの項目を特定し、
前記生成する処理は、
前記複数の印刷データの表データから、前記部分データを集約した印刷データを生成する際に、前記部分データを集約した印刷データに含まれる前記いずれかの項目の項目値に対する演算処理の演算結果の値が、特定された前記位置に対応する位置に印字された印刷データを生成することを特徴とする付記1〜3のいずれか一つに記載の印刷データ生成プログラム。
(Supplementary Note 4) The process of performing the arithmetic process is
When there are a plurality of items including numerical information in the item value among the items of the table data in the print data, arithmetic processing is performed on the item value of each item including the numerical information in the item value,
The process for specifying is
Furthermore, based on the comparison result of the value of the calculation result of the calculation process for the item value of each item and the value of the calculation result of the item value of the table data in the print data, any item is selected from each item Identify
The processing to generate is
When print data in which the partial data is aggregated is generated from table data of the plurality of print data, the calculation result of the arithmetic processing on the item value of the any item included in the print data in which the partial data is aggregated The print data generation program according to any one of appendices 1 to 3, wherein print data is generated in which a value is printed at a position corresponding to the specified position.

(付記5)前記項目値に対する演算処理は、前記項目値の和を算出する処理であることを特徴とする付記1〜4のいずれか一つに記載の印刷データ生成プログラム。 (Supplementary note 5) The print data generation program according to any one of supplementary notes 1 to 4, wherein the calculation process on the item value is a process of calculating the sum of the item values.

(付記6)定義情報を同じくする複数の印刷データのうちの少なくともいずれかに含まれる表データの、数値情報を項目値に含む項目の、項目値に対する演算処理を行い、
前記演算処理の演算結果の値に基づいて、前記演算処理を行った前記印刷データにおける前記表データの項目値の演算結果の値の有無、および該演算結果の値が印字される前記印刷データにおける位置を特定し、
前記複数の印刷データの表データから、所定の条件に基づいて抽出した部分データを集約した印刷データを生成する際に、前記部分データを集約した印刷データに含まれる項目値に対する演算処理の演算結果の値が、特定された前記位置に対応する位置に印字された印刷データを生成する、
制御部を有することを特徴とする印刷データ生成装置。
(Supplementary Note 6) Arithmetic processing is performed on the item value of the item including numerical value information in the item value of the table data included in at least one of the plurality of print data having the same definition information.
The presence or absence of the value of the calculation result of the item value of the table data in the print data subjected to the calculation processing based on the value of the calculation result of the calculation processing, and in the print data to which the value of the calculation result is printed Locate and
When generating print data by aggregating partial data extracted based on a predetermined condition from table data of the plurality of print data, calculation result of arithmetic processing on item values included in the print data into which the partial data is aggregated Generating print data printed at a position corresponding to the specified position, the value of
What is claimed is: 1. A print data generation apparatus comprising a control unit.

(付記7)コンピュータが、
定義情報を同じくする複数の印刷データのうちの少なくともいずれかに含まれる表データの、数値情報を項目値に含む項目の、項目値に対する演算処理を行い、
前記演算処理の演算結果の値に基づいて、前記演算処理を行った前記印刷データにおける前記表データの項目値の演算結果の値の有無、および該演算結果の値が印字される前記印刷データにおける位置を特定し、
前記複数の印刷データの表データから、所定の条件に基づいて抽出した部分データを集約した印刷データを生成する際に、前記部分データを集約した印刷データに含まれる項目値に対する演算処理の演算結果の値が、特定された前記位置に対応する位置に印字された印刷データを生成する、
処理を実行することを特徴とする印刷データ生成方法。
(Supplementary Note 7)
Arithmetic processing is performed on item values of items including numerical value information in item values of table data included in at least one of a plurality of print data having the same definition information.
The presence or absence of the value of the calculation result of the item value of the table data in the print data subjected to the calculation processing based on the value of the calculation result of the calculation processing, and in the print data to which the value of the calculation result is printed Locate and
When generating print data by aggregating partial data extracted based on a predetermined condition from table data of the plurality of print data, calculation result of arithmetic processing on item values included in the print data into which the partial data is aggregated Generating print data printed at a position corresponding to the specified position, the value of
A print data generation method characterized by executing a process.

101 印刷データ生成装置
111 帳票データ
112 定義情報
121 2次帳票データ
200 電子文書システム
201 DBサーバ
202 クライアント装置
400 制御部
401 演算処理実行部
402 検索部
403 特定部
404 生成部
411 項目情報ファイル
412 検索情報ファイル
413 描画データ
414 検索属性ファイル
101 print data generation apparatus 111 form data 112 definition information 121 secondary form data 200 electronic document system 201 DB server 202 client apparatus 400 control unit 401 arithmetic processing execution unit 402 search unit 403 identification unit 404 generation unit 411 item information file 412 search information File 413 Drawing data 414 Search attribute file

Claims (6)

コンピュータに、
定義情報を同じくする複数の印刷データのうちの少なくともいずれかに含まれる表データの、数値情報を項目値に含む項目の、項目値に対する演算処理を行い、
前記演算処理の演算結果の値に基づいて、前記演算処理を行った前記印刷データにおける前記表データの項目値の演算結果の値の有無、および該演算結果の値が印字される前記印刷データにおける位置を特定し、
前記複数の印刷データの表データから、所定の条件に基づいて抽出した部分データを集約した印刷データを生成する際に、前記部分データを集約した印刷データに含まれる項目値に対する演算処理の演算結果の値が、特定された前記位置に対応する位置に印字された印刷データを生成する、
処理を実行させることを特徴とする印刷データ生成プログラム。
On the computer
Arithmetic processing is performed on item values of items including numerical value information in item values of table data included in at least one of a plurality of print data having the same definition information.
The presence or absence of the value of the calculation result of the item value of the table data in the print data subjected to the calculation processing based on the value of the calculation result of the calculation processing, and in the print data to which the value of the calculation result is printed Locate and
When generating print data by aggregating partial data extracted based on a predetermined condition from table data of the plurality of print data, calculation result of arithmetic processing on item values included in the print data into which the partial data is aggregated Generating print data printed at a position corresponding to the specified position, the value of
A print data generation program characterized by executing processing.
前記コンピュータに、
前記印刷データから、前記演算処理の処理内容を示す文字列が印字される前記印刷データにおける位置を検索する、処理を実行させ、
前記特定する処理は、
検索した前記文字列が印字される前記印刷データにおける位置と、前記演算処理の演算結果の値とに基づいて、前記印刷データにおける前記表データの項目値の演算結果の値の有無、および該演算結果の値が印字される前記印刷データにおける位置を特定することを特徴とする請求項1に記載の印刷データ生成プログラム。
On the computer
A process of searching for a position in the print data on which a character string indicating the processing content of the arithmetic processing is printed from the print data is executed.
The process for specifying is
The presence or absence of the value of the calculation result of the item value of the table data in the print data based on the position in the print data where the searched character string is printed and the value of the calculation result of the calculation process, and the calculation The print data generation program according to claim 1, wherein a position in the print data to which a value of a result is printed is specified.
前記特定する処理は、
前記演算処理の演算結果の値と、前記印刷データにおける前記表データの項目値の演算結果の値との差分が所定の範囲内であれば、前記演算処理を行った前記印刷データにおける前記表データの項目値の演算結果の値が有ることを特定するとともに、該演算結果の値が印字される前記印刷データにおける位置を特定することを特徴とする請求項1または2に記載の印刷データ生成プログラム。
The process for specifying is
If the difference between the value of the calculation result of the calculation process and the value of the calculation result of the item value of the table data in the print data is within a predetermined range, the table data in the print data subjected to the calculation process The print data generation program according to claim 1 or 2, characterized in that it specifies that there is a value of the calculation result of the item value of (1), and specifies the position in the print data where the value of the calculation result is printed. .
前記演算処理を行う処理は、
前記印刷データにおける前記表データの項目のうち数値情報を項目値に含む項目が複数ある場合、数値情報を項目値に含む各項目の項目値に対する演算処理を行い、
前記特定する処理は、
さらに、前記各項目の項目値に対する前記演算処理の演算結果の値と前記印刷データにおける前記表データの項目値の演算結果の値との比較結果に基づいて、前記各項目からいずれかの項目を特定し、
前記生成する処理は、
前記複数の印刷データの表データから、前記部分データを集約した印刷データを生成する際に、前記部分データを集約した印刷データに含まれる前記いずれかの項目の項目値に対する演算処理の演算結果の値が、特定された前記位置に対応する位置に印字された印刷データを生成することを特徴とする請求項1〜3のいずれか一つに記載の印刷データ生成プログラム。
The process of performing the arithmetic process is
When there are a plurality of items including numerical information in the item value among the items of the table data in the print data, arithmetic processing is performed on the item value of each item including the numerical information in the item value,
The process for specifying is
Furthermore, based on the comparison result of the value of the calculation result of the calculation process for the item value of each item and the value of the calculation result of the item value of the table data in the print data, any item is selected from each item Identify
The processing to generate is
When print data in which the partial data is aggregated is generated from table data of the plurality of print data, the calculation result of the arithmetic processing on the item value of the any item included in the print data in which the partial data is aggregated The print data generation program according to any one of claims 1 to 3, wherein print data printed at a position corresponding to the specified position is generated.
定義情報を同じくする複数の印刷データのうちの少なくともいずれかに含まれる表データの、数値情報を項目値に含む項目の、項目値に対する演算処理を行い、
前記演算処理の演算結果の値に基づいて、前記演算処理を行った前記印刷データにおける前記表データの項目値の演算結果の値の有無、および該演算結果の値が印字される前記印刷データにおける位置を特定し、
前記複数の印刷データの表データから、所定の条件に基づいて抽出した部分データを集約した印刷データを生成する際に、前記部分データを集約した印刷データに含まれる項目値に対する演算処理の演算結果の値が、特定された前記位置に対応する位置に印字された印刷データを生成する、
制御部を有することを特徴とする印刷データ生成装置。
Arithmetic processing is performed on item values of items including numerical value information in item values of table data included in at least one of a plurality of print data having the same definition information.
The presence or absence of the value of the calculation result of the item value of the table data in the print data subjected to the calculation processing based on the value of the calculation result of the calculation processing, and in the print data to which the value of the calculation result is printed Locate and
When generating print data by aggregating partial data extracted based on a predetermined condition from table data of the plurality of print data, calculation result of arithmetic processing on item values included in the print data into which the partial data is aggregated Generating print data printed at a position corresponding to the specified position, the value of
What is claimed is: 1. A print data generation apparatus comprising a control unit.
コンピュータが、
定義情報を同じくする複数の印刷データのうちの少なくともいずれかに含まれる表データの、数値情報を項目値に含む項目の、項目値に対する演算処理を行い、
前記演算処理の演算結果の値に基づいて、前記演算処理を行った前記印刷データにおける前記表データの項目値の演算結果の値の有無、および該演算結果の値が印字される前記印刷データにおける位置を特定し、
前記複数の印刷データの表データから、所定の条件に基づいて抽出した部分データを集約した印刷データを生成する際に、前記部分データを集約した印刷データに含まれる項目値に対する演算処理の演算結果の値が、特定された前記位置に対応する位置に印字された印刷データを生成する、
処理を実行することを特徴とする印刷データ生成方法。
The computer is
Arithmetic processing is performed on item values of items including numerical value information in item values of table data included in at least one of a plurality of print data having the same definition information.
The presence or absence of the value of the calculation result of the item value of the table data in the print data subjected to the calculation processing based on the value of the calculation result of the calculation processing, and in the print data to which the value of the calculation result is printed Locate and
When generating print data by aggregating partial data extracted based on a predetermined condition from table data of the plurality of print data, calculation result of arithmetic processing on item values included in the print data into which the partial data is aggregated Generating print data printed at a position corresponding to the specified position, the value of
A print data generation method characterized by executing a process.
JP2015130287A 2015-06-29 2015-06-29 PRINT DATA GENERATION PROGRAM, PRINT DATA GENERATION DEVICE, AND PRINT DATA GENERATION METHOD Active JP6500640B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015130287A JP6500640B2 (en) 2015-06-29 2015-06-29 PRINT DATA GENERATION PROGRAM, PRINT DATA GENERATION DEVICE, AND PRINT DATA GENERATION METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015130287A JP6500640B2 (en) 2015-06-29 2015-06-29 PRINT DATA GENERATION PROGRAM, PRINT DATA GENERATION DEVICE, AND PRINT DATA GENERATION METHOD

Publications (2)

Publication Number Publication Date
JP2017016269A JP2017016269A (en) 2017-01-19
JP6500640B2 true JP6500640B2 (en) 2019-04-17

Family

ID=57828061

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015130287A Active JP6500640B2 (en) 2015-06-29 2015-06-29 PRINT DATA GENERATION PROGRAM, PRINT DATA GENERATION DEVICE, AND PRINT DATA GENERATION METHOD

Country Status (1)

Country Link
JP (1) JP6500640B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000276535A (en) * 1999-03-23 2000-10-06 Hitachi Information Systems Ltd Method for automatically generating spreadsheet expression, and recording medium with its processing program recorded thereon
JP4828318B2 (en) * 2006-06-14 2011-11-30 株式会社日立製作所 Multiple form integrated printing method, system and program
JP5236449B2 (en) * 2008-12-18 2013-07-17 キヤノンソフトウェア株式会社 Form display system, information processing apparatus, form display method, information processing method, program
JP6268695B2 (en) * 2012-09-27 2018-01-31 富士通株式会社 Scoring result acquisition method, program, and apparatus

Also Published As

Publication number Publication date
JP2017016269A (en) 2017-01-19

Similar Documents

Publication Publication Date Title
US10614527B2 (en) System and method for automatic generation of reports based on electronic documents
US11972201B2 (en) Facilitating auto-completion of electronic forms with hierarchical entity data models
CN109074383B (en) Document search with visualization within the context of a document
JP5494675B2 (en) Analysis method, analysis apparatus, and analysis program
US9213893B2 (en) Extracting data from semi-structured electronic documents
US11176365B1 (en) Document data capture
US9483740B1 (en) Automated data classification
US8892579B2 (en) Method and system of data extraction from a portable document format file
CN108319661A (en) A kind of structured storage method and device of spare part information
JP2008515061A (en) A method for searching data elements on the web using conceptual and contextual metadata search engines
JP2018005462A (en) Recognition device and recognition method
US10614125B1 (en) Modeling and extracting elements in semi-structured documents
JPWO2019008766A1 (en) Voucher processing system and voucher processing program
JP5424798B2 (en) METADATA SETTING METHOD, METADATA SETTING SYSTEM, AND PROGRAM
US20120046937A1 (en) Semantic classification of variable data campaign information
US10146881B2 (en) Scalable processing of heterogeneous user-generated content
CN110633331A (en) Method, system and related equipment for extracting data in relational database
JP2014115857A (en) Business form definition data creation system and business form definition data creation method
US9516089B1 (en) Identifying and processing a number of features identified in a document to determine a type of the document
JP5559750B2 (en) Advertisement processing apparatus, information processing system, and advertisement processing method
JP6500640B2 (en) PRINT DATA GENERATION PROGRAM, PRINT DATA GENERATION DEVICE, AND PRINT DATA GENERATION METHOD
US10565289B2 (en) Layout reconstruction using spatial and grammatical constraints
JP6250307B2 (en) Image information processing apparatus and image information processing method
JP2001005886A (en) Data processor and storage medium
US9613105B1 (en) Streamlined data entry based on data relationships

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180306

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190212

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: 20190219

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190304

R150 Certificate of patent or registration of utility model

Ref document number: 6500640

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150