JP5239807B2 - Spreadsheet generation program, spreadsheet generation apparatus, and spreadsheet generation method - Google Patents
Spreadsheet generation program, spreadsheet generation apparatus, and spreadsheet generation method Download PDFInfo
- Publication number
- JP5239807B2 JP5239807B2 JP2008313849A JP2008313849A JP5239807B2 JP 5239807 B2 JP5239807 B2 JP 5239807B2 JP 2008313849 A JP2008313849 A JP 2008313849A JP 2008313849 A JP2008313849 A JP 2008313849A JP 5239807 B2 JP5239807 B2 JP 5239807B2
- Authority
- JP
- Japan
- Prior art keywords
- cell
- overlay
- definition information
- spreadsheet
- column width
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Record Information Processing For Printing (AREA)
Description
本発明は,オーバレイ出力処理される帳票のスプレッドシートデータを自動生成するスプレッドシート生成プログラム,スプレッドシート生成装置,およびスプレッドシート生成方法に関する。 The present invention relates to a spreadsheet generation program, a spreadsheet generation device, and a spreadsheet generation method for automatically generating spreadsheet data of a form to be subjected to overlay output processing.
帳票の出力結果は,帳票のフォーマット定義情報に基づいて構成される項目と各項目へ入力される入力データとを含む帳票データに,オーバレイ定義情報に基づいて構成された枠,罫線,マークなどのオーバレイの要素とが重畳されて出力される。 The output result of the form is the form data including the items configured based on the format definition information of the form and the input data input to each item, such as frames, ruled lines, marks, etc. configured based on the overlay definition information. Overlay elements are superimposed and output.
帳票の印刷結果から,帳票の項目への入力データを,集計やグラフ作成等に二次活用する場合には,帳票の印刷結果から入力データのみを抽出しなければならない。 When the input data for a form item is used for secondary calculation or graph creation from the form print result, only the input data must be extracted from the form print result.
しかし,帳票の印刷結果を電子化した場合に,電子化した印刷結果データでは入力データとオーバレイのデータとが区別されないため,印刷結果データから入力データのみを抽出することはできなかった。 However, when the print result of a form is digitized, the digitized print result data cannot distinguish input data from overlay data, so that only the input data cannot be extracted from the print result data.
そのため,帳票の入力データを再利用する場合には,従来では,帳票の印刷結果を電子化して利用せずに,帳票の入力データをデータベースから取得する業務アプリケーション等を作成しておき,この業務アプリケーションを介して入力データを取得していた。 Therefore, when reusing input data of a form, conventionally, a business application or the like that obtains input data of a form from a database is created without using the printed result of the form electronically. The input data was acquired through the application.
また,印刷処理において,帳票の入力データとオーバレイのデータとをそのまま重畳させると,帳票上で両者の位置のずれ,不整合などの相違が発生することがある。入力データとオーバレイのデータとの位置が相違する帳票の印刷結果を電子化した場合には,電子化した印刷結果データは,そのままでは,ディスプレイ表示,データ入力用のフォーマットとして再利用などが行えず,再利用のためには何らかの加工処理や修正処理が必要であった。 In addition, if the form input data and the overlay data are superimposed as they are in the printing process, there may be a difference such as a positional deviation or mismatch between the two on the form. If the print result of a form with different input data and overlay data is digitized, the digitized print result data cannot be reused as a display display or data input format as it is. Therefore, some processing or correction was necessary for reuse.
なお,帳票の項目への入力データが不定量なものである場合に,帳票定義情報で定義された帳票の入力データの矩形領域の大きさを変更したり,入力データの文字ピッチ,行ピッチなどを変更したりして,帳票を適切な体裁で印刷する処理が知られている。
情報資源として帳票を有効活用するために,帳票の情報を既存の業務アプリケーション,例えば表計算ソフトで使用できるスプレッドシートデータに変換する処理が,強く望まれていた。特に,オーバレイ出力処理される帳票から,印刷結果のイメージをできる限り維持しつつ入力データの二次活用が容易なデータを自動的に生成する処理は,従来実現されていなかった。 In order to effectively use a form as an information resource, there has been a strong demand for a process for converting form information into spreadsheet data that can be used by existing business applications such as spreadsheet software. In particular, a process for automatically generating data that can easily be used for the secondary use of input data while maintaining an image of a print result as much as possible from a form subjected to overlay output processing has not been realized.
本発明の目的は,オーバレイ出力処理される帳票について,帳票の印刷結果のイメージを維持しつつ,入力データや印刷結果のレイアウトを容易に二次活用できるようなスプレッドシートデータを自動生成する処理技術,すなわち,コンピュータを前記スプレッドシートデータの生成処理を行う処理手段として機能させるためのプログラム,前記スプレッドシートデータの自動生成処理を実行する装置,コンピュータが実行する前記スプレッドシートの生成方法を,提供することである。 SUMMARY OF THE INVENTION An object of the present invention is a processing technique for automatically generating spreadsheet data that can easily utilize secondary layouts of input data and print results while maintaining an image of a print result of a form for a form to be subjected to overlay output processing. That is, a program for causing a computer to function as processing means for generating the spreadsheet data, an apparatus for executing the automatic generation processing of the spreadsheet data, and a method for generating the spreadsheet executed by the computer are provided. That is.
上記の目的を達成するために,本発明の一態様として開示するスプレッドシート生成プログラムは,コンピュータを,フォーマット定義情報取得処理手段,オーバレイ定義情報取得処理手段,セル定義情報生成処理手段,およびスプレッドシート出力処理手段として機能させるものである。 In order to achieve the above object, a spreadsheet generation program disclosed as one aspect of the present invention includes a computer, a format definition information acquisition processing unit, an overlay definition information acquisition processing unit, a cell definition information generation processing unit, and a spreadsheet. It functions as output processing means.
開示するプログラムがインストールされて実行されるコンピュータでは,フォーマット定義情報取得処理手段が,帳票を構成する項目群の帳票内のレイアウト位置に関するフォーマット定義情報を取得する。また,オーバレイ定義情報取得処理手段が,前記帳票に重畳して出力されるオーバレイ群の帳票内のレイアウト位置に関するオーバレイ定義情報を取得する。 In a computer in which the disclosed program is installed and executed, the format definition information acquisition processing means acquires format definition information related to the layout position in the form of the group of items constituting the form. Also, overlay definition information acquisition processing means acquires overlay definition information relating to the layout position in the form of the overlay group that is output superimposed on the form.
そして,セル定義情報生成処理手段は,フォーマット定義情報の各項目の列方向の位置および行方向のレイアウト位置から,隣り合う項目間の距離に基づいて列幅および行高をそれぞれ決定し,決定した列幅および行高に関するフォーマット・セル定義情報を生成する。 Then, the cell definition information generation processing means determines the column width and the row height based on the distance between adjacent items from the position in the column direction and the layout position in the row direction of each item of the format definition information. Generate format cell definition information for column width and row height.
すると,スプレッドシート出力処理手段は,オーバレイ定義情報に基づいて,オーバレイのレイアウト位置に対応する列幅および行高を決定し,さらに,フォーマット・セル定義情報の項目群の列幅および行高ならびに前記決定したオーバレイのレイアウト位置に基づく列幅および行高に基づいて,出力用の列幅および行高,ならびに当該列幅と行高とのセル配列における項目群およびオーバレイ群の各々が対応するセルを特定したスプレッドシートを生成する。 Then, the spreadsheet output processing means determines the column width and row height corresponding to the layout position of the overlay based on the overlay definition information, and further, the column width and row height of the item group of the format cell definition information, Based on the column width and row height based on the determined layout position of the overlay, the column width and row height for output, and the cell to which each of the item group and overlay group in the cell array of the column width and row height correspond are displayed. Generate the identified spreadsheet.
開示するプログラムによれば,コンピュータを,帳票の項目や項目と出力時にオーバレイされる部品とのレイアウト位置を維持したセル配列を持つスプレッドシートを自動生成する処理手段として機能させることができる。そして,出力されたスプレッドシート形式のデータによって,帳票の出力結果のレイアウトの再利用,帳票の入力データの再利用等が可能となる。 According to the disclosed program, it is possible to cause a computer to function as processing means for automatically generating a spreadsheet having a cell array that maintains layout positions of items in a form and items and components overlaid upon output. The output spreadsheet data can be used to reuse the layout of the output result of the form, reuse the input data of the form, and the like.
開示するスプレッドシート生成処理によって,オーバレイ出力される帳票のフォーマット定義情報とオーバレイ定義情報とに基づいて,帳票の出力時の項目とオーバレイとのレイアウトに関する情報を含むスプレッドシートデータを自動生成することができる。 Based on the format definition information and overlay definition information of the form that is output as overlay, the spreadsheet data that is disclosed can automatically generate spreadsheet data that includes information on the layout of items and overlays when the form is output. it can.
生成されるスプレッドシートデータでは,項目およびオーバレイのレイアウトの情報に基づいてセル配列が設定される。そのためスプレッドシートデータの項目に対応するセルから,入力データだけを二次利用しやすい形式(例えばCSV形式,XML形式等)で抽出することが可能になる。 In the generated spreadsheet data, a cell array is set based on information on items and overlay layout. Therefore, it becomes possible to extract only the input data in a format (for example, CSV format, XML format, etc.) that is easy to secondary use from the cells corresponding to the items of the spreadsheet data.
また,帳票の印刷結果のイメージを定めるオーバレイ定義情報を,二次利用しやすいスプレッドシートデータとして抽出することが可能になる。 In addition, it is possible to extract overlay definition information that defines the image of the printed result of the form as spreadsheet data that can be easily used for secondary use.
よって,帳票への入力情報,帳票の出力体裁情報の再利用がより容易となり,帳票の再利用性,流通性が高まるという効果を奏する。 Therefore, it is easier to reuse the information input to the form and the output format information of the form, and the reusability and distribution of the form are enhanced.
以下,本発明の実施の形態を説明する。 Embodiments of the present invention will be described below.
図1は,本発明の一実施例として開示するスプレッドシート生成装置1の構成例を示す図である。
FIG. 1 is a diagram illustrating a configuration example of a
スプレッドシート生成装置1は,既存の帳票定義作成ツール(GUI)から出力されるフォーマット定義情報31およびオーバレイ定義情報33を取得し,帳票の印刷結果を構成する項目およびオーバレイのレイアウト位置をセル単位の行列で特定するスプレッドシート41を生成・出力する。また,スプレッドシート生成装置1は,業務アプリケーションから出力される入力データ群35を取得し,帳票の項目に対応するセルに入力データを与えてスプレッドシート41を出力する。
The
図2は,本発明の一実施例における帳票の印刷結果例を示す図である。 FIG. 2 is a diagram showing an example of a form printing result in one embodiment of the present invention.
図2の帳票の印刷結果は,項目群(項目A〜項目D)とオーバレイ(枠,罫線)とを含むように構成されている。項目(項目A〜項目D)の属性,出力態様,レイアウト位置等はフォーマット定義情報31に定義されている。重畳して印刷出力されるオーバレイの枠,罫線の出力態様,レイアウト位置等は,オーバレイ定義情報33に定義されている。
The form print result in FIG. 2 is configured to include an item group (item A to item D) and an overlay (frame, ruled line). The attributes, output modes, layout positions, etc. of the items (item A to item D) are defined in the
フォーマット定義情報31は,帳票を構成する項目群の帳票内のレイアウト位置に関する情報である。
The
図3に,本発明の一実施例におけるフォーマット定義情報31のデータ構成例を示す。
FIG. 3 shows a data configuration example of the
フォーマット定義情報31は,帳票形式情報として,帳票を構成するパーティションごとに,パーティション内の項目に関する項目情報および罫線情報を有する。
The
図4に,フォーマット定義情報31の項目情報のデータ構成例を示す。
FIG. 4 shows a data configuration example of item information of the
項目情報は,項目の属性を定義する情報であり,項目名,項目位置情報,項目領域長,データ長,データ形式,フォント情報,配置情報,編集形式,レコード内位置等の情報を含む。 The item information is information defining item attributes, and includes information such as item name, item position information, item area length, data length, data format, font information, layout information, edit format, and record position.
項目名は,項目を識別するための,フォーマット定義情報31内で一意の文字列である。項目位置情報は,図2に示す帳票の左下を原点とするXY座標系における座標値である。座標値は,1/1440インチ単位の値が与えられる。項目領域長は,項目の領域のX座標軸方向(例えば,横方向)の長さである。
The item name is a unique character string in the
データ長は,項目に与えられる入力データの長さ(バイト単位)である。入力データは,文字列または数値である。 The data length is the length (in bytes) of the input data given to the item. Input data is a character string or a numeric value.
データ形式は,項目に与えられる入力データの種別(文字列,数値)である。フォント情報は,入力データの印刷時のフォント名,フォントサイズを示す情報である。 The data format is the type (character string, numeric value) of the input data given to the item. The font information is information indicating the font name and font size when printing the input data.
配置情報は,入力データの印刷時の配置(右寄せ,中央,左寄せ等)を示す情報である。編集形式は,入力データの印刷時の表示形式である。予め設定された対応関係に従って,編集形式から,スプレッドシート41の項目に対応するセルの表示形式(書式)が設定される。レコード内位置は,項目に与えられる入力データの,入力データ群35のレコード内での位置である。レコード内位置は,レコードの先頭からのバイト数で示される。
The arrangement information is information indicating the arrangement (right alignment, center, left alignment, etc.) when printing the input data. The edit format is a display format when the input data is printed. The display format (format) of the cell corresponding to the item of the
図5に,フォーマット定義情報31の項目情報の編集形式とスプレッドシート41の書式との対応関係の定義例を示す。
FIG. 5 shows a definition example of the correspondence relationship between the item information editing format of the
対応関係の定義に関する情報は,スプレッドシート出力部15に予め備えられ,スプレッドシート41の生成時に参照される。
Information relating to the definition of the correspondence relationship is provided in advance in the
図5の対応関係では,スプレッドシート41が,マイクロソフト社の表計算ソフトウェア「EXCEL」用データである場合の表示形式(セル書式)との対応の例である。フォーマット定義情報31の項目情報の「データ形式」と「編集形式」との設定値によって,スプレッドシート41のセルの書式が特定される。
The correspondence relationship in FIG. 5 is an example of correspondence with the display format (cell format) when the
例えば,項目の「データ形式」が“文字列”,かつ「編集形式」が“なし”である場合には,この項目に対応付けられたセルの書式は“@”となる。また,項目の「データ形式」が“数値”かつ「編集形式」が“9999999”である場合には,この項目に対応付けられたセルの「書式」は“000000;000000”となる。 For example, when the “data format” of the item is “character string” and the “editing format” is “none”, the format of the cell associated with this item is “@”. Further, when the “data format” of the item is “numeric value” and the “editing format” is “9999999”, the “format” of the cell associated with this item is “000000; 000000”.
図6は,フォーマット定義情報31の項目情報のレコード内位置と,各項目に与えられる入力データとの関係を説明するための図である。
FIG. 6 is a diagram for explaining the relationship between the position in the record of the item information of the
フォーマット定義情報31の項目情報の「項目位置情報」によって,図6の上部に示すように,帳票の各項目が,“項目A,項目AA,…”の順序で配置されているとする。この場合に,「項目A」,「項目AA」,…の各項目への入力データが“あいうえお”,“12345”,…であるとすると,印刷結果では,各項目に与えられる入力データは,“あいうえお,12345,…”の順序で印刷されることになる。 Assume that the items of the form are arranged in the order of “item A, item AA,...” As shown in the upper part of FIG. In this case, if the input data to each item of “item A”, “item AA”,... Is “Aiueo”, “12345”,..., The input data given to each item is The printing is performed in the order of “Aiueo, 12345,...”.
図7に,フォーマット定義情報31の罫線情報のデータ構成例を示す。
FIG. 7 shows a data configuration example of ruled line information of the
罫線情報は,項目の出力態様(罫線,枠,網掛け等)を定義する情報であって,種別,位置情報を含む。 The ruled line information is information that defines the output mode (ruled line, frame, shaded, etc.) of the item, and includes type and position information.
種別は,罫線/枠/網掛けを識別する情報である。位置情報は,罫線/枠/網掛けの位置または範囲を示す座標値であって,開始座標値(X1,Y1)と終了座標値(X2,Y2)が設定される。罫線情報の種別が,“枠”または“網掛け”の場合に,開始座標値は項目の矩形領域の左上座標であり,終了位置は,矩形の右下座標である。 The type is information for identifying ruled lines / frames / shading. The position information is a coordinate value indicating a ruled line / frame / shaded position or range, and a start coordinate value (X1, Y1) and an end coordinate value (X2, Y2) are set. When the type of ruled line information is “frame” or “shaded”, the start coordinate value is the upper left coordinate of the rectangular area of the item, and the end position is the lower right coordinate of the rectangle.
オーバレイ定義情報33は,帳票に重畳して出力される枠,罫線,マークなどの要素であるオーバレイ群の帳票内のレイアウト位置に関する情報である。
The
図8に,本発明の一実施例におけるオーバレイ定義情報33のデータ構成例を示す。
FIG. 8 shows a data configuration example of the
オーバレイ定義情報33は,文字列情報,罫線情報,枠情報,網掛け情報等の情報を含む。
The
図9に,オーバレイ定義情報33の文字列情報のデータ構成例を示す。
FIG. 9 shows a data configuration example of the character string information of the
文字列情報は,位置情報,文字列範囲,データ長,フォント情報,配置情報,文字列データを含む。 The character string information includes position information, character string range, data length, font information, arrangement information, and character string data.
位置情報は,図2に示す帳票の左下を原点とするXY座標系における座標値である。座標値は,1/1440インチ単位の値が与えられる。文字列範囲は,オーバレイの文字列の範囲を示す座標値であり,矩形の左上座標である開始座標値(X1,Y1)と矩形の右下座標である終了座標値(X2,Y2)が設定される。データ長は,オーバレイが文字列である場合の文字列の長さを示す値(バイト単位)である。 The position information is a coordinate value in the XY coordinate system with the origin at the lower left of the form shown in FIG. The coordinate value is given in units of 1/1440 inch. The character string range is a coordinate value indicating the range of the character string of the overlay, and the start coordinate value (X1, Y1) that is the upper left coordinate of the rectangle and the end coordinate value (X2, Y2) that is the lower right coordinate of the rectangle are set. Is done. The data length is a value (in bytes) indicating the length of the character string when the overlay is a character string.
フォント情報は,オーバレイの文字列のフォント名,フォントサイズを示す情報である。配置情報は,オーバレイの文字列範囲内における文字列の配置(右寄せ,中央,左寄せ等)を示す情報である。文字列データは,オーバレイである文字列データが格納される。 The font information is information indicating the font name and font size of the overlay character string. The arrangement information is information indicating the arrangement (right alignment, center, left alignment, etc.) of the character string within the character string range of the overlay. The character string data stores character string data that is an overlay.
図10に,オーバレイ定義情報33の罫線情報のデータ構成例を示す。
FIG. 10 shows a data configuration example of the ruled line information of the
罫線情報は,線種,位置情報を含む。 The ruled line information includes line type and position information.
線種は,罫線の種類(実線,点線,太線等)を識別する情報である。位置情報は,罫線の位置を示す座標値(1/1440インチ単位)である。開始位置(x1,y1)と終了位置(x2,y2)とが設定される。 The line type is information for identifying the type of ruled line (solid line, dotted line, thick line, etc.). The position information is a coordinate value (1/1440 inch unit) indicating the position of the ruled line. A start position (x1, y1) and an end position (x2, y2) are set.
図11に,オーバレイ定義情報33の枠情報のデータ構成例を示す。
FIG. 11 shows a data configuration example of the frame information of the
枠情報は,線種,位置情報を含む。 The frame information includes line type and position information.
線種は,罫線の種類(実線,点線,太線等)を識別する情報である。位置情報は,枠の位置または範囲を示す座標値である。枠線の矩形の左上の座標値である開始位置(X1,Y1)と,枠線の矩形の右下の座標値である終了位置(X2,Y2)とが設定される。 The line type is information for identifying the type of ruled line (solid line, dotted line, thick line, etc.). The position information is a coordinate value indicating the position or range of the frame. A start position (X1, Y1) that is the upper left coordinate value of the frame rectangle and an end position (X2, Y2) that is the lower right coordinate value of the frame line rectangle are set.
図12に,オーバレイ定義情報33の網掛け情報のデータ構成例を示す。
FIG. 12 shows a data configuration example of the shaded information of the
網掛け情報は,網掛けパターン,位置情報を含む。 The shaded information includes a shaded pattern and position information.
網掛けパターンは,網掛けパターンの種別または濃度を識別する情報である。位置情報は,網掛けの位置や範囲を示す座標値である。枠線の矩形の左上の座標値である開始位置(X1,Y1)と,枠線の矩形の右下の座標値である終了位置(X2,Y2)とが設定される。 The shade pattern is information for identifying the type or density of the shade pattern. The position information is a coordinate value indicating a shaded position or range. A start position (X1, Y1) that is the upper left coordinate value of the frame rectangle and an end position (X2, Y2) that is the lower right coordinate value of the frame line rectangle are set.
入力データ群35は,帳票の項目群に与えられる,文字/文字列,数値等のデータの集合に相当するデータである。
The
図1に示すスプレッドシート生成装置1は,セル定義情報生成処理部11,モード指定部13,スプレッドシート出力部15を有する。
The
スプレッドシート出力部15は,さらに,セル出力部151,オートシェイプ出力部152を有する。
The
セル定義情報生成処理部11は,フォーマット定義情報31を取得し,予め保持するセル制御情報19に基づいて,フォーマット定義情報31から,帳票の項目群のレイアウト位置に対応する列幅および行高を持つセルの設定に関するフォーマット・セル定義情報21を生成する。
The cell definition information
また,セル定義情報生成処理部11は,オーバレイ定義情報33を取得し,セル制御情報19に基づいて,オーバレイ定義情報33から,帳票のオーバレイのレイアウト位置に対応する列幅および行高を持つセルの設定に関するオーバレイ・セル定義情報23を生成する。
Further, the cell definition information
図13に,セル制御情報19のデータ構成例を示す。
FIG. 13 shows a data configuration example of the
セル制御情報19は,セルの列幅/行高を決定する処理の制御に関する情報である。セル制御情報19は,基本セル幅,基本セル高,丸め幅,丸め高さを有し,帳票ごとに任意に値を設定することができる。
The
基本セル幅は,出力するスプレッドシート41の基本セルのセル幅(列幅)を示す値(1/1440インチ単位)である。基本セル幅の初期値は,960/1440インチとする。基本セル高は,スプレッドシート41の基本セルのセル高さ(行高)を示す値(1/1440インチ単位)である。基本セル高の初期値は,240/1440インチとする。
The basic cell width is a value (1/1440 inch unit) indicating the cell width (column width) of the basic cell of the
丸め幅は,項目の列方向の位置(X軸方向の座標値)を調整するかを判定するための情報である。丸め幅の値(1/1440インチ単位)の初期値は,144/1440インチとする。丸め高さは,項目の位置(Y軸方向の座標値)を調整するかを判定するための情報である。丸め高さの値(1/1440インチ単位)の初期値は,144/1440インチとする。 The rounding width is information for determining whether to adjust the position of the item in the column direction (coordinate value in the X-axis direction). The initial value of the rounding width (in units of 1/1440 inches) is 144/1440 inches. The rounding height is information for determining whether to adjust the item position (the coordinate value in the Y-axis direction). The initial value of the rounding height (in units of 1/1440 inches) is 144/1440 inches.
セル定義情報生成処理部11は,フォーマット定義情報31の項目群の列方向の座標値(X1)を昇順にソートし,ソート結果から,昇順の順位が1つ上の項目との間の列方向の距離に基づいて列幅を決定する。さらに,セル定義情報生成処理部11は,フォーマット定義情報31の項目群の行方向の座標値(Y1)を昇順にソートし,ソート結果から,昇順の順位が1つ上の項目との間の行方向の距離に基づいて行高を決定する。
The cell definition information
また,セル定義情報生成処理部11は,オーバレイ定義情報33のオーバレイ群の列方向の座標値(X1)および行方向(Y1)を昇順にソートし,ソート結果から,昇順の順位が1つ上のオーバレイとの間の列方向の距離に基づいて列幅を決定する。さらに,昇順の順位が1つ上のオーバレイとの間の行方向の距離に基づいて行高を決定する。
The cell definition information
さらに,セル定義情報生成処理部11は,セル制御情報19の丸め幅/丸め高さを参照して,項目同士の距離が,丸め幅/丸め高さ以内であれば,座標原点に近い方(ソート結果の昇順の順位が1つ上の一方)の項目のX座標値/Y座標値に,他方の項目のX座標値/Y座標値を一致させる。
Furthermore, the cell definition information
微少な位置ずれが生じている項目同士の位置を揃えることによって,無駄なセルが生成されることを防止している。 By aligning the positions of items that have a slight positional deviation, it is possible to prevent generation of useless cells.
図14に,フォーマット定義情報31に基づく列幅および行高の決定例を示す。
FIG. 14 shows an example of determining the column width and row height based on the
図2に示す帳票の印刷結果の場合に,セル定義情報生成処理部11は,フォーマット定義情報31の項目A〜項目Dのレイアウト位置から,列幅と行高とを決定する。
In the case of the form print result shown in FIG. 2, the cell definition information
本実施例では,セル制御情報19の基本セル幅,基本セル高をもとに,2つの部品間の距離が「基本セル幅/行高×2」以上である場合は,基本セル幅/基本セル高で区切って2つの列/行とし,列幅/行高を決定する。
In this embodiment, based on the basic cell width and basic cell height of the
セル定義情報生成処理部11は,フォーマット定義情報31の各項目の開始位置(X1,Y1)を,左上を原点とするXY座標系における座標値に変換する。変換した位置(座標値)をもとに項目A〜項目Dを昇順にソートする。
The cell definition information
項目Aの座標値Xf1と原点座標X0との距離を計算し,求めた距離を列Aの列幅Waとする。同様に,項目Aの座標値Xf1と項目Bの座標値Xf2との距離を計算し,求めた距離を列Bの列幅Wbとする。 The distance between the coordinate value X f1 of the item A and the origin coordinate X 0 is calculated, and the obtained distance is set as the column width W a of the column A. Similarly, to calculate the distance between the coordinate value X f1 and field coordinates X f2 of B item A, the distance obtained for the column width W b of the column B.
次に,項目Bの座標値Xf2と項目Cの座標値Xf4との距離を求める。この距離が「基本列幅Ws×2」以上であるので,基本列幅Wsを列Cの列幅Wcとして,項目Bの座標値Xf2に基本列幅Wssを加算して座標値Xf3を求める。 Next, determine the distance between the coordinate value X f4 coordinates X f2 and item C of item B. Since this distance is equal to or greater than “basic column width W s × 2”, the basic column width W s is defined as the column width W c of the column C, and the basic column width W s s is added to the coordinate value X f2 of the item B The value X f3 is obtained.
さらに,座標値Xf3と項目Cの座標値Xf4との間の距離は,「基本列幅Ws×2」未満であるので,その距離を列Dの列幅Wdとする。 Furthermore, since the distance between the coordinate value X f3 and the coordinate value X f4 of the item C is less than “basic column width W s × 2”, the distance is defined as the column width W d of the column D.
項目Cの座標値Xf4から帳票の右端の座標値Xeまでの距離が「基本列幅Ws×2」以上であるとする。基本列幅Wsを列Eの列幅Weとし,項目Cの座標値Xf4に基本列幅Wsを加算して座標値座標値Xf5を求める。 It is assumed that the distance from the coordinate value X f4 of the item C to the coordinate value X e at the right end of the form is “basic column width Ws × 2” or more. The basic column width W s is set to the column width W e of the column E, and the basic column width W s is added to the coordinate value X f4 of the item C to obtain the coordinate value coordinate value X f5 .
ここで,項目Cの座標値Xf4と項目Dの座標値Xfdとの距離が,セル制御情報19の丸め幅以内とする。項目Dの座標値Xfdを座標値Xf4に一致させる。
Here, it is assumed that the distance between the coordinate value X f4 of the item C and the coordinate value X fd of the item D is within the rounding width of the
項目C,項目Dの座標値Xf5と帳票の右端の座標値Xeまでの距離を「基本列幅Ws×2」未満であるとする。その距離を列Fの列幅Wfとする。 Item C, and distance to the coordinate values X e at the right end coordinate values X f5 and form the item D which is less than the "basic column width W s × 2". The distance is defined as a column width W f of the column F.
セル定義情報生成処理部11は,列幅の決定の処理と同様の処理を行って,変換した位置(座標値)の昇順の順位が1つ上の項目との間の行方向の距離に基づいて,行高(行1〜行5)を決定する。
The cell definition information
さらに,セル定義情報生成処理部11は,フォーマット定義情報31に基づいて決定した列幅(列A〜列F)および行高(行1〜行5)を持つセル行列において,フォーマット定義情報31の項目の位置情報から,項目に対応するセルを特定して対応付けを行う。
Furthermore, the cell definition information
そして,セル定義情報生成処理部11は,図14に示すように決定した列幅および行高の情報とセルと項目との対応付けとを含むフォーマット・セル定義情報21を生成する。
Then, the cell definition information
図15に,オーバレイ定義情報33に基づく列幅および行高の決定例を示す。
FIG. 15 shows an example of determining the column width and row height based on the
セル定義情報生成処理部11は,図2に示す帳票の印刷結果の場合に,オーバレイ定義情報33のオーバレイ(枠,罫線)の開始位置(X1,Y1)と終了位置(X2,Y2)の座標値を,左上を原点とするXY座標系における座標値に変換する。
In the case of the form printing result shown in FIG. 2, the cell definition information
セル定義情報生成処理部11は,変換した座標値を列方向および行方向それぞれで昇順にソートし,ソート結果において,順位が1つ上の座標値との距離を求め,求めた列方向の距離を列幅,行方向の距離を行高として決定する。
The cell definition information
セル定義情報生成処理部11は,オーバレイの枠の開始位置の座標値XO1と原点座標X0との距離を計算し,列Aの列幅WOaとする。同様に,座標値XO1と枠内の縦罫線の開始位置の座標値XO2との距離を計算し,列Bの列幅WObとする。
The cell definition information
同様に,座標値XO2と枠内の終了位置の座標値XO3との距離を計算し,列Cの列幅Wocとする。さらに,座標値XO3と帳票の右端の座標値Xeとの距離を計算し,列Dの列幅WOdとする。 Similarly, the distance between the coordinate value X O2 and the coordinate value X O3 of the end position in the frame is calculated and set as the column width W oc of the column C. Further, the distance between the coordinate value X O3 and the coordinate value X e at the right end of the form is calculated to obtain the column width W Od of the column D.
さらに,セル定義情報生成処理部11は,枠の開始位置の座標値YO1と原点座標Y0との距離を計算し,行1の行高HO1とする。座標値YO1と枠内の上部の横罫線の座標値Y02との距離から行2の行高HO2を,座標値YO2と枠内の下部の横罫線の座標値Y03との距離から行3の行高HO3を,座標値YO3と枠の終了位置の座標値Y04との距離から行4の行高HO4を,座標値YO4と帳票の下端の位置の座標値Yeとの距離から行5の行高HO5を,それぞれ計算する。
Further, the cell definition information
さらに,セル定義情報生成処理部11は,オーバレイ定義情報33に基づいて決定した列幅(列A〜列D)と行高(行1〜行5)を持つセル行列において,オーバレイ定義情報33のオーバレイの位置情報から,オーバレイに対応するセルを特定して対応付けを行う。
In addition, the cell definition information
そして,セル定義情報生成処理部11は,図15に示すように決定した列幅および行高の情報とセルとオーバレイとの対応付けとを含むオーバレイ・セル定義情報23とを生成する。
Then, the cell definition information
図16は,フォーマット・セル定義情報21とオーバレイ・セル定義情報23のレイアウト位置に関する情報のデータ構成例を示す図である。
FIG. 16 is a diagram showing a data configuration example of information related to the layout positions of the format /
フォーマット・セル定義情報21とオーバレイ・セル定義情報23とは,それぞれ,基本セル幅,基本セル高,セル幅(列数分),セル高(行数分)を有する。
The format
基本セル幅,基本セル高には,セル定義情報の生成時に参照したセル制御情報19の基本セル幅,基本セル高が設定される。
The basic cell width and basic cell height are set with the basic cell width and basic cell height of the
セル幅には,セル定義情報生成処理部11が決定した列数分の列幅の値が,座標原点から昇順に,カンマ区切りの形式で設定される。セル高には,セル幅と同様に,セル定義情報生成処理部11が決定した行数分の行高の値が,座標原点から昇順に,カンマ区切りの形式で設定される。
In the cell width, the column width value for the number of columns determined by the cell definition information
なお,セル定義情報生成処理部11が実行するフォーマット定義情報31,オーバレイ定義情報33からセル定義情報を生成する処理についての詳細処理の説明は,本願出願人の先の特許出願「特願2007−863017号」に記載している。
A detailed description of the processing for generating the cell definition information from the
モード指定部13は,スプレッドシート出力部15が実行する処理内容を指定する。モード指定部13は,予め「レイアウト重視モード,データ重視モード,最適化モード,オートシェイプモード」を設定して,ユーザによるモード設定操作等の外部入力されたモードを指定する。また,モード指定部13は,モード指定の外部入力がない場合に,所定のモード,例えば「最適化モード」を指定する。
The
「レイアウト重視モード」は,帳票の出力結果と同じレイアウトを保持するために,帳票の項目群の位置とオーバレイ群の位置とを全て用いて列幅と行高とを決定するモードである。「データ重視モード」は,入力データの再利用を容易にするために,項目の列幅/行高の位置を優先して列幅と行高とを決定するモードである。 The “layout-oriented mode” is a mode in which the column width and the row height are determined by using all the item group positions and overlay group positions in the form in order to maintain the same layout as the form output result. The “data emphasis mode” is a mode in which the column width and the row height are determined with priority given to the position of the column width / row height of the item in order to facilitate the reuse of input data.
「最適化モード」は,帳票の出力結果と同じレイアウトを維持しつつ,セルの生成を必要最小限に抑えるために,項目群の位置とオーバレイ群の位置と調整して,列幅と行高とを決定するモードである。「オートシェイプモード」は,帳票の出力結果のレイアウトを維持しつつ,オーバレイの再利用を容易にするために,項目群の位置をもとに列幅と行高とを決定し,オーバレイ群をスプレッドシート41に描画される図形要素として生成するモードである。
In the “optimization mode”, the column width and row height are adjusted by adjusting the position of the item group and the position of the overlay group in order to minimize the generation of cells while maintaining the same layout as the output result of the form. This is a mode for determining. “Auto shape mode” determines the column width and row height based on the position of the item group, and spreads the overlay group to facilitate reuse of the overlay while maintaining the layout of the output result of the form. In this mode, a graphic element drawn on the
スプレッドシート出力部15のセル出力部151は,モード指定部13が指定したモードに従って,フォーマット定義情報31とオーバレイ定義情報33とのレイアウト位置に基づいて決定された列幅および行高の情報をもとに,スプレッドシート41を生成,出力する。また,セル出力部151は,入力データ群35を取得して,項目と対応するセルに入力データを与えたスプレッドシート41を生成,出力する。
The
スプレッドシート41は,マイクロソフト社のエクセル(EXCEL)と呼ばれる表計算アプリケーションプログラムで処理可能なデータである。
The
または,スプレッドシート41は,図17に示すように,それぞれがXML形式である文書データ,入力データ,属性データ,オートシェイプデータを含む複数のデータファイル群からなるOOXML(Office Open XML)形式のエクセルデータであってもよい。この場合に,OOXML形式のスプレッドシート41は,ZIP形式による圧縮が施されている。
Alternatively, as shown in FIG. 17, the
以下に,指定されたモードでのセル出力部151の処理を説明する。
Hereinafter, processing of the
(1)レイアウト重視モードの処理
セル出力部151は,モード指定部13によって「レイアウト重視モード」が指定された場合に,フォーマット・セル定義情報21の列幅および行高の情報(項目群のレイアウト位置)と,オーバレイ・セル定義情報23の列幅および行高の情報(オーバレイ群のレイアウト位置)とを用いて,列幅および行高を決定し,出力用セル定義情報25に登録する。出力用セル定義情報25は,指定されたモードの処理によって決定したセル幅(列幅)およびセル高(行高)を保持する情報である。
(1) Processing in layout emphasis mode When the “layout emphasis mode” is designated by the
レイアウト重視モードの処理で生成されたスプレッドシート41は,全ての座標値がセルの区切りとなるために細かいセルを多数含むが,項目に重なるオーバレイが存在しないため,帳票の通常の印刷結果のレイアウトをそのまま維持したものとなる。よって,帳票の印刷結果のレイアウトを維持したスプレッドシート41を,そのままデータ入力画面として利用することができる。
The
図18に,レイアウト重視モードの処理におけるスプレッドシート41のセル配列例を示す。
FIG. 18 shows a cell arrangement example of the
セル出力部151は,フォーマット・セル定義情報21のセル幅(Wa,Wb,…)の情報から,各セルの区切り(列方向のセル境界)を示す座標値を計算する。フォーマット・セル定義情報21のセル幅から,セルの区切りとして座標値「(X0),Xf1,Xf2,Xf3,Xf4,Xf5,(Xe)」が求まる。
The
セル出力部151は,同様に,オーバレイ・セル定義情報23のセル幅の情報(Woa,Wob,…)から,各セルの区切り(列方向のセル境界)を示す座標値を計算する。オーバレイ・セル定義情報23のセル幅から,セルの区切りとして座標値「(X0),Xo1,Xo2,Xo3,(Xe)」が求まる。
Similarly, from the cell width information (W oa , W OB ,...) Of the overlay
次に,セル出力部151は,これらの座標値をマージし,マージ後の座標値を昇順にソートする。図18に示すように,「(X0),Xo1,Xf1,Xf2,Xf3,Xo2,Xf4,Xf5,Xo3,(Xe)」となる。
Next, the
セル出力部151は,マージ後の座標値を列幅の区切りとして採用し,各列(列A〜列I)の列幅を出力用セル定義情報25に登録する。
The
さらに,セル出力部151は,行高についても,列幅と同様の処理を行う。セル出力部151は,フォーマット・セル定義情報21のセル高(H1,H2,…)から,各セルの区切り(行方向のセル境界)を示す座標値「(Y0),Yf1,Yf2,Yf3,Yf4,(Ye)」を計算する。さらに,オーバレイ・セル定義情報23のセル高(Ho1,Ho2,…)から各セルの区切りを示す座標値「(Y0),Yo1,Yo2,Yo3,Yo4,(Ye)」を計算する。
Further, the
次に,セル出力部151は,求めた座標値をマージし,昇順にソートする。マージ後の座標値の並びは,図18に示すように,「(Y0),Yo1,Yf1,Yo2,Yf2,Yo3,Yf3,Yf4,Yo4,(Ye)」となる。
Next, the
そして,セル出力部151は,マージ後の座標値を行高の区切りとして採用し,各行(R1〜R9)の行高を決定し,出力用セル定義情報25に登録する。
Then, the
セル出力部151は,出力用セル定義情報25のセル幅(列幅)とセル高(行高)に基づいてセルの列幅と行高とを設定したスプレッドシート41を生成する。そして,フォーマット・セル定義情報21に基づいて,帳票の各項目に対応するスプレッドシート41のセルの範囲を特定する。さらに,セル出力部151は,フォーマット定義情報31の対応する項目の項目情報,罫線情報等に基づいて,特定した範囲のセルに対して表示形式の情報(セル書式)を登録する。
The
さらに,セル出力部151は,オーバレイ・セル定義情報23に基づいて,オーバレイの枠や罫線に対応するスプレッドシート41のセルの範囲を特定する。さらに,オーバレイ定義情報33の対応するオーバレイの罫線情報等に基づいて,特定した範囲のセルに対してセル書式を登録する。
Further, the
(2) データ重視モードの処理
セル出力部151は,モード指定部13によってデータ重視モードが指定された場合に,フォーマット・セル定義情報21の列幅および行高の情報を用いて列幅および行高を決定し,出力用セル定義情報25に登録する。
(2) Processing in data emphasis mode The
そして,セル出力部151は,オーバレイのレイアウト位置を,出力用セル定義情報25の列幅および行高のセル配列にマッピングする。
Then, the
データ重視モードの処理によって生成されたスプレッドシート41では,オーバレイのレイアウト位置が変更されるため,印刷結果のレイアウトが維持されない可能性がある。しかし,項目群のレイアウト位置に基づいてセルが生成されるため,無駄なセルが少ない。よって,表計算ソフトのマクロ機能によってプログラミングする場合や,スプレッドシート41をCSV形式のデータに変換する場合に,帳票の項目に与えられた入力データの抽出が容易になり,入力データの二次活用が容易になる。
In the
図19に,データ重視モードの処理におけるスプレッドシート41のセル配列例を示す。
FIG. 19 shows a cell arrangement example of the
セル出力部151は,フォーマット・セル定義情報21のセル幅およびセル高の情報を出力用セル定義情報25に登録する。そして,出力用セル定義情報25の列幅および行高を設定したスプレッドシート41を生成する。
The
次に,セル出力部151は,フォーマット・セル定義情報21に基づいて,帳票の各項目に対応するスプレッドシート41のセルの範囲を特定し,特定した範囲のセルに対して,フォーマット定義情報31の対応する項目の項目情報,罫線情報等に基づいて,セル書式)を登録する。
Next, the
次に,セル出力部151は,オーバレイ定義情報33を得て,各オーバレイについて,オーバレイの開始位置(X1,Y1)/終了位置(X2,Y2)の座標値が,どの列幅(原点から何番目の列)または行高(原点から何番目の行)に含まれるかを特定し,特定した列幅/行高に基づいて,オーバレイの開始位置/終了位置を,セルの区切りを示す座標値にマッピングする。
Next, the
例えば,セル出力部151は,セルの列幅/行高の中間点を基準にして,中間点より座標原点に近い側であれば,原点側に近い(左側)セルとの区切りの位置にマッピングし,中間点より座標原点に遠い側であれば,次のセル(右側)との区切りの位置にマッピングする。
For example, the
図19において,オーバレイの枠の開始位置(X1,Y1)の座標値X1>座標XAm(Xf1とX0との距離の中間点)とすると,座標X1を座標Xf1にマッピングする。さらに,開始位置の座標値Y1<座標Y1m(Yf1とY0との距離の中間点)とすると,座標Y1を座標Y0にマッピングする。したがって,枠に開始位置は,座標(Xf1,Y0)となる。 In FIG. 19, if the coordinate value X1 of the start position (X1, Y1) of the overlay frame is greater than the coordinate X Am (the midpoint of the distance between X f1 and X 0 ), the coordinate X1 is mapped to the coordinate Xf1. Furthermore, if the coordinate value Y1 <coordinates Y1m start position (midpoint of the distance between the Y f1 and Y 0), maps the coordinates Y1 to coordinate Y 0. Therefore, the start position of the frame is the coordinates (X f1 , Y 0 ).
また,オーバレイの枠の終了位置の座標値X2>座標XFm(Xf5とXeとの距離の中間点)とすると,座標X2を座標Xeにマッピングする。終了位置の座標値Y2>座標Y4m(Yf4とYeとの距離の中間点)とすると,座標Y1を座標Yeにマッピングする。したがって,枠に終了位置は,座標(Xe,Ye)となる。 Also, if the coordinate value X2> coordinates X Fm end position of the overlay of the frame (the midpoint of the distance between the X f5 and X e), to map the coordinates X2 to the coordinate X e. When the coordinate value Y2> coordinate Y 4m end position (midpoint of the distance between the Y f4 and Y e), to map the coordinates Y1 to coordinate Y e. Therefore, the end position of the frame is the coordinates (X e , Y e ).
さらに,セル出力部151は,オーバレイのマッピング後の位置に基づいてオーバレイに対応するセルの範囲を特定し,特定した範囲のセルに対して,オーバレイ定義情報33の対応するオーバレイの罫線情報等に基づいてセル書式を登録する。
Further, the
(3) 最適化重視モードの処理
セル出力部151は,モード指定部13によって最適化モードが指定された場合に,フォーマット・セル定義情報21の列幅の情報と,オーバレイ・セル定義情報23の列幅の情報とに基づいて,項目とオーバレイとの位置が近い場合に最適な位置を選択して列幅を最適化し,最適化した列幅を出力用セル定義情報25に登録する。また,行高についても,列幅と同様の処理によって最適化する。
(3) Optimization-oriented mode processing When the optimization mode is designated by the
セル出力部151は,フォーマット・セル定義情報21の列幅および行高の情報と,オーバレイ・セル定義情報23の列幅および行高の情報とをそれぞれマージし,列方向/行方向で隣り合う項目の位置(X1/Y1)とオーバレイの位置(X1/Y1)について,座標原点に遠い位置を,座標原点により近い位置に置き換え,置き換えた位置に基づいて列幅/行高を決定し,出力用セル定義情報25に登録する。
The
また,セル出力部151は,フォーマット・セル定義情報21において,1つの項目について,基本セルのセル幅(列幅),セル高(行高)を用いた2以上の列幅/行高が設定されている場合に,基本セルのセル幅(列幅),セル高(行高)の区切りを除外して,列幅/行高を決定し,出力用セル定義情報25に登録する。
The
最適化モードの処理によって生成されたスプレッドシート41は,帳票の項目の位置とオーバレイの位置とが隣り合う場合に,座標原点に近い側に開始位置を重ねてレイアウトするため,印刷結果のレイアウトを概ね維持しつつ,無駄なセルの生成を抑制するという,レイアウト重視モードとデータ重視モードの利点を備えるものとなる。
Since the
さらに,このスプレッドシート41では,帳票の項目とオーバレイとの位置を基本として列幅/行高が決定され,セルが生成されるため,無駄なセルが少なく表計算ソフトでの処理との適合性がよいものとなる。
Further, in this
また,スプレッドシート41内に項目に対応しない列幅/行高の区切りが排除されるため,よりセル数が少ないものとなる。
Further, since the column width / row height delimiters that do not correspond to the items in the
図20に,最適化モードの処理におけるスプレッドシート41のセル配列例を示す。
FIG. 20 shows a cell arrangement example of the
セル出力部151は,フォーマット・セル定義情報21のセル幅の情報から,各セルの区切り(列方向のセル境界)を示す座標値を計算する。同様に,オーバレイ・セル定義情報23のセル幅の情報から,各セルの区切り(列方向のセル境界)を示す座標値を計算する。
The
セル出力部151は,計算した座標値をマージし,座標値を昇順にソートする。ソート結果において,列方向の位置について,項目とオーバレイとの位置が隣り合うペアを特定し,座標原点に遠い位置を,座標原点に近い位置にマッピングする。
The
マージおよびソートしたX座標値の並びが「(X0),Xo1,Xf1,Xf2,Xf3,Xo2,Xf4,Xf5,Xo3,(Xe)」であるとする。 Assume that the merged and sorted X coordinate values are “(X 0 ), X o1 , X f1 , X f2 , X f3 , X o2 , X f4 , X f5 , X o3 , (X e )”.
図20に示すように,項目Aの開始位置の座標値Xf1とオーバレイ(枠)の開始位置の座標値Xo1が隣り合い,Xo1<Xf1であるので,より遠い項目Aの座標値Xf1を,オーバレイ(枠)の座標値Xo1にマッピングし,項目Aの座標値Xf1を除外する。セル出力部151は,行方向についても,同様の処理を行い,より遠い項目Aの座標値Yf1を,オーバレイ(枠)の座標値Yo1にマッピングし,項目Aの座標値Yf1を除外する。この除外によって,座標値Xo1と座標値Xf2を区切りとする列幅と,座標値Yo1と座標値Yo2とを区切りとする行高を決定する。
As shown in FIG. 20, since the coordinate value X f1 of the start position of item A and the coordinate value X o1 of the start position of the overlay (frame) are adjacent to each other and X o1 <X f1 , the coordinate value of the farther item A the X f1, mapped to the coordinate values X o1 overlay (frame), to exclude the coordinate values X f1 item a. The
セル出力151は,座標値Xf1と座標値Xf2については,いずれも項目(項目A,項目B)に基づいて決定された列の区切りであるので,これらの座標値をそのまま採用する。
In the
さらに,セル出力部151は,列Dと列Eとの区切りである座標値Xf3が,基本セルの設定によるものであるので,座標値Xf3を除外する。
Further, the
セル出力部151は,同様にして,項目C,項目Dの位置(座標値Xf4)についても,オーバレイ(枠内縦罫線)の位置(座標値Xo2)にマッピングする。
Similarly, the
セル出力部151は,行方向についても同様の処理を行う。
The
次に,セル出力部151は,マッピングによって決定した列幅と行高を出力用セル定義情報25に登録する。そして,出力用セル定義情報25の列幅および行列を設定したスプレッドシート41を生成する。
Next, the
そして,セル出力部151は,フォーマット・セル定義情報21に基づいて,帳票の各項目に対応するスプレッドシート41のセルの範囲を特定し,特定した範囲のセルに対して,フォーマット定義情報31に基づいてセル書式を登録する。
Then, the
さらに,セル出力部151は,オーバレイ・セル定義情報23に基づいて,オーバレイに対応するセルの範囲を特定し,特定した範囲のセルに対して,オーバレイ定義情報33の対応するオーバレイの罫線情報等に基づいてセル書式を登録する。
Further, the
(4) オートシェイプモードの処理
セル出力部151は,モード指定部13によってオートシェイプモードが指定された場合に,フォーマット・セル定義情報21のセル幅とセル高の情報を出力用セル定義情報25に登録する。そして,出力用セル定義情報25の列幅および行高を設定したスプレッドシート41を生成する。
(4) Auto Shape Mode Processing The
さらに,出力部151は,フォーマット・セル定義情報21に基づいて,帳票の各項目に対応するスプレッドシート41のセルの範囲を特定し,特定した範囲のセルに対して,フォーマット定義情報31に基づいてセル書式を登録する。
Furthermore, the
オートシェイプ出力部152は,オーバレイ定義情報33を得て,各オーバレイの情報に基づいて,オーバレイをスプレッドシート41に描画される図形要素に変換する。図形要素とは,表計算ソフト「EXCEL」のオートシェイプと呼ばれる図形データである。
The auto-
オートシェイプモードの処理によって生成されたスプレッドシート41では,オーバレイはセル定義情報に依存しないため,帳票の印刷結果におけるレイアウトがそのまま維持される。
In the
また,スプレッドシート41のセル配列は,フォーマット・セル定義情報21のみを用いて設定されるため,無駄なセルが少なく,入力データ群の抽出も容易となり,入力データの二次活用も容易となる。
Further, since the cell array of the
図21に,オートシェイプモードの処理におけるスプレッドシート41のセル配列例を示す。
FIG. 21 shows a cell array example of the
図21に示すように,スプレッドシート41のセル配列は,データ重視モードの処理の場合と同様に,フォーマット・セル定義情報21の列幅および行高の情報を用いて設定される。オーバレイの要素として,オーバレイ定義情報33に基づいて図形データが生成され,スプレッドシート41上に重畳して出力される。
As shown in FIG. 21, the cell arrangement of the
セル出力部151は,以上説明した4つのモードの処理において,入力データ群35を取得し,生成したスプレッドシート41の項目に対して,該当する入力データを与えたスプレッドシート41を出力することができる。
In the processing of the four modes described above, the
セル出力部151は,図17に示すように,OOXML形式の複数のデータファイルの集合であり,文書データ,入力データ,属性データ,オートシェイプ(図形データ)がそれぞれ別ファイルとして構成される。
As shown in FIG. 17, the
したがって,図22に示すように,複数のデータファイルで構成されたスプレッドシート41から,入力データ(XMLデータファイル)43のみを抽出することができる。
Therefore, as shown in FIG. 22, only input data (XML data file) 43 can be extracted from a
さらに,オートシェイプモードの処理によって,オーバレイが図形データとして生成されている場合には,オートシェイプ(XMLデータファイル)45のみを抽出することができる。表計算ソフトにおいて,帳票のオーバレイ定義情報33を二次利用することが可能となり,オーバレイの流通性を向上させることができる。
Further, when the overlay is generated as graphic data by the processing in the auto shape mode, only the auto shape (XML data file) 45 can be extracted. In the spreadsheet software, the
一例として,ある帳票が,図23(A)に示すように,帳票の枠線,背景色,項目の見出し文字列等が,オーバレイの要素としてオーバレイ定義情報33に定義され,図23(B)に示すように,帳票の項目がフォーマット定義情報31に定義され,入力データ群35が帳票に与えられ,図23(C)に示すような出力結果となると仮定する。
As an example, as shown in FIG. 23A, a certain form is defined in the
このような構成の帳票から生成されたスプレッドシート41では,スプレッドシートの項目に対応するセルから,入力データを抽出する処理が,より容易になる。さらに,スプレッドシート41をそのまま表示させて,データ入力画面として使用することが可能となる。
In the
次に,一実施例におけるスプレッドシート生成装置1の処理の流れを説明する。
Next, the flow of processing of the
図24は,スプレッドシート生成装置1の概要処理の処理フロー例を示す図である。
FIG. 24 is a diagram illustrating a processing flow example of the outline processing of the
スプレッドシート生成装置1のセル定義情報生成処理部11は,フォーマット定義情報31に基づくセル定義情報の生成処理を行い(ステップS1),続いて,オーバレイ定義情報33に基づくセル定義情報の生成処理を行う(ステップS2)。
The cell definition information
スプレッドシート出力部15は,指定されたモードによる出力用セル定義情報生成処理を行う(ステップS3)。
The
続いて,スプレッドシート出力部15は,ステップS3で生成した出力用セル定義情報25に基づいて,オーバレイの定義をスプレッドシート41へ反映させるオーバレイ出力処理を行い(ステップS4),さらに,項目の定義をスプレッドシート41へ反映させるフォーマット出力処理を行う(ステップS5)。
Subsequently, the
オーバレイ出力処理およびフォーマット出力処理は,生成したスプレッドシート41を,マイクロソフト社の表計算ソフト「EXCEL」へ出力する処理とする。
The overlay output process and the format output process are processes for outputting the generated
図25は,ステップS1のセル定義情報の生成処理のより詳細な処理フロー図である。 FIG. 25 is a more detailed process flow diagram of the cell definition information generation process in step S1.
セル定義情報生成処理部11は,フォーマット定義情報31を取得し,各項目の項目情報を,列方向(X軸方向)の項目位置(X座標値)をもとに昇順にソートする(ステップS10)。続いて,セル定義情報生成処理部11は,昇順にソートされた項目情報から,列幅の算出処理を行う(ステップS11)。
The cell definition information
次に,セル定義情報生成処理部11は,フォーマット定義情報31の項目情報を,行方向(Y軸方向)の項目位置(Y座標値)をもとに昇順にソートする(ステップS12)。セル定義情報生成処理部11は,昇順にソートされた項目情報から,行高の算出処理を行う(ステップS13)。
Next, the cell definition information
ステップS10およびステップS12の処理において,フォーマット定義情報31の項目位置が,左上を原点とするXY座標系でない場合には,ソート前に,項目位置を,左上を原点とするXY座標系における位置(座標値)に変換する。例えば,左下原点の座標系の項目位置の場合,ステップS12の処理において,項目位置のY座標値を,「左上の項目位置Y1=左下の項目位置Y1−項目の高さH1」の式を用いて換算する。
In the processing of step S10 and step S12, when the item position of the
図26は,ステップS11の列幅の算出処理のより詳細な処理フロー図である。 FIG. 26 is a more detailed process flow diagram of the column width calculation process in step S11.
セル定義情報生成処理部11は,制御情報50の初期化を行う(ステップS110)。制御情報50は,処理中にメモリ上に生成・保持する一時的情報である。制御情報50は,列位置を特定する「列位置カウンタ(ix)」,前回処理した項目位置を示す「項目位置(x)」を持つ。
The cell definition information
セル定義情報生成処理部11は,フォーマット定義情報31に未処理の項目情報があれば(ステップS111のY),項目情報から,列方向の項目位置(X座標値)を取り出す(ステップS112)。取り出したX座標値に基づく列幅算出処理を行う(ステップS113)。
If there is unprocessed item information in the format definition information 31 (Y in step S111), the cell definition information
ステップS113の処理後に,ステップS111の処理へ戻る。未処理の項目情報がなければ(ステップS111のN),フォーマット定義情報31から,帳票の項目の右端の座標値を取り出して最終列の終了位置(X座標値)とし(ステップS114),最終列の列幅算出処理を行う(ステップS115)。
After the process of step S113, the process returns to the process of step S111. If there is no unprocessed item information (N in step S111), the coordinate value of the right end of the form item is extracted from the
図27は,ステップS13の行高の算出処理のより詳細な処理フロー図である。 FIG. 27 is a more detailed process flow diagram of the row height calculation process in step S13.
セル定義情報生成処理部11は,制御情報51の初期化を行う(ステップS130)。制御情報51は,処理中にメモリ上に生成・保持する一時的情報である。制御情報51は,行位置を特定する「行位置カウンタ(iy)」,前回処理した項目位置を示す「項目位置(y1)」を持つ。
The cell definition information
セル定義情報生成処理部11は,フォーマット定義情報31に未処理の項目情報があれば(ステップS131のY),項目情報から,列方向の項目位置(Y座標値)を取り出し,左上原点の座標系の値に換算した項目位置(Y1座標値)を得る(ステップS132)。換算したY1に基づく行高算出処理を行う(ステップS133)。
If there is unprocessed item information in the format definition information 31 (Y in step S131), the cell definition information
その後,ステップS131の処理へ戻り,未処理の項目情報がなければ(ステップS131のN),フォーマット定義情報31から,帳票の項目の下端の座標値を求めて,最終行の終了位置Yとして取り出す(ステップS134)。そして,最終行の行高算出処理を行う(ステップS135)。
Thereafter, the process returns to step S131, and if there is no unprocessed item information (N in step S131), the coordinate value of the lower end of the form item is obtained from the
図28は,S113およびS115の列幅算出処理のより詳細な処理フロー図である。 FIG. 28 is a more detailed process flow diagram of the column width calculation process of S113 and S115.
セル定義情報生成処理部11は,取り出したX座標値と,制御情報50の項目位置xとを用いて,項目間の列方向の距離Dxを算出する(ステップS1130)。取り出したX座標値が最初の列である場合には,制御情報50の列位置カウンタixに1を設定し,取り出したX座標値を,項目位置xに設定する。一方,取り出したX座標値が最初の列でなければ,制御情報50の列位置カウンタixをインクリメントし,式1「取り出したX座標値−制御情報50の項目位置x(前回処理のX座標値)」を計算する。
The cell definition information
式1の計算結果,距離Dxが,セル制御情報19の丸め幅より大きいかを判定し(ステップS1131),距離Dxが丸め幅を超えるときは(ステップS1131のY),さらに,距離Dxが「基本セル幅×2」以上であるかを判定する(ステップS1132)。
As a result of the calculation of
距離Dxが,「基本セル幅×2」以上であれば(ステップS1132のY),セル制御情報19の基本セル幅Wsを列幅として,制御情報50のセル位置カウンタixが示す列のセル幅(列幅)に設定する。(ステップS1133)。制御情報50のセル位置カウンタixをインクリメントして更新する(ステップS1134)。項目間の距離Dxを,式2「距離Dx−基本セル幅Ws」を計算して求めた値で更新する(ステップS1135)。
Distance Dx is equal to or "basic cell width × 2" or more (Y in step S1132), the column width to the basic cell width W s of the
続いて,ステップS1132の処理へ戻り,次の列の処理として,更新した距離Dxが「基本セル幅×2」以上であるかを判定する。距離Dxが,「基本セル幅×2」以上であれば(ステップS1132のY),ステップS1133〜S1135の処理を繰り返す。距離Dxが,「基本セル幅×2」以上でなければ(ステップS1132のN),ステップS1136の処理へ進む。 Subsequently, the process returns to the process of step S1132, and as the process of the next column, it is determined whether or not the updated distance Dx is “basic cell width × 2” or more. If the distance Dx is greater than or equal to “basic cell width × 2” (Y in step S1132), the processes in steps S1133 to S1135 are repeated. If the distance Dx is not “basic cell width × 2” or more (N in step S1132), the process proceeds to step S1136.
ステップS1136では,項目間の距離Dxを列幅として,制御情報50のセル位置カウンタixが示す列のセル幅に設定する。 In step S1136, the distance Dx between items is set as the column width, and is set to the cell width of the column indicated by the cell position counter ix of the control information 50.
そして,制御情報50の項目位置xに,取り出した項目位置Xを設定して更新する(ステップS1137)。 Then, the extracted item position X is set in the item position x of the control information 50 and updated (step S1137).
ステップS1131の処理で,距離Dxが丸め幅を超えないときは(ステップS1131のN),そのまま処理を終了する。 If it is determined in step S1131 that the distance Dx does not exceed the rounding width (N in step S1131), the process ends.
図29は,S133およびS135の行高算出処理のより詳細な処理フロー図である。 FIG. 29 is a more detailed processing flow diagram of the row height calculation processing in S133 and S135.
セル定義情報生成処理部11は,項目間の行方向の距離Dyを算出する(ステップS1330)。取り出した項目位置(Y1)が最初の行のものである場合には,制御情報51の行位置カウンタiyに1を設定し,取り出したY1座標値を,項目位置y1に設定する。取り出したY1座標値が最初の行のものでなければ,制御情報51の行位置カウンタiyをインクリメントし,式1「取り出した項目位置Y1−制御情報51の項目位置y1(前回処理の項目位置Y1)」を計算する。
The cell definition information
式1の計算結果,距離Dyが,セル制御情報19の丸め高さより大きいかを判定し(ステップS1331),距離Dyが丸め高さを超えるときは(ステップS1331のY),距離Dyが「基本セル高×2」以上であるかを判定する(ステップS1332)。
As a result of the calculation of
距離Dyが,「基本セル高×2」以上であれば(ステップS1332のY),セル制御情報19の基本セル高さを行高として,制御情報51のセル位置カウンタiyが示す行のセル高(行高)に設定する。(ステップS1333)。制御情報51のセル位置カウンタiyをインクリメントして更新する(ステップS1334)。さらに,項目間の距離Dyを,式2「距離Dy−基本セル高」を計算して求めた値で更新する(ステップS1335)。
If the distance Dy is equal to or greater than “basic cell height × 2” (Y in step S1332), the cell height of the row indicated by the cell position counter iy of the control information 51 is set with the basic cell height of the
続いて,ステップS1332の処理へ戻り,次の行の処理として,更新した距離Dyが「基本セル高さ×2」以上であるかを判定する。距離Dyが,「基本セル高さ×2」以上であれば(ステップS1332のY),ステップS1333〜S1335の処理を繰り返す。距離Dyが,「基本セル高さ×2」以上でなければ(ステップS1332のN),ステップS1336の処理へ進む。 Subsequently, the process returns to the process of step S1332, and as the process of the next row, it is determined whether or not the updated distance Dy is “basic cell height × 2” or more. If the distance Dy is equal to or greater than “basic cell height × 2” (Y in step S1332), the processes in steps S1333 to S1335 are repeated. If the distance Dy is not “basic cell height × 2” or more (N in step S1332), the process proceeds to step S1336.
ステップS1336では,項目間の距離Dyを行高として,制御情報51のセル位置カウンタiyが示す行のセル高に設定する。 In step S1336, the distance Dy between items is set as the row height, and is set to the cell height of the row indicated by the cell position counter iy of the control information 51.
そして,制御情報51の項目位置y1に,取り出したY1座標値を設定して更新する(ステップS1337)。 Then, the extracted Y1 coordinate value is set in the item position y1 of the control information 51 and updated (step S1337).
ステップS1331の処理で,距離Dyが丸め高さを超えないときは(ステップS1331のN),そのまま処理を終了する。 If it is determined in step S1331 that the distance Dy does not exceed the rounding height (N in step S1331), the process ends.
図30は,ステップS3の出力用セル定義情報生成処理のより詳細な処理フロー図である。 FIG. 30 is a more detailed process flow diagram of the output cell definition information generation process of step S3.
セル出力部151は,モード指定部13によって指定されたモードが,モードA(=レイアウト重視モード)である場合に(ステップS30のY),レイアウト重視モードの処理を行う(ステップS31)。また,モード指定部13によって指定されたモードが,モードB(=データ重視モード)またはモードD(=オートシェイプモード)のいずれかである場合に(ステップS32のY),データ重視モードの処理を行う(ステップS33)。また,モード指定部13によって指定されたモードが,モードC(=最適化モード)であるか,またはモードが指定されなかった場合に(ステップS34のY),最適化モードの処理を行う(ステップS35)。
When the mode designated by the
セル出力部151は,セル定義決定処理中に,メモリ上に生成・保持される一時的情報である制御情報52を使用する。
The
図31に,制御情報52のデータ構造例を示す。
FIG. 31 shows an example data structure of the
制御情報52は,オーバレイ用セル境界C1,項目用セル境界C2,処理済みセル境界C3,前回キャンセル項目セル位置C4,セル登録フラグFを持つ。
The
オーバレイ用セル境界C1は,オーバレイ・セル定義情報23の列幅/行高に基づくセル境界を示す座標値である。項目用セル境界C2は,フォーマット・セル定義情報21の列幅/行高に基づくセル境界を示す座標値である。
The overlay cell boundary C <b> 1 is a coordinate value indicating a cell boundary based on the column width / row height of the overlay
処理済みセル境界C3は,セル定義決定処理後のセル幅/セル高に基づくセル境界を示す座標値である。前回キャンセル項目セル位置C4は,前回処理において処理されなかった項目のセル位置(セル幅/セル高に基づく座標値)である。セル登録フラグFは,オーバレイの処理への採用の有無を示すフラグである。 The processed cell boundary C3 is a coordinate value indicating a cell boundary based on the cell width / cell height after the cell definition determination process. The previous cancel item cell position C4 is a cell position (coordinate value based on cell width / cell height) of an item not processed in the previous process. The cell registration flag F is a flag indicating whether or not the cell is used for overlay processing.
図32は,ステップS31のレイアウト重視用処理のより詳細な処理フロー図である。 FIG. 32 is a more detailed process flow diagram of the layout-oriented process in step S31.
セル出力部151は,制御情報52を以下のように初期化する(ステップS310)。
The
オーバレイ用セル境界C1=1セル目の位置(X座標値);
項目用セル境界C2=1セル目の位置(X座標値);
処理済みセル境界C3=0。
Overlay cell boundary C1 = 1st cell position (X coordinate value);
Item cell boundary C2 = position of the first cell (X coordinate value);
Processed cell boundary C3 = 0.
セル出力部151は,処理するセル定義情報があるかを判定し(ステップS311),処理するセル定義情報があれば(ステップS311のY),制御情報52のオーバレイ用セル境界C1=項目用セル境界C2であるかを判定する(ステップS312)。
The
C1=C2(オーバレイと項目とが同じ位置)であれば(ステップS312のY),出力用セル定義情報25に,1セル目の列幅Wa(C1−C3の距離)を登録する。さらに,制御情報52の処理済みセル境界C3を,C1の値で更新し,オーバレイ用セル境界C1,項目用セル境界C2を,それぞれ次のセル境界(X座標値)で更新する(ステップS313)。
If C1 = C2 (the overlay and the item are at the same position) (Y in step S312), the column width W a (distance C1-C3) of the first cell is registered in the output
C1=C2でなければ(ステップS312のN),C1<C2であるかを判定する(ステップS314)。 If C1 = C2 is not satisfied (N in step S312), it is determined whether C1 <C2 is satisfied (step S314).
C1<C2(オーバレイが項目より左側の位置)であれば(ステップS314のY),出力用セル定義情報25に,1セル目の列幅Wa(C1−C3の距離)を登録する。さらに,制御情報52の処理済みセル境界C3をC1で更新し,オーバレイ用セル境界C1のみを次のセル境界(座標値)で更新する(ステップS315)。
If C1 <C2 (the overlay is a position on the left side of the item) (Y in Step S314), the column width W a (distance C1-C3) of the first cell is registered in the output
C1<C2でなければ(ステップS314のN),C1>C2(項目がオーバレイより左側の位置)であるとして,出力用セル定義情報25に,1セル目の列幅Wa(C2−C3の距離)を登録する。さらに,制御情報52の処理済みセル境界C3をC2で更新し,項目用セル境界C2のみを次のセル境界(X座標値)で更新し,ステップS311の処理へ戻る(ステップS316)。
If C1 <C2 is not satisfied (N in step S314), and C1> C2 (the item is a position on the left side of the overlay), the output
処理するセル定義情報がなければ(ステップS311のN),処理を終了する。 If there is no cell definition information to be processed (N in step S311), the process ends.
図33は,ステップS33のデータ重視用処理のより詳細な処理フロー図である。 FIG. 33 is a more detailed process flow diagram of the data emphasizing process in step S33.
セル出力部151は,フォーマット・セル定義情報21の列幅を,出力用セル定義情報25に登録する(ステップS330)。
The
図34は,ステップS35の最適化用処理のより詳細な処理フロー図である。 FIG. 34 is a more detailed process flow diagram of the optimization process in step S35.
セル出力部151は,制御情報52を以下のように初期化する(ステップS350)。
The
オーバレイ用セル境界C1=1セル目の位置(X座標値);
項目用セル境界C2=1セル目の位置(X座標値);
処理済みセル境界C3=0;
前回キャンセル項目セル位置C4=0,
セル登録フラグF=OFF。
Overlay cell boundary C1 = 1st cell position (X coordinate value);
Item cell boundary C2 = position of the first cell (X coordinate value);
Processed cell boundary C3 = 0;
Last cancel item cell position C4 = 0,
Cell registration flag F = OFF.
セル出力部151は,処理するセル定義情報があるかを判定し(ステップS351),処理するセル定義情報があれば(ステップS351のY),制御情報52のオーバレイ用セル境界C1=項目用セル境界C2であるかを判定する(ステップS352)。
The
C1=C2(オーバレイと項目とが同じ位置)であれば(ステップS352のY),オーバレイ・項目のセル定義登録処理を行う(ステップS353)。 If C1 = C2 (the overlay and the item are at the same position) (Y in step S352), the cell definition registration process for the overlay / item is performed (step S353).
C1=C2でなければ(ステップS352のN),C1<C2であるかを判定する(ステップS354)。 If C1 = C2 is not satisfied (N in step S352), it is determined whether C1 <C2 is satisfied (step S354).
C1<C2(オーバレイが項目より左側の位置)であれば(ステップS354のY),オーバレイのセル定義登録処理を行う(ステップS355)。 If C1 <C2 (the overlay is on the left side of the item) (Y in step S354), overlay cell definition registration processing is performed (step S355).
C1<C2でなければ(ステップS354のN),C1>C2(項目がオーバレイより左側の位置)であるとして,項目のセル定義登録処理を行う(ステップS356)。 If C1 <C2 is not satisfied (N in step S354), an item cell definition registration process is performed assuming that C1> C2 (the item is on the left side of the overlay) (step S356).
図35は,ステップS353のオーバレイ・項目のセル定義登録処理のより詳細な処理フロー図である。 FIG. 35 is a more detailed process flow diagram of the overlay / item cell definition registration process in step S353.
セル出力部151は,制御情報52のセル登録フラグFをONに更新し(ステップS3530),前回キャンセル項目セル位置C4をクリアする(ステップS3531)。そして,式「オーバレイ用セル境界C1−処理済みセル境界C3」で算出した距離を,出力用セル定義情報25のセル幅に登録する(ステップS3532)。
The
制御情報52の処理済みセル境界C3を,オーバレイ用セル境界C1で更新し(ステップS3533),オーバレイ用セル境界C1と項目用セル境界C2を次のセル境界の位置(X座標値)で更新して,処理を終了する(ステップS3534)。
The processed cell boundary C3 of the
図36は,ステップS355のオーバレイのセル定義登録処理のより詳細な処理フロー図である。 FIG. 36 is a more detailed process flow diagram of the overlay cell definition registration process in step S355.
セル出力部151は,制御情報52のセル登録フラグFをONに更新し(ステップS3550),前回キャンセル項目セル位置C4をクリアする(ステップS3551)。そして,式「オーバレイ用セル境界C1−処理済みセル境界C3」で算出した距離を,出力用セル定義情報25のセル幅に登録する(ステップS3552)。
The
制御情報52の処理済みセル境界C3を,オーバレイ用セル境界C1で更新し(ステップS3553),オーバレイ用セル境界C1のみを次のセル境界の位置(X座標値)で更新して,処理を終了する(ステップS3554)。
The processed cell boundary C3 of the
図37は,ステップS356の項目のセル定義登録処理のより詳細な処理フロー図である。 FIG. 37 is a more detailed process flow diagram of the cell definition registration process for the item in step S356.
セル出力部151は,制御情報52のセル登録フラグFがONであるかを判定し(ステップS3560),制御情報52のセル登録フラグFがONであれば(ステップS3560のY),前回キャンセル項目セル位置C4を項目用セル境界C2で更新し,項目用セル境界C2のみを,次のセル境界の位置(X座標値)で更新し,セル登録フラグFをOFFにする(ステップS3561)。
The
制御情報52のセル登録フラグFがONでなければ(ステップS3560のN),式「項目用セル境界C2−処理済みセル境界C3」で算出した距離を,出力用セル定義情報25のセル幅に登録する。制御情報52の処理済みセル境界C3を項目用セル境界C2で更新し,項目用セル境界C2のみを次のセル境界の位置(X座標値)で更新する(ステップS3562)。
If the cell registration flag F of the
なお,ステップS3561において,処理対象のセルの長さが0である場合には,項目用セル境界C2のみを次のセル境界の位置に更新する処理だけを行う。 In step S3561, if the length of the processing target cell is 0, only the process of updating only the item cell boundary C2 to the position of the next cell boundary is performed.
以上の図32〜図37の処理フローを,セル幅(列幅)の処理として説明したが,セル出力部151は,セル高さ(行高)についても同様に処理を行う。
The processing flow of FIGS. 32 to 37 has been described as the cell width (column width) processing, but the
図38は,ステップS4のオーバレイ出力処理のより詳細な処理フロー図である。 FIG. 38 is a more detailed process flow diagram of the overlay output process in step S4.
セル出力部151は,オーバレイ定義情報33に未処理の情報があるかを判定し(ステップS40),未処理の情報があれば(ステップS40のY),オーバレイ位置・セル位置変換処理を行う(ステップS41)。さらに,セル出力部151は,印刷データ登録処理(ステップS42),書式登録処理(ステップS43),フォント・配置属性登録処理(ステップS44),セル結合登録処理(ステップS45),罫線・網掛け登録処理(ステップS46)を行う。
The
オーバレイ定義情報33に未処理の情報がある間,ステップS41〜S46の処理を繰り返し,未処理の情報がなければ(ステップS40のN),スプレッドシート出力処理を行う(ステップS47)。
While there is unprocessed information in the
図39は,ステップS5のフォーマット出力処理のより詳細な処理フロー図である。 FIG. 39 is a more detailed process flow diagram of the format output process in step S5.
セル出力部151は,フォーマット定義情報31に未処理の情報があるかを判定し(ステップS50),未処理の情報があれば(ステップS50のY),項目位置・セル位置変換処理を行う(ステップS51)。さらに,セル出力部151は,印刷データ登録処理(ステップS52),書式登録処理(ステップS53),フォント・配置属性登録処理(ステップS54),セル結合登録処理(ステップS55),罫線・網掛け登録処理(ステップS56)を行う。
The
フォーマット定義情報31に未処理の情報がある間,ステップS51〜S56の処理を繰り返し,未処理の情報がなければ(ステップS50のN),スプレッドシート出力処理を行う(ステップS57)。
While there is unprocessed information in the
図38の処理フロー図と図39の処理フロー図とにおいて,ステップS40とS50,ステップS41とS51,ステップS42とS52,ステップS43とS53,ステップS44とS54,ステップS45とS55,ステップS46とS56,ステップS47とS57は,それぞれが同様の処理を行うものである。 In the process flow diagram of FIG. 38 and the process flow diagram of FIG. 39, steps S40 and S50, steps S41 and S51, steps S42 and S52, steps S43 and S53, steps S44 and S54, steps S45 and S55, steps S46 and S56. Steps S47 and S57 each perform the same processing.
以下の図40〜図45の処理フロー図は,図38および図39の処理ステップの詳細な説明図である。処理説明では,図39の処理フロー図に則して処理を説明する。 The following process flow diagrams of FIGS. 40 to 45 are detailed explanatory diagrams of the processing steps of FIGS. 38 and 39. In the process description, the process will be described according to the process flow diagram of FIG.
図40は,ステップS41(S51)の項目位置・セル位置変換処理のより詳細な処理フロー図である。 FIG. 40 is a more detailed process flow diagram of the item position / cell position conversion process of step S41 (S51).
セル出力部151は,処理する項目の項目位置が何列目になるかを算出する。フォーマット・セル定義情報21を参照して,座標原点から順に列幅を加算し,加算した列幅が,フォーマット定義情報31の項目の位置(X座標値)となった時点の列を求める(ステップS410)。さらに,処理する項目の項目位置が何行目になるかを算出する。フォーマット・セル定義情報21を参照して,座標原点から順に行高を加算し,加算した行高が,フォーマット定義情報31の項目の位置(Y座標値)となった時点の列を,求める(ステップS411)。算出したセル位置(行,列)を保持する(ステップS412)。
The
図41は,ステップS42(S52)の印刷データ登録処理のより詳細な処理フロー図である。 FIG. 41 is a more detailed process flow diagram of the print data registration process in step S42 (S52).
セル出力部151は,入力データ群35を取得し,フォーマット定義情報31の項目情報のレコード内位置から,項目に対応する入力データ(以降,印刷データという)を取り出す(ステップS420)。
The
セル出力部151は,フォーマット定義情報31の項目情報の項目種別が日付または時刻かを判定し(ステップS421),印刷データの項目種別が日付または時刻であれば(ステップS421のY),印刷データをシリアル値に変換する(ステップS422)。印刷データの項目種別が日付または時刻のいずれでもなければ(ステップS421のN),項目種別が数値かを判定する(ステップS423)。さらに,印刷データの項目種別が数値であれば(ステップS423のY),印刷データを数値文字列に変換する(ステップS424)。
The
そして,セル出力部151は,印刷データと対応するセル位置とを出力処理用情報26へ登録する(ステップS425)。出力処理用情報26は,ステップS47の処理のための情報である。
Then, the
図42は,ステップS43(S53)の書式登録処理のより詳細な処理フロー図である。 FIG. 42 is a more detailed process flow diagram of the format registration process in step S43 (S53).
セル出力部151は,フォーマット定義情報31の項目情報の編集形式が数値編集かを判定し(ステップS430),項目情報の変種形式が数値編集であれば(ステップS430のY),数値編集に対応するEXCEL用の書式を生成する。例えば,全体桁数,小数部桁数の設定,カンマ区切り,通貨記号編集,符号位置,負記号,負データ時の表示色,ゼロデータ制御,通貨記号,通貨記号位置,正データの「+」表示,小数部のゼロサプレス等の書式を生成する(ステップS431)。
The
次に,項目情報の編集形式が,日付編集または時刻編集であるかを判定し(ステップS432),編集形式が,日付編集または時刻編集であれば(ステップS432のY),日付編集,時刻編集に対応するEXCEL用の書式を生成する(ステップS433)。項目情報の編集形式が郵便番号編集であるかを判定し(ステップS434),編集形式が郵便番号編集であれば(ステップS434のY),郵便番号編集に対応するEXCEL用の書式を生成する。例えば,5桁/7桁の設定,挿入文字(ハイフン,空白)の有無または種別を生成する(ステップS435)。 Next, it is determined whether the item information editing format is date editing or time editing (step S432). If the editing format is date editing or time editing (Y in step S432), date editing or time editing is performed. A format for EXCEL corresponding to is generated (step S433). It is determined whether the item information editing format is zip code editing (step S434). If the editing format is zip code editing (Y in step S434), an EXCEL format corresponding to zip code editing is generated. For example, the setting of 5 digits / 7 digits, the presence or absence of insertion characters (hyphens, spaces), or the type is generated (step S435).
セル出力部151は,ステップS430,S432,S434のいずれの判定処理でも該当していなければ,文字列データを示す書式(@)を生成する(ステップS436)。
The
セル出力部151は,ステップS431〜S436の処理で生成した書式と対応するセル位置とを指定して,出力処理用情報26に登録する(ステップS437)。
The
図43は,ステップS44(S54)のフォント・配置属性登録処理のより詳細な処理フロー図である。 FIG. 43 is a more detailed processing flowchart of the font / arrangement attribute registration processing in step S44 (S54).
セル出力部151は,フォーマット定義情報31の項目情報のフォントの属性に関する情報を,出力処理用情報に登録する(ステップS440)。さらに,フォーマット定義情報31の項目情報の文字列の配置の属性に関する情報を,出力処理用情報26に登録する(ステップS441)。
The
図44は,ステップS45(S55)のセル結合登録処理のより詳細な処理フロー図である。 FIG. 44 is a more detailed process flow diagram of the cell combination registration process in step S45 (S55).
セル出力部151は,対応するセル範囲を算出する(ステップS450)。フォーマット定義情報31の項目位置(X,Y1)と,項目情報の項目領域長(X軸方向の幅)と項目の高さ(Y軸方向の幅)から,項目が占めるセルの範囲を計算する。そして,フォーマット・セル定義情報21から,計算した範囲に対応するセルの範囲を特定する。
The
そして,特定したセル範囲を結合範囲とし,結合範囲のセル位置を出力処理用情報26に登録する(ステップS451)。 Then, the specified cell range is set as a combined range, and the cell position of the combined range is registered in the output processing information 26 (step S451).
図45は,ステップS46(S56)の罫線・網掛け登録処理のより詳細な処理フロー図である。 FIG. 45 is a more detailed process flow diagram of the ruled line / shaded registration process in step S46 (S56).
セル出力部151は,フォーマット定義情報31の罫線情報の種別が罫線であるかを判定する(ステップS460)。
The
罫線情報の種別が罫線であれば(ステップS460のY),対応するセルの範囲を算出する(ステップS461)。 If the type of ruled line information is a ruled line (Y in step S460), the corresponding cell range is calculated (step S461).
フォーマット・セル定義情報21から,罫線の開始位置(X1,Y1)と終了位置(X2,Y2)が,どの列および行に含まれるかを算出する。
From the format
なお,データ重視モードまたは最適化モードの処理によってスプレッドシート41が生成される場合に,マッピングされた項目またはオーバレイの罫線については,罫線の開始位置/終了位置の座標値が,セルの列幅/行高の中間点を基準として,この中間点より開始位置/終了位置の座標値が小さければ,1つ前(座標原点側)のセルの区切りを範囲の開始位置/終了位置として,中間点より開始位置/終了位置の座標値が大きければ,1つ後(座標原点と反対側)のセルの区切りを範囲の開始位置/終了として,セルの範囲を算出する。
When the
セル出力部151は,フォーマット定義情報31の罫線情報の種別が網掛けであるかを判定する(ステップS462)。罫線情報の種別が網掛けであれば(ステップS462のY),対応するセルの範囲を算出する。セルの範囲の算出は,ステップS461の処理と同様の処理によって行い,フォーマット・セル定義情報21から,網掛けの開始位置(X1,Y1)と終了位置(X2,Y2)が,どの列および行に含まれるかを算出する(ステップS463)。
The
罫線,網掛けと特定したセル範囲を指定し,出力処理用情報26に登録する(ステップS464)。 The specified cell range as ruled line and shaded is designated and registered in the output processing information 26 (step S464).
図46は,ステップS47(S57)のスプレッドシート出力処理のより詳細な処理フロー図である。 FIG. 46 is a more detailed process flow diagram of the spreadsheet output process in step S47 (S57).
セル出力部151は,出力用セル定義情報25に出力処理が未処理のセル情報があるかを判定し(ステップS470),入力データ群35のデータを別シートに出力するかを判定する(ステップS471)。
The
入力データ群35のデータの別シート出力が指定されている場合に(ステップS471のY),XML形式のデータ用シートのスプレッドシート41′を生成し,スプレッドシート41′へ印刷データを出力する処理を行い(ステップS472),スプレッドシート41に,データ用シートのスプレッドシート41′内の印刷データへのリンクを登録する(ステップS473)。
When another sheet output of data of the
入力データ群35のデータの別シート出力が指定されていない場合に(ステップS471のN),XML形式のスプレッドシート41に印刷データを出力する処理を行う(ステップS474)。
When another sheet output of the data of the
セル出力部151は,スプレッドシート41のセル情報(セル)に対して,出力処理用情報26に登録された書式を,XML形式の属性データへ出力し(ステップS475),出力処理用情報26に登録されたフォント,配置情報を属性データへ出力し(ステップS476),出力処理用情報26に登録されたセル結合の情報を属性データへ出力し(ステップS477),出力処理用情報26に登録された罫線,網掛けの情報を属性データへ出力する(ステップS478)。
The
そして,未処理のセル情報がなければ(ステップS470のN),属性データ(XML形式)を圧縮して,出力先のスプレッドシート41へ保存する(ステップS479)。 If there is no unprocessed cell information (N in step S470), the attribute data (XML format) is compressed and stored in the output destination spreadsheet 41 (step S479).
以上,本発明を実施の形態により説明したが,本発明はその主旨の範囲において種々の変形が可能であることは当然である。 As mentioned above, although this invention was demonstrated by embodiment, it cannot be overemphasized that a various deformation | transformation is possible for this invention in the range of the main point.
また,本発明の実施の形態として開示したスプレッドシート生成装置1は,プログラムがコンピュータにより読み取られ実行されることにより,スプレッドシート生成装置1が有する各処理部が実現されることによって構築することができる。このプログラムは,コンピュータが読み取り可能な,可搬媒体メモリ,半導体メモリ,ハードディスクなどの適当な記録媒体に格納することができ,これらの記録媒体に記録して提供される。または,このプログラムは,通信インタフェースを介して種々の通信網を利用した送受信により提供される。
Further, the
以上の実施例を含む実施形態に関し,さらに以下の付記を開示する。 The following supplementary notes are further disclosed with respect to the embodiment including the above examples.
(付記1)
コンピュータを,
帳票を構成する項目群の前記帳票内のレイアウト位置に関するフォーマット定義情報を取得するフォーマット定義情報取得処理手段と,
前記帳票に重畳して出力されるオーバレイ群の前記帳票内のレイアウト位置に関するオーバレイ定義情報を取得するオーバレイ定義情報取得処理手段と,
前記フォーマット定義情報の各項目の列方向の位置および行方向のレイアウト位置から,隣り合う項目間の距離に基づいて列幅および行高をそれぞれ決定し,当該決定した列幅および行高に関するフォーマット・セル定義情報を生成するセル定義情報生成処理手段と,
前記オーバレイ定義情報に基づいて前記オーバレイのレイアウト位置に対応する列幅および行高を決定し,前記フォーマット・セル定義情報の項目群の列幅および行高,ならびに前記決定したオーバレイのレイアウト位置に基づく列幅および行高に基づいて,出力用の列幅および行高ならびに当該列幅と行高とのセル配列における前記項目群およびオーバレイ群の各々が対応するセルを特定したスプレッドシートを生成するスプレッドシート出力処理手段
として機能させる
ことを特徴とするスプレッドシート生成プログラム。
(Appendix 1)
Computer
Format definition information acquisition processing means for acquiring format definition information related to a layout position in the form of the items constituting the form;
Overlay definition information acquisition processing means for acquiring overlay definition information related to a layout position in the form of the overlay group to be output superimposed on the form;
From the position in the column direction and the layout position in the row direction of each item of the format definition information, the column width and the row height are determined based on the distance between adjacent items, respectively. Cell definition information generation processing means for generating cell definition information;
Column width and row height corresponding to the layout position of the overlay are determined based on the overlay definition information, and based on the column width and row height of the item group of the format cell definition information, and the determined layout position of the overlay Based on the column width and row height, a spread for generating a spreadsheet specifying the cell corresponding to each of the item group and overlay group in the cell width and row height for output and the cell array of the column width and row height. A spreadsheet generation program that functions as a sheet output processing means.
(付記2)
前記コンピュータを,
前記スプレッドシート出力処理手段によって実行される処理を特定するモードを指定するモード指定手段として機能させるとともに,
前記スプレッドシート出力処理手段は,前記モード指定手段によって指定されたモードに基づいて前記出力用の列幅および行高を決定する
ことを特徴とする前記付記1に記載のスプレッドシート生成プログラム。
(Appendix 2)
Said computer,
Functioning as a mode designating unit for designating a mode for identifying the process executed by the spreadsheet output processing unit;
The spreadsheet generation program according to
(付記3)
前記モード指定手段は,前記モードとしてデータ重視モードを指定し,
前記スプレッドシート出力処理手段は,前記モード指定手段によって前記データ重視モードが指定された場合に,前記フォーマット・セル定義情報の列幅および行高に基づいて前記出力用の列幅および行高を決定し,決定した出力用の列幅および行高を備えるスプレッドシートを生成し,生成したスプレッドシートにおいて,前記オーバレイ定義情報の各オーバレイのレイアウト位置に最も近い列幅の区切りを特定し,特定した列幅の区切りに対応する列幅を当該オーバレイに対応する列幅として決定する
ことを特徴とする前記付記2に記載のスプレッドシート生成プログラム。
(Appendix 3)
The mode designation means designates a data emphasis mode as the mode,
The spreadsheet output processing means determines the column width and row height for output based on the column width and row height of the format / cell definition information when the data importance mode is designated by the mode designating means. Then, a spreadsheet having the determined column width and row height for output is generated, and in the generated spreadsheet, the column width delimiter closest to the layout position of each overlay in the overlay definition information is specified, and the specified column The spreadsheet generation program according to
(付記4)
前記モード指定手段は,前記モードとしてデータ重視モードを指定し,
前記スプレッドシート出力処理手段は,前記モード指定手段によって前記データ重視モードが指定された場合に,前記フォーマット・セル定義情報の列幅および行高に基づいて前記出力用の列幅および行高を決定し,決定した出力用の列幅および行高を備えるスプレッドシートを生成し,生成したスプレッドシートにおいて,前記オーバレイ定義情報の各オーバレイのレイアウト位置に最も近い行高の区切りを特定し,特定した行高の区切りに対応する行高を当該オーバレイに対応する列幅として決定する
ことを特徴とする前記付記2に記載のスプレッドシート生成プログラム。
(Appendix 4)
The mode designation means designates a data emphasis mode as the mode,
The spreadsheet output processing means determines the column width and row height for output based on the column width and row height of the format / cell definition information when the data importance mode is designated by the mode designating means. Then, a spreadsheet having the determined column width and row height for output is generated, and in the generated spreadsheet, the row height delimiter closest to the layout position of each overlay in the overlay definition information is specified, and the specified row The spreadsheet generation program according to
(付記5)
前記モード指定手段は,前記モードとして最適化モードを指定し,
前記セル定義情報生成処理手段は,前記モード指定手段によって前記最適化モードが指定された場合に,前記オーバレイ定義情報の各オーバレイの列方向のレイアウト位置から,隣り合う位置間の距離に基づいて列幅を決定し,当該決定した列幅に関するオーバレイ・セル定義情報を生成し,
前記スプレッドシート出力処理手段は,前記モード指定手段によって前記最適化モードが指定された場合に,前記フォーマット・セル定義情報および前記オーバレイ・セル定義情報それぞれの列幅の区切りの位置を昇順にソートし,項目とオーバレイとが隣り合う列幅の区切りの位置について,昇順が下位の区切り位置を上位の区切り位置で置き換え,置き換えた列幅の区切りに対応する列幅を当該項目または当該オーバレイに対応する列幅として決定し,決定した列幅を含む前記ソートした列幅を前記出力用の列幅とする
ことを特徴とする前記付記2に記載のスプレッドシート生成プログラム。
(Appendix 5)
The mode specifying means specifies an optimization mode as the mode,
When the optimization mode is designated by the mode designating means, the cell definition information generation processing means is arranged based on a distance between adjacent positions from a layout position in the column direction of each overlay of the overlay definition information. Determine the width, generate overlay cell definition information for the determined column width,
The spreadsheet output processing means sorts the column width delimiter positions of the format cell definition information and the overlay cell definition information in ascending order when the optimization mode is designated by the mode designating means. , For column width delimiters where items and overlays are adjacent, the lower delimiter position is replaced with the upper delimiter position in ascending order, and the column width corresponding to the replaced column width delimiter corresponds to the item or the
(付記6)
前記モード指定手段は,前記モードとして最適化モードを指定し,
前記セル定義情報生成処理手段は,前記モード指定手段によって前記最適化モードが指定された場合に,前記オーバレイ定義情報の各オーバレイの行方向のレイアウト位置から,隣り合う位置間の距離に基づいて行高を決定し,当該決定した行高に関するオーバレイ・セル定義情報を生成し,
前記スプレッドシート出力処理手段は,前記モード指定手段によって前記最適化モードが指定された場合に,前記フォーマット・セル定義情報および前記オーバレイ・セル定義情報それぞれの行高区切りの位置を昇順にソートし,項目とオーバレイとが隣り合う列幅の区切りの位置について,昇順が下位の区切り位置を上位の区切り位置で置き換え,置き換えた行高の区切りに対応する列幅を当該項目または当該オーバレイに対応する行高として決定し,決定した行高を含む前記ソートした行高を前記出力用の行高とする
ことを特徴とする前記付記2に記載のスプレッドシート生成プログラム。
(Appendix 6)
The mode specifying means specifies an optimization mode as the mode,
The cell definition information generation processing means executes a line based on a distance between adjacent positions from a layout position in a row direction of each overlay of the overlay definition information when the optimization mode is designated by the mode designation means. Determine the height, generate overlay cell definition information for the determined row height,
The spreadsheet output processing means, when the optimization mode is designated by the mode designating means, sorts the row height delimiter positions of the format cell definition information and the overlay cell definition information in ascending order; For the column width separation position where the item and overlay are adjacent, the lower separation position in ascending order is replaced with the upper separation position, and the column width corresponding to the replaced row height separation is the row corresponding to the item or the overlay. The spreadsheet generation program according to
(付記7)
前記モード指定手段は,前記モードとしてオートシェイプモードを指定し,
前記スプレッドシート出力処理手段は,前記モード指定手段によって前記オートシェイプモードが指定された場合に,前記フォーマット・セル定義情報の列幅および行高に基づいて決定した前記出力用の列幅および行高を備えるスプレッドシートを生成する処理と,前記オーバレイ定義情報の各オーバレイに対応する図形を,前記生成したスプレッドシートにおいて当該オーバレイのレイアウト位置に描画する図形データを生成する処理とを行う
ことを特徴とする前記付記2に記載のスプレッドシート生成プログラム。
(Appendix 7)
The mode designation means designates an auto shape mode as the mode,
The spreadsheet output processing means outputs the column width and row height for output determined based on the column width and row height of the format / cell definition information when the auto-shape mode is designated by the mode designating means. And a process of generating graphic data for drawing a graphic corresponding to each overlay of the overlay definition information at a layout position of the overlay in the generated spreadsheet. The spreadsheet generation program according to
(付記8)
前記コンピュータを,
前記帳票の項目各々に対する入力データ群を取得する入力データ取得手段として機能させるとともに,
前記スプレッドシート出力処理手段は,前記入力データ群の各入力データを,前記生成したスプレッドシートの各項目に対応するセルに与える
ことを特徴とする前記付記1ないし付記7のいずれか一項に記載のスプレッドシート生成プログラム。
(Appendix 8)
Said computer,
While functioning as input data acquisition means for acquiring an input data group for each item of the form,
The spreadsheet output processing means provides each input data of the input data group to a cell corresponding to each item of the generated spreadsheet, The
(付記9)
前記フォーマット・セル定義情報生成手段は,前記フォーマット定義情報の項目群の列方向および行方向の座標値を昇順にソートし,前記ソート結果から,昇順の順位が1つ上の項目間との間の列方向の距離に基づいて列幅を決定し,前記ソート結果から,昇順の順位が1つ上の項目との間の行方向の距離に基づいて行高を決定し,前記フォーマット定義情報に基づいて決定された列幅および行高に関するフォーマット・セル定義情報を生成する
ことを特徴とする前記付記1ないし付記8のいずれか一項に記載のスプレッドシート生成プログラム。
(Appendix 9)
The format cell definition information generating means sorts the column direction and row direction coordinate values of the format definition information item group in ascending order, and between the items in the ascending order one order higher than the sorting result. The column width is determined based on the distance in the column direction, the row height is determined based on the distance in the row direction from the sorting result to the item in the ascending order one level higher, and the format definition information 9. The spreadsheet generation program according to any one of the
(付記10)
帳票を構成する項目群の前記帳票内のレイアウト位置に関するフォーマット定義情報を取得するフォーマット定義情報取得処理手段と,
前記帳票に重畳して出力されるオーバレイ群の前記帳票内のレイアウト位置に関するオーバレイ定義情報を取得するオーバレイ定義情報取得処理手段と,
前記フォーマット定義情報の各項目の列方向の位置および行方向のレイアウト位置から,隣り合う項目間の距離に基づいて列幅および行高をそれぞれ決定し,当該決定した列幅および行高に関するフォーマット・セル定義情報を生成するセル定義情報生成処理手段と,
前記オーバレイ定義情報に基づいて前記オーバレイのレイアウト位置に対応する列幅および行高を決定し,前記フォーマット・セル定義情報の項目群の列幅および行高,ならびに前記決定したオーバレイのレイアウト位置に基づく列幅および行高に基づいて,出力用の列幅および行高ならびに当該列幅と行高とのセル配列における前記項目群およびオーバレイ群の各々が対応するセルを特定したスプレッドシートを生成するスプレッドシート出力処理手段とを備える
ことを特徴とするスプレッドシート生成装置。
(Appendix 10)
Format definition information acquisition processing means for acquiring format definition information related to a layout position in the form of the items constituting the form;
Overlay definition information acquisition processing means for acquiring overlay definition information related to a layout position in the form of the overlay group to be output superimposed on the form;
From the position in the column direction and the layout position in the row direction of each item of the format definition information, the column width and the row height are determined based on the distance between adjacent items, respectively. Cell definition information generation processing means for generating cell definition information;
Column width and row height corresponding to the layout position of the overlay are determined based on the overlay definition information, and based on the column width and row height of the item group of the format cell definition information, and the determined layout position of the overlay Based on the column width and row height, a spread for generating a spreadsheet specifying the cell corresponding to each of the item group and overlay group in the cell width and row height for output and the cell array of the column width and row height. A spreadsheet generation apparatus comprising: a sheet output processing unit.
(付記11)
コンピュータが実行するスプレッドシート生成方法であって,
帳票を構成する項目群の前記帳票内のレイアウト位置に関するフォーマット定義情報を取得する処理過程と,
前記帳票に重畳して出力されるオーバレイ群の前記帳票内のレイアウト位置に関するオーバレイ定義情報を取得する処理過程と,
前記フォーマット定義情報の各項目の列方向の位置および行方向のレイアウト位置から,隣り合う項目間の距離に基づいて列幅および行高をそれぞれ決定する処理過程と,
前記フォーマット定義情報から決定した列幅および行高に関するフォーマット・セル定義情報を生成する処理過程と,
前記オーバレイ定義情報に基づいて前記オーバレイのレイアウト位置に対応する列幅および行高を決定する処理過程と,
前記フォーマット・セル定義情報の項目群の列幅および行高ならびに前記オーバレイのレイアウト位置に基づく列幅および行高に基づいて,出力用の列幅および行高ならびに当該列幅と行高とのセル配列における前記項目群およびオーバレイ群の各々が対応するセルを特定したスプレッドシートを生成する処理過程とを備える
ことを特徴とするスプレッドシート生成方法。
(Appendix 11)
A spreadsheet generation method executed by a computer,
A process of acquiring format definition information related to the layout position in the form of the group of items constituting the form;
A process of acquiring overlay definition information relating to a layout position in the form of the overlay group to be output superimposed on the form;
A process of determining a column width and a row height based on a distance between adjacent items from a column-direction position and a row-direction layout position of each item of the format definition information;
A process of generating format cell definition information relating to column width and row height determined from the format definition information;
A process of determining a column width and a row height corresponding to the layout position of the overlay based on the overlay definition information;
Based on the column width and row height of the item group of the format cell definition information and the column width and row height based on the layout position of the overlay, the output column width and row height and the cell of the column width and row height are output. A spreadsheet generating method comprising: generating a spreadsheet specifying a cell corresponding to each of the item group and the overlay group in the array.
1 スプレッドシート生成装置
11 セル定義情報生成処理部
13 モード指定部
15 スプレッドシート出力部
151 セル出力部
152 オートシェイプ出力部
19 セル制御情報
21 フォーマット・セル定義情報
23 オーバレイ・セル定義情報
25 出力用セル定義情報
31 フォーマット定義情報
33 オーバレイ定義情報
35 入力データ群
41,41′ スプレッドシート
51,52,53 制御情報
DESCRIPTION OF
Claims (9)
帳票を構成する項目群の前記帳票内のレイアウト位置に関するフォーマット定義情報を取得するフォーマット定義情報取得処理手段と,
前記帳票に重畳して出力されるオーバレイ群の前記帳票内のレイアウト位置に関するオーバレイ定義情報を取得するオーバレイ定義情報取得処理手段と,
前記フォーマット定義情報の各項目の列方向の位置および行方向のレイアウト位置から,隣り合う項目間の距離に基づいて列幅および行高をそれぞれ決定し,当該決定した列幅および行高に関するフォーマット・セル定義情報を生成するセル定義情報生成処理手段と,
前記オーバレイ定義情報に基づいて前記オーバレイのレイアウト位置に対応する列幅および行高を決定し,前記フォーマット・セル定義情報の項目群の列幅および行高,ならびに前記決定したオーバレイのレイアウト位置に基づく列幅および行高に基づいて,出力用の列幅および行高ならびに当該列幅と行高とのセル配列における前記項目群およびオーバレイ群の各々が対応するセルを特定したスプレッドシートを生成するスプレッドシート出力処理手段
として機能させる
ことを特徴とするスプレッドシート生成プログラム。 Computer
Format definition information acquisition processing means for acquiring format definition information related to a layout position in the form of the items constituting the form;
Overlay definition information acquisition processing means for acquiring overlay definition information related to a layout position in the form of the overlay group to be output superimposed on the form;
From the position in the column direction and the layout position in the row direction of each item of the format definition information, the column width and the row height are determined based on the distance between adjacent items, respectively. Cell definition information generation processing means for generating cell definition information;
Column width and row height corresponding to the layout position of the overlay are determined based on the overlay definition information, and based on the column width and row height of the item group of the format cell definition information, and the determined layout position of the overlay Based on the column width and row height, a spread for generating a spreadsheet specifying the cell corresponding to each of the item group and overlay group in the cell width and row height for output and the cell array of the column width and row height. A spreadsheet generation program that functions as a sheet output processing means.
前記スプレッドシート出力処理手段によって実行される処理を特定するモードを指定するモード指定手段として機能させるとともに,
前記スプレッドシート出力処理手段は,前記モード指定手段によって指定されたモードに基づいて前記出力用の列幅および行高を決定する
ことを特徴とする請求項1に記載のスプレッドシート生成プログラム。 Said computer,
Functioning as a mode designating unit for designating a mode for identifying the process executed by the spreadsheet output processing unit;
The spreadsheet generation program according to claim 1, wherein the spreadsheet output processing means determines the column width and row height for output based on a mode specified by the mode specifying means.
前記スプレッドシート出力処理手段は,前記モード指定手段によって前記データ重視モードが指定された場合に,前記フォーマット・セル定義情報の列幅および行高に基づいて前記出力用の列幅および行高を決定し,決定した出力用の列幅および行高を備えるスプレッドシートを生成し,生成したスプレッドシートにおいて,前記オーバレイ定義情報の各オーバレイのレイアウト位置に最も近い列幅の区切りを特定し,特定した列幅の区切りに対応する列幅を当該オーバレイに対応する列幅として決定する
ことを特徴とする請求項2に記載のスプレッドシート生成プログラム。 The mode designation means designates a data emphasis mode as the mode,
The spreadsheet output processing means determines the column width and row height for output based on the column width and row height of the format / cell definition information when the data importance mode is designated by the mode designating means. Then, a spreadsheet having the determined column width and row height for output is generated, and in the generated spreadsheet, the column width delimiter closest to the layout position of each overlay in the overlay definition information is specified, and the specified column The spreadsheet generation program according to claim 2, wherein the column width corresponding to the width delimiter is determined as the column width corresponding to the overlay.
前記スプレッドシート出力処理手段は,前記モード指定手段によって前記データ重視モードが指定された場合に,前記フォーマット・セル定義情報の列幅および行高に基づいて前記出力用の列幅および行高を決定し,決定した出力用の列幅および行高を備えるスプレッドシートを生成し,生成したスプレッドシートにおいて,前記オーバレイ定義情報の各オーバレイのレイアウト位置に最も近い行高の区切りを特定し,特定した行高の区切りに対応する行高を当該オーバレイに対応する列幅として決定する
ことを特徴とする請求項2に記載のスプレッドシート生成プログラム。 The mode designation means designates a data emphasis mode as the mode,
The spreadsheet output processing means determines the column width and row height for output based on the column width and row height of the format / cell definition information when the data importance mode is designated by the mode designating means. Then, a spreadsheet having the determined column width and row height for output is generated, and in the generated spreadsheet, the row height delimiter closest to the layout position of each overlay in the overlay definition information is specified, and the specified row The spreadsheet generation program according to claim 2, wherein a row height corresponding to a height break is determined as a column width corresponding to the overlay.
前記セル定義情報生成処理手段は,前記モード指定手段によって前記最適化モードが指定された場合に,前記オーバレイ定義情報の各オーバレイの列方向のレイアウト位置から,隣り合う位置間の距離に基づいて列幅を決定し,当該決定した列幅に関するオーバレイ・セル定義情報を生成し,
前記スプレッドシート出力処理手段は,前記モード指定手段によって前記最適化モードが指定された場合に,前記フォーマット・セル定義情報および前記オーバレイ・セル定義情報それぞれの列幅の区切りの位置を昇順にソートし,項目とオーバレイとが隣り合う列幅の区切りの位置について,昇順が下位の区切り位置を上位の区切り位置で置き換え,置き換えた列幅の区切りに対応する列幅を当該項目または当該オーバレイに対応する列幅として決定し,決定した列幅を含む前記ソートした列幅を前記出力用の列幅とする
ことを特徴とする請求項2に記載のスプレッドシート生成プログラム。 The mode specifying means specifies an optimization mode as the mode,
When the optimization mode is designated by the mode designating means, the cell definition information generation processing means is arranged based on a distance between adjacent positions from a layout position in the column direction of each overlay of the overlay definition information. Determine the width, generate overlay cell definition information for the determined column width,
The spreadsheet output processing means sorts the column width delimiter positions of the format cell definition information and the overlay cell definition information in ascending order when the optimization mode is designated by the mode designating means. , For column width delimiters where items and overlays are adjacent, the lower delimiter position is replaced with the upper delimiter position in ascending order, and the column width corresponding to the replaced column width delimiter corresponds to the item or the overlay The spreadsheet generation program according to claim 2, wherein the spreadsheet width is determined as a column width, and the sorted column width including the determined column width is used as the output column width.
前記セル定義情報生成処理手段は,前記モード指定手段によって前記最適化モードが指定された場合に,前記オーバレイ定義情報の各オーバレイの行方向のレイアウト位置から,隣り合う位置間の距離に基づいて行高を決定し,当該決定した行高に関するオーバレイ・セル定義情報を生成し,
前記スプレッドシート出力処理手段は,前記モード指定手段によって前記最適化モードが指定された場合に,前記フォーマット・セル定義情報および前記オーバレイ・セル定義情報それぞれの行高区切りの位置を昇順にソートし,項目とオーバレイとが隣り合う列幅の区切りの位置について,昇順が下位の区切り位置を上位の区切り位置で置き換え,置き換えた行高の区切りに対応する列幅を当該項目または当該オーバレイに対応する行高として決定し,決定した行高を含む前記ソートした行高を前記出力用の行高とする
ことを特徴とする前記付記2に記載のスプレッドシート生成プログラム。 The mode specifying means specifies an optimization mode as the mode,
The cell definition information generation processing means executes a line based on a distance between adjacent positions from a layout position in a row direction of each overlay of the overlay definition information when the optimization mode is designated by the mode designation means. Determine the height, generate overlay cell definition information for the determined row height,
The spreadsheet output processing means, when the optimization mode is designated by the mode designating means, sorts the row height delimiter positions of the format cell definition information and the overlay cell definition information in ascending order; For the column width separation position where the item and overlay are adjacent, the lower separation position in ascending order is replaced with the upper separation position, and the column width corresponding to the replaced row height separation is the row corresponding to the item or the overlay. The spreadsheet generation program according to appendix 2, wherein the sorted row height including the determined row height is set as the output row height.
前記スプレッドシート出力処理手段は,前記モード指定手段によって前記オートシェイプモードが指定された場合に,前記フォーマット・セル定義情報の列幅および行高に基づいて決定した前記出力用の列幅および行高を備えるスプレッドシートを生成する処理と,前記オーバレイ定義情報の各オーバレイに対応する図形を,前記生成したスプレッドシートにおいて当該オーバレイのレイアウト位置に描画する図形データを生成する処理とを行う
ことを特徴とする請求項2に記載のスプレッドシート生成プログラム。 The mode designation means designates an auto shape mode as the mode,
The spreadsheet output processing means outputs the column width and row height for output determined based on the column width and row height of the format / cell definition information when the auto-shape mode is designated by the mode designating means. And a process of generating graphic data for drawing a graphic corresponding to each overlay of the overlay definition information at a layout position of the overlay in the generated spreadsheet. The spreadsheet generation program according to claim 2.
前記帳票に重畳して出力されるオーバレイ群の前記帳票内のレイアウト位置に関するオーバレイ定義情報を取得するオーバレイ定義情報取得処理手段と,
前記フォーマット定義情報の各項目の列方向の位置および行方向のレイアウト位置から,隣り合う項目間の距離に基づいて列幅および行高をそれぞれ決定し,当該決定した列幅および行高に関するフォーマット・セル定義情報を生成するセル定義情報生成処理手段と,
前記オーバレイ定義情報に基づいて前記オーバレイのレイアウト位置に対応する列幅および行高を決定し,前記フォーマット・セル定義情報の項目群の列幅および行高,ならびに前記決定したオーバレイのレイアウト位置に基づく列幅および行高に基づいて,出力用の列幅および行高ならびに当該列幅と行高とのセル配列における前記項目群およびオーバレイ群の各々が対応するセルを特定したスプレッドシートを生成するスプレッドシート出力処理手段とを備える
ことを特徴とするスプレッドシート生成装置。 Format definition information acquisition processing means for acquiring format definition information related to a layout position in the form of the items constituting the form;
Overlay definition information acquisition processing means for acquiring overlay definition information related to a layout position in the form of the overlay group to be output superimposed on the form;
From the position in the column direction and the layout position in the row direction of each item of the format definition information, the column width and the row height are determined based on the distance between adjacent items, respectively. Cell definition information generation processing means for generating cell definition information;
Column width and row height corresponding to the layout position of the overlay are determined based on the overlay definition information, and based on the column width and row height of the item group of the format cell definition information, and the determined layout position of the overlay Based on the column width and row height, a spread for generating a spreadsheet specifying the cell corresponding to each of the item group and overlay group in the cell width and row height for output and the cell array of the column width and row height. A spreadsheet generation apparatus comprising: a sheet output processing unit.
帳票を構成する項目群の前記帳票内のレイアウト位置に関するフォーマット定義情報を取得する処理過程と,
前記帳票に重畳して出力されるオーバレイ群の前記帳票内のレイアウト位置に関するオーバレイ定義情報を取得する処理過程と,
前記フォーマット定義情報の各項目の列方向の位置および行方向のレイアウト位置から,隣り合う項目間の距離に基づいて列幅および行高をそれぞれ決定する処理過程と,
前記フォーマット定義情報から決定した列幅および行高に関するフォーマット・セル定義情報を生成する処理過程と,
前記オーバレイ定義情報に基づいて前記オーバレイのレイアウト位置に対応する列幅および行高を決定する処理過程と,
前記フォーマット・セル定義情報の項目群の列幅および行高ならびに前記オーバレイのレイアウト位置に基づく列幅および行高に基づいて,出力用の列幅および行高ならびに当該列幅と行高とのセル配列における前記項目群およびオーバレイ群の各々が対応するセルを特定したスプレッドシートを生成する処理過程とを備える
ことを特徴とするスプレッドシート生成方法。 A spreadsheet generation method executed by a computer,
A process of acquiring format definition information related to the layout position in the form of the group of items constituting the form;
A process of acquiring overlay definition information relating to a layout position in the form of the overlay group to be output superimposed on the form;
A process of determining a column width and a row height based on a distance between adjacent items from a column-direction position and a row-direction layout position of each item of the format definition information;
A process of generating format cell definition information relating to column width and row height determined from the format definition information;
A process of determining a column width and a row height corresponding to the layout position of the overlay based on the overlay definition information;
Based on the column width and row height of the item group of the format cell definition information and the column width and row height based on the layout position of the overlay, the output column width and row height and the cell of the column width and row height are output. A spreadsheet generating method comprising: generating a spreadsheet specifying a cell corresponding to each of the item group and the overlay group in the array.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008313849A JP5239807B2 (en) | 2008-12-10 | 2008-12-10 | Spreadsheet generation program, spreadsheet generation apparatus, and spreadsheet generation method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008313849A JP5239807B2 (en) | 2008-12-10 | 2008-12-10 | Spreadsheet generation program, spreadsheet generation apparatus, and spreadsheet generation method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2010140122A JP2010140122A (en) | 2010-06-24 |
| JP5239807B2 true JP5239807B2 (en) | 2013-07-17 |
Family
ID=42350233
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2008313849A Expired - Fee Related JP5239807B2 (en) | 2008-12-10 | 2008-12-10 | Spreadsheet generation program, spreadsheet generation apparatus, and spreadsheet generation method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5239807B2 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5644754B2 (en) * | 2011-12-26 | 2014-12-24 | コニカミノルタ株式会社 | Image forming apparatus, image forming method, and program |
| JP5920670B2 (en) | 2013-06-19 | 2016-05-18 | コニカミノルタ株式会社 | Image forming apparatus, print control program, and print control method |
| CN109508447A (en) * | 2017-09-14 | 2019-03-22 | 长沙博为软件技术股份有限公司 | A kind of list data analysis method of the high col width of fixed row |
| CN109871524B (en) * | 2019-02-21 | 2023-06-09 | 腾讯科技(深圳)有限公司 | Chart generation method and device |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06231152A (en) * | 1993-02-04 | 1994-08-19 | Hitachi Ltd | Form processing method |
| JPH11195080A (en) * | 1998-01-05 | 1999-07-21 | Nec Corp | Method for editing tabular form information editing body, its device and recording medium for storing method |
| JP2000293592A (en) * | 1999-04-05 | 2000-10-20 | Hitachi Ltd | Layout data conversion method, apparatus, and storage medium |
| JP2001243409A (en) * | 2000-02-28 | 2001-09-07 | Toyo Electric Mfg Co Ltd | Report display device |
| JP2002007953A (en) * | 2000-06-22 | 2002-01-11 | Hitachi Ltd | Electronic form processing device |
| JP4136357B2 (en) * | 2001-10-30 | 2008-08-20 | 株式会社Pfu | Form definition processing device, form definition processing program, and form definition processing program recording medium |
| JP2004355077A (en) * | 2003-05-27 | 2004-12-16 | Fujitsu Ltd | Form print processing program, form definition body creation processing program, and recording medium recording form definition body |
-
2008
- 2008-12-10 JP JP2008313849A patent/JP5239807B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2010140122A (en) | 2010-06-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4742404B2 (en) | Image recognition apparatus, image forming apparatus, image recognition method, and computer-readable recording medium storing image recognition program | |
| JP5239807B2 (en) | Spreadsheet generation program, spreadsheet generation apparatus, and spreadsheet generation method | |
| US20090327875A1 (en) | Design editing apparatus, design editing method, and storage medium storing design editing program | |
| US20070126793A1 (en) | Digital content creation system, digital content creation method, and program product | |
| JP4142614B2 (en) | Trapping method, trapping program, trapping apparatus, and printing system | |
| US8910038B2 (en) | Apparatus and method for image separation, layout, and templating | |
| JP4998220B2 (en) | Form data extraction program, form data extraction apparatus, and form data extraction method | |
| JP5321109B2 (en) | Information processing apparatus and information processing program | |
| JPWO2009001462A1 (en) | Spreadsheet generation program, recording medium recording the program, spreadsheet generation device, and spreadsheet generation method | |
| WO2005073886A1 (en) | Table format data processing method and table format data processing | |
| JP7383882B2 (en) | Information processing device and information processing program | |
| US20120229860A1 (en) | Information processing apparatus, method for controlling same, and storage medium on which computer program has been recorded | |
| JP2004287682A (en) | Modified image extraction device, program, storage medium, and modified image extraction method | |
| JP6325472B2 (en) | Data structure extraction device, data structure extraction method, and data structure extraction program | |
| JP2010039542A (en) | Operation information management system | |
| JP2007334783A (en) | Parts catalog creation method and parts catalog creation device | |
| JP4179977B2 (en) | Stamp processing apparatus, electronic approval system, program, and recording medium | |
| JP4775067B2 (en) | Digital content creation system, digital content creation program, and digital content creation method | |
| JP2019105708A (en) | Score deduction method in automatic scoring system of characters which performs determination of correction based on deduction difference each of differences between input pattern and standard pattern | |
| JP2010271589A (en) | Pattern division method, pattern division processing apparatus, and computer program | |
| JP4232701B2 (en) | Layout system, template generation system, layout program, template generation program, layout method, and template generation method | |
| JP7643713B2 (en) | Woven pattern data creation program and weaving pattern data creation method | |
| JP5239300B2 (en) | Form data porting system and form data porting method | |
| JP4024744B2 (en) | Trapping method, trapping apparatus, trapping program, and printing system | |
| JP2008146635A (en) | Computerized form data creation system, computerized form data creation method and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110907 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20121220 |
|
| 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: 20130305 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130318 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160412 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 5239807 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |