JPWO2014061081A1 - Form creation support device, form creation support method, and form creation support program - Google Patents

Form creation support device, form creation support method, and form creation support program Download PDF

Info

Publication number
JPWO2014061081A1
JPWO2014061081A1 JP2014541832A JP2014541832A JPWO2014061081A1 JP WO2014061081 A1 JPWO2014061081 A1 JP WO2014061081A1 JP 2014541832 A JP2014541832 A JP 2014541832A JP 2014541832 A JP2014541832 A JP 2014541832A JP WO2014061081 A1 JPWO2014061081 A1 JP WO2014061081A1
Authority
JP
Japan
Prior art keywords
item
data
creation support
extracted
ruled line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2014541832A
Other languages
Japanese (ja)
Other versions
JP6040990B2 (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
Publication of JPWO2014061081A1 publication Critical patent/JPWO2014061081A1/en
Application granted granted Critical
Publication of JP6040990B2 publication Critical patent/JP6040990B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Operations Research (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

帳票作成支援装置において、表形式データに含まれる複数のデータ項目のうち、所定方向に同一内容で連続するデータ項目を抽出する繰り返し項目抽出部と、前記繰り返し項目抽出部により抽出された連続するデータ項目に対して繰り返し項目であることを示す属性を付与した帳票定義情報を出力する帳票定義出力部と、を備える。In the form creation support device, among the plurality of data items included in the tabular data, a repeated item extracting unit that extracts continuous data items with the same content in a predetermined direction, and the continuous data extracted by the repeated item extracting unit A form definition output unit that outputs form definition information to which an attribute indicating that the item is a repetitive item is added.

Description

本発明は、帳票作成支援装置、帳票作成支援方法、及び帳票作成支援プログラムに関する。   The present invention relates to a form creation support apparatus, a form creation support method, and a form creation support program.

人事管理、営業管理、製造管理等に用いられる帳票を作成する帳票作成ソフトウェアが知られている。帳票作成ソフトウェアは、予め帳票定義として定められた形式を基に、所定のデータ項目に対してユーザに所望のデータを入力或いはインポート等させることにより、帳票を完成させる。   Form creation software for creating forms used for personnel management, business management, manufacturing management, and the like is known. The form creation software completes the form by allowing the user to input or import desired data for a predetermined data item based on a form defined in advance as a form definition.

帳票のレイアウトを、帳票作成ソフトウェアを用いて直接作成しようとすると、作業が困難な場合がある。これに対し、ワープロソフトや表計算ソフトで作成した帳票のレイアウトを使用して、帳票を自動作成する帳票自動作成システムが知られている。この帳票自動作成システムは、ワープロソフトや表計算ソフトで作成した帳票のレイアウトに配置された識別子に対応し、項目名やデータ形式等の情報を含むデータ配置識別情報を利用して帳票を作成する。   If the form layout is directly created using the form creation software, the work may be difficult. On the other hand, there is known an automatic form creation system that automatically creates a form using a form layout created by word processing software or spreadsheet software. This automatic form creation system creates forms using data placement identification information that includes information such as item names and data formats, corresponding to identifiers placed in the layout of forms created with word processing software or spreadsheet software. .

特開2006−24021号公報Japanese Patent Laid-Open No. 2006-24021

帳票の形式を定める帳票定義には、例えば、帳票に含まれる各データ項目が固定項目であるか、可変項目であるかを示す属性が含まれる。固定項目とは、原則としてユーザが編集しないことが想定されるデータ項目であり、例えば帳票全体の見出しや可変項目に対応するヘッダ等が含まれる。また、可変項目とは、ユーザが編集することが想定されるデータ項目であり、例えばヘッダが「構成員」であれば、各構成員の氏名等のデータが含まれる。   The form definition that defines the form format includes, for example, an attribute indicating whether each data item included in the form is a fixed item or a variable item. A fixed item is a data item that is assumed not to be edited by the user in principle. For example, the fixed item includes a heading of the entire form, a header corresponding to a variable item, and the like. The variable item is a data item assumed to be edited by the user. For example, if the header is “member”, data such as the name of each member is included.

こうした属性は、ワープロソフトや表計算ソフト、プレゼンテーションソフト等の汎用ソフトで作成された帳票のレイアウトに自動的に付与されているものではない。このため、ユーザは、汎用ソフトで作成された帳票のレイアウトにおけるデータ項目のそれぞれに手作業で属性を付与したり、帳票作成ソフトウェアを起動させて属性を付与したりする必要がある。こうした作業は煩雑であるため、何らかの自動化処理が望まれるところである。   These attributes are not automatically given to the layout of forms created by general-purpose software such as word processing software, spreadsheet software, and presentation software. For this reason, the user needs to manually assign an attribute to each data item in the layout of the form created by general-purpose software, or to activate the form creation software to give the attribute. Since these operations are complicated, some sort of automated processing is desired.

上記した帳票自動作成システムにおいても、「帳票のレイアウトに配置された識別子」や「項目名やデータ形式等の情報を含むデータ配置識別情報」を自動的に作成する仕組みとなっていない。このため、ユーザが煩雑な入力操作を行う必要が生じ得る。   The above-described automatic form creation system does not have a mechanism for automatically creating “identifiers arranged in the form layout” or “data arrangement identification information including information such as item names and data formats”. For this reason, the user may need to perform complicated input operations.

一つの側面では、ユーザに煩雑な入力操作を行わせることなく、データ項目に適切な属性を付与することを目的とする。   In one aspect, an object is to give an appropriate attribute to a data item without causing a user to perform complicated input operations.

一態様の帳票作成支援装置は、表形式データに含まれる複数のデータ項目のうち、所定方向に同一内容で連続するデータ項目を抽出する繰り返し項目抽出部と、前記繰り返し項目抽出部により抽出された連続するデータ項目に対して繰り返し項目であることを示す属性を付与した帳票定義情報を出力する帳票定義出力部と、を備える。   A form creation support device according to one aspect includes a repeated item extraction unit that extracts continuous data items with the same content in a predetermined direction among a plurality of data items included in tabular data, and the repeated item extraction unit extracts the data items A form definition output unit that outputs form definition information to which an attribute indicating that the data item is a repetitive item is assigned to continuous data items.

一態様によれば、ユーザに煩雑な入力操作を行わせることなく、データ項目に適切な属性を付与することができる。   According to one aspect, an appropriate attribute can be given to a data item without causing the user to perform a complicated input operation.

一実施例に係る帳票作成支援装置1が他のコンピュータに接続された図である。It is the figure where the form preparation assistance apparatus 1 which concerns on one Example was connected to the other computer. 表計算ソフトによって作成されたファイルと、本実施例の帳票作成支援装置1が作成する帳票定義を対比した図である。It is the figure which contrasted the file created with spreadsheet software and the form definition which the form creation assistance apparatus 1 of a present Example produces. 帳票作成支援装置1のハードウェア構成例である。2 is a hardware configuration example of a form creation support apparatus 1; 帳票作成支援装置1のソフトウェア構成例である。2 is a software configuration example of a form creation support apparatus 1; 帳票作成支援装置1の機能構成例である。2 is a functional configuration example of a form creation support apparatus 1; 帳票作成支援装置1により実行される全体的な処理の流れを示すフローチャートの一例である。It is an example of the flowchart which shows the flow of the whole process performed by the form creation assistance apparatus. 罫線領域抽出部41により実行される処理の流れを示すフローチャートの一例である。4 is an example of a flowchart showing a flow of processing executed by a ruled line region extraction unit 41. 図7のフローチャートによって、様々な形態の表から罫線領域が抽出される様子を示す図(その1)である。FIG. 8 is a diagram (No. 1) illustrating a state in which ruled line regions are extracted from various forms of tables according to the flowchart of FIG. 7. 図7のフローチャートによって、様々な形態の表から罫線領域が抽出される様子を示す図(その2)である。FIG. 8 is a diagram (part 2) illustrating a state in which ruled line regions are extracted from various forms of tables according to the flowchart of FIG. 7. 図7のフローチャートによって、様々な形態の表から罫線領域が抽出される様子を示す図(その3)である。FIG. 8 is a diagram (part 3) illustrating a state in which ruled line regions are extracted from various forms of tables according to the flowchart of FIG. 7; 罫線領域の開始・終了位置記録テーブル16Aの一例である。It is an example of a ruled line area start / end position recording table 16A. 繰り返し項目と固定項目との関係を例示した図である。It is the figure which illustrated the relationship between a repetition item and a fixed item. 繰り返し項目抽出部42により実行される処理の流れを示すフローチャートの一例である。6 is an example of a flowchart showing a flow of processing executed by a repeated item extraction unit. 列毎開始位置テーブルデータ16Bの一例である。It is an example of start position table data for each column 16B. 繰り返し項目テーブル16Cの一例である。It is an example of a repetition item table 16C. 図13のフローチャートで示す処理によって、繰り返し項目が抽出される様子を模式的に示す図である。It is a figure which shows typically a mode that a repetition item is extracted by the process shown by the flowchart of FIG. 繰り返し項目が抽出される対象となる様々なファイルの形式を示す図(その1)である。It is FIG. (1) which shows the format of various files from which a repetition item is extracted. 繰り返し項目が抽出される対象となる様々なファイルの形式を示す図(その2)である。It is FIG. (2) which shows the format of the various files from which a repetition item is extracted. 繰り返し項目が抽出される対象となる様々なファイルの形式を示す図(その3)である。It is FIG. (3) which shows the format of the various files from which a repetition item is extracted. 繰り返し項目が抽出される対象となる様々なファイルの形式を示す図(その4)である。It is FIG. (4) which shows the format of the various files from which a repetition item is extracted. 帳票定義出力部44によって作成される帳票仕様に含まれるデータの一例である。It is an example of data included in a form specification created by a form definition output unit 44.

以下、本発明を実施するための形態について、添付図面を参照しながら実施例を挙げて説明する。   DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be described with reference to the accompanying drawings.

以下、図面を参照し、帳票作成支援装置、帳票作成支援方法、及び帳票作成支援プログラムの実施例について説明する。   Hereinafter, embodiments of a form creation support apparatus, a form creation support method, and a form creation support program will be described with reference to the drawings.

[構成等]
図1は、一実施例に係る帳票作成支援装置1が他のコンピュータに接続された図である。帳票作成支援装置1は、例えば、元データ作成用端末50及び帳票出力サーバ60にネットワークを介して接続される。
[Configuration]
FIG. 1 is a diagram in which a form creation support apparatus 1 according to an embodiment is connected to another computer. The form creation support apparatus 1 is connected to the original data creation terminal 50 and the form output server 60 via a network, for example.

元データ作成用端末50では、例えば、表計算ソフトやワープロソフト、プレゼンテーションソフト等の汎用ソフトが起動し、ユーザが汎用ソフトを操作して帳票のレイアウトを作成する。帳票出力サーバ60は、帳票作成支援装置1が作成した帳票定義と入力データを元に、帳票を作成して出力する。   In the original data creation terminal 50, for example, general-purpose software such as spreadsheet software, word processor software, and presentation software is activated, and a user operates the general-purpose software to create a form layout. The form output server 60 creates and outputs a form based on the form definition and input data created by the form creation support apparatus 1.

なお、帳票作成支援装置1、元データ作成用端末50及び帳票出力サーバ60が別体のコンピュータである必要は無く、これらが一体のコンピュータが有する機能部であってもよい。すなわち、一体のコンピュータが汎用ソフト、以下に説明する帳票作成支援装置1の機能、帳票出力機能を具備してもよい。   Note that the form creation support device 1, the original data creation terminal 50, and the form output server 60 do not have to be separate computers, and these may be functional units of an integrated computer. That is, the integrated computer may include general-purpose software, the function of the form creation support apparatus 1 described below, and the form output function.

以下、帳票定義作成の元となるファイルが、Excel(登録商標)等の表計算ソフトによって作成されたファイルであるものとして説明する。図2は、表計算ソフトによって作成されたファイルと、本実施例の帳票作成支援装置1が作成する帳票定義を対比した図である。図2における下段は、表計算ソフトによって作成されたファイル(表形式データ)の一例を示し、図2における上段は下段に示すファイルに基づいて帳票作成支援装置1が作成する帳票定義の一例を示す。   In the following description, it is assumed that the file on which the form definition is created is a file created by spreadsheet software such as Excel (registered trademark). FIG. 2 is a diagram comparing the file created by the spreadsheet software with the form definition created by the form creation support apparatus 1 of the present embodiment. The lower part in FIG. 2 shows an example of a file (table format data) created by spreadsheet software, and the upper part in FIG. 2 shows an example of a form definition created by the form creation support apparatus 1 based on the file shown in the lower part. .

なお、図2に示す「9」は、数値データ(0〜9)が、図2に表示されている桁数分表示されることを意味する。例えば、「氏名」の項目の「999999」は、6桁の氏名コード(例えば、「012345」)等が表示されることを意味する。また同様に、図2に示す「M」は、文字データが表示されることを意味する。更に、「Z」は、数値が0の場合に表示しないこと(ゼロサプレス(Zero Suppress))を意味する。例えば、「月合計」の項目の「ZZ9.99」は、「5.50」と表示される。   Note that “9” shown in FIG. 2 means that numerical data (0 to 9) is displayed for the number of digits displayed in FIG. For example, “999999” in the “name” item means that a six-digit name code (for example, “012345”) or the like is displayed. Similarly, “M” shown in FIG. 2 means that character data is displayed. Furthermore, “Z” means not displaying when the numerical value is 0 (Zero Suppress). For example, “ZZ 9.99” in the item “monthly total” is displayed as “5.50”.

本実施例では、図2の下段に示すような帳票のひな形ファイル等から、帳票で多用される繰り返し項目を自動識別し、オーバレイ文字等の固定項目と繰り返し項目とを分離した上で、それぞれの属性を付与した帳票定義を生成する。なお、図2の例では、「個人就業実績」の帳票例を示しているが、本実施例において適用可能な帳票の種類や帳票中の項目等については、これに限定されるものではない。   In this embodiment, the repeated items frequently used in the form are automatically identified from the form template file shown in the lower part of FIG. 2, and the fixed items such as overlay characters are separated from the repeated items. Generate a form definition with the attribute of. In the example of FIG. 2, a form example of “individual employment performance” is shown, but the type of form applicable to the present embodiment, items in the form, and the like are not limited thereto.

図3は、帳票作成支援装置1のハードウェア構成例である。帳票作成支援装置1は、例えば、CPU10と、ドライブ装置12と、メモリ装置16と、記憶装置18と、ネットワークボード20と、ビデオボード22と、キーボードやマウス等の入力デバイス24とを備える。   FIG. 3 is a hardware configuration example of the form creation support apparatus 1. The form creation support apparatus 1 includes, for example, a CPU 10, a drive device 12, a memory device 16, a storage device 18, a network board 20, a video board 22, and an input device 24 such as a keyboard and a mouse.

CPU10は、例えば、プログラムカウンタや命令デコーダ、各種演算器、LSU(Load Store Unit)、汎用レジスタ等を有するプロセッサである。ドライブ装置12は、記録媒体14からプログラムやデータを読み込み可能な装置である。プログラムを記録した記録媒体14がドライブ装置12に装着されると、プログラムが記録媒体14からドライブ装置12を介して記憶装置18にインストールされる。記録媒体14は、例えば、CD(Compact Disc)、DVD(Digital Versatile Disc)、USB(Universal Serial Bus)メモリ等の可搬型の記録媒体である。プログラムのインストールは、記録媒体14を用いる他、ネットワークボード20がネットワークを介して他のコンピュータよりダウンロードし、記憶装置18にインストールすることによって行うこともできる。また、帳票作成支援装置1において実行されるプログラムは、帳票作成支援装置1の出荷時に、予め記憶装置18やROM等に格納されていてもよい。   The CPU 10 is a processor having, for example, a program counter, an instruction decoder, various arithmetic units, an LSU (Load Store Unit), a general-purpose register, and the like. The drive device 12 is a device that can read a program and data from the recording medium 14. When the recording medium 14 on which the program is recorded is loaded into the drive device 12, the program is installed from the recording medium 14 to the storage device 18 via the drive device 12. The recording medium 14 is a portable recording medium such as a CD (Compact Disc), a DVD (Digital Versatile Disc), or a USB (Universal Serial Bus) memory. In addition to using the recording medium 14, the program can be installed by the network board 20 being downloaded from another computer via the network and installed in the storage device 18. The program executed in the form creation support apparatus 1 may be stored in advance in the storage device 18, ROM, or the like when the form creation support apparatus 1 is shipped.

メモリ装置16は、例えば、RAM(Random Access Memory)であり、記憶装置18は、例えば、HDD(Hard Disk Drive)やSSD(Solid State Drive)である。ネットワークボード20は、インターネット等のネットワークにアクセスする。ビデオボード22は、LCD(Liquid Crystal Display)やCRT(Cathode Ray Tube)、有機EL(Electroluminescence)等の表示装置に表示させる画像を生成する。   The memory device 16 is, for example, a RAM (Random Access Memory), and the storage device 18 is, for example, an HDD (Hard Disk Drive) or an SSD (Solid State Drive). The network board 20 accesses a network such as the Internet. The video board 22 generates an image to be displayed on a display device such as an LCD (Liquid Crystal Display), a CRT (Cathode Ray Tube), or an organic EL (Electroluminescence).

図4は、帳票作成支援装置1のソフトウェア構成例である。帳票作成支援装置1では、オペレーティングシステム30、ドライバ31、ライブラリ32等を含むOS/ミドルウェア層上で、帳票作成支援アプリケーション34が動作する。帳票作成支援アプリケーション34は、ファイルI/O処理部34A、メモリI/O処理部34B、キーボード入力処理部34C、GUI出力処理部34D、マウス入力処理部34Eを含む。ファイルI/O処理部34Aは、記憶装置18に対するデータの入出力を管理する。メモリI/O処理部34Bは、メモリ装置16に対するデータの入出力を管理する。キーボード入力処理部34Cは、キーボードによる入力操作を所定の信号に変換して帳票作成支援アプリケーション34の各機能部に提供する。GUI出力処理部34Dは、帳票作成支援アプリケーション34の各機能部による処理結果に基づき表示画像を生成し、ビデオボード22に出力する。マウス入力処理部34Eは、マウスによる入力操作を所定の信号に変換して帳票作成支援アプリケーション34の各機能部に提供する。   FIG. 4 is a software configuration example of the form creation support apparatus 1. In the form creation support apparatus 1, the form creation support application 34 operates on the OS / middleware layer including the operating system 30, the driver 31, the library 32, and the like. The form creation support application 34 includes a file I / O processing unit 34A, a memory I / O processing unit 34B, a keyboard input processing unit 34C, a GUI output processing unit 34D, and a mouse input processing unit 34E. The file I / O processing unit 34 </ b> A manages data input / output with respect to the storage device 18. The memory I / O processing unit 34B manages data input / output with respect to the memory device 16. The keyboard input processing unit 34C converts a keyboard input operation into a predetermined signal and provides it to each functional unit of the form creation support application 34. The GUI output processing unit 34 </ b> D generates a display image based on the processing result by each functional unit of the form creation support application 34 and outputs the display image to the video board 22. The mouse input processing unit 34E converts the input operation with the mouse into a predetermined signal and provides it to each functional unit of the form creation support application 34.

[機能構成、全体フローチャート]
図5は、帳票作成支援装置1の機能構成例である。帳票作成支援装置1は、CPU10が記憶装置18等に格納されたプログラムを実行することにより機能する機能ブロックとして、ファイル読込部40と、罫線領域抽出部41と、繰り返し項目抽出部42と、固定項目抽出部43と、帳票定義出力部44と、を備える。なお、これらの機能ブロックが明確に分離したプログラムによって実現される必要はなく、サブルーチンや関数として他のプログラムによって呼び出されるものであってもよい。また、機能ブロックの一部が、LSI(Large Scale Integrated circuit)、IC(Integrated Circuit)やFPGA(Field Programmable Gate Array)等のハードウェア手段であっても構わない。
[Function configuration, overall flowchart]
FIG. 5 is a functional configuration example of the form creation support apparatus 1. The form creation support device 1 includes a file reading unit 40, a ruled line region extraction unit 41, a repetitive item extraction unit 42, and a fixed block as functional blocks that function when the CPU 10 executes a program stored in the storage device 18 or the like. An item extraction unit 43 and a form definition output unit 44 are provided. Note that these functional blocks do not need to be realized by a clearly separated program, and may be called by other programs as subroutines or functions. Further, a part of the functional blocks may be hardware means such as an LSI (Large Scale Integrated circuit), an IC (Integrated Circuit), or an FPGA (Field Programmable Gate Array).

図6は、帳票作成支援装置1により実行される全体的な処理の流れを示すフローチャートの一例である。なお、図6等に示すフローチャートにおいて各処理が行われる順序は、同様の処理結果を得られる限り、如何様にも変更することができる。   FIG. 6 is an example of a flowchart showing the overall processing flow executed by the form creation support apparatus 1. In addition, the order in which each process is performed in the flowchart shown in FIG. 6 and the like can be changed in any way as long as a similar process result is obtained.

まず、ファイル読込部40が、元データ作成用端末50において作成され、記憶装置18に格納された帳票定義作成の元となるファイル(例えば、図2の下段に示すような表計算ソフトによって作成されたファイル(表形式データ)等)を読み込み、メモリ装置16に記憶させる(S100)。   First, the file reading unit 40 is created by the original data creation terminal 50 and is created by a spreadsheet software (for example, as shown in the lower part of FIG. The file (table format data) is read and stored in the memory device 16 (S100).

次に、罫線領域抽出部41が、帳票定義作成の元となるファイルにおいて、四辺が罫線で囲まれた領域(以下、罫線領域と称する)を抽出する(S110)。例えば、表計算ソフトによって作成されたファイルは、「セル」内にデータが記述された構造となっている。そして、汎用ソフトによって作成される一般的な帳票レイアウトは、一又は複数のセルが罫線で囲まれており、罫線で囲まれた罫線領域内に一単位のデータ項目が格納されることが多い。そこで、罫線領域抽出部41は、ファイル内における罫線の配置を認識し、罫線領域を特定する。   Next, the ruled line region extraction unit 41 extracts a region (hereinafter referred to as a ruled line region) whose four sides are surrounded by ruled lines in the file from which the form definition is created (S110). For example, a file created by spreadsheet software has a structure in which data is described in “cells”. In a general form layout created by general-purpose software, one or a plurality of cells are surrounded by ruled lines, and a unit of data items is often stored in a ruled line area surrounded by the ruled lines. Therefore, the ruled line region extraction unit 41 recognizes the arrangement of ruled lines in the file and identifies the ruled line region.

次に、繰り返し項目抽出部42が、複数のデータ項目に対して固定項目であるか可変項目であるかを示す属性を付与するために、罫線領域内のデータ項目のうち、縦方向に同一内容で連続するデータ項目を抽出する(S120)。なお、S120の処理で抽出された項目は、繰り返し項目である。S120の処理では、S110により得られる罫線領域内のデータを一単位のデータ項目として扱う。   Next, in order for the repeated item extraction unit 42 to assign an attribute indicating whether the item is a fixed item or a variable item to a plurality of data items, the same content in the vertical direction among the data items in the ruled line region The continuous data items are extracted at (S120). In addition, the item extracted by the process of S120 is a repetition item. In the process of S120, the data in the ruled line area obtained in S110 is handled as a unit data item.

次に、固定項目抽出部43が、繰り返し項目として抽出された項目以外の項目を、固定項目として抽出する(S130)。   Next, the fixed item extraction unit 43 extracts items other than the items extracted as repeated items as fixed items (S130).

次に、帳票定義出力部44が、ファイル読込部40により読み込んだ表計算ソフト等の形式で作成されたファイルを帳票仕様に変換し、変換した帳票定義情報を出力する(S140)。S140の処理では、表計算ソフト等の形式で作成されたファイルを帳票仕様に変換することで、例えばファイルに含まれるセルの位置情報(例えば、(1,A)等のようなセル座標)から、予め設定された座標値への変換を行うことができる。予め設定された座標値とは、例えば、用紙原点からの相対座標値であってもよく、また帳票領域の左上の絶対座標と右下の絶対座標等を基準にした座標値であってもよい。   Next, the form definition output unit 44 converts the file created in the form of spreadsheet software read by the file reading unit 40 into a form specification, and outputs the converted form definition information (S140). In the process of S140, by converting a file created in a form such as spreadsheet software into a form specification, for example, from cell position information (for example, cell coordinates such as (1, A)) included in the file. , Conversion to a preset coordinate value can be performed. The preset coordinate value may be, for example, a relative coordinate value from the paper origin, or a coordinate value based on the upper left absolute coordinate and the lower right absolute coordinate of the form area. .

また、S140の処理では、表形式データに含まれる各データ項目に対して、S120の処理で抽出した繰り返し項目であることを示す属性や、S130の処理で抽出された固定項目であることを示す属性を付与した帳票定義情報を出力することができる。   In the process of S140, for each data item included in the tabular data, an attribute indicating that it is a repeated item extracted in the process of S120, or a fixed item extracted in the process of S130. Form definition information with attributes can be output.

なお、本実施例では、出力する帳票定義情報に対して、繰り返し項目であることを示す属性のみを付与してもよく、固定項目であることを示す属性のみを付与してもよく、両方を付与してもよい。   In the present embodiment, only the attribute indicating that it is a repetitive item or only the attribute indicating that it is a fixed item may be added to the form definition information to be output, It may be given.

[罫線領域抽出]
図7は、罫線領域抽出部41により実行される処理の流れを示すフローチャートの一例である。また、図8〜図10は、図7のフローチャートによって、様々な形態の表から罫線領域が抽出される様子を示す図(その1〜その3)である。なお、図8〜10において、「○」は罫線領域の開始のセルの位置を示し、「△」は終了のセルの位置を示し、矢印は罫線領域抽出時における移動方向を示す。
[Rule area extraction]
FIG. 7 is an example of a flowchart showing a flow of processing executed by the ruled line region extraction unit 41. FIGS. 8 to 10 are diagrams (No. 1 to No. 3) showing how ruled line regions are extracted from tables of various forms by the flowchart of FIG. 8 to 10, “◯” indicates the position of the start cell of the ruled line area, “Δ” indicates the position of the end cell, and the arrow indicates the moving direction when extracting the ruled line area.

まず、罫線領域抽出部41は、表計算ソフト等によって作成されたファイル(以下、単にファイルと称する)における印刷範囲等を参照し、帳票定義作成の対象となる領域の最大行と最大列を設定する(S200)。罫線領域抽出部41は、印刷範囲を参照して最大行と最大列を設定するのに限らず、例えば、y行目以降は空白セルのみが連続する場合に、y−1行を最大行とし、x列目以降は空白セルのみが連続する場合に、x−1行を最大列としてもよい。   First, the ruled line region extraction unit 41 refers to a print range or the like in a file created by spreadsheet software or the like (hereinafter simply referred to as a file) and sets the maximum row and maximum column of the region for which the form definition is created. (S200). The ruled line region extraction unit 41 is not limited to setting the maximum row and the maximum column with reference to the print range. For example, when only blank cells continue after the y-th row, the y-1 row is set as the maximum row. In the case where only blank cells continue after the x-th column, the x-1 row may be the maximum column.

次に、罫線領域抽出部41は、以降の判定の対象とされる対象セルの行、列(すなわち座標)、及び、フラグJ1、パラメータJ2の初期値を設定する(S202)。ここで、行及び列の初期値は任意に設定してもよく、例えば、座標[1,A]すなわち左上隅のセルの行及び列を初期値に設定してよい(行方向の座標は1,2,3…と数字で、列方向の座標はA,B,C,…,Y,Z,AA,AB,…とアルファベットで表されるものとする)。また、フラグJ1及びパラメータJ2の初期値は、それぞれ"No"及び"A"に設定する。   Next, the ruled line region extraction unit 41 sets the initial value of the row and column (that is, the coordinates) of the target cell to be subjected to the subsequent determination, the flag J1, and the parameter J2 (S202). Here, the initial values of the rows and columns may be arbitrarily set. For example, the coordinates [1, A], that is, the rows and columns of the cells in the upper left corner may be set to the initial values (the coordinate in the row direction is 1). , 2, 3..., And the coordinates in the column direction are represented by letters A, B, C,..., Y, Z, AA, AB,. The initial values of the flag J1 and the parameter J2 are set to “No” and “A”, respectively.

次に、罫線領域抽出部41は、対象セルの行が最大行を超えるか否かを判定する(S204)。対象セルの行が最大行を超える場合(S204において、Yes)、罫線領域抽出部41は、本フローチャートの1ルーチンを終了する。   Next, the ruled line region extraction unit 41 determines whether or not the row of the target cell exceeds the maximum row (S204). When the row of the target cell exceeds the maximum row (Yes in S204), the ruled line region extraction unit 41 ends one routine of this flowchart.

また、対象セルの行が最大行を超えない場合(S204において、No)、次に、罫線領域抽出部41は、対象セルの列が最大列を超えるか否かを判定する(S206)。対象セルの列が最大列を超える場合(S206において、Yes)、罫線領域抽出部41は、現在の対象セルの行に1を加算すると共に列を初期値に戻した座標に位置するセルを対象セルとし(S208)、S204に戻る。これは、ファイルを横方向に操作して最大列まで処理を行った場合に、1行下で最も左に位置するセルに折り返すために行われる処理である(例えば図8,図10に示す「*」)。   If the target cell row does not exceed the maximum row (No in S204), the ruled line region extraction unit 41 then determines whether the target cell column exceeds the maximum column (S206). When the column of the target cell exceeds the maximum column (Yes in S206), the ruled line region extraction unit 41 adds the 1 to the current target cell row and targets the cell located at the coordinates where the column is returned to the initial value. The cell is selected (S208), and the process returns to S204. This is processing that is performed to wrap to the leftmost cell in one row when the file is manipulated in the horizontal direction and processed to the maximum column (for example, “ * ").

対象セルの列が最大列を超えない場合(S206において、No)、罫線領域抽出部41は、対象セルの左側と上側に罫線が存在するか否かを判定する(S210)。対象セルの左側と上側に罫線が存在しない場合(S210において、No)、罫線領域抽出部41は、対象セルの列に1を加算した座標に位置するセルを対象セルとし(S212)、S206に戻る。なお、「対象セルの列に1を加算する」とは、列がAであればBに変更し、BであればCに変更し、…というように、次のアルファベットに変更する処理を意味する。   When the column of the target cell does not exceed the maximum column (No in S206), the ruled line region extraction unit 41 determines whether or not ruled lines exist on the left side and the upper side of the target cell (S210). When there is no ruled line on the left and upper sides of the target cell (No in S210), the ruled line region extraction unit 41 sets the cell located at the coordinate obtained by adding 1 to the column of the target cell as the target cell (S212), Return. Note that “add 1 to the target cell column” means a process of changing to B if the column is A, changing to C if the column is B, and so on. To do.

対象セルの左側と上側に罫線が存在する場合、罫線領域抽出部41は、対象セルの行及び列を、罫線領域の開始位置としてメモリ装置16等に格納する(S214)。本実施例における罫線領域は、矩形であることを前提にしている。そのため、罫線領域抽出部41は、左側と上側に罫線が存在するセルを左上端(開始位置)として特定し、後に右側と下側に罫線が存在するセルを右下端(終了位置)として特定することによって、罫線領域を一意に決定する。図11は、罫線領域の開始位置と終了位置を示す、罫線領域の開始・終了位置記録テーブル16Aの一例である。本実施例では、図11の罫線領域の開始・終了位置記録テーブル16Aに示すように、開始位置と終了位置とを特定することで帳票に含まれる1又は複数の罫線領域を取得することができる。この罫線領域の開始・終了位置記録テーブル16Aは、メモリ装置16等に格納される。   When there are ruled lines on the left and upper sides of the target cell, the ruled line region extraction unit 41 stores the row and column of the target cell in the memory device 16 or the like as the start position of the ruled line region (S214). It is assumed that the ruled line area in this embodiment is a rectangle. Therefore, the ruled line region extraction unit 41 specifies a cell having a ruled line on the left side and the upper side as the upper left end (start position) and later specifies a cell having a ruled line on the right side and the lower side as a lower right end (end position). Thus, the ruled line area is uniquely determined. FIG. 11 is an example of a ruled line region start / end position recording table 16A showing the start and end positions of the ruled line region. In this embodiment, as shown in the ruled area start / end position recording table 16A in FIG. 11, by specifying the start position and end position, one or more ruled line areas included in the form can be acquired. . The ruled line area start / end position recording table 16A is stored in the memory device 16 or the like.

次に、罫線領域抽出部41は、対象セルの右側に罫線が存在するか否かを判定する(S216)。対象セルの右側に罫線が存在しない場合(S216において、No)、罫線領域抽出部41は、対象セルの列に1を加算した座標に位置するセルを対象セルとし(S218)、S216に戻る。   Next, the ruled line region extraction unit 41 determines whether a ruled line exists on the right side of the target cell (S216). When there is no ruled line on the right side of the target cell (No in S216), the ruled line region extraction unit 41 sets the cell located at the coordinate obtained by adding 1 to the column of the target cell as the target cell (S218), and returns to S216.

対象セルの右側に罫線が存在する場合(S216において、Yes)、罫線領域抽出部41は、対象セルの下側に罫線が存在するか否かを判定する(S220)。対象セルの下側に罫線が存在しない場合(S220において、No)、罫線領域抽出部41は、対象セルの行に1を加算した座標に位置するセルを対象セルとし(S222)、S220に戻る。   When a ruled line exists on the right side of the target cell (Yes in S216), the ruled line region extraction unit 41 determines whether a ruled line exists below the target cell (S220). When there is no ruled line below the target cell (No in S220), the ruled line region extraction unit 41 sets the cell located at the coordinate obtained by adding 1 to the row of the target cell as the target cell (S222), and returns to S220. .

また、対象セルの下側に罫線が存在する場合(S220において、Yes)、S216との関係から対象セルの右側及び下側に罫線が存在することになる。そのため、罫線領域抽出部41は、対象セルの行及び列を、罫線領域の終了位置としてメモリ装置16等に格納する(S224)。   When a ruled line exists below the target cell (Yes in S220), the ruled line exists on the right side and the lower side of the target cell from the relationship with S216. Therefore, the ruled line region extraction unit 41 stores the row and column of the target cell in the memory device 16 or the like as the end position of the ruled line region (S224).

次に、罫線領域抽出部41は、フラグJ1が"Yes"であるか否かを判定する(S226)。フラグJ1が"Yes"である場合(S226において、Yes)、罫線領域抽出部41は、パラメータJ2に、対象セルの列に1加算した値を格納する(S228)。なお、フラグJ1は、"Yes"である場合に、後述するS234〜S242の処理によって、図9に領域A1として示すように周囲の領域に比して縦方向に大きい領域を抽出した後、その領域のすぐ右側の領域への折り返し処理(例えば、図9に示す「**」)が行われていないことを示すフラグ値である。また、パラメータJ2は、折り返し処理を行う場合に戻るべき列を保存したデータである。   Next, the ruled line region extraction unit 41 determines whether or not the flag J1 is “Yes” (S226). When the flag J1 is “Yes” (Yes in S226), the ruled line region extraction unit 41 stores a value obtained by adding 1 to the column of the target cell in the parameter J2 (S228). Note that when the flag J1 is “Yes”, an area that is larger in the vertical direction than the surrounding area is extracted as shown by an area A1 in FIG. This is a flag value indicating that the return processing (for example, “**” shown in FIG. 9) to the area immediately to the right of the area is not performed. The parameter J2 is data that stores a column to be returned when performing the folding process.

次に、罫線領域抽出部41は、対象セルの右側に位置するセルの下側に罫線が存在するか否かを判定する(S230)。対象セルの右側に位置するセルの下側に罫線が存在する場合(S230において、Yes)、罫線領域抽出部41は、直近に格納されたセル開始位置(S214参照)の行、及び対象セルの列に1を加算した列を座標とするセルを、対象セルとする(S234)。   Next, the ruled line region extraction unit 41 determines whether a ruled line exists below the cell located on the right side of the target cell (S230). When there is a ruled line below the cell located on the right side of the target cell (Yes in S230), the ruled line region extraction unit 41 reads the row of the cell start position (see S214) stored most recently and the target cell A cell whose coordinates are a column obtained by adding 1 to the column is set as a target cell (S234).

次に、罫線領域抽出部41は、S234で設定した対象セルの左側と上側に罫線が存在するか否かを判定する(S236)。S234で設定した対象セルの左側と上側に罫線が存在する場合(S236において、Yes)、罫線領域抽出部41は、S214に戻り、S234で設定した対象セルの行及び列を、罫線領域の開始位置としてメモリ装置16等に格納する。   Next, the ruled line region extraction unit 41 determines whether or not ruled lines exist on the left and upper sides of the target cell set in S234 (S236). When ruled lines are present on the left and upper sides of the target cell set in S234 (Yes in S236), the ruled line area extraction unit 41 returns to S214, and starts the ruled line area with the row and column of the target cell set in S234. The position is stored in the memory device 16 or the like.

また、S234で設定した対象セルの左側と上側に罫線が存在しない場合(S236において、No)、罫線領域抽出部41は、対象セルの行に1を加算した座標に位置するセルを対象セルとする(S238)。そして、罫線領域抽出部41は、S238で設定した対象セルの左側と上側に罫線が存在するか否かを判定する(S240)。左側と上側に罫線が存在しない場合(S240において、No)、S238に戻る。つまり、罫線領域抽出部41は、対象セルの左側と上側に罫線が存在するようになるまで、S238及びS240の処理を繰り返し実行する。   If no ruled line exists on the left and upper sides of the target cell set in S234 (No in S236), the ruled line region extraction unit 41 sets the cell located at the coordinate obtained by adding 1 to the row of the target cell as the target cell. (S238). Then, the ruled line region extraction unit 41 determines whether or not ruled lines exist on the left and upper sides of the target cell set in S238 (S240). If there are no ruled lines on the left side and the upper side (No in S240), the process returns to S238. That is, the ruled line region extraction unit 41 repeatedly executes the processes of S238 and S240 until ruled lines exist on the left and upper sides of the target cell.

対象セルの左側と上側に罫線が存在する場合(S240において、Yes)、罫線領域抽出部41は、フラグJ1を"Yes"にし(S242)、S214に戻り、最後にS238で設定した対象セルの行及び列を、罫線領域の開始位置としてメモリ装置16等に格納する。   When there are ruled lines on the left and upper sides of the target cell (Yes in S240), the ruled line region extraction unit 41 sets the flag J1 to “Yes” (S242), returns to S214, and finally the target cell set in S238. The row and column are stored in the memory device 16 or the like as the start position of the ruled line area.

なお、上述したS230において、対象セルの右側に位置するセルの下側に罫線が存在しないと判定された場合(S230において、No)、罫線領域抽出部41は、対象セルの下側に位置するセルの右側に罫線が存在するか否かを判定する(S232)。対象セルの下側に位置するセルの右側に罫線が存在しない場合(S232において、No)、罫線領域抽出部41は、S208に戻る。   When it is determined in S230 described above that no ruled line exists below the cell located on the right side of the target cell (No in S230), the ruled line region extraction unit 41 is located below the target cell. It is determined whether a ruled line exists on the right side of the cell (S232). When there is no ruled line on the right side of the cell located below the target cell (No in S232), the ruled line region extraction unit 41 returns to S208.

また、対象セルの下側に位置するセルの右側に罫線が存在する場合(S232において、Yes)、罫線領域抽出部41は、フラグJ1が"Yes"であるか否かを判定する(S244)。フラグJ1が"Yes"である場合(S244において、Yes)、罫線領域抽出部41は、対象セルの行に1を加算した値を行とし、パラメータJ2を列とするセルを対象セルに設定し、フラグJ1を"No"にして(S246)、S204に戻る。   If a ruled line exists on the right side of the cell located below the target cell (Yes in S232), the ruled line region extraction unit 41 determines whether the flag J1 is “Yes” (S244). . When the flag J1 is “Yes” (Yes in S244), the ruled line region extraction unit 41 sets a cell obtained by adding 1 to the row of the target cell as a row and the parameter J2 as a column as the target cell. The flag J1 is set to “No” (S246), and the process returns to S204.

フラグJ1が"Yes"でない場合(S244において、No)、罫線領域抽出部41は、対象セルの行に1を加算した値を行とし、開始位置として格納された最小の列を列とするセルを対象セルに設定し(S248)。S204に戻る。   When the flag J1 is not “Yes” (No in S244), the ruled line region extraction unit 41 sets the value obtained by adding 1 to the row of the target cell as a row, and sets the minimum column stored as the start position as a column. Is set as the target cell (S248). Return to S204.

図7に示す処理によって、罫線の分布が均一なものでない場合であっても、罫線で囲まれた領域を抽出することができる。なお、上述の図7に示す処理において、メモリ装置16に格納される各種情報は、記憶装置18等に格納されてもよい。   By the process shown in FIG. 7, even if the ruled line distribution is not uniform, the area surrounded by the ruled line can be extracted. In the processing shown in FIG. 7 described above, various types of information stored in the memory device 16 may be stored in the storage device 18 or the like.

[繰り返し項目抽出]
繰り返し項目抽出部42は、複数のデータ項目に対して固定項目であるか繰り返し項目であるかを示す属性を付与するために、罫線領域内のデータ項目のうち、縦方向に同一内容で連続するデータ項目を抽出する。このように、縦方向に同一内容で連続するデータ項目には、帳票定義出力部44によって繰り返し項目であることを示す属性が付与される。
[Repeated item extraction]
The repeated item extracting unit 42 is continuous with the same content in the vertical direction among the data items in the ruled line region in order to give an attribute indicating whether it is a fixed item or a repeated item to a plurality of data items. Extract data items. As described above, the form definition output unit 44 assigns an attribute indicating that the data item is continuous to the data item that has the same content in the vertical direction.

前述のように、固定項目とは、原則としてユーザが編集しないことが想定されるデータ項目であり、帳票全体の見出しや繰り返し項目に対応するヘッダ等が含まれる。また、繰り返し項目とは、ユーザが編集することが想定されるデータ項目であり、例えばヘッダが「構成員」であれば、各構成員の氏名等のデータが含まれる。   As described above, a fixed item is a data item that is assumed not to be edited by the user in principle, and includes a heading of the entire form, a header corresponding to a repeated item, and the like. The repetitive item is a data item assumed to be edited by the user. For example, if the header is “member”, data such as the name of each member is included.

図12は、繰り返し項目と固定項目との関係を例示した図である。なお、繰り返し項目抽出部42は、罫線領域抽出部41の処理によって抽出された罫線領域内の項目についてのみ処理を行うため、図12における罫線で囲まれていないヘッダ情報については、繰り返し項目からは自動的に除かれる。それぞれの固定項目や繰り返し項目に対して、本実施例の繰り返し項目抽出部42、固定項目抽出部43、及び帳票定義出力部44の処理によって、種別(固定項目か、繰り返し項目か)、用紙原点からの相対座標値、文字列データ、フォント名、フォントサイズ等の情報が付加される。   FIG. 12 is a diagram illustrating the relationship between the repetition item and the fixed item. Note that the repeated item extraction unit 42 processes only the items in the ruled line area extracted by the process of the ruled line area extraction unit 41, and therefore the header information not surrounded by the ruled lines in FIG. Removed automatically. For each fixed item or repetitive item, the type (fixed item or repetitive item), paper origin is determined by the processing of the repetitive item extraction unit 42, fixed item extraction unit 43, and form definition output unit 44 of this embodiment. Information such as relative coordinate values, character string data, font name, font size, etc. are added.

例えば、図12の例において、「従業員所属情報」、「氏名」、「所属」、「部コード」がオーバレイ文字(固定項目(ヘッダ情報))を示し、「MMM・・・」、「999・・・」は、可変文字列(繰り返し項目)を示すが、これに限定されるものではない。   For example, in the example of FIG. 12, “employee affiliation information”, “name”, “affiliation”, “part code” indicate overlay characters (fixed items (header information)), and “MMM...”, “999”. "..." indicates a variable character string (repeated item), but is not limited thereto.

次に、繰り返し項目抽出部42により実行される処理の流れについて説明する。図13は、繰り返し項目抽出部42により実行される処理の流れを示すフローチャートの一例である。   Next, the flow of processing executed by the repeated item extraction unit 42 will be described. FIG. 13 is an example of a flowchart showing the flow of processing executed by the repeated item extraction unit 42.

まず、繰り返し項目抽出部42は、罫線領域の開始・終了位置記録テーブル16Aから、開始位置を列毎に並べた列毎開始位置テーブルデータ16Bを作成する(S300)。 次に、繰り返し項目抽出部42は、列毎開始位置テーブルデータ16Bに格納された領域から選択される対象領域の座標(X,Y)の初期値を設定する(S302)。座標(X,Y)の初期値は、例えば(1,1)に設定される。ここで、図14は、列毎開始位置テーブルデータ16Bの一例である。図14の例では、座標(1,1)が(1,A)によって示される領域に相当し、座標(2,1)が(3,A)によって示される領域に相当し、座標(2,2)が(3,C)によって示される領域に相当していることを示す。この列毎開始位置テーブルデータ16Bは、メモリ装置16等に格納される。   First, the repeated item extraction unit 42 creates column-by-column start position table data 16B in which the start positions are arranged for each column from the ruled line region start / end position recording table 16A (S300). Next, the repeated item extraction unit 42 sets the initial value of the coordinates (X, Y) of the target area selected from the areas stored in the column-by-column start position table data 16B (S302). The initial value of the coordinates (X, Y) is set to (1, 1), for example. Here, FIG. 14 is an example of the start position table data 16B for each column. In the example of FIG. 14, the coordinates (1, 1) correspond to the area indicated by (1, A), the coordinates (2, 1) correspond to the area indicated by (3, A), and the coordinates (2, 2) corresponds to the region indicated by (3, C). The start position table data 16B for each column is stored in the memory device 16 or the like.

次に、繰り返し項目抽出部42は、領域(X,Y)に格納された項目の内容が、領域(X,Y+1)に格納された項目の内容と一致するか否かを判定する(S304)。領域(X,Y)に格納された項目の内容が、領域(X,Y+1)に格納された項目の内容と一致しない場合(S304において、No)、繰り返し項目抽出部42は、S312に進む。   Next, the repeated item extraction unit 42 determines whether or not the content of the item stored in the area (X, Y) matches the content of the item stored in the area (X, Y + 1) (S304). . When the content of the item stored in the area (X, Y) does not match the content of the item stored in the area (X, Y + 1) (No in S304), the repeated item extraction unit 42 proceeds to S312.

領域(X,Y)に格納された項目の内容が、領域(X,Y+1)に格納された項目の内容と一致する場合(S304において、Yes)、繰り返し項目抽出部42は、当該列で初めて一致したか否かを判定する(S306)。   When the content of the item stored in the area (X, Y) matches the content of the item stored in the area (X, Y + 1) (Yes in S304), the repeated item extraction unit 42 is the first in the column. It is determined whether or not they match (S306).

当該列で初めて一致した場合(S306において、Yes)、繰り返し項目抽出部42は、領域(X,Y)及び領域(X,Y+1)をメモリ装置16等に格納する(S308)。一方、当該列で初めて一致したのではない場合(S306において、No)、繰り返し項目抽出部42は、領域(X,Y)をメモリ装置16等に格納する(S310)。S308及びS310における領域の格納は、例えば列毎に行われる。   When matching is first performed in the column (Yes in S306), the repeated item extraction unit 42 stores the region (X, Y) and the region (X, Y + 1) in the memory device 16 or the like (S308). On the other hand, if it is not the first match in the column (No in S306), the repeated item extraction unit 42 stores the region (X, Y) in the memory device 16 or the like (S310). The storage of the areas in S308 and S310 is performed for each column, for example.

ここで、図15は、S308及びS310の処理によってメモリ装置16等に格納される繰り返し項目テーブル16Cの一例である。図15の例では、列毎に繰り返し項目の領域(X,Y)が1又は複数格納される。例えば、図15の例では、列Aの繰り返し項目として、領域(3,A),(5,A),(7,A),・・・等が存在することを示す。   Here, FIG. 15 is an example of the repeated item table 16C stored in the memory device 16 or the like by the processing of S308 and S310. In the example of FIG. 15, one or a plurality of repeated item areas (X, Y) are stored for each column. For example, the example of FIG. 15 indicates that there are regions (3, A), (5, A), (7, A),.

次に、繰り返し項目抽出部42は、Yを1増加させ(S312)、Yが最大行を超えたか否かを判定する(S314)。最大行及び後述する最大列については、例えば図7のS200で設定したものを用いればよい。Yが最大行を超えていない場合(S314において、No)、繰り返し項目抽出部42は、S304に戻る。   Next, the repeated item extraction unit 42 increments Y by 1 (S312), and determines whether Y exceeds the maximum row (S314). For the maximum row and the maximum column described later, for example, those set in S200 of FIG. 7 may be used. If Y does not exceed the maximum line (No in S314), the repeated item extraction unit 42 returns to S304.

また、Yが最大行を超えた場合(S314において、Yes)、繰り返し項目抽出部42は、Xを1増加させ(S316)、Xが最大列を超えたか否かを判定する(S318)。繰り返し項目抽出部42は、Xが最大列を超えない場合(S318において、No)、Yを初期値に戻して(S320)、S304に戻る。   If Y exceeds the maximum row (Yes in S314), the repeated item extraction unit 42 increments X by 1 (S316) and determines whether X exceeds the maximum column (S318). When X does not exceed the maximum column (No in S318), the repeated item extraction unit 42 returns Y to the initial value (S320), and returns to S304.

また、Xが最大列を超える場合(S318において、Yes)、図13のフローチャートの1ルーチンを終了する。なお、上述の図13に示す処理において、メモリ装置16に格納される各種情報は、記憶装置18等に格納されてもよい。   If X exceeds the maximum column (Yes in S318), one routine of the flowchart of FIG. 13 ends. In the processing shown in FIG. 13 described above, various types of information stored in the memory device 16 may be stored in the storage device 18 or the like.

図16は、図13のフローチャートで示す処理によって、繰り返し項目が抽出される様子を模式的に示す図である。また、図17〜図20は、繰り返し項目が抽出される対象となる様々なファイルの形式を示す図(その1〜その4)である。   FIG. 16 is a diagram schematically showing how the repeated items are extracted by the processing shown in the flowchart of FIG. FIGS. 17 to 20 are diagrams (Nos. 1 to 4) showing various file formats from which repetition items are extracted.

本実施例では、図16に示すように、縦方向に連続するセルを抽出して、繰り返し項目の行数(開始行〜終了行)を取得し(図16の(1)→(2))、同様に列方向へ連続するセル群を探索して(図16(2)→(3))、繰り返し項目を構成するセル群を抽出する。   In this embodiment, as shown in FIG. 16, cells that are continuous in the vertical direction are extracted, and the number of repeated items (start line to end line) is acquired ((1) → (2) in FIG. 16). Similarly, cell groups that are continuous in the column direction are searched (FIG. 16 (2) → (3)), and cell groups that constitute repetitive items are extracted.

また、図17は、「従業員番号」、「氏名」、「所属」、「部コード」、「備考」の各繰り返し項目が1行単位で構成されている例を示す。また、図18は、各繰り返し項目が2行単位で構成されている例を示す。   FIG. 17 shows an example in which each repetition item of “employee number”, “name”, “affiliation”, “department code”, and “remarks” is configured in units of one line. FIG. 18 shows an example in which each repeated item is configured in units of two lines.

また、図19は、各繰り返し項目が2行単位で構成され、上下方向にセンタリングされている例を示す。具体的には、図19の例では、「従業員番号」、「氏名」、「部コード」のセル2行が1行に結合され、上下方向にセンタリングされている。また、図20は、繰り返し項目の一部が2行構成である例を示す。なお、図20の例では、「所属」、「備考」が2行構成であることを示している。   FIG. 19 shows an example in which each repeated item is configured in units of two lines and is centered in the vertical direction. Specifically, in the example of FIG. 19, two rows of “employee number”, “name”, and “department code” are combined into one row and centered vertically. FIG. 20 shows an example in which some of the repeated items have a two-line configuration. In the example of FIG. 20, “affiliation” and “remarks” indicate a two-line configuration.

ここで、本実施例における繰り返し項目は、上述した図18〜図20に示すように2行単位だけでなく、3行以上の複数行単位で構成されてもよい。   Here, the repetitive items in the present embodiment may be configured not only in units of two rows as shown in FIGS. 18 to 20 described above but also in units of a plurality of rows of three or more rows.

本実施例の帳票作成支援装置1は、上述した処理により、罫線領域抽出部41によって抽出された罫線領域内に格納された項目を一単位の項目として扱うことができる。そのため、例えば図18〜図20等に示すように一部の罫線領域が複数行を結合したものであっても、繰り返し項目を適切に抽出することができる。   The form creation support apparatus 1 according to the present embodiment can handle the items stored in the ruled line area extracted by the ruled line area extraction unit 41 as one unit item by the above-described processing. Therefore, for example, as shown in FIG. 18 to FIG. 20 and the like, even if a part of the ruled line region is a combination of a plurality of lines, repeated items can be extracted appropriately.

また、繰り返し項目を抽出する処理は、自動的な処理として実行されるため、繰り返し項目を予め指定するといった煩雑な入力操作をユーザに行わせることなく、データ項目に適切な属性を付与することができる。   In addition, since the process of extracting the repeated item is executed as an automatic process, an appropriate attribute can be given to the data item without causing the user to perform a complicated input operation such as specifying the repeated item in advance. it can.

固定項目抽出部43は、繰り返し項目抽出部42によって繰り返し項目テーブル16Cに格納された罫線領域以外の罫線領域に格納された項目、及び罫線領域以外の箇所に位置する項目を抽出する。これらの項目に対しては、帳票定義出力部44によって固定項目であることを示す属性が付与される。   The fixed item extraction unit 43 extracts items stored in ruled line regions other than the ruled line region stored in the repeated item table 16C by the repeated item extraction unit 42 and items located in places other than the ruled line region. These items are given attributes indicating that they are fixed items by the form definition output unit 44.

帳票定義出力部44は、表計算ソフト等によって作成されたファイルの形式を、帳票仕様の形式に変換し、変換した帳票定義情報を出力する。ここで、帳票仕様の形式に変換するとは、例えばファイルに対する各種設定情報から用紙情報、拡大/縮小等の情報が帳票仕様の形式に変換されたり、ファイルに存在する複数のデータ項目に対して固定項目や繰り返し項目の属性等が付与される。これにより、例えば、表計算ソフトでは、(1,A)等のようにセル座標として表現されていた領域に対して、帳票定義情報では、左上の絶対座標と右下の絶対座標等によって表現することができる。なお、座標の変換や、固定項目又は繰り返し項目に対する属性の付与については、例えば上述した列毎開始位置テーブルデータ16Bや繰り返し項目テーブル16C等から得られる情報に基づいて行われるが、これに限定されるものではない。
また、表計算ソフトによって作成されたファイルから得られるセル幅やページサイズ、ページマージン等の情報や帳票に表示される従乗員番号や氏名等の情報に対して、固定項目か繰り返し項目かを示す属性を自動的に付与することができる。
The form definition output unit 44 converts a file format created by spreadsheet software or the like into a form specification format, and outputs the converted form definition information. Here, the conversion to the form specification format means that, for example, information such as paper information and enlargement / reduction is converted from various setting information for the file to the form specification format, or fixed for a plurality of data items existing in the file. Attributes of items and repeated items are given. Thereby, for example, in the spreadsheet software, the area defined as the cell coordinates such as (1, A) is expressed by the upper left absolute coordinates and the lower right absolute coordinates in the form definition information. be able to. Note that the coordinate conversion and the attribute assignment to the fixed item or the repeated item are performed based on the information obtained from the column-by-column start position table data 16B, the repeated item table 16C, etc., for example, but are not limited thereto. It is not something.
Also, it indicates whether the item is fixed or repeated for information such as cell width, page size, page margin, etc. obtained from a file created by spreadsheet software, and information such as crew number and name displayed on the form. Attributes can be assigned automatically.

図21は、帳票定義出力部44によって作成される帳票仕様に含まれるデータの一例である。図21に示す帳票仕様には、例えば帳票名(例えば、「test」)、帳票形式、機能版数、作成日、最終更新日、項目数等の情報が含まれる。また、帳票仕様には、図21に示すように、用紙情報や拡大/縮小、バーコード情報、XML情報、禁則処理といった情報も含まれる。更に、本実施例では、図21に示す情報の他にも、表計算ソフト等によって作成されたファイル(表形式データ)に含まれる複数のデータ項目について、固定項目か繰り返し項目かを示す属性が付与される。   FIG. 21 is an example of data included in the form specification created by the form definition output unit 44. The form specification shown in FIG. 21 includes information such as form name (for example, “test”), form format, function version number, creation date, last update date, number of items, and the like. Further, as shown in FIG. 21, the form specification includes information such as paper information, enlargement / reduction, barcode information, XML information, and prohibition processing. Furthermore, in this embodiment, in addition to the information shown in FIG. 21, there is an attribute indicating whether it is a fixed item or a repeated item for a plurality of data items included in a file (table format data) created by spreadsheet software or the like. Is granted.

以上説明した本実施例の帳票作成支援装置1によれば、ユーザに煩雑な入力操作を行わせることなく、データ項目に適切な属性を付与することができる。   According to the form creation support apparatus 1 of the present embodiment described above, it is possible to assign appropriate attributes to data items without causing the user to perform complicated input operations.

以上、帳票作成支援装置等を実施するための形態について実施例を用いて説明したが、本発明はこうした実施例に何等限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々の変形及び置換を加えることができる。   As mentioned above, although the form for implementing a form creation support apparatus etc. was demonstrated using the Example, this invention is not limited to such an Example at all, and various within the range which does not deviate from the summary of this invention. Variations and substitutions can be added.

例えば、上記実施例では、縦方向に繰り返される項目を繰り返し項目として抽出するものとしたが、横方向に繰り返される項目を繰り返し項目として抽出してもよい。この場合、実施例における行と列、XとYを全て入れ替えればよい。   For example, in the above embodiment, the item repeated in the vertical direction is extracted as the repeated item, but the item repeated in the horizontal direction may be extracted as the repeated item. In this case, all the rows and columns and X and Y in the embodiment may be exchanged.

本発明は、コンピュータソフトウェア産業等に利用することができる。   The present invention can be used in the computer software industry and the like.

1 帳票作成支援装置
10 CPU
12 ドライブ装置
14 記録媒体
16 メモリ装置
18 記憶装置
20 ネットワークボード
22 ビデオボード
24 入力デバイス
30 オペレーティングシステム
31 ドライバ
32 ライブラリ
34 帳票作成支援アプリケーション
40 ファイル読込部
41 罫線領域抽出部
42 繰り返し項目抽出部
43 固定項目抽出部
44 帳票定義出力部
50 元データ作成用端末
60 帳票出力サーバ
1 Form creation support device 10 CPU
DESCRIPTION OF SYMBOLS 12 Drive apparatus 14 Recording medium 16 Memory apparatus 18 Storage apparatus 20 Network board 22 Video board 24 Input device 30 Operating system 31 Driver 32 Library 34 Form creation support application 40 File reading part 41 Ruled line area extraction part 42 Repeat item extraction part 43 Fixed item Extraction unit 44 Form definition output unit 50 Original data creation terminal 60 Form output server

一態様の帳票作成支援装置は、表形式データに含まれる複数のデータ項目のうち、所定方向に同一の項目値で連続するデータ項目を抽出する繰り返し項目抽出部と、前記繰り返し項目抽出部により抽出された連続するデータ項目に対して繰り返し項目であることを示す属性を付与した帳票定義情報を出力する帳票定義出力部と、を備える。 A form creation support device according to one aspect includes a repeated item extraction unit that extracts continuous data items with a same item value in a predetermined direction from a plurality of data items included in tabular data, and the repeated item extraction unit extracts the data items. A form definition output unit that outputs form definition information to which an attribute indicating that it is a repeated item is given to the continuous data items.

Claims (9)

表形式データに含まれる複数のデータ項目のうち、所定方向に同一内容で連続するデータ項目を抽出する繰り返し項目抽出部と、
前記繰り返し項目抽出部により抽出された連続するデータ項目に対して繰り返し項目であることを示す属性を付与した帳票定義情報を出力する帳票定義出力部と、を備えることを特徴とする帳票作成支援装置。
Among a plurality of data items included in tabular data, a repeated item extraction unit that extracts consecutive data items with the same content in a predetermined direction;
A form creation support device comprising: a form definition output unit that outputs form definition information to which attributes indicating repetitive items are added to continuous data items extracted by the repetitive item extraction unit .
前記表形式データにおける罫線で囲まれた領域を抽出する罫線領域抽出部を備え、
前記繰り返し項目抽出部は、前記罫線領域抽出部により抽出された領域内のデータを一単位のデータ項目として扱うことを特徴とする請求項1に記載の帳票作成支援装置。
A ruled line region extraction unit for extracting a region surrounded by ruled lines in the tabular data;
The form creation support apparatus according to claim 1, wherein the repetitive item extraction unit treats data in the region extracted by the ruled line region extraction unit as a unit data item.
前記表形式データに含まれる複数のデータ項目のうち、繰り返し項目抽出部により抽出されたデータ項目以外のデータ項目を抽出する固定項目抽出部を備え、
前記帳票定義出力部は、前記固定項目抽出部により抽出されたデータ項目に対して固定項目であることを示す属性を付与した帳票定義情報を出力することを特徴とする請求項1又は2に記載の帳票作成支援装置。
Of the plurality of data items included in the tabular data, comprising a fixed item extraction unit for extracting data items other than the data items extracted by the repeated item extraction unit,
The said form definition output part outputs the form definition information which provided the attribute which shows that it is a fixed item with respect to the data item extracted by the said fixed item extraction part, The Claim 1 or 2 characterized by the above-mentioned. Form creation support device.
表形式データに含まれる複数のデータ項目のうち、所定方向に同一内容で連続するデータ項目を抽出する繰り返し項目抽出ステップと、
前記繰り返し項目抽出ステップにより抽出された連続するデータ項目に対して繰り返し項目であることを示す属性を付与した帳票定義情報を出力する帳票定義出力ステップと、を備えることを特徴とする帳票作成支援方法。
A repeated item extraction step of extracting data items that are continuous in the predetermined direction with the same content among a plurality of data items included in the tabular data;
A form creation support method, comprising: a form definition output step for outputting form definition information to which an attribute indicating that the continuous data item extracted by the repeat item extraction step is a repeat item is provided. .
前記表形式データにおける罫線で囲まれた領域を抽出する罫線領域抽出ステップを備え、
前記繰り返し項目抽出ステップは、前記罫線領域抽出ステップにより抽出された領域内のデータを一単位のデータ項目として扱うことを特徴とする請求項4に記載の帳票作成支援方法。
A ruled line region extraction step for extracting a region surrounded by ruled lines in the tabular data;
5. The form creation support method according to claim 4, wherein the repetitive item extracting step treats the data in the area extracted by the ruled line area extracting step as a unit of data item.
前記表形式データに含まれる複数のデータ項目のうち、繰り返し項目抽出ステップにより抽出されたデータ項目以外のデータ項目を抽出する固定項目抽出ステップを備え、
前記帳票定義出力ステップは、前記固定項目抽出ステップにより抽出されたデータ項目に対して固定項目であることを示す属性を付与した帳票定義情報を出力することを特徴とする請求項4又は5に記載の帳票作成支援方法。
A fixed item extraction step of extracting data items other than the data items extracted by the repeated item extraction step among the plurality of data items included in the tabular data;
6. The form definition output step of outputting form definition information to which an attribute indicating a fixed item is added to the data item extracted by the fixed item extraction step. Form creation support method.
表形式データに含まれる複数のデータ項目のうち、所定方向に同一内容で連続するデータ項目を抽出し、
抽出された連続するデータ項目に対して繰り返し項目であることを示す属性を付与した帳票定義情報を出力する、処理をコンピュータに実行させるための帳票作成支援プログラム。
Of the plurality of data items included in the tabular data, extract data items that continue in the same direction with the same content,
A form creation support program for causing a computer to execute a process of outputting form definition information to which an attribute indicating that it is a repeated item is output with respect to extracted continuous data items.
前記表形式データにおける罫線で囲まれた領域を抽出し、
抽出された領域内のデータを一単位のデータ項目として扱うことを特徴とする請求項7に記載の帳票作成支援プログラム。
Extract the area surrounded by ruled lines in the tabular data,
8. The form creation support program according to claim 7, wherein the data in the extracted area is handled as a unit of data item.
前記表形式データに含まれる複数のデータ項目のうち、前記繰り返し項目以外のデータ項目を抽出し、
抽出されたデータ項目に対して固定項目であることを示す属性を付与した帳票定義情報を出力することを特徴とする請求項7又は8に記載の帳票作成支援プログラム。
Of the plurality of data items included in the tabular data, extract data items other than the repeated items,
9. The form creation support program according to claim 7 or 8, wherein the form definition information added with an attribute indicating that the extracted data item is a fixed item is output.
JP2014541832A 2012-10-15 2012-10-15 Form creation support device, form creation support method, and form creation support program Active JP6040990B2 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2012/076611 WO2014061081A1 (en) 2012-10-15 2012-10-15 Form creation assistance device, form creation assistance method, and form creation assistance program

Publications (2)

Publication Number Publication Date
JPWO2014061081A1 true JPWO2014061081A1 (en) 2016-09-05
JP6040990B2 JP6040990B2 (en) 2016-12-07

Family

ID=50487671

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014541832A Active JP6040990B2 (en) 2012-10-15 2012-10-15 Form creation support device, form creation support method, and form creation support program

Country Status (2)

Country Link
JP (1) JP6040990B2 (en)
WO (1) WO2014061081A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011253443A (en) * 2010-06-03 2011-12-15 Toshiba Corp Data processor

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2740335B2 (en) * 1990-05-18 1998-04-15 富士ファコム制御株式会社 Table reader with automatic cell attribute determination function
JP2001118030A (en) * 1991-10-28 2001-04-27 Hitachi Ltd Method and device for editing format data
WO1997011434A1 (en) * 1995-09-20 1997-03-27 Hitachi, Ltd. Slip processing method
JP4183527B2 (en) * 2003-02-24 2008-11-19 日立オムロンターミナルソリューションズ株式会社 Form definition data creation method and form processing apparatus
JP4856235B2 (en) * 2009-12-15 2012-01-18 富士通株式会社 Form recognition method and form recognition apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011253443A (en) * 2010-06-03 2011-12-15 Toshiba Corp Data processor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JPN6016021877; 大野 雄也 他: '様式の更新に対応した帳票のDB自動構成法の提案と評価' 第74回(平成24年)全国大会講演論文集(1) , 20120306, pp.727-728, 一般社団法人情報処理学会 *

Also Published As

Publication number Publication date
JP6040990B2 (en) 2016-12-07
WO2014061081A1 (en) 2014-04-24

Similar Documents

Publication Publication Date Title
EP2291010A1 (en) Structure processing method and apparatus for layout file
US20130174024A1 (en) Method and device for converting document format
CN103559184A (en) Form page display method and device
JP2013246644A (en) Software object correction support device, software object correction support method and program
JP7290391B2 (en) Information processing device and program
CN110377559B (en) PDF file data extraction method, device and storage medium
CN112766268A (en) Text label generation method and device, electronic equipment and storage medium
CN109815243B (en) Structured storage method and device during document interface modification
CN111695414B (en) Document processing method and device, electronic equipment and computer readable storage medium
JP6040990B2 (en) Form creation support device, form creation support method, and form creation support program
JP2016224550A (en) Conversion method
JP6221019B1 (en) Data table creation device, data table creation method, and data table creation program
JP6131962B2 (en) Table synthesis apparatus and table synthesis program
US10649743B2 (en) Application developing method and system
CN114169306A (en) Method, device and equipment for generating electronic receipt and readable storage medium
CN110321125B (en) Data configuration method and device for cells and readable storage medium
CN116702712B (en) Word task book conversion method and device, electronic equipment and medium
JP7417068B2 (en) Display method, display program, and information processing device
US20240184985A1 (en) Information representation structure analysis device, and information representation structure analysis method
JP2018025852A (en) Program analysis method, program analyzer and analysis program
JP4031449B2 (en) File creation program and storage medium thereof
Haslwanter Data Input
JP4610183B2 (en) Data management device
JP3197724U (en) Insurance form creation device
CN114168836A (en) Webpage data analysis and visualization method and device, electronic equipment and medium

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160614

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160810

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161024

R150 Certificate of patent or registration of utility model

Ref document number: 6040990

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150