JP2004078375A - Information processing apparatus, business form processing method, computer-readable storage medium, and program - Google Patents

Information processing apparatus, business form processing method, computer-readable storage medium, and program Download PDF

Info

Publication number
JP2004078375A
JP2004078375A JP2002235365A JP2002235365A JP2004078375A JP 2004078375 A JP2004078375 A JP 2004078375A JP 2002235365 A JP2002235365 A JP 2002235365A JP 2002235365 A JP2002235365 A JP 2002235365A JP 2004078375 A JP2004078375 A JP 2004078375A
Authority
JP
Japan
Prior art keywords
input
data
template
calculation formula
input field
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
Application number
JP2002235365A
Other languages
Japanese (ja)
Inventor
Tetsuo Tanaka
田中 哲郎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2002235365A priority Critical patent/JP2004078375A/en
Publication of JP2004078375A publication Critical patent/JP2004078375A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To confirm a calculation equation for a defined numerical value input field and directly define a calculation equation intended by a user for an undefined numerical value input field, in a state in which numerical value data is inputted in the numerical value input fields by utilizing a template. <P>SOLUTION: While the data is inputted in the numerical value input fields defined by the selected and read template, a CPU 11 discriminates any undefined numerical value input field among the plurality of numerical value input fields, defines the specified calculation equation based on a script language and buries the equation in the undefined numerical value input field of the template for the numerical value input field discriminated as undefined, and reflects the results of the calculations based on the specified calculation equations based on the buried script language in the input data of the applicable numerical value input field. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、出力用フォームデータから入力用フォームを自動生成することを可能とし、ユーザにおける入力フォーム作成の負荷を軽減する情報処理装置および帳票処理方法およびコンピュータが読み取り可能な記憶媒体およびプログラムに関するものである。
【0002】
【従来の技術】
従来より、帳票等のように予め作成された出力フォームに対して、可変データ部分を記述する後付けデータをマージし、これを印刷する印刷システムが知られている。
【0003】
一般に、この種の印刷システムにおいては、印刷の品位が重視されているため、情報処理装置上でまず印刷用の出力フォームを作成し、この出力フォームに対し何らかの方法により後付けデータを作成し、当該出力フォームに合成する。
【0004】
ここで、出力フォームに対応した可変データの入力や作成については、当該システムの使用者がその業務にあわせて独自の入力システムを構築していた。
【0005】
このようなシステム上において処理する帳票の数が増えるに従い、各帳票のためのデータ入力用のフォームを開発するのが、ユーザの重荷になっている。
【0006】
また、同時に、入力フォームの操作性の向上も求められており、入力用フォームの開発に関わる負荷は増加するばかりである。
【0007】
さらに、このような負担を軽減するため特開2001−101327号公報に記載されるように、テンプレートを利用するものも提案されている。
【0008】
そして、上記テンプレートを利用する場合、各フィールドにあらかじめ算出すべき計算式を設定して、入力される数値に対して計算結果を自動的に入力する機能を備えたものがある。
【0009】
【発明が解決しようとする課題】
しかしながら、テンプレートを利用する場合でも、何らかの新たな表計算フィールドを作成する等の変形あるいは編集を行いたい場合があるが、このような場合には、テンプレート自体を最初から新たに作成しなければならない場合と、直接ユーザが計算して数値をテキストとして入力する等の操作が必要となり、このような新たな計算項目を容易に編集することができない等の問題点が指摘されていた。
【0010】
本発明は、上記の問題点を解決するためになされたもので、本発明の目的は、選択されて読み出されるテンプレートで定義されている各数値入力フィールドに対するデータ入力中に、前記複数の数値入力フィールド中で未定義となっているいずれかの数値入力フィールドを判別し、未定義であると判別された数値入力フィールドに対して、スクリプト言語に基づく所定の計算式を定義して前記テンプレートの未定義の数値入力フィールドに埋め込み、該埋め込まれたスクリプト言語に基づく所定の計算式に基づく計算結果を該当する数値入力フィールドの入力データに反映させることにより、テンプレートを利用して数値入力フィールドに数値データを入力している状態で、定義済みの数値入力フィールドに対してはその計算式を確認したり、未定義の数値入力フィールドに対してユーザが意図する計算式をスクリプト言語で直接定義して、該定義された計算式が埋め込まれた数値入力フィールドに対して入力される数値入力データを反映させた帳票処理を自在に行うことができる利便性と操作性に優れた情報処理装置および帳票処理方法およびコンピュータが読み取り可能な記憶媒体およびプログラムを提供することである。
【0011】
【課題を解決するための手段】
本発明に係る第1の発明は、複数の数値入力フィールドが定義可能な帳票印刷用テンプレートを格納する格納手段を備え、前記格納手段から選択されて読み出されるテンプレートで定義されている各数値入力フィールドに対して入力される所定のデータと前記テンプレートのフォームデータとを合成処理して帳票印刷処理を行う情報処理装置であって、前記格納手段から選択されて読み出されるテンプレートで定義されている各数値入力フィールドに対するデータ入力中に、前記複数の数値入力フィールド中で未定義となっているいずれかの数値入力フィールドを判別する判別手段(図1に示すCPU11が外部記憶装置14等より読み出される帳票処理プログラムに基づき判断処理する構成に対応する)と、前記判別手段によりに未定義であると判別された数値入力フィールドに対して、スクリプト言語に基づく所定の計算式を定義して前記テンプレートの未定義の数値入力フィールドに埋め込む計算式埋め込み手段(図1に示すCPU11が外部記憶装置14等より読み出される帳票処理プログラムに基づき埋め込み処理する構成に対応する)と、前記計算式埋め込み手段により埋め込まれたスクリプト言語に基づく所定の計算式に基づく計算結果を該当する数値入力フィールドの入力データに反映させるフォーム制御手段(図1に示すCPU11が外部記憶装置14等より読み出される帳票処理プログラムに基づき反映処理する構成に対応する)とを備えることを特徴とする。
【0012】
本発明に係る第2の発明は、前記判別手段によりに定義済みであると判別された数値入力フィールドに定義されている計算式を前記スクリプト言語に基づく所定の計算式で表示する計算式確認手段(図1に示すCPU11が外部記憶装置14等より読み出される帳票処理プログラムに基づき確認処理する構成に対応する)を有することを特徴とする。
【0013】
本発明に係る第3の発明は、前記フォーム制御手段により該当する数値入力フィールドに対して入力された入力データを反映させた後、印刷実行を指示する指示手段と、前記指示手段による指示に基づき、前記入力データと前記テンプレートのフォームデータとを合成処理して帳票印刷処理を印刷部より出力させる印刷制御手段(図1に示すCPU11が外部記憶装置14等より読み出される帳票処理プログラムに基づき印刷制御する構成に対応する)とを有することを特徴とする。
【0014】
本発明に係る第4の発明は、複数の数値入力フィールドが定義可能な帳票印刷用テンプレートを格納する格納手段を備え、前記格納手段から選択されて読み出されるテンプレートで定義されている各数値入力フィールドに対して入力される所定のデータと前記テンプレートのフォームデータとを合成処理して帳票印刷処理を行う情報処理装置における帳票処理方法であって、前記格納手段から選択されて読み出されるテンプレートで定義されている各数値入力フィールドに対するデータ入力中に、前記複数の数値入力フィールド中で未定義となっているいずれかの数値入力フィールドを判別する判別ステップ(図示しない)と、前記判別ステップにより未定義であると判別された数値入力フィールドに対して、スクリプト言語に基づく所定の計算式を定義して前記テンプレートの未定義の数値入力フィールドに埋め込む計算式埋め込みステップ(図12に示すステップS11−7)と、前記計算式埋め込みステップにより埋め込まれたスクリプト言語に基づく所定の計算式に基づく計算結果を該当する数値入力フィールドの入力データに反映させる制御ステップ(図示しない)とを備えることを特徴とする。
【0015】
本発明に係る第5の発明は、前記判別ステップによりに定義済みであると判別された数値入力フィールドに定義されている計算式を前記スクリプト言語に基づく所定の計算式で表示する計算式確認ステップ(図示しない)を有することを特徴とする。
【0016】
本発明に係る第6の発明は、前記フォーム制御ステップにより該当する数値入力フィールドに対して入力された入力データを反映させた後、印刷実行を指示する指示ステップと、前記指示ステップによる指示に基づき、前記入力データと前記テンプレートのフォームデータとを合成処理して帳票印刷処理を印刷部より出力させる印刷制御ステップ(図示しない)とを有することを特徴とする。
【0017】
本発明に係る第7の発明は、第4〜第6の発明のいずれかに記載の帳票処理方法を実現するプログラムを記憶したことを特徴とする。
【0018】
本発明に係る第8の発明は、第4〜第6の発明のいずれかに記載の帳票処理方法を実現するプログラムであることを特徴とする。
【0019】
【発明の実施の形態】
以下、添付の図面を参照して本発明の好適な実施形態を詳細に説明する。
【0020】
図1は、本発明の一実施形態を示す情報処理装置の構成を説明するブロック図である。
【0021】
図1において、11はCPUであり、当該システムにおける各種処理を実行する。12はROMであり、CPU11によって実行される制御プログラムや、各種データを格納する。13はRAMであり、CPU11によって実行される制御プログラムを格納するとともに、CPU11の作業領域を提供する。14は外部記憶装置であり、フレキシブルディスク、ハードディスク、CD−ROM等によって構成される。外部記憶装置14には、図5で後述する本実施形態の制御をCPU11に実現させるための制御プログラムが格納されている。外部記憶装置14に格納された制御プログラムは、適宜RAM13にロードされ、CPU11によって実行される。
【0022】
15はディスプレイであり、CPU11の制御の下で各種表示を行う。16はキーボード、17はポインティングデバイス(本例ではマウス)であり、当該装置に対し各種の操作入力を行う。18はインタフェースであり、本実施形態ではプリンタ20が接続される。19はバスであり、上述の各構成を接続する。なお、図1において外部記憶装置14やプリンタ20等はネットワークを介して接続されていてもよい。
【0023】
図2は、図1に示した情報処理装置の外部記憶装置14で管理される印刷用フォームのテンプレート例を示す図である。
【0024】
このようなフォームテンプレート作成は通常のドローイングツールと同様な方法で行われる。ただし、印刷時に後付けデータ(図3で後述する)と合成する必要がある為、後付けデータを取り込むエリアが明確に示されている。
【0025】
図2において、102、103、104、105等のXXXXXで示される部分は、可変データが表示されるべきフィールド(可変データフィールド)である。各可変データフィールドには名称が付与されており、本例は、可変データフィールド102には「Sheet_No」、可変データフィールド103には「Cust_Name」、可変データフィールド104には「Cust_Adr」、可変データフィールド105には「Code1」などの名称が付与されている。
【0026】
101で示される部分等の可変データフィールド以外の表示オブジェクト用の固定フィールドで、帳票における固定部分である。
【0027】
図3は、図2に示したフォームテンプレートに合成される後付けデータの構成例を示す図である。この例では、例えば、フォームテンプレート上の可変データフィールド102(Sheet_Noのフィールド)に「12345」が,可変データフィールド103(Cust_Nameのフィールド)に「ABC Company」が表示され、印刷されることになる。
【0028】
図4は、図1に示した外部記憶装置14(本例ではハードディスク)に格納されたフォームテンプレートデータのフォーマット例の概要を示す図である。301は識別子であり、各表示オブジェクトを特定する。302は各表示オブジェクトの属性であり、オブジェクトの種類(例えば文字列、線、Box、イメージ等の表示オブジェクト、或いは可変データフィールド)であることを表わす。303は、オブジェクトのフォームテンプレート(帳票)上における位置である。304は各オブジェクト毎のデータ内容、たとえば、文字列である場合は、その実際の文字列、可変データである場合は図3で示した様な名称が割り当てられる。その他、305では、各オブジェクトごとの必要項目が詳細に示される。この詳細項目305には、例えば各表示オブジェクトや可変データフィールドの大きさ、可変データフィールドについては入力されるデータが文字列か数値か等を表わす情報が格納される。
【0029】
次に図5〜図9を参照して、本実施形態における入力フォームの作成方法を説明する。
【0030】
図5は、図1に示したディスプレイ15に表示される入力フォーム作成ウインドウの表示例を示す図である。
【0031】
図5において、401は入力フォームを作成する為のウインドウ全体を示し、ウインドウ401はディスプレイ15に表示される。402はメニューバーであり、複数のメニューボタンが配置されている。403は出力フォーム用エリアであり、出力フォームテンプレート404を表示する。405は、入力フォーム406を表示したり編集する為の入力フォーム用エリアである。
【0032】
図5に示されるように、出力フォーム用エリア403に表示した出力フォームテンプレート404に基づいて、入力フォーム406が自動的に生成される。ここで、出力フォームテンプレート404に含まれる可変データフィールドはデータ入力用のボックスで置き換えられる。例えば、図5では、可変データフィールド407がデータ入力ボックス408で置き換えられている。
【0033】
また、409は、出力フォームテンプレート表示エリアと入力フォーム作成エリアとの境界を示し、リサイズが可能である。
【0034】
次に、本実施形態による入力フォームの生成手順を説明する。
【0035】
メニューバー402のメニューボタン群の中にはファイル読み込みボタンが配置されている。このボタンを選択すると、一般的なファイルを選択する為の選択パネルが表示される。ユーザは、このファイル選択画面において、既に作成されている出力フォームテンプレートのファイルを選択する。
【0036】
本例では、図4に示されているファイルフォーマットのファイルを読み込み、図5に示すように出力フォーム用エリア403に出力フォームテンプレート404が再現されたものとする。尚、出力フォーム用エリア403は表示のみのエリアであり、編集等の作業は行えない。また、出力フォームテンプレートを再現すると同時に入力用フォームが自動的に生成され、図5に示すように、入力フォーム用エリア405に入力フォーム406として表示される。以上の動作を図6を用いて説明する。
【0037】
図6は、本発明に係る情報処理装置における第1のデータ処理手順の一例を示すフローチャートであり、本実施形態による入力フォーム生成手順に対応する。なお、(S501)〜(S509)は各ステップを示し、図1に示した外部記憶装置14に記憶されるフォーム作成処理プログラムをRAM13等にロードしてCPU11が実行するものとする。
【0038】
図6において、ステップS501では、再び出力フォームテンプレートファイルを読み込む。そして、ステップS502以降で当該出力フォームテンプレートファイルの各レコードの解析を行う。
【0039】
まず、ステップS502で図4に示すようなファイルデータからレコードを1つずつ読み込む。そして、ステップS503において、当該レコードが可変データ入力用フィールドであるか否かの判定を行う。この判定は、図4の属性302の項をチェックすることで行う。
【0040】
当該レコードが可変データの入力用フィールドである場合はステップS504に進み、当該レコード用にテキストフィールドを生成する。そして、ステップS505において、この生成されたテキストフィールドを入力用フィールドレコードとしてメモリ(RAM13)内に保持する。
【0041】
図7は、図4に示した可変データフィールドに対応するテキストフィールド情報の保持例を示す図である。
【0042】
一方、ステップS505における格納処理によって、図7の如きレコードが保持される。
【0043】
一方、ステップS503において可変データ入力用フィールドではないと判定された場合は、ステップS506へ進む。ステップS506では、出力フォームにおいて定義されている表示オブジェクトと同様のオブジェクト(線、文字列、イメージなど)が生成される。
【0044】
ステップS507では、ステップS504で生成されたテキストフィールド或いはステップS506で生成されたオブジェクトを入力フォーム上に表示する。ステップS508においては、出力フォームテンプレートファイル内のすべてのレコードが処理されたか否かを判定する。未処理のレコードがあればステップS502に戻り、上述の処理を繰り返す。一方、すべてのレコードが処理された場合は本処理を終了する。
【0045】
こうして、図5に示すように、出力フォームテンプレートからそれに対応する入力フォームが生成され、両者が表示される。この時点では、作成された入力フォームは、出力フォームテンプレートと同等の配置となっている。しかし、入力フォームが出力フォームと同様の形式である必要はなく、より入力に適した、すなわち入力効率の良い入力フォームが求められる。
【0046】
そこで、本実施形態においては、生成されたテキストフィールドやその他のオブジェクトの編集を可能とする。
【0047】
図8は、図5に示したフォーム作成画面における入力フィールド編集処理例を示す図である。
【0048】
図8では、図5に示した入力フィールドについて、テキストフィールド及び文字列オブジェクトの位置を変更し、入力の操作性を改善している。すなわち、生成されたテキストフィールドを移動して整列させ、表示オブジェクト(文字列)の内容を変更している(図8では、「NO」→「番号」、「様」→「顧客名」、「ご住所」→「住所」のように変更している)。
【0049】
ここで、入力フォームが所望のものとなった場合はいったんこのファイルは、オペレータの操作により(本例では、メニューバー402の「保存」ボタンを指示することにより)セーブされる(本例では、外部記憶装置14に格納される)。上記では、読み込んだ出力フォームファイルに基づいて入力フォームを生成しこれを編集する手順を示したが、既存の入力フォームファイルを読み込んでこれに編集を加えることももちろん可能である。
【0050】
以上のようにして、入力用フォームが完成し、データがセーブされると、モード変更ボタン701の操作により、編集モードから実行モード901(図9参照)への変更が可能となる。上述した入力フォームの作成および編集は編集モードでの作業である。
【0051】
一方、作成された入力フォームを用いて実際にデータを入力し、これを印刷する場合には、実行モードに移行させる。実行モードへの移行が可能なのは、ファイル読込操作において入力フォームのファイルを読み込んだ場合や、作成、もしくは編集した入力フォームを保存した後である。
【0052】
さて、実行モードでは、図9に示すように、ウインドウ内にはメニューバー402Aが表示される。メニューバー402Aでは、印刷ボタン902が追加され、印刷処理を選択することが可能となる。なお、印刷ボタンは編集モードでは機能しない為、選択不可の状態となっている(本例では、図5に示すように印刷ボタンそのものを表示しない)。
【0053】
実行モードでは、作成された入力フォームに対し、実際のデータ入力が可能であり、生成されたテキストフィールドに対してキーボード16よりデータの入力を行える。
【0054】
図9は実行モードにおいて入力フォーム内のテキストフィールドにデータを入力した状態を示す。ここで、印刷ボタン902を選択すると、テキストフィールドに入力されたデータは、図7に示されたテキストフィールドを示すデータとマージされ(すなわちテキストフィールドの名称と入力されたデータが対応付けられ)、図3で示した形式のキーと値とのペアを記述した、いわゆる後づけデータが作成される。そして、この後づけデータを出力フォームテンプレートとマージしてプリンタ20によって印刷することにより、帳票がえられる。
【0055】
なお、上記実施形態では、出力フォーム上のテキストフィールドに関わる編集作業として、テキストフィールドの移動を示したが、編集作業はこれに限られるものではない。例えば、出力フォーム上のテキストフィールドの属性(数値、文字列)やボックスの大きさ等を変更可能とすることもできる。
【0056】
図10は、図8に示したフォームに対する自動計算フィールド作成編集状態を説明する図であり、図8に示したフォーム中の合計ボタン1001に対する自動計算式設定処理状態に対応する。
【0057】
図10において、テーブルのカラムの合計を表示する合計ボタン1001を選択指示すると、属性シート1002がディスプレイ15の編集画面上に表示され、合計ボタン1001の属性のリストが表示される。本実施形態では、属性のリストとして、種類が「TextField」、名前が「TextField1」、X座標が「351」、Y座標が「435」、幅が「71」、高さが「27」であることを示している。
【0058】
このような表示状態で、マウス等でメニューから計算式編集メニューを選択すると、ボタンに関する動作を規定するための計算式確認パネルがディスプレイ15上に表示される。
【0059】
図11は、図1に示したディスプレイ15上に表示される計算式確認パネルの一例を示す図である。
【0060】
図11において、10−1はフィールド名称一覧で、読み込んだ印刷用テンプレートに記述されているフィールド名称の一覧を全て表示する。10−2はカラム名称一覧で、読み込んだ印刷用テンプレートに記述されているテーブルのカラム名称の一覧を全て表示する。
【0061】
10−3は計算式設定ボタンで、数値ボタン「0」〜「9」と、演算ボタン「+」,「−」,「*」,「/」と、演算式制御ボタン「(」,「)」と、設定した置数等を消去する消去ボタン「CE」と、小数点を入力する小数点ボタン「.」と、合成を計算する計算ボタン「Sum」と、平均を計算する計算ボタン「Avg」を備えている。
【0062】
10−4はフィールド名称で、選択状態にあるフィールドの名称が表示される。なお、現在図10に示した合計ボタン1001が選択されているので、図11の表示例では、フィールド名称で10−4には、「TextField1」が選択状態として表示されている。
【0063】
10−5は計算式で、上記印刷用テンプレートに記述されている計算式がある場合には、当該計算式が表示され、計算式がない場合には、計算式を示すテキストは表示されない。図11に示す例では、計算式10−5とフィールド名称10−4からなる組は、名称「ColumnName5」で示されるテーブルカラムの値の合計を計算し、フィールド「TextField1」に代入することを示している。
【0064】
なお、上記印刷用テンプレートに記述されている計算式がある場合には、計算式は編集不可となる。また、上記印刷用テンプレートに記述されている計算式がない場合には、計算式10−5に対して、所望の計算式が編集可能となり、フィールド名称10−1またはテーブルカラム名称10−2を選択すると、選択した文字列がテキスト10−5に追加され、計算式設定ボタン10−3中の各ボタンを選択すると、各ボタンに対応した動作がテキスト10−5に反映される。
【0065】
計算式10−5が表示された状態にして、チェックボタン(Check)10−6を選択すると、表示された計算式の文法がチェックされて、真偽結果が結果10−9に表示される。図11に示す例では、計算式が文法的に正しいと判断されて、結果10−9には、「The Expression is Valid」が表示されている状態に対応する。
【0066】
そして、計算式が妥当な場合に、セットボタン(Set)10−7を選択すると、計算式10−5に表示されているユーザにより設定された新たな計算式が入力用フォームで実行可能なスクリプト言語の計算式に変換され、該入力用フォームに埋め込まれる(計算式の編集処理)。そして、選択ボタン(OK)10−8を選択すると、図11に示した計算式確認パネルがクローズされる。
【0067】
以下、図12に示すフローチャートを参照して、図11に示した入力用フォームで実行可能なスクリプト言語の計算式への変換処理について説明する。
【0068】
図12は、本発明に係る情報処理装置における第2のデータ処理手順の一例を示すフローチャートであり、合計ボタン1001に設定される、すなわち、計算式10−5に表示されているユーザにより設定された新たな計算式が入力用フォームで実行可能なスクリプト言語の計算式への変換処理手順に対応する。なお、(S11−1)〜(S11−8)は各ステップを示す。
【0069】
ステップS11−1で、チェックボタン10−6が選択指示されると、ステップS11−2で、計算式10−5に設定された計算式をCPU11が読み取り、計算式の文法を後述するような文法チェックリストに従いチェックし、計算式の文法が妥当な場合に、ステップS11−3で、計算式中のフィールド名称およびテーブルのカラム名称を切り出す。
【0070】
そして、ステップS11−4で、切り出したフィールド名称およびテーブルのカラム名称をスクリプト言語で使用する形式に変換する。次に、ステップS11−5で、計算式中の項および演算子をそれぞれ対応するスクリプト言語の項および演算子に変換し、実行可能なスクリプト言語の関数を生成する。
【0071】
次に、ステップS11−6で、入力用フォームの対応するフィールドにスクリプト言語の実行を行わせる属性を付与する。そして、ステップS11−7で、ステップS11−4で生成したスクリプト言語を埋め込み、ステップS11−8で、処理を終了する。
【0072】
なお、計算式編集パネルは、ボタン配置時だけでなく、編集中のいつでもマウス等の操作によって開き、設定を変更することができる。
【0073】
以下、図12に示したステップS11−2における計算式に対する文法チェックに使用する文法例について説明する。
【0074】
▲1▼構成される計算式全体(Production)
構成される計算式全体は計算式を変数に代入した式から構成される。
【0075】
▲2▼計算式(Expression)
計算式は括弧,数値,変数,演算子,計算式から構成される。
【0076】
▲3▼括弧(Parenthesis)
計算式では2種類の括弧「(」,「)」を使用する。開き括弧「(」および閉じ括弧「)」の組は一対でマッチしなければならない。一組の括弧は計算式全体を囲むことができる。括弧の組がマッチしない場合は、文法エラーとなる。
【0077】
▲4▼数値(Number)
数値はスクリプト言語で使用できる数値である。
【0078】
例えばスクリプト言語として、Java(登録商標)Script言語を使用する場合、数値はJava(登録商標)Script言語で使用可能な正数型または浮動小数点の数値と同じである。正数型の数値は8進数、10進数、16進数のJava(登録商標)Script言語の形式である。数値の形式でエラーがある場合は文法チェックでエラーとなる。
【0079】
▲5▼変数(Variable)
使用できる変数はフィールド名称およびテーブルのカラム名称の2種類である。
【0080】
テーブルのカラム名称はテーブルのセルに対しては設定できない。変数名には英数字および「_」を使用できる。変数名の先頭には数値を使用することはできない。
【0081】
▲6▼演算子(Operator)
演算子は単項演算子(unary operator)または二項演算子(binary operator)から構成される。単項演算子は、「_」,「Sum」,「Avg」である。なお、「_」演算子は変数の符号を反転する。「Sum」演算子はテーブルのカラム変数に対して適用され、テーブルのカラムの合計を計算する。「Avg」演算子はテーブルのカラム変数に対して適用され、テーブルのカラムの平均を計算する。二項演算子は四則演算「+」,「−」,「*」,「/」である。
【0082】
単項演算子は優先順位が最も高い。単項演算子は右から左に結合する。二項演算子の「*」および「/」は他の「+」および「−」よりも高い優先順位を持つ。二項演算子は左から右に結合する。変数「0」で割られた場合は、文法チェックでエラーとなる。
【0083】
以下、図11に示した計算式確認パネル等の操作により作成されたフォームの実行モード処理例について説明する。
【0084】
ここで、入力用フォームが所望のものとなった場合は一旦このファイルは、オペレータの操作によりメモリにセーブされる。図9に示されるメニューバーには、実行モード変更の手段が配置されている。これまで行った作業は、編集モードであり、入力用フォームの作成および編集を行ったものである。
【0085】
これに対して、実行モードへの変更を行うことができる。実行モードでは、図9に示した印刷ボタン902が選択可能状態となる。なお、印刷ボタン902は、編集モードでは機能しないため、選択不可の状態であった。実行モードでは、作成された入力用フォームに対し、実際のデータ入力が可能である。生成されたテキストに対して、データの入力を行う。この状況は、図13に示される。
【0086】
図13は、本発明に係る情報処理装置におけるフォーム処理状態を説明する図であり、図1に示したディスプレイ15上に実行モード中の入力フォームへのデータ入力状態に対応する。
【0087】
図13において、テーブルの第1行12−1は、コードが「110」、品名が「EOS(商品名)」,単価が「520」、数量が「1」、小計が「520」のデータが入力されている。同様にテーブルの第2行12−2には、コードが「111」、品名が「IXY(商品名)」,単価が「400」、数量が「1」、小計が「400」のデータが入力されている。この入力が行われたとき、スクリプトの実行により、第1行12−1の小計「520」と、第2行12−2の小計「400」との合計額「920」が計算され、小計の合計を表示する合計フィールド12−3には「920」が自動的に表示される。
【0088】
すべてのデータを入力後、印刷ボタン12−4を選択すると、図7に示されたテキストフィールドを示すデータとマージされ、図3に示した形式のキーと値のペアのいわゆる後付データが作成される。
【0089】
このとき、スクリプト言語により自動的に計算された結果は破棄され、後付データを出力フォームテンプレートとマージすることにより、後付データから計算式により印刷データが再計算され、印刷された帳票が得られる。
【0090】
上記実施形態によれば、あらかじめ作成された入力フォームの未定義フィール度に対して、データ入力段階で、ユーザが意図する計算式を定義して、入力データにその計算式結果を反映させた帳票を印刷処理することができる。
【0091】
したがって、従来のような1つのフィールドの定義を変更する際に、全てのフィールドの定義処理等を行うことなく、簡単な操作で、適時に修正編集してユーザが意図する入力フォームへカスタマイズすることできる。
【0092】
以下、図14に示すメモリマップを参照して本発明に係る情報処理装置で読み出し可能なデータ処理プログラムの構成について説明する。
【0093】
図14は、本発明に係る情報処理装置で読み出し可能な各種データ処理プログラムを格納する記憶媒体のメモリマップを説明する図である。
【0094】
なお、特に図示しないが、記憶媒体に記憶されるプログラム群を管理する情報、例えばバージョン情報,作成者等も記憶され、かつ、プログラム読み出し側のOS等に依存する情報、例えばプログラムを識別表示するアイコン等も記憶される場合もある。
【0095】
さらに、各種プログラムに従属するデータも上記ディレクトリに管理されている。また、各種プログラムをコンピュータにインストールするためのプログラムや、インストールするプログラムが圧縮されている場合に、解凍するプログラム等も記憶される場合もある。
【0096】
本実施形態における図6,図12に示す機能が外部からインストールされるプログラムによって、ホストコンピュータにより遂行されていてもよい。そして、その場合、CD−ROMやフラッシュメモリやFD等の記憶媒体により、あるいはネットワークを介して外部の記憶媒体から、プログラムを含む情報群を出力装置に供給される場合でも本発明は適用されるものである。
【0097】
以上のように、前述した実施形態の機能を実現するソフトウエアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、本発明の目的が達成されることは言うまでもない。
【0098】
この場合、記憶媒体から読み出されたプログラムコード自体が本発明の新規な機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。
【0099】
プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク,ハードディスク,光ディスク,光磁気ディスク,CD−ROM,CD−R,磁気テープ,不揮発性のメモリカード,ROM,EEPROM等を用いることができる。
【0100】
また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0101】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0102】
上記実施形態によれば、出力用フォームデータから入力用フォームを自動生成することを可能とし、ユーザにおける入力フォーム作成の負荷を軽減することができるとともに、印刷用フォームデータから自動生成された入力フォームの編集を可能とし、データ入力効率の良い適切な入力フォームの作成を容易にすることができる。
【0103】
【発明の効果】
以上説明したように、本発明によれば、選択されて読み出されるテンプレートで定義されている各数値入力フィールドに対するデータ入力中に、前記複数の数値入力フィールド中で未定義となっているいずれかの数値入力フィールドを判別し、未定義であると判別された数値入力フィールドに対して、スクリプト言語に基づく所定の計算式を定義して前記テンプレートの未定義の数値入力フィールドに埋め込み、該埋め込まれたスクリプト言語に基づく所定の計算式に基づく計算結果を該当する数値入力フィールドの入力データに反映させるので、テンプレートを利用して数値入力フィールドに数値データを入力している状態で、定義済みの数値入力フィールドに対してはその計算式を確認したり、未定義の数値入力フィールドに対してユーザが意図する計算式をスクリプト言語で直接定義して、該定義された計算式が埋め込まれた数値入力フィールドに対して入力される数値入力データを反映させた帳票処理を自在に行うことができるという効果を奏する。
【図面の簡単な説明】
【図1】本発明の一実施形態を示す情報処理装置の構成を説明するブロック図である。
【図2】図1に示した情報処理装置の外部記憶装置14で管理される印刷用フォームのテンプレート例を示す図である。
【図3】図2に示したフォームテンプレートに合成される後付けデータの構成例を示す図である。
【図4】図1に示した外部記憶装置に格納されたフォームテンプレートデータのフォーマット例の概要を示す図である。
【図5】図1に示したディスプレイに表示される入力フォーム作成ウインドウの表示例を示す図である。
【図6】本発明に係る情報処理装置における第1のデータ処理手順の一例を示すフローチャートである。
【図7】図4に示した可変データフィールドに対応するテキストフィールド情報の保持例を示す図である。
【図8】図5に示したフォーム作成画面における入力フィールド編集処理例を示す図である。
【図9】図5に示したフォーム作成画面における実行モード時の入力フィールド編集処理例を示す図である。
【図10】図8に示したフォームに対する自動計算フィールド作成編集状態を説明する図である。
【図11】図1に示したディスプレイ上に表示される計算式確認パネルの一例を示す図である。
【図12】本発明に係る情報処理装置における第2のデータ処理手順の一例を示すフローチャートである。
【図13】本発明に係る情報処理装置におけるフォーム処理状態を説明する図である。
【図14】本発明に係る情報処理装置で読み出し可能な各種データ処理プログラムを格納する記憶媒体のメモリマップを説明する図である。
【符号の説明】
11 CPU
12 ROM
13 RAM
14 外部記憶装置
15 ディスプレイ
16 キーボード
17 マウス
20 プリンタ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an information processing apparatus, a form processing method, a computer-readable storage medium, and a program that enable an input form to be automatically generated from output form data, and reduce the load of creating an input form on a user. It is.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, there has been known a printing system that merges postscript data describing a variable data portion with an output form created in advance, such as a form, and prints it.
[0003]
Generally, in this type of printing system, since the quality of printing is emphasized, an output form for printing is first created on the information processing apparatus, and post-installation data is created for this output form by some method, and Combine with output form.
[0004]
Here, regarding the input and creation of variable data corresponding to the output form, the user of the system has constructed a unique input system in accordance with the task.
[0005]
As the number of forms to be processed on such a system increases, developing a data input form for each form becomes a burden on the user.
[0006]
At the same time, the operability of the input form is also required to be improved, and the load involved in developing the input form is only increasing.
[0007]
Further, as described in Japanese Patent Application Laid-Open No. 2001-101327, an apparatus using a template has been proposed to reduce such a burden.
[0008]
When the template is used, there is a type having a function of setting a calculation formula to be calculated in advance in each field and automatically inputting a calculation result with respect to an input numerical value.
[0009]
[Problems to be solved by the invention]
However, even when using a template, there are cases where it is desired to perform some modification or editing, such as creating a new spreadsheet field. In such a case, the template itself must be newly created from the beginning. In such cases, it is necessary to perform operations such as direct calculation by a user and inputting a numerical value as text, and it has been pointed out that such a new calculation item cannot be easily edited.
[0010]
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to provide a method of inputting a plurality of numerical values during data input to each numerical value input field defined in a template which is selected and read. Any undefined numeric input field in the field is determined, and a predetermined formula based on a scripting language is defined for the determined undefined numeric input field to define the undefined value of the template. By embedding in the numerical input field of the definition, and reflecting the calculation result based on the predetermined calculation formula based on the embedded script language in the input data of the corresponding numerical input field, the numerical data is stored in the numerical input field using the template. While entering a value, check the formula for the defined numeric input field. A calculation formula intended by the user for an undefined numeric input field was directly defined in the script language, and the numeric input data input to the numeric input field in which the defined calculation formula was embedded was reflected. An object of the present invention is to provide an information processing apparatus, a form processing method, a computer-readable storage medium, and a program, which are excellent in convenience and operability that can perform form processing freely.
[0011]
[Means for Solving the Problems]
A first invention according to the present invention comprises storage means for storing a form printing template in which a plurality of numerical input fields can be defined, and each numerical input field defined by the template selected and read from the storing means. An information processing apparatus for performing a form printing process by synthesizing predetermined data input with respect to the form data of the template and form data of the template, wherein each numerical value defined in the template selected and read from the storage means Determining means for determining any of the undefined numeric input fields among the plurality of numeric input fields during data input to the input fields (a form processing performed by CPU 11 shown in FIG. 1 read from external storage device 14 or the like); (Corresponding to a configuration in which the determination process is performed based on a program)). Calculation formula embedding means for defining a predetermined calculation formula based on the script language for the determined numeric input field and embedding it in the undefined numeric input field of the template (the CPU 11 shown in FIG. Etc.) and a calculation result based on a predetermined calculation formula based on a script language embedded by the calculation formula embedding means into input data of a corresponding numerical value input field. A form control means for reflecting (corresponding to a configuration in which the CPU 11 shown in FIG. 1 performs reflection processing based on a form processing program read from the external storage device 14 or the like).
[0012]
A second invention according to the present invention is a calculation formula confirming means for displaying a calculation formula defined in a numerical value input field determined to have been defined by the determination means in a predetermined calculation formula based on the script language. (Corresponding to a configuration in which the CPU 11 shown in FIG. 1 performs a confirmation process based on a form processing program read from the external storage device 14 or the like).
[0013]
According to a third aspect of the present invention, there is provided an instruction unit for instructing execution of printing after reflecting input data input to a corresponding numerical value input field by the form control unit, and based on an instruction from the instruction unit. A print control means for synthesizing the input data and the form data of the template to output a form printing process from a printing unit (the CPU 11 shown in FIG. 1 performs print control based on a form processing program read from an external storage device 14 or the like) (Corresponding to the configuration described above).
[0014]
A fourth invention according to the present invention comprises storage means for storing a form printing template in which a plurality of numerical input fields can be defined, and each numerical input field defined by the template selected and read from the storing means. A form processing method in an information processing apparatus for performing form printing processing by synthesizing predetermined data input to the form and form data of the template, the form processing being defined by a template selected and read from the storage unit. A discriminating step (not shown) for discriminating any of the undefined numeric input fields among the plurality of numeric input fields during the data input to each of the numerical input fields. For a numeric input field that has been determined to be A calculation formula embedding step (step S11-7 shown in FIG. 12) for defining a formula and embedding it in an undefined numerical value input field of the template, and a predetermined calculation formula based on the script language embedded by the calculation formula embedding step. A control step (not shown) of reflecting the calculation result based on the input data of the corresponding numerical value input field.
[0015]
A fifth invention according to the present invention is a calculation formula confirming step of displaying a calculation formula defined in the numerical value input field determined to have been defined in the determination step by a predetermined calculation formula based on the script language. (Not shown).
[0016]
A sixth invention according to the present invention is based on an instruction step of instructing print execution after reflecting input data input to a corresponding numerical value input field by the form control step, and based on an instruction by the instruction step. A print control step (not shown) of combining the input data and the form data of the template to output a form printing process from a printing unit.
[0017]
A seventh invention according to the present invention is characterized in that a program for realizing the form processing method according to any one of the fourth to sixth inventions is stored.
[0018]
An eighth invention according to the present invention is a program for realizing the form processing method according to any one of the fourth to sixth inventions.
[0019]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0020]
FIG. 1 is a block diagram illustrating a configuration of an information processing apparatus according to an embodiment of the present invention.
[0021]
In FIG. 1, reference numeral 11 denotes a CPU, which executes various processes in the system. A ROM 12 stores a control program executed by the CPU 11 and various data. A RAM 13 stores a control program executed by the CPU 11 and provides a work area for the CPU 11. Reference numeral 14 denotes an external storage device, which includes a flexible disk, a hard disk, a CD-ROM, and the like. The external storage device 14 stores a control program for causing the CPU 11 to implement the control of the present embodiment described later with reference to FIG. The control program stored in the external storage device 14 is appropriately loaded into the RAM 13 and executed by the CPU 11.
[0022]
Reference numeral 15 denotes a display, which performs various displays under the control of the CPU 11. Reference numeral 16 denotes a keyboard, and 17 denotes a pointing device (mouse in this example), which performs various operation inputs to the device. Reference numeral 18 denotes an interface to which a printer 20 is connected in the present embodiment. Reference numeral 19 denotes a bus that connects the above-described components. In FIG. 1, the external storage device 14, the printer 20, and the like may be connected via a network.
[0023]
FIG. 2 is a diagram illustrating an example of a template of a printing form managed by the external storage device 14 of the information processing apparatus illustrated in FIG.
[0024]
Creating such a form template is performed in the same manner as a normal drawing tool. However, since it is necessary to combine with the retrofit data (to be described later with reference to FIG. 3) at the time of printing, the area for loading the retrofit data is clearly shown.
[0025]
In FIG. 2, portions indicated by XXXXXX such as 102, 103, 104, and 105 are fields (variable data fields) in which variable data is to be displayed. Each variable data field is given a name. In this example, the variable data field 102 has “Sheet_No”, the variable data field 103 has “Cust_Name”, the variable data field 104 has “Cust_Adr”, and the variable data field has 105 is given a name such as “Code 1”.
[0026]
This is a fixed field for a display object other than the variable data field such as the portion indicated by 101, and is a fixed portion in the form.
[0027]
FIG. 3 is a diagram showing a configuration example of post-install data to be combined with the form template shown in FIG. In this example, for example, “12345” is displayed in the variable data field 102 (Sheet_No field) and “ABC Company” is displayed in the variable data field 103 (Cust_Name field) on the form template, and printed.
[0028]
FIG. 4 is a diagram showing an outline of a format example of the form template data stored in the external storage device 14 (hard disk in this example) shown in FIG. An identifier 301 specifies each display object. Reference numeral 302 denotes an attribute of each display object, which indicates the type of the object (for example, a display object such as a character string, a line, a Box, or an image, or a variable data field). Reference numeral 303 denotes a position of the object on the form template (form). Reference numeral 304 designates the data content of each object, for example, if it is a character string, the actual character string, and if it is variable data, the name as shown in FIG. 3 is assigned. In addition, in 305, necessary items for each object are shown in detail. This detailed item 305 stores, for example, information indicating the size of each display object or variable data field, and information indicating whether the input data is a character string or a numerical value for the variable data field.
[0029]
Next, a method of creating an input form according to the present embodiment will be described with reference to FIGS.
[0030]
FIG. 5 is a diagram showing a display example of an input form creation window displayed on the display 15 shown in FIG.
[0031]
In FIG. 5, reference numeral 401 denotes an entire window for creating an input form, and the window 401 is displayed on the display 15. A menu bar 402 has a plurality of menu buttons. An output form area 403 displays an output form template 404. Reference numeral 405 denotes an input form area for displaying and editing the input form 406.
[0032]
As shown in FIG. 5, an input form 406 is automatically generated based on the output form template 404 displayed in the output form area 403. Here, the variable data field included in the output form template 404 is replaced with a data input box. For example, in FIG. 5, the variable data field 407 has been replaced by a data entry box 408.
[0033]
Reference numeral 409 denotes a boundary between the output form template display area and the input form creation area, and can be resized.
[0034]
Next, a procedure for generating an input form according to the present embodiment will be described.
[0035]
A file reading button is arranged in the menu button group of the menu bar 402. When this button is selected, a selection panel for selecting a general file is displayed. On this file selection screen, the user selects a file of the output form template that has already been created.
[0036]
In this example, it is assumed that a file in the file format shown in FIG. 4 is read and the output form template 404 is reproduced in the output form area 403 as shown in FIG. Note that the output form area 403 is a display-only area and cannot perform operations such as editing. The input form is automatically generated at the same time as the output form template is reproduced, and is displayed as the input form 406 in the input form area 405 as shown in FIG. The above operation will be described with reference to FIG.
[0037]
FIG. 6 is a flowchart illustrating an example of a first data processing procedure in the information processing apparatus according to the present invention, and corresponds to an input form generation procedure according to the present embodiment. Note that (S501) to (S509) indicate each step, and the CPU 11 executes the form creation processing program stored in the external storage device 14 shown in FIG.
[0038]
In FIG. 6, in step S501, the output form template file is read again. Then, in step S502 and thereafter, each record of the output form template file is analyzed.
[0039]
First, in step S502, records are read one by one from file data as shown in FIG. Then, in step S503, it is determined whether the record is a variable data input field. This determination is made by checking the item of the attribute 302 in FIG.
[0040]
If the record is a variable data input field, the process advances to step S504 to generate a text field for the record. Then, in step S505, the generated text field is stored in the memory (RAM 13) as an input field record.
[0041]
FIG. 7 is a diagram showing an example of holding text field information corresponding to the variable data field shown in FIG.
[0042]
On the other hand, the record as shown in FIG. 7 is held by the storage processing in step S505.
[0043]
On the other hand, if it is determined in step S503 that the field is not a variable data input field, the process advances to step S506. In step S506, objects (lines, character strings, images, etc.) similar to the display objects defined in the output form are generated.
[0044]
In step S507, the text field generated in step S504 or the object generated in step S506 is displayed on the input form. In step S508, it is determined whether all records in the output form template file have been processed. If there is an unprocessed record, the process returns to step S502, and the above process is repeated. On the other hand, if all records have been processed, this processing ends.
[0045]
In this way, as shown in FIG. 5, an input form corresponding to the output form template is generated, and both are displayed. At this point, the created input form has the same arrangement as the output form template. However, the input form does not need to be the same as the output form, and an input form that is more suitable for input, that is, has high input efficiency, is required.
[0046]
Thus, in the present embodiment, the generated text field and other objects can be edited.
[0047]
FIG. 8 is a diagram showing an example of an input field editing process on the form creation screen shown in FIG.
[0048]
8, the positions of the text field and the character string object in the input field shown in FIG. 5 are changed to improve the input operability. That is, the generated text fields are moved and aligned, and the contents of the display object (character string) are changed (in FIG. 8, “NO” → “number”, “sama” → “customer name”, “ Address) → "address".
[0049]
Here, if the input form becomes a desired one, this file is once saved by the operation of the operator (in this example, by instructing a “save” button on the menu bar 402) (in this example, Stored in the external storage device 14). In the above, the procedure for generating an input form based on the read output form file and editing the input form has been described. However, it is of course possible to read an existing input form file and edit the input form file.
[0050]
As described above, when the input form is completed and the data is saved, the mode can be changed from the edit mode to the execution mode 901 (see FIG. 9) by operating the mode change button 701. Creation and editing of the input form described above are operations in the edit mode.
[0051]
On the other hand, when data is actually input using the created input form and the data is printed, the mode is shifted to the execution mode. The transition to the execution mode is possible after reading the input form file in the file reading operation or after saving the created or edited input form.
[0052]
By the way, in the execution mode, a menu bar 402A is displayed in the window as shown in FIG. In the menu bar 402A, a print button 902 is added, and a print process can be selected. Note that the print button does not function in the edit mode, and thus cannot be selected (in this example, the print button itself is not displayed as shown in FIG. 5).
[0053]
In the execution mode, actual data can be input to the created input form, and data can be input from the keyboard 16 to the generated text field.
[0054]
FIG. 9 shows a state in which data is input to a text field in the input form in the execution mode. Here, when the print button 902 is selected, the data input to the text field is merged with the data indicating the text field shown in FIG. 7 (that is, the name of the text field is associated with the input data), So-called postscript data that describes a key-value pair in the format shown in FIG. 3 is created. The attached data is merged with the output form template and printed by the printer 20, thereby obtaining a form.
[0055]
In the above-described embodiment, the movement of the text field is shown as the editing work related to the text field on the output form, but the editing work is not limited to this. For example, the attributes (numerical value, character string) of the text field on the output form, the size of the box, and the like can be changed.
[0056]
FIG. 10 is a diagram for explaining the automatic calculation field creation and editing state for the form shown in FIG. 8, and corresponds to the automatic calculation formula setting processing state for the total button 1001 in the form shown in FIG.
[0057]
In FIG. 10, when a total button 1001 for displaying the total of the columns of the table is selected and indicated, an attribute sheet 1002 is displayed on the edit screen of the display 15, and a list of the attributes of the total button 1001 is displayed. In the present embodiment, as the attribute list, the type is “TextField”, the name is “TextField1”, the X coordinate is “351”, the Y coordinate is “435”, the width is “71”, and the height is “27”. It is shown that.
[0058]
In such a display state, when the calculation formula editing menu is selected from the menu with a mouse or the like, a calculation formula confirmation panel for defining the operation related to the button is displayed on the display 15.
[0059]
FIG. 11 is a diagram showing an example of a calculation formula confirmation panel displayed on the display 15 shown in FIG.
[0060]
In FIG. 11, reference numeral 10-1 denotes a field name list, which displays all field name lists described in the read print template. A column name list 10-2 displays a list of all column names of the table described in the read print template.
[0061]
Reference numeral 10-3 denotes a calculation formula setting button. Numeric buttons "0" to "9", calculation buttons "+", "-", "*", "/", and calculation formula control buttons "(", ")" , An erasing button “CE” for erasing a set numeral, etc., a decimal point button “.” For inputting a decimal point, a calculation button “Sum” for calculating synthesis, and a calculation button “Avg” for calculating an average. Have.
[0062]
A field name 10-4 indicates the name of the selected field. Since the total button 1001 shown in FIG. 10 is currently selected, “TextField1” is displayed as a selected state in the field name 10-4 in the display example of FIG.
[0063]
10-5 is a calculation formula. If there is a calculation formula described in the printing template, the calculation formula is displayed. If there is no calculation formula, text indicating the calculation formula is not displayed. In the example illustrated in FIG. 11, a set including the calculation formula 10-5 and the field name 10-4 indicates that the sum of the values of the table column indicated by the name “ColumnName5” is calculated and assigned to the field “TextField1”. ing.
[0064]
When there is a calculation formula described in the printing template, the calculation formula cannot be edited. If there is no calculation formula described in the printing template, a desired calculation formula can be edited with respect to the calculation formula 10-5, and the field name 10-1 or the table column name 10-2 can be changed. When selected, the selected character string is added to the text 10-5, and when each button in the calculation formula setting button 10-3 is selected, the operation corresponding to each button is reflected in the text 10-5.
[0065]
When the calculation formula 10-5 is displayed and the check button (Check) 10-6 is selected, the grammar of the displayed calculation formula is checked, and the true / false result is displayed in the result 10-9. In the example illustrated in FIG. 11, it is determined that the calculation formula is grammatically correct, and the result 10-9 corresponds to a state in which “The Expression is Valid” is displayed.
[0066]
Then, when the calculation formula is appropriate, when the set button (Set) 10-7 is selected, a new calculation formula set by the user displayed in the calculation formula 10-5 can be executed in the input form using the script. It is converted into a language calculation formula and embedded in the input form (calculation formula editing process). When the selection button (OK) 10-8 is selected, the calculation formula confirmation panel shown in FIG. 11 is closed.
[0067]
Hereinafter, with reference to the flowchart shown in FIG. 12, a description will be given of a process of converting a script language into a calculation formula executable in the input form shown in FIG.
[0068]
FIG. 12 is a flowchart showing an example of the second data processing procedure in the information processing apparatus according to the present invention, which is set on the total button 1001, that is, set by the user displayed in the calculation formula 10-5. The new calculation formula corresponds to a processing procedure for converting into a script language calculation formula that can be executed in the input form. (S11-1) to (S11-8) indicate each step.
[0069]
In step S11-1, when the check button 10-6 is instructed to be selected, in step S11-2, the CPU 11 reads the calculation formula set in the calculation formula 10-5, and interprets the grammar of the calculation formula as described later. A check is performed according to the checklist, and if the grammar of the calculation formula is valid, the field names in the calculation formula and the column names of the table are cut out in step S11-3.
[0070]
In step S11-4, the extracted field names and column names of the table are converted into a format used in a script language. Next, in step S11-5, the terms and operators in the calculation formula are converted into the corresponding terms and operators in the script language, respectively, to generate executable script language functions.
[0071]
Next, in step S11-6, an attribute for executing the script language is assigned to the corresponding field of the input form. Then, in step S11-7, the script language generated in step S11-4 is embedded, and in step S11-8, the process ends.
[0072]
Note that the calculation formula editing panel can be opened and changed by operating the mouse or the like at any time during editing, not only when buttons are arranged.
[0073]
Hereinafter, an example of a grammar used for checking the grammar of the calculation formula in step S11-2 shown in FIG. 12 will be described.
[0074]
{Circle around (1)} Computational formula (Production)
The entire calculation formula is composed of formulas obtained by substituting the calculation formula into variables.
[0075]
(2) Calculation formula (Expression)
The formula consists of parentheses, numerical values, variables, operators, and formulas.
[0076]
(3) Parenthesis
In the calculation formula, two kinds of parentheses "(", ")" are used. The set of open parenthesis "(" and close parenthesis ")" must match in pairs. A set of parentheses can enclose the entire calculation. If the parentheses do not match, a syntax error occurs.
[0077]
(4) Numerical value (Number)
The numbers are numbers that can be used in scripting languages.
[0078]
For example, when the JavaScript language is used as the script language, the numeric values are the same as the positive or floating-point numeric values that can be used in the JavaScript language. Positive numbers are in the form of octal, decimal, and hexadecimal numbers in the Java (registered trademark) Script language. If there is an error in the numeric format, an error occurs in the syntax check.
[0079]
(5) Variable (Variable)
There are two types of variables that can be used: field names and table column names.
[0080]
Table column names cannot be set for table cells. Variable names can be alphanumeric and "_". Variable names cannot start with a number.
[0081]
(6) Operator
The operator is composed of a unary operator or a binary operator. Unary operators are “_”, “Sum”, and “Avg”. Note that the "_" operator inverts the sign of a variable. The "Sum" operator is applied to table column variables to calculate the sum of table columns. The "Avg" operator is applied to table column variables to calculate the average of the table columns. Binary operators are four arithmetic operations "+", "-", "*", and "/".
[0082]
Unary operators have the highest precedence. Unary operators associate from right to left. The binary operators “*” and “/” have higher precedence than other “+” and “−”. Binary operators combine from left to right. If divided by the variable "0", an error occurs in the grammar check.
[0083]
Hereinafter, an example of the execution mode processing of a form created by operating the calculation formula confirmation panel shown in FIG. 11 will be described.
[0084]
Here, when the input form becomes a desired one, this file is temporarily saved in the memory by the operation of the operator. In the menu bar shown in FIG. 9, means for changing the execution mode are arranged. The work performed so far is the edit mode, in which the input form is created and edited.
[0085]
On the other hand, the mode can be changed to the execution mode. In the execution mode, the print button 902 shown in FIG. 9 is in a selectable state. Note that the print button 902 does not function in the edit mode, and thus cannot be selected. In the execution mode, actual data input can be performed on the created input form. Input data to the generated text. This situation is shown in FIG.
[0086]
FIG. 13 is a diagram for explaining a form processing state in the information processing apparatus according to the present invention, and corresponds to a data input state to the input form in the execution mode on the display 15 shown in FIG.
[0087]
In FIG. 13, the first row 12-1 of the table includes data of code “110”, product name “EOS (product name)”, unit price “520”, quantity “1”, and subtotal “520”. Has been entered. Similarly, in the second row 12-2 of the table, data of code “111”, product name “IXY (product name)”, unit price “400”, quantity “1”, and subtotal “400” are input. Have been. When this input is performed, the total amount “920” of the subtotal “520” of the first row 12-1 and the subtotal “400” of the second row 12-2 is calculated by executing the script, and "920" is automatically displayed in the total field 12-3 for displaying the total.
[0088]
When the print button 12-4 is selected after inputting all the data, the data is merged with the data indicating the text field shown in FIG. 7, and so-called postscript data of a key-value pair in the format shown in FIG. 3 is created. Is done.
[0089]
At this time, the result automatically calculated by the script language is discarded, and the postscript data is merged with the output form template, so that the print data is recalculated from the postscript data using a calculation formula, and a printed form is obtained. Can be
[0090]
According to the above-described embodiment, a form in which a calculation formula intended by the user is defined in the data input stage with respect to the undefined feel of the input form created in advance, and the calculation formula result is reflected in the input data. Can be printed.
[0091]
Therefore, when changing the definition of one field as in the past, it is necessary to modify and edit in a timely manner and customize the input form intended by the user by a simple operation without performing definition processing of all the fields. it can.
[0092]
Hereinafter, the configuration of a data processing program readable by the information processing apparatus according to the present invention will be described with reference to a memory map shown in FIG.
[0093]
FIG. 14 is a diagram illustrating a memory map of a storage medium that stores various data processing programs that can be read by the information processing device according to the present invention.
[0094]
Although not shown, information for managing a group of programs stored in the storage medium, for example, version information, a creator, and the like are also stored, and information dependent on the OS or the like on the program reading side, for example, a program is identified and displayed. Icons and the like may also be stored.
[0095]
Further, data dependent on various programs is also managed in the directory. In addition, a program for installing various programs on a computer or a program for decompressing a program to be installed when the program to be installed is compressed may be stored.
[0096]
The functions shown in FIGS. 6 and 12 in this embodiment may be performed by a host computer by a program installed from the outside. In this case, the present invention is applied even when a group of information including a program is supplied to the output device from a storage medium such as a CD-ROM, a flash memory, or an FD, or from an external storage medium via a network. Things.
[0097]
As described above, the storage medium storing the program codes of the software for realizing the functions of the above-described embodiments is supplied to the system or the apparatus, and the computer (or CPU or MPU) of the system or the apparatus stores the storage medium in the storage medium. It goes without saying that the object of the present invention is also achieved by reading and executing the program code thus obtained.
[0098]
In this case, the program code itself read from the storage medium implements the novel function of the present invention, and the storage medium storing the program code constitutes the present invention.
[0099]
As a storage medium for supplying the program code, for example, a flexible disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM, EEPROM, or the like may be used. it can.
[0100]
When the computer executes the readout program code, not only the functions of the above-described embodiments are realized, but also an OS (Operating System) running on the computer based on the instruction of the program code. It goes without saying that a part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing.
[0101]
Further, after the program code read from the storage medium is written into a memory provided on a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that a CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.
[0102]
According to the above embodiment, it is possible to automatically generate an input form from output form data, thereby reducing the load of input form creation on the user, and to automatically generate an input form from print form data. Can be edited, and creation of an appropriate input form with high data input efficiency can be facilitated.
[0103]
【The invention's effect】
As described above, according to the present invention, during data input for each numeric input field defined in the selected and read template, any of the undefined A numeric input field is determined, and a predetermined calculation formula based on a script language is defined for the numeric input field determined to be undefined and embedded in the undefined numeric input field of the template. Since the calculation result based on the predetermined calculation formula based on the script language is reflected in the input data of the corresponding numeric input field, the defined numeric input is performed while the numeric data is input in the numeric input field using the template. Check the formula for fields, or enter a value for undefined numeric input fields. Can directly define a calculation formula intended in a script language, and can freely perform a form processing reflecting numerical input data input to a numerical input field in which the defined calculation formula is embedded. It works.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an information processing apparatus according to an embodiment of the present invention.
FIG. 2 is a diagram showing an example of a template of a printing form managed by an external storage device 14 of the information processing apparatus shown in FIG.
FIG. 3 is a diagram showing a configuration example of post-install data to be combined with the form template shown in FIG. 2;
4 is a diagram showing an outline of a format example of form template data stored in an external storage device shown in FIG. 1;
FIG. 5 is a view showing a display example of an input form creation window displayed on the display shown in FIG. 1;
FIG. 6 is a flowchart illustrating an example of a first data processing procedure in the information processing apparatus according to the present invention.
FIG. 7 is a diagram showing an example of holding text field information corresponding to the variable data field shown in FIG. 4;
8 is a diagram showing an example of an input field editing process on the form creation screen shown in FIG.
FIG. 9 is a diagram showing an example of an input field editing process in an execution mode on the form creation screen shown in FIG. 5;
FIG. 10 is a diagram for explaining an automatic calculation field creation / edit state for the form shown in FIG. 8;
11 is a diagram showing an example of a calculation formula confirmation panel displayed on the display shown in FIG.
FIG. 12 is a flowchart illustrating an example of a second data processing procedure in the information processing apparatus according to the present invention.
FIG. 13 is a diagram illustrating a form processing state in the information processing apparatus according to the present invention.
FIG. 14 is a diagram illustrating a memory map of a storage medium that stores various data processing programs that can be read by the information processing apparatus according to the present invention.
[Explanation of symbols]
11 CPU
12 ROM
13 RAM
14 external storage device 15 display 16 keyboard 17 mouse 20 printer

Claims (8)

複数の数値入力フィールドが定義可能な帳票印刷用テンプレートを格納する格納手段を備え、前記格納手段から選択されて読み出されるテンプレートで定義されている各数値入力フィールドに対して入力される所定のデータと前記テンプレートのフォームデータとを合成処理して帳票印刷処理を行う情報処理装置であって、
前記格納手段から選択されて読み出されるテンプレートで定義されている各数値入力フィールドに対するデータ入力中に、前記複数の数値入力フィールド中で未定義となっているいずれかの数値入力フィールドを判別する判別手段と、
前記判別手段によりに未定義であると判別された数値入力フィールドに対して、スクリプト言語に基づく所定の計算式を定義して前記テンプレートの未定義の数値入力フィールドに埋め込む計算式埋め込み手段と、
前記計算式埋め込み手段により埋め込まれたスクリプト言語に基づく所定の計算式に基づく計算結果を該当する数値入力フィールドの入力データに反映させるフォーム制御手段と、
を備えることを特徴とする情報処理装置。
A storage means for storing a form printing template in which a plurality of numerical input fields can be defined; and predetermined data to be input for each numerical input field defined in the template selected and read from the storing means. An information processing apparatus for performing a form printing process by synthesizing the form data of the template,
Discriminating means for discriminating any of the undefined numeric input fields among the plurality of numeric input fields during data input for each numeric input field defined in the template selected and read from the storage means; When,
A calculation formula embedding unit that defines a predetermined calculation formula based on a script language and embeds it in the undefined numerical input field of the template for the numeric input field determined to be undefined by the determining unit,
Form control means for reflecting a calculation result based on a predetermined calculation formula based on a script language embedded by the calculation formula embedding means in input data of a corresponding numeric input field,
An information processing apparatus comprising:
前記判別手段によりに定義済みであると判別された数値入力フィールドに定義されている計算式を前記スクリプト言語に基づく所定の計算式で表示する計算式確認手段を有することを特徴とする請求項1記載の情報処理装置。2. A calculation formula confirming means for displaying a calculation formula defined in a numerical value input field determined to have been defined by said determination means in a predetermined calculation formula based on said script language. An information processing apparatus according to claim 1. 前記フォーム制御手段により該当する数値入力フィールドに対して入力された入力データを反映させた後、印刷実行を指示する指示手段と、
前記指示手段による指示に基づき、前記入力データと前記テンプレートのフォームデータとを合成処理して帳票印刷処理を印刷部より出力させる印刷制御手段と、
を有することを特徴とする請求項1記載の情報処理装置。
Instruction means for instructing print execution after reflecting the input data input to the corresponding numeric input field by the form control means,
Based on an instruction from the instruction unit, a print control unit that combines the input data and the form data of the template to output a form printing process from a printing unit,
The information processing apparatus according to claim 1, further comprising:
複数の数値入力フィールドが定義可能な帳票印刷用テンプレートを格納する格納手段を備え、前記格納手段から選択されて読み出されるテンプレートで定義されている各数値入力フィールドに対して入力される所定のデータと前記テンプレートのフォームデータとを合成処理して帳票印刷処理を行う情報処理装置における帳票処理方法であって、
前記格納手段から選択されて読み出されるテンプレートで定義されている各数値入力フィールドに対するデータ入力中に、前記複数の数値入力フィールド中で未定義となっているいずれかの数値入力フィールドを判別する判別ステップと、
前記判別ステップにより未定義であると判別された数値入力フィールドに対して、スクリプト言語に基づく所定の計算式を定義して前記テンプレートの未定義の数値入力フィールドに埋め込む計算式埋め込みステップと、
前記計算式埋め込みステップにより埋め込まれたスクリプト言語に基づく所定の計算式に基づく計算結果を該当する数値入力フィールドの入力データに反映させる制御ステップと、
を備えることを特徴とする帳票処理方法。
A storage means for storing a form printing template in which a plurality of numerical input fields can be defined; and predetermined data to be input for each numerical input field defined in the template selected and read from the storing means. A form processing method in an information processing apparatus that performs form printing processing by combining processing with form data of the template,
A determination step of determining any of the undefined numeric input fields among the plurality of numeric input fields during data input to each numeric input field defined in the template selected and read from the storage unit; When,
For a numeric input field determined to be undefined by the determining step, a formula embedding step of defining a predetermined formula based on a script language and embedding the formula in an undefined numeric input field of the template,
A control step of reflecting a calculation result based on a predetermined calculation formula based on a script language embedded by the calculation formula embedding step in input data of a corresponding numerical value input field,
A form processing method comprising:
前記判別ステップによりに定義済みであると判別された数値入力フィールドに定義されている計算式を前記スクリプト言語に基づく所定の計算式で表示する計算式確認ステップを有することを特徴とする請求項4記載の帳票処理方法。5. The method according to claim 4, further comprising the step of: displaying a calculation formula defined in the numerical value input field determined to have been defined in the determination step by a predetermined calculation formula based on the script language. Form processing method described. 前記フォーム制御ステップにより該当する数値入力フィールドに対して入力された入力データを反映させた後、印刷実行を指示する指示ステップと、
前記指示ステップによる指示に基づき、前記入力データと前記テンプレートのフォームデータとを合成処理して帳票印刷処理を印刷部より出力させる印刷制御ステップと、
を有することを特徴とする請求項4記載の帳票処理方法。
After reflecting the input data input to the corresponding numeric input field by the form control step, an instruction step to instruct print execution,
A print control step of combining the input data and the form data of the template and outputting a form printing process from a printing unit based on the instruction by the instruction step;
5. The form processing method according to claim 4, comprising:
請求項4〜6のいずれかに記載の帳票処理方法を実現するプログラムを記憶したことを特徴とするコンピュータが読み取り可能な記憶媒体。A computer-readable storage medium storing a program for implementing the form processing method according to any one of claims 4 to 6. 請求項4〜6のいずれかに記載の帳票処理方法を実現することを特徴とするプログラム。A program for realizing the form processing method according to any one of claims 4 to 6.
JP2002235365A 2002-08-13 2002-08-13 Information processing apparatus, business form processing method, computer-readable storage medium, and program Pending JP2004078375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002235365A JP2004078375A (en) 2002-08-13 2002-08-13 Information processing apparatus, business form processing method, computer-readable storage medium, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002235365A JP2004078375A (en) 2002-08-13 2002-08-13 Information processing apparatus, business form processing method, computer-readable storage medium, and program

Publications (1)

Publication Number Publication Date
JP2004078375A true JP2004078375A (en) 2004-03-11

Family

ID=32019867

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002235365A Pending JP2004078375A (en) 2002-08-13 2002-08-13 Information processing apparatus, business form processing method, computer-readable storage medium, and program

Country Status (1)

Country Link
JP (1) JP2004078375A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5282160B1 (en) * 2012-09-14 2013-09-04 株式会社ミロク情報サービス Accounting book information processing apparatus, accounting book information processing apparatus control method, accounting book processing apparatus program, and recording medium
JPWO2018066266A1 (en) * 2016-10-07 2019-08-08 サトーホールディングス株式会社 Information processing apparatus, printer, program, information processing method
US20230114508A1 (en) * 2021-05-24 2023-04-13 Adaptam Inc. Method and system for spreadsheet error identification and avoidance

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5282160B1 (en) * 2012-09-14 2013-09-04 株式会社ミロク情報サービス Accounting book information processing apparatus, accounting book information processing apparatus control method, accounting book processing apparatus program, and recording medium
JPWO2018066266A1 (en) * 2016-10-07 2019-08-08 サトーホールディングス株式会社 Information processing apparatus, printer, program, information processing method
JP7046001B2 (en) 2016-10-07 2022-04-01 サトーホールディングス株式会社 Information processing system
US20230114508A1 (en) * 2021-05-24 2023-04-13 Adaptam Inc. Method and system for spreadsheet error identification and avoidance
US11977835B2 (en) * 2021-05-24 2024-05-07 Adaptam Inc. Method and system for spreadsheet error identification and avoidance

Similar Documents

Publication Publication Date Title
US8136043B2 (en) GUI generation apparatus and method for generating GUI
GB2273188A (en) Information processing system using icons
US20100077379A1 (en) Image processing apparatus, image processing method, and recording medium
US20080244424A1 (en) Source code generating device
TWI407425B (en) Method for generating object properties related to a user interface
US7519947B2 (en) Orchestration designer
EP1744255A1 (en) Document processing device and document processing method
US20070208995A1 (en) Document Processing Device and Document Processing Method
CN113010168A (en) User interface generation method based on scene tree
JP2004078375A (en) Information processing apparatus, business form processing method, computer-readable storage medium, and program
US20050010548A1 (en) Automatic file generating apparatus, method, program and record medium
JPH09237181A (en) Application developing device and application developing method
JP3697274B2 (en) Software development support device
JP3933892B2 (en) Specification creation program and computer-readable medium storing specification creation program
JP2001101327A (en) Information processing method, information processor and printing system
JPH10240732A (en) Method and device for generating html file for www
JP2007293437A (en) Component catalog creating system, component catalog creating method, program, and record medium
JP2007004239A (en) Design-support device, design-support method, and program
JP2001273125A (en) Method and system for automatically generating source program, and program recording medium therefor
JPH0954688A (en) Gui design supporting method
JP3969926B2 (en) Form creation device, form creation method, and storage medium
JPH06243223A (en) Interactive processing system
JP2002366880A (en) Device and method for frame editing and storage medium stored with computer-readable program
JP2007094453A (en) Program development support system, program development support method and program
JP2720768B2 (en) Program customization equipment