JPH0619892A - Table frame forming method - Google Patents
Table frame forming methodInfo
- Publication number
- JPH0619892A JPH0619892A JP4176523A JP17652392A JPH0619892A JP H0619892 A JPH0619892 A JP H0619892A JP 4176523 A JP4176523 A JP 4176523A JP 17652392 A JP17652392 A JP 17652392A JP H0619892 A JPH0619892 A JP H0619892A
- Authority
- JP
- Japan
- Prior art keywords
- data
- width
- string
- input area
- column
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、計算機等の情報処理装
置を用いて表作成を行なう場合の表枠整形方法に関し、
特に用紙サイズに従った高速な表整形を可能にし、操作
性を向上させる表枠整形方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a table frame shaping method for creating a table using an information processing device such as a computer.
In particular, it relates to a table frame shaping method that enables high-speed table shaping according to the paper size and improves operability.
【0002】[0002]
【従来の技術】従来、表の作成や修正においては、例え
ば特開昭59−68038号公報に記載のように、表示
の表示画面を見ながら数値、文字データの入力、そして
任意のデータ入力領域に入力した値によって計算結果を
自動的に算出し、表を作成していく対話的な方式がとら
れていた。この表作成段階において、入力されたデータ
の長さ、計算式による算出結果、各データ入力領域に設
定されるデータの表示書式、表の用紙サイズにより任意
のデータ入力領域を持つ列幅の変更が必要となる。この
データ入力領域幅の変更方法には、表形式にデータを作
成した後、手操作で表示データと表を印刷する用紙サイ
ズに合うように考えて変更していくものや、特開平2−
268366号公報に記載のように、表形式にデータを
作成した後、文字データ扱いで各データの長さに合う表
枠作成を自動帳票作成方式により行なうものがあった。
また、この他には、特開昭63−75964号、特開平
3−38774号公報に記載のように、各データ入力領
域に対して入力されるテキストデータの長さにより、そ
のデータ入力領域を含む行、列のデータ入力領域幅を部
分修正してデータ入力領域幅の自動変更を行ない、表を
作成する方法があった。2. Description of the Related Art Conventionally, when creating or modifying a table, as described in, for example, Japanese Patent Laid-Open No. 59-68038, numerical values, character data are input and an arbitrary data input area is displayed while looking at a display screen. An interactive method was adopted in which the calculation results were automatically calculated according to the values entered in and a table was created. At the stage of creating the table, the length of the input data, the calculation result by the calculation formula, the display format of the data set in each data input area, and the width of the column with an arbitrary data input area can be changed depending on the paper size of the table. Will be needed. As a method of changing the width of the data input area, after creating the data in the table format, the data is manually changed so as to match the display data and the paper size on which the table is printed.
As described in Japanese Patent No. 268366, there is a method in which data is created in a tabular form and then a table frame that matches the length of each data is created by handling the character data by an automatic form creation method.
In addition to this, as described in JP-A-63-75964 and JP-A-3-38774, the data input area is changed depending on the length of the text data input to each data input area. There was a method of making a table by partially modifying the data input area width of the containing row and column and automatically changing the data input area width.
【0003】[0003]
【発明が解決しようとする課題】上記従来技術に示した
前者の方法では、表計算機能を使用したデータをテキス
トデータとして自動的に表示の用紙サイズに帳票を作成
するため、対話形式での表作成、修正中での表示という
点について配慮がなされておらず、作成段階における表
画面のデータ配置の確認やデータに対するデータ入力領
域の表示エリアの不足等の問題があった。また、後者で
は、各データ入力領域に入力されるデータがテキストデ
ータ以外の場合や他要因により表示データが変更する場
合に対しては配慮がなされておらず、各データ入力領域
に設定された計算式により算出される計算結果や表示デ
ータの書式に対してデータ入力領域幅を変更しない問題
や入力データによってデータ入力領域幅を変更した場合
に、作成された表が印刷させたい用紙サイズに合わなく
なり、再度設定し直さなければならないという問題があ
った。本発明の目的は、このような問題点を改善し、表
作成時の操作性を向上するのに好適な表枠整形方法を提
供することにある。In the former method shown in the above-mentioned prior art, since the data using the spreadsheet function is automatically created as the text data on the displayed paper size, the interactive table No consideration was given to the display during creation and modification, and there were problems such as confirmation of the data layout on the front screen at the creation stage and lack of the display area of the data input area for the data. In the latter case, no consideration is given to the case where the data input to each data input area is other than text data or when the display data changes due to other factors, and the calculation set for each data input area is not taken into consideration. The problem that does not change the data input area width for the calculation result calculated by the formula or the format of the display data, or when the data input area width is changed by the input data, the created table does not fit the paper size you want to print. , There was a problem of having to set again. An object of the present invention is to provide a table frame shaping method suitable for improving such problems and improving operability when creating a table.
【0004】[0004]
【課題を解決するための手段】上記目的を達成するた
め、本発明の表枠整形方法は、データ入力領域の一つを
指定してデータを入力したり、各データ入力領域に対し
て設定した計算式を算出し、指定サイズ(用紙サイズ)
内で表として出力する際、表示するデータの長さが、当
該データ入力領域を有する列の列幅より大きければ、列
幅変更処理部における拡張処幅サーチ部により、当該デ
ータ入力領域を含む列の表示に最適な列幅を算出し、さ
らに、用紙サイズ判定部により、その列幅で作成した表
全体が指定サイズ内に収まるか否かを判定して、納まら
ない場合には、各列幅を上記で算出された最適な列幅の
比率で再設定することにより、表示データに合わせて自
動的に列幅を変更することに特徴がある。In order to achieve the above object, in the table frame shaping method of the present invention, data is input by designating one of the data input areas, or is set for each data input area. Calculate the formula and specify the size (paper size)
When the length of the data to be displayed is larger than the column width of the column having the data input area, the expanded width search unit in the column width change processing unit outputs the column including the data input area. Calculates the optimum column width for display, and the paper size determination unit determines whether or not the entire table created with that column width fits within the specified size. Is reset by the ratio of the optimum column width calculated above, and the column width is automatically changed according to the display data.
【0005】[0005]
【作用】本発明においては、データの入力および計算式
の計算結果等により表示されるデータの長さが、そのデ
ータを表示するデータ入力領域を持つ列の列幅より大き
くなる場合に、その表示データの長さを算出して最適な
列幅を決定する。さらに、変更した列幅で作成された表
全体の大きさが、希望する用紙サイズに収まるかを判定
し、各列の列幅を上記で算出した列幅の比率で拡大およ
び縮小して、表を作成する。これにより、手操作による
列幅変更は不要となり、表作成時の操作性が向上する。According to the present invention, when the length of the data displayed by the data input and the calculation result of the calculation formula is larger than the column width of the column having the data input area for displaying the data, the display is performed. Calculate the length of the data to determine the optimal column width. In addition, it is determined whether the size of the entire table created with the changed column width fits in the desired paper size, and the column width of each column is expanded or reduced by the ratio of the column width calculated above, To create. This eliminates the need to manually change the column width and improves the operability when creating a table.
【0006】[0006]
【実施例】以下、本発明の一実施例を図面により詳細に
説明する。図1は、本発明の一実施例における情報処理
装置の機能構成図である。図1において、入力部101
は、ポインティングデバイスまたはキーボード等の入力
装置である。また、データ解析部102は、入力部10
1から入力されたデータが、データ入力領域への数値、
文字、および計算式の入力であるか、コマンドの実行を
示す入力であるか、設定されている計算式を実行させる
データの入力であるか等を判定する。その結果、入力デ
ータがコマンドの実行を示すものである場合には、コマ
ンド制御部103が必要なコマンド処理をコマンド群処
理部109から選び動作させる。また、計算式制御部1
04は、データ解析部102で入力されたデータ、また
は、コマンド制御部103でコマンドを処理した結果、
設定されている計算式を実行させる必要がある場合に動
作し、任意のデータ入力領域に設定されている計算式を
実行し、値を算出する。また、データ入力領域属性判定
部105は、入力データ、計算出力、コマンド処理結果
を各データ入力領域で表示する時に、個々のデータ入力
領域に設定されているデータ入力領域内の文字配置指定
や数値の表示桁数指定等の属性を判定し、出力データと
ともに列幅変更処理部106に渡す。列幅変更処理部1
06は、データ入力領域属性判定部105によって決定
された表示データがデータ入力領域内に入り切るかどう
かを判定し、入り切らなければ、そのデータ入力領域の
ある列の列幅を用紙サイズの中で変更する処理を行なっ
て、画面制御部107へデータを渡す。このデータは、
画面表示部108で表示される。なお、画面表示部10
8はCRTディスプレイ等の出力装置である。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a functional configuration diagram of an information processing apparatus according to an embodiment of the present invention. In FIG. 1, the input unit 101
Is an input device such as a pointing device or a keyboard. Further, the data analysis unit 102 includes the input unit 10
The data input from 1 is the numerical value for the data input area,
It is determined whether it is an input of a character and a calculation formula, an input indicating execution of a command, or an input of data for executing a set calculation formula. As a result, when the input data indicates the execution of the command, the command control unit 103 selects the required command processing from the command group processing unit 109 and operates it. Also, the calculation formula control unit 1
04 is the data input by the data analysis unit 102, or the result of processing the command by the command control unit 103,
It operates when it is necessary to execute the set calculation formula, executes the calculation formula set in an arbitrary data input area, and calculates a value. Further, the data input area attribute determination unit 105, when displaying the input data, the calculation output, and the command processing result in each data input area, specifies the character arrangement and the numerical value in the data input area set in each data input area. The attribute such as the designation of the number of display digits is determined and passed to the column width change processing unit 106 together with the output data. Column width change processing unit 1
06 determines whether the display data determined by the data input area attribute determination unit 105 can fit within the data input area. If not, the column width of the column having the data input area is set to the paper size. Then, the data is passed to the screen control unit 107. This data is
It is displayed on the screen display unit 108. The screen display unit 10
Reference numeral 8 is an output device such as a CRT display.
【0007】次に、本実施例の表枠整形方法について述
べる。図2は、本発明の一実施例における列幅変更処理
部の機能の概略を示す図、図3は本発明の一実施例にお
ける表枠整形方法を示すフローチャートである。図3の
ように、作成している表に対してデータ、コマンド、計
算式が入力されると(301)、データ設定、コマンド
実行、計算式実行(302)が行なわれ、表示するデー
タが作成される(303)。表示するデータが作成され
ると、各データ入力領域の属性に従ってデータの表示形
式が決定され、表示するデータが再構成される(30
4)。次に、列幅変更処理部106において、図2に示
す拡張列幅サーチ部202は、各列のデータ入力領域を
表わす列幅を列幅記憶テーブル201より参照し(30
5)、データ入力領域の拡張が必要な表示データが存在
するかを判定し(306)、存在する場合には、拡張が
必要なデータ入力領域を持つ列を探し(307)、その
列のデータ入力領域の拡張を必要とする表示データのう
ち最大の長さのものを探して(308)、余白2バイト
を足した表示データ長と列番号を変更別テーブル203
に設定する。この情報をもとに、列幅記憶テーブル20
1を201aのように更新(表示データ長による更新)
する(309)。さらに、用紙サイズ判定部204によ
り、この更新された列幅記憶テーブル201aの全列の
列幅の総和(TW)が設定された用紙の幅(SW)より
大きいか判定する(310)。その結果、大きい場合に
は、用紙の幅に表が合うように各列の列幅を設定し直す
ため、列幅記憶テーブル201aに設定した列幅を全列
の列幅の総和と用紙の幅の比率(TW/SW)で縮小し
(311)、列幅記憶テーブル201bのように再更新
(用紙幅による再更新)する(312)。この列幅記憶
テーブル201bより各列の列幅を決定する(31
3)。その列幅で表示形式に従い、表示データを各デー
タ入力領域に表示する(314)。なお、用紙サイズ判
定部204による判定の結果、列幅記憶テーブル201
aの全列の列幅の総和(TW)が設定された用紙の幅
(SW)より大きくない場合には、そのままでステップ
313にスキップする。このように、入力に伴い、表示
データに合わせて、自動的に列幅を変更する。The table frame shaping method of this embodiment will be described next. FIG. 2 is a diagram showing an outline of the function of the column width change processing unit in the embodiment of the present invention, and FIG. 3 is a flow chart showing the table frame shaping method in the embodiment of the present invention. As shown in FIG. 3, when data, commands, and calculation formulas are input to the table being created (301), data setting, command execution, and calculation formula execution (302) are performed to create the data to be displayed. (303). When the data to be displayed is created, the display format of the data is determined according to the attribute of each data input area, and the data to be displayed is reconstructed (30
4). Next, in the column width change processing unit 106, the extended column width search unit 202 shown in FIG. 2 refers to the column width representing the data input area of each column from the column width storage table 201 (30
5) It is determined whether or not there is display data that requires expansion of the data input area (306). If so, a column having a data input area that requires expansion is searched (307), and the data in that column is searched. A table 203 having the maximum length is searched for among the display data which requires expansion of the input area (308), and the display data length and column number obtained by adding 2 bytes of the margin are changed.
Set to. Based on this information, the column width storage table 20
Update 1 as 201a (update by display data length)
(309). Further, the paper size determination unit 204 determines whether the sum of the column widths (TW) of all columns of the updated column width storage table 201a is larger than the set paper width (SW) (310). As a result, when the width is large, the column width of each column is reset so that the table fits the width of the sheet. Therefore, the column width set in the column width storage table 201a is the sum of the column widths of all columns and the sheet width. (311), and re-updated (re-updated by paper width) as in the column width storage table 201b (312). The column width of each column is determined from the column width storage table 201b (31
3). Display data is displayed in each data input area according to the display format with the column width (314). As a result of the determination by the paper size determination unit 204, the column width storage table 201
If the sum of the column widths (TW) of all the columns of a is not larger than the set sheet width (SW), the process directly skips to step 313. In this way, the column width is automatically changed according to the display data in accordance with the input.
【0008】[0008]
【発明の効果】本発明によれば、表作成段階でデータが
入力される度にデータがデータ入力領域枠に収まるかを
判定し、収まらない場合には、入力されるデータの長さ
および出力結果に伴い、表を印刷したい用紙サイズの大
きさ内で自動的に列幅を拡張することができる。これに
より、最終的な表作成結果を待ってから用紙サイズに合
わせたり、データ入力途中でデータがデータ入力領域枠
内で表示しきれずに手操作で列幅を変更することがなく
なり、操作性が向上する。According to the present invention, each time data is input in the table creation stage, it is determined whether the data fits in the data input area frame, and if it does not fit, the length of the input data and the output As a result, the column width can be automatically expanded within the size of the paper size on which the table is printed. This eliminates the need to wait for the final table creation result before adjusting to the paper size, and during data entry, the column width cannot be changed manually by not being able to display the data within the data entry area frame. improves.
【0009】[0009]
【図1】本発明の一実施例における情報処理装置の機能
構成図である。FIG. 1 is a functional configuration diagram of an information processing apparatus according to an embodiment of the present invention.
【図2】本発明の一実施例における列幅変更処理部の機
能の概略を示す図である。FIG. 2 is a diagram showing an outline of a function of a column width change processing unit in the embodiment of the present invention.
【図3】本発明の一実施例における表枠整形方法を示す
フローチャートである。FIG. 3 is a flowchart showing a table frame shaping method according to an embodiment of the present invention.
101 入力部 102 データ解析部 103 コマンド制御部 104 計算式制御部 105 データ入力領域属性判定部 106 列幅変更処理部 107 画面制御部 108 画面表示部 109 コマンド群処理部 101 Input Unit 102 Data Analysis Unit 103 Command Control Unit 104 Calculation Formula Control Unit 105 Data Input Area Attribute Determination Unit 106 Column Width Change Processing Unit 107 Screen Control Unit 108 Screen Display Unit 109 Command Group Processing Unit
Claims (1)
入力領域を有する表を、指定されたサイズ内で作成表示
する方法において、表示するデータの長さが、当該デー
タ入力領域を有する列の列幅より大きい場合、該表示デ
ータの長さから、データ入力領域を含む列の表示に最適
な列幅を算出し、算出した列幅で作成した表全体の大き
さが、指定されたサイズに納まるように、列幅を表示デ
ータに合わせて自動的に変更することを特徴とする表枠
整形方法。1. A method of creating and displaying a table having a plurality of data input areas arranged in a matrix within a specified size, wherein the length of data to be displayed is a column of columns having the data input area. If the width is larger than the width, the optimum column width for displaying the column including the data input area is calculated from the length of the display data, and the size of the entire table created with the calculated column width falls within the specified size. As described above, the table frame shaping method is characterized in that the column width is automatically changed according to the display data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4176523A JPH0619892A (en) | 1992-07-03 | 1992-07-03 | Table frame forming method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4176523A JPH0619892A (en) | 1992-07-03 | 1992-07-03 | Table frame forming method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0619892A true JPH0619892A (en) | 1994-01-28 |
Family
ID=16015108
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4176523A Pending JPH0619892A (en) | 1992-07-03 | 1992-07-03 | Table frame forming method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0619892A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2019008569A (en) * | 2017-06-26 | 2019-01-17 | コニカミノルタ株式会社 | Print control device, print control program, and print control method |
-
1992
- 1992-07-03 JP JP4176523A patent/JPH0619892A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2019008569A (en) * | 2017-06-26 | 2019-01-17 | コニカミノルタ株式会社 | Print control device, print control program, and print control method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2975863B2 (en) | Document creation device | |
| JPH0619892A (en) | Table frame forming method | |
| JP3064323B2 (en) | Character string replacement device with attributes | |
| JP2000148738A (en) | Device and method for mathematical expression input and display, and recording medium where mathematical input and display program is recorded | |
| JP3404770B2 (en) | Document processing device | |
| JP3528249B2 (en) | Document processing device | |
| JP2896519B2 (en) | Document editing device | |
| JPH04326122A (en) | Process concept plotting device | |
| JP2713924B2 (en) | Document editing device | |
| JPH01113855A (en) | Format data setting system for print of document | |
| JPH08212206A (en) | Document creation device | |
| JP3004526U (en) | Device for creating standard document including figures | |
| JP2753015B2 (en) | Attribute input method | |
| JPH0827698B2 (en) | Document processing device | |
| JPH05314103A (en) | Document processing apparatus and area connecting order determination method thereof | |
| JPH03291748A (en) | Table data creation control method and data processing device | |
| JPH03177966A (en) | Document editing device | |
| JPH06111025A (en) | Graph making device | |
| JPH06250632A (en) | Character editing device | |
| JPH05100807A (en) | Character string editing system | |
| JPH07129155A (en) | Music notation device | |
| JPH05189424A (en) | Device and method for editing document | |
| JPH0241557A (en) | Format set processing system of layout display | |
| JPH0748231B2 (en) | Table making device | |
| JPH0765050A (en) | Batch/continuous changing method for cad input character attribute |