JP2001134678A - Device and method for data transform - Google Patents

Device and method for data transform

Info

Publication number
JP2001134678A
JP2001134678A JP31304499A JP31304499A JP2001134678A JP 2001134678 A JP2001134678 A JP 2001134678A JP 31304499 A JP31304499 A JP 31304499A JP 31304499 A JP31304499 A JP 31304499A JP 2001134678 A JP2001134678 A JP 2001134678A
Authority
JP
Japan
Prior art keywords
data
information
format
unit
input data
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
JP31304499A
Other languages
Japanese (ja)
Inventor
Maki Kawamura
真樹 河村
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Software Chubu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Software Chubu Ltd filed Critical NEC Software Chubu Ltd
Priority to JP31304499A priority Critical patent/JP2001134678A/en
Publication of JP2001134678A publication Critical patent/JP2001134678A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a device and a method for transforming data, which can deal with plural kinds of documents by registering format information, can automatically identify the format class of input data and can apply arbitrary format conversion such as removing printer control data corresponding to the set format information. SOLUTION: Print data sent from a host computer 1 are dispatched from a data receiving part 31 to a data analyzing part 32. While referring to document extraction information, the data analyzing part 32 identifies a print format and corresponding to that print format, a data item is extracted according to a definition set to the document extraction information. The extracted data item is dispatched to a data transforming part 33. Corresponding to that print format, the data transforming part 33 edits the dispatched data according to the definition of an output document format 42 and outputs these data to an output data part 43.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、コンピュータシ
ステムにおけるデータ変換装置およびデータ変換方法に
関する。特に、印刷データに含まれるプリンタ制御デー
タを除去し編集するデータ変換装置およびデータ変換方
法に関する。
The present invention relates to a data conversion device and a data conversion method in a computer system. In particular, the present invention relates to a data conversion device and a data conversion method for removing and editing printer control data included in print data.

【0002】[0002]

【従来の技術】コンピュータシステムにおいて、帳票と
して印刷されるデータの内容をファイルに出力する必要
が生じる場合がある。具体的には、例えば、実際に紙へ
の出力を行わずに帳票作成プログラムのテストを実施し
たいとき、大量の出力帳票を実際に紙に印刷する前にエ
ディタやブラウザのプログラムを使ってその内容を確認
したいとき、もともと帳票出力用に設計されたデータを
データベースやスプレッドシート等に取り込んで利用し
たいときなどである。
2. Description of the Related Art In a computer system, it may be necessary to output the contents of data to be printed as a form to a file. Specifically, for example, when you want to test a form creation program without actually outputting it to paper, use an editor or browser program before actually printing a large amount of output forms on paper Or when it is desired to take data originally designed for form output into a database or spreadsheet and use it.

【0003】[0003]

【発明が解決しようとする課題】このような場合、従来
技術においては、帳票毎にプログラムが作成されてい
た。その理由は、印刷データには文字や数値のデータ以
外にプリンタ制御のためのデータが含まれていることが
通常であり、そのような制御データを含んだままでは簡
単に参照したり再利用したりすることが困難なためであ
る。
In such a case, in the prior art, a program is created for each form. The reason is that print data usually includes data for printer control in addition to character and numerical data, and if such control data is included, it can be easily referenced or reused. It is because it is difficult.

【0004】しかし、このように帳票毎に変換プログラ
ムを作成することは開発および保守にコストがかかり、
また新たな帳票の変換の必要性が生じたときにもその機
能を追加するのに手間がかかるという問題があった。
However, creating a conversion program for each form in this way requires costs for development and maintenance,
In addition, there is a problem that when a new form needs to be converted, it takes time to add the function.

【0005】また、一般的なデータ変換ツールプログラ
ムは多く開発され利用されているが、プリンタ制御デー
タを含む印刷データにこれらの既存データ変換ツールプ
ログラムを適用することは困難であった。
Although many general data conversion tool programs have been developed and used, it has been difficult to apply these existing data conversion tool programs to print data including printer control data.

【0006】本発明は、上記事情に鑑みてなされたもの
であり、書式情報を登録するだけで複数種類の帳票に対
応することが可能で、入力データの書式種別を自動的に
識別することが可能で、設定される書式情報に応じてプ
リンタ制御データを除去するなど任意の書式変換を施す
ことのできるデータ変換装置およびデータ変換方法を提
供することを目的とする。
The present invention has been made in view of the above circumstances, and can correspond to a plurality of types of forms only by registering format information, and can automatically identify the format type of input data. It is an object of the present invention to provide a data conversion device and a data conversion method capable of performing an arbitrary format conversion such as removing printer control data according to format information to be set.

【0007】[0007]

【課題を解決するための手段】上記の課題を解決するた
めに、請求項1に記載の発明は、設定された情報に応じ
て入力データを変換して出力するデータ変換装置であっ
て、入力データの書式種別を識別するための条件を記憶
する識別情報記憶部と、前記書式種別に応じて前記入力
データから抽出すべき情報項目の抽出方法を記憶する抽
出情報記憶部と、前記情報項目を用いて編集するための
情報編集書式を記憶する出力書式記憶部と、前記識別情
報記憶部および前記抽出情報記憶部に設定されている情
報をもとに、前記入力データの前記書式種別を識別し、
この書式種別に応じて前記入力ファイルから前記情報項
目を抽出するデータ解析部と、このデータ解析部が抽出
した前記情報項目を用いて、前記情報編集書式に基づく
書式でデータを出力するデータ変換部とを備えることを
特徴とするデータ変換装置を要旨とする。
According to one aspect of the present invention, there is provided a data conversion apparatus for converting input data according to set information and outputting the converted data. An identification information storage unit that stores a condition for identifying a format type of data; an extraction information storage unit that stores an extraction method of an information item to be extracted from the input data according to the format type; An output format storage unit that stores an information editing format for editing using the identification information storage unit and the extraction information storage unit, based on information set in the input data, identifies the format type of the input data. ,
A data analysis unit that extracts the information item from the input file according to the format type; and a data conversion unit that outputs data in a format based on the information editing format using the information item extracted by the data analysis unit. The gist of the present invention is a data conversion device characterized by comprising:

【0008】また、請求項2に記載の発明は、前記入力
データはプリンタ制御コードを含む印刷データであり、
前記抽出情報記憶部は、前記プリンタ制御コードを含ま
ない情報項目の前記位置情報を記憶しており、前記出力
書式記憶部は、前記プリンタ制御コードを含まない前記
情報編集書式を記憶していることを特徴とする。
According to a second aspect of the present invention, the input data is print data including a printer control code,
The extracted information storage unit stores the position information of information items not including the printer control code, and the output format storage unit stores the information editing format not including the printer control code. It is characterized by.

【0009】この発明のこのような構成により、前記デ
ータ解析部が抽出する情報項目にはプリンタ制御コード
が含まれない。また、前記データ変換部は、この情報項
目とプリンタ制御コードが含まれない前記情報編集書式
とを用いて出力データを生成するため、出力データにも
プリンタ制御コードが含まれない。
[0009] With such a configuration of the present invention, the information item extracted by the data analysis unit does not include a printer control code. Further, since the data conversion unit generates output data using the information item and the information editing format that does not include a printer control code, the output data does not include a printer control code.

【0010】また、請求項3に記載の発明は、前記デー
タ解析部が前記識別情報記憶部を検索し前記入力データ
に該当する前記書式種別がみつからない場合には、書式
識別不能である旨を表す信号を発する応答部を備えるこ
とを特徴とする。
According to a third aspect of the present invention, when the data analysis unit searches the identification information storage unit and does not find the format type corresponding to the input data, it is determined that the format cannot be identified. A response unit that emits a signal representing the signal.

【0011】また、請求項4に記載の発明は、入力デー
タを通信により外部から受信するデータ受信部を備える
ことを特徴とする。
Further, the invention according to claim 4 is characterized by comprising a data receiving unit for receiving input data from outside by communication.

【0012】また、請求項5に記載の発明は、予め記憶
された書式識別情報に基づいて入力データの書式種別を
識別する第1の過程と、この第1の過程において識別さ
れた書式種別に応じて、予め記憶された情報項目抽出位
置情報に基づいて前記入力データから情報項目を抽出す
る第2の過程と、この第2の過程において抽出された情
報項目を用いて、予め記憶された情報編集書式に基づく
データ編集を行う第3の過程と、この第3の過程におい
て編集されたデータを出力する第4の過程とからなるこ
とを特徴とするデータ変換方法を要旨とする。
According to a fifth aspect of the present invention, a first step of identifying a format type of input data based on format identification information stored in advance and a format type identified in the first step are provided. Accordingly, a second step of extracting information items from the input data based on information item extraction position information stored in advance, and information stored in advance using the information items extracted in the second step. The gist of the present invention is a data conversion method comprising a third step of performing data editing based on an editing format and a fourth step of outputting data edited in the third step.

【0013】請求項6に記載の発明は、データ変換プロ
グラムを記録したコンピュータ読み取り可能な記録媒体
であって、入力データを情報媒体から読み取る第1の処
理と、この第1の処理において読み取った入力データの
書式種別を予め記憶された書式識別情報に基づいて識別
する第2の処理と、この第2の処理において識別された
書式種別に応じて、予め記憶された情報項目抽出位置情
報に基づいて前記入力データから情報項目を抽出する第
3の処理と、この第3の処理において抽出された情報項
目を用いて、予め記憶された情報編集書式に基づくデー
タ編集を行う第4の処理と、この第4の処理において編
集されたデータを情報媒体に出力する第5の処理とを実
行するデータ変換プログラムを記録したコンピュータ読
み取り可能な記録媒体を要旨とする。
According to a sixth aspect of the present invention, there is provided a computer-readable recording medium on which a data conversion program is recorded, wherein a first process of reading input data from an information medium and an input read in the first process are provided. A second process for identifying the format type of the data based on the format identification information stored in advance, and, based on the information item extraction position information stored in advance, according to the format type identified in the second process. A third process of extracting information items from the input data, a fourth process of editing data based on an information editing format stored in advance by using the information items extracted in the third process, A computer-readable recording recording a data conversion program for executing the fifth processing of outputting the data edited in the fourth processing to the information medium; Body and the spirit.

【0014】ここで、入力データを読み取る情報媒体お
よび編集されたデータを出力する情報媒体とは、磁気的
手段、電気的手段、光学的手段などによる情報記録媒体
あるいは電気的手段、電気磁気的手段、光学的手段など
による情報通信媒体をいう。
Here, the information medium for reading the input data and the information medium for outputting the edited data include an information recording medium such as a magnetic means, an electric means, an optical means or an electric means, an electromagnetic means. , An information communication medium by optical means or the like.

【0015】[0015]

【発明の実施の形態】以下、図面を参照しこの発明の一
実施形態について説明する。図1は、同実施形態による
端末装置の構成を示すブロック図である。この図におい
て、符号1はホストコンピュータ、2はホストコンピュ
ータから印刷データを受け取る端末(データ変換装置)
であり、端末2はデータ処理部3と記憶部4とを備えて
いる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of the terminal device according to the embodiment. In this figure, reference numeral 1 denotes a host computer, and 2 denotes a terminal (data conversion device) for receiving print data from the host computer.
The terminal 2 includes a data processing unit 3 and a storage unit 4.

【0016】データ処理部3は、ホストコンピュータ1
から印刷データを受信するデータ受信部31と、データ
受信部31が受信した印刷データの内容を解析するデー
タ解析部32と、データ解析部32の解析結果に従って
印刷データから必要なデータを取りだして別のファイル
形式に変換するデータ変換部33とを備えている。
The data processing unit 3 includes a host computer 1
A data receiving unit 31 for receiving print data from the printer, a data analyzing unit 32 for analyzing the contents of the print data received by the data receiving unit 31, and extracting necessary data from the print data according to the analysis result of the data analyzing unit 32. And a data conversion unit 33 that converts the data into a file format.

【0017】記憶部4には、帳票抽出情報41(識別情
報記憶部および抽出情報記憶部)と出力帳票書式42
(出力書式記憶部)と出力データ部43とを備えてい
る。
The storage unit 4 includes form extraction information 41 (identification information storage unit and extraction information storage unit) and output form format 42
(Output format storage unit) and an output data unit 43.

【0018】帳票抽出情報41には、複数の印刷書式そ
れぞれについて、ホストコンピュータ1から受信する印
刷データの1ページ分の書式に関する情報と、その印刷
データから取り出す文字データの位置に関する情報と
が、予め記録されている。データ解析部32は、この帳
票抽出情報41を参照することによって、ホストコンピ
ュータ1から受信する印刷データの書式を識別する。こ
の書式の識別には、例えば、印刷帳票の見出し文字など
が用いられる。
The form extraction information 41 contains, for each of a plurality of print formats, information on a format of one page of print data received from the host computer 1 and information on the position of character data extracted from the print data in advance. Has been recorded. The data analysis unit 32 identifies the format of the print data received from the host computer 1 by referring to the form extraction information 41. For identification of this format, for example, a heading character of a print form is used.

【0019】出力帳票書式42は、帳票抽出情報41に
定義されている印刷書式毎に、印刷データから取り出さ
れる文字データを変換先のファイルに出力するための書
式情報と出力位置情報を保持している。
The output form 42 holds format information and output position information for outputting character data extracted from print data to a conversion destination file for each print format defined in the form extraction information 41. I have.

【0020】データ解析部32は、データ受信部31か
ら受け取る印刷データをもとに、帳票抽出情報41を検
索し、この印刷データの書式に一致する印刷書式を探
す。帳票抽出情報41内に一致する印刷書式が発見でき
た場合は、その印刷書式において取り出すべき文字デー
タの位置情報を参照しながら、データの抽出を行い、デ
ータ変換部33に渡す。帳票抽出情報41内に一致する
印刷書式が発見できない場合は、受け取った印刷データ
をそのまま出力データ部43のファイルに出力する。
The data analysis unit 32 searches the form extraction information 41 based on the print data received from the data reception unit 31, and searches for a print format that matches the format of the print data. If a matching print format is found in the form extraction information 41, the data is extracted while referring to the position information of the character data to be extracted in the print format, and is passed to the data conversion unit 33. If a matching print format cannot be found in the form extraction information 41, the received print data is output as it is to a file of the output data unit 43.

【0021】帳票抽出情報41内で受信データの書式と
一致する印刷書式が見つかった場合は、データ変換部3
3は、データ解析部32から印刷書式の識別情報と抽出
された文字データとを受け取る。そして、出力帳票書式
42の中から受け取った印刷書式に対応する書式データ
を選択して読み込み、この書式データ内の所定の位置に
受け取った文字データを埋め込み、出力データ部43の
ファイルに出力する。
If a print format that matches the format of the received data is found in the form extraction information 41, the data conversion unit 3
3 receives the identification information of the print format and the extracted character data from the data analysis unit 32. Then, format data corresponding to the received print format is selected and read from the output form format 42, the received character data is embedded at a predetermined position in the format data, and output to a file of the output data unit 43.

【0022】次に、フローチャートを参照しながら、端
末2の動作手順について説明する。図2は本実施形態に
おける印刷データ変換の手順を示すフローチャートであ
る。まず、データ受信部31がホストコンピュータから
送信された印刷データを受信する(図2のステップA
1)。この印刷データはデータ解析部32に渡され、デ
ータ解析部32は、帳票抽出情報41を検索し(ステッ
プA2)、この印刷データに一致する印刷書式が登録さ
れているかどうかを調べる(ステップA3)。
Next, an operation procedure of the terminal 2 will be described with reference to a flowchart. FIG. 2 is a flowchart showing the procedure of print data conversion in the present embodiment. First, the data receiving unit 31 receives the print data transmitted from the host computer (Step A in FIG. 2).
1). The print data is passed to the data analysis unit 32, and the data analysis unit 32 searches the form extraction information 41 (step A2) and checks whether a print format that matches the print data is registered (step A3). .

【0023】登録されている場合、データ解析部32
は、帳票抽出情報41に従って必要な文字データを取り
出し、この印刷データの印刷書式の識別情報とともにデ
ータ変換部33に渡す(ステップA4)。データ変換部
33は、受信した印刷データの印刷書式に対応する出力
帳票書式データを出力帳票書式42から読み取り、ステ
ップA4において取り出された文字データを所定の位置
に挿入し(ステップA5)、出力データ部43のファイ
ルに出力する(ステップA6)。
If registered, the data analysis unit 32
Extracts necessary character data in accordance with the form extraction information 41 and passes it to the data conversion unit 33 together with the identification information of the print format of the print data (step A4). The data conversion unit 33 reads output form format data corresponding to the print format of the received print data from the output form format 42, inserts the character data extracted in step A4 into a predetermined position (step A5), and outputs the output data. Output to the file of the unit 43 (step A6).

【0024】ステップA3において、一致する印刷書式
が登録されていない場合は、データ解析部32は、受信
した印刷データをそのまま出力データ部43のファイル
に出力する(ステップA7)。
In step A3, if a matching print format is not registered, the data analysis section 32 outputs the received print data as it is to a file in the output data section 43 (step A7).

【0025】次に、データ変換の具体例について説明す
る。図3は、帳票抽出情報41が保持する情報の例を示
す表図である。図3に示すように、この帳票出力情報4
1には、伝票A、伝票B、伝票Cのそれぞれについて、
書式情報(印刷書式)、取り出す項目、および項目の位
置情報が登録されている。
Next, a specific example of data conversion will be described. FIG. 3 is a table showing an example of information held by the form extraction information 41. As shown in FIG. 3, this form output information 4
1, each of the slip A, the slip B, and the slip C,
Format information (print format), items to be taken out, and position information of the items are registered.

【0026】例えば、伝票Bの書式情報は「1行目に
『伝票B』の文字列がある」である。また、伝票Bの印
刷データの中から取り出すべきデータ項目は、項目B
1、B2、B3、B4の4つである。また、これらのデ
ータ項目の位置情報として、ページ内の3行目以降で所
定の罫線によって区切られている文字列であることが示
されている。
For example, the format information of the slip B is “the character string of“ slip B ”is in the first line”. The data items to be extracted from the print data of the slip B are item B
1, B2, B3, and B4. Further, the position information of these data items indicates that they are character strings separated by predetermined ruled lines in the third and subsequent lines in the page.

【0027】図4は、出力帳票書式42が保持する情報
の例を示す表図である。また、図5は、端末2がホスト
コンピュータ1より受信する印刷データの例を示す図で
ある。図5に示されるような印刷データを受信し(図2
のステップA1)、データ受信部31からデータ解析部
32に渡されたとき、まずデータ解析部32は、帳票出
力情報41を参照し(ステップA2)、受け取る印刷デ
ータの1行目に「伝票B」という文字列が含まれている
ので、このデータは伝票Bのデータであると識別する
(ステップA3)。
FIG. 4 is a table showing an example of information held by the output form 42. FIG. 5 is a diagram illustrating an example of print data received by the terminal 2 from the host computer 1. The print data as shown in FIG.
In step A1), when the data is passed from the data receiving unit 31 to the data analyzing unit 32, the data analyzing unit 32 first refers to the form output information 41 (step A2), and displays “Slip B , The data is identified as slip B data (step A3).

【0028】そして、帳票抽出情報41に従って、デー
タの3行目の「データA1」を項目B1のデータとし
て、「データA2」を項目B2のデータとして、「デー
タA3」を項目B3のデータとして、「データA4」を
項目B4のデータとしてそれぞれ取り出す(ステップA
4)。4行目以降についても、同様に各項目のデータを
取り出す(ステップA4)。図7はこのようにしてデー
タ解析部32によって抽出されたデータを示す。
Then, in accordance with the form extraction information 41, “Data A1” in the third line of data is data of item B1, “Data A2” is data of item B2, and “Data A3” is data of item B3. "Data A4" is extracted as data of item B4 (step A
4). The data of each item is similarly extracted from the fourth line onward (step A4). FIG. 7 shows the data extracted by the data analysis unit 32 in this manner.

【0029】図7に示す抽出データは、データ変換部3
3に渡される。データ変換部33は図4に示す出力帳票
書式42に従って、この伝票Bから抽出されたデータ
を、「[項目B1],[項目B2],[項目B3],
[項目B4]」の書式の[項目B1]、[項目B2]、
[項目B3]、[項目B4]の箇所にそれぞれ挿入する
(ステップA5)。このように変換されたデータは、出
力データ部43のファイルに出力される(ステップA
6)。
The extracted data shown in FIG.
Passed to 3. The data conversion unit 33 converts the data extracted from this slip B into “[item B1], [item B2], [item B3],
[Item B1], [Item B2], and [Item B4]
[Item B3] and [Item B4] are respectively inserted (Step A5). The data thus converted is output to a file of the output data section 43 (step A).
6).

【0030】上記実施形態においては、帳票抽出情報4
1に該当する書式が存在しないような印刷データを受信
した場合は、データ解析部32がその印刷データを変換
せずにそのまま出力データ部43に出力していたが、そ
の代わりに、該当書式がない旨をホストコンピュータ1
に返答するようにしても良い。図8は、そのような機能
を持つ端末(データ変換装置)の構成を示すブロック図
である。
In the above embodiment, the form extraction information 4
When the print data that does not include the format corresponding to No. 1 is received, the data analysis unit 32 outputs the print data as it is to the output data unit 43 without converting the print data. Not to host computer 1
May be answered. FIG. 8 is a block diagram showing a configuration of a terminal (data conversion device) having such a function.

【0031】図8において、端末装置2はデータ処理部
3と記憶部4とを備えている。この図におけるデータ処
理部3が図1におけるデータ処理部3と異なる点は、応
答部35を備えていること、データ解析部34が応答部
35への通知手段を有すること、応答部35がホストコ
ンピュータ1への通知手段を有すること、データ解析部
34がデータを直接出力データ部43に出力することが
ないことである。
In FIG. 8, the terminal device 2 includes a data processing unit 3 and a storage unit 4. The data processing unit 3 in this figure differs from the data processing unit 3 in FIG. 1 in that the data processing unit 3 includes a response unit 35, the data analysis unit 34 has a notification unit to the response unit 35, and the response unit 35 The provision of the means for notifying the computer 1 is that the data analysis unit 34 does not directly output data to the output data unit 43.

【0032】データ解析部34がデータ受信部31から
印刷データを受け取り、それを帳票抽出情報41に登録
された書式情報を検索したとき、もし一致する書式情報
が存在しなかった場合には、その旨を応答部35に通知
する。応答部35は、データ解析部34から通知を受け
ると、ホストコンピュータ1に対してエラーを通知し、
ホストコンピュータ1側でファイルの出力に異常があっ
たことを認識できる。
When the data analysis unit 34 receives the print data from the data reception unit 31 and searches for the format information registered in the form extraction information 41, if there is no matching format information, This is notified to the response unit 35. Upon receiving the notification from the data analysis unit 34, the response unit 35 notifies the host computer 1 of the error,
The host computer 1 can recognize that there is an error in the file output.

【0033】なお、本発明では、印刷データ1ページ分
ずつを単位として変換するようになっている。ホストコ
ンピュータ1から複数ページ分の印刷データが送られて
くる場合、次のいずれかの方法によって出力ファイルを
作るようにすれば良い。
In the present invention, the conversion is performed in units of one page of the print data. When print data for a plurality of pages is sent from the host computer 1, an output file may be created by one of the following methods.

【0034】第1の方法は、ホストコンピュータ1から
受信した印刷データのページ毎に出力ファイルを作成す
る方法である。この第1の方法の場合、紙に印刷する場
合と同様にページ毎の内容を個別に確認することが可能
である。第2の方法は、ホストコンピュータ1から受信
したデータを、帳票抽出情報41に登録されている帳票
種別毎に出力ファイルを作成する方法である。この第2
の方法の場合、同一書式の印刷データをまとめて参照す
ることが可能となる。第3の方法は、ホストコンピュー
タ1から受信したデータを全て同一のファイルに出力す
る方法である。異なる複数種別の帳票でまとまりのある
内容のデータである場合、この第3の方法による出力が
有効である。
The first method is to create an output file for each page of the print data received from the host computer 1. In the case of the first method, it is possible to individually confirm the content of each page as in the case of printing on paper. The second method is a method of creating an output file from the data received from the host computer 1 for each form type registered in the form extraction information 41. This second
In the case of the above method, it is possible to refer to the print data of the same format collectively. The third method is to output all data received from the host computer 1 to the same file. In the case of data having a coherent content in a plurality of different types of forms, output by the third method is effective.

【0035】なお、上述のデータ変換装置は内部に、コ
ンピュータシステムを有している。そして、上述したデ
ータ受信、データ解析、およびデータ出力の過程は、プ
ログラムの形式でコンピュータシステムの記録媒体に記
憶されており、このプログラムをコンピュータが読み出
して実行することによって、上記処理が行われる。ここ
でコンピュータシステムの記録媒体とは、フロッピーデ
ィスク、光磁気ディスク、CD−ROM、磁気ハードデ
ィスク、半導体メモリ等をいうが、これらに限定されな
い。
The above-mentioned data converter has a computer system inside. The above-described processes of data reception, data analysis, and data output are stored in a recording medium of a computer system in the form of a program, and the computer reads and executes the program to perform the above processing. Here, the recording medium of the computer system refers to a floppy disk, a magneto-optical disk, a CD-ROM, a magnetic hard disk, a semiconductor memory, or the like, but is not limited thereto.

【0036】なお、上述した実施形態では端末装置上で
データ変換処理を実行しているが、ホストコンピュータ
上でデータ変換処理を実行するようにしても良い。ま
た、クライアント/サーバ構造のコンピュータシステム
において、クライアント上またはサーバ上で本発明のデ
ータ変換処理を実行するようにしても良い。また、パー
ソナルコンピュータのスタンドアロン環境等でデータ変
換処理を実行するようにしても良い。
In the above embodiment, the data conversion processing is executed on the terminal device. However, the data conversion processing may be executed on the host computer. Further, in a computer system having a client / server structure, the data conversion processing of the present invention may be executed on a client or a server. Further, the data conversion processing may be executed in a stand-alone environment of a personal computer or the like.

【0037】また、上記実施形態におけるデータ処理部
3の処理は必ずしも全て同一のコンピュータ上で実行す
る必要はなく、一部分を他のコンピュータ上で実行して
も良い。また上記実施形態における記憶部4が保持する
情報は必ずしも全て同一のコンピュータ上で保持されて
いる必要はなく、一部分が他のコンピュータまたは記憶
装置等に格納されていても良い。このように、機能また
はデータが分散されるときには、必要に応じて、ネット
ワークを介して各装置間での情報の受け渡しを行うよう
にする。
The processes of the data processing unit 3 in the above embodiment need not all be executed on the same computer, but may be partially executed on another computer. Further, all the information held by the storage unit 4 in the above embodiment need not necessarily be held on the same computer, and a part thereof may be stored in another computer or a storage device. As described above, when functions or data are distributed, information is exchanged between the devices via a network as necessary.

【0038】[0038]

【発明の効果】以上説明したように、この発明によれ
ば、帳票抽出情報として帳票の印刷書式を識別する条件
を保持するため、入力される印刷データの帳票種別を自
動的に識別してその帳票種別に応じたデータ変換を施す
ことができる。
As described above, according to the present invention, since the condition for identifying the print format of the form is retained as the form extraction information, the form type of the input print data is automatically identified and Data conversion according to the form type can be performed.

【0039】また、この発明によれば、登録されている
情報項目毎に位置情報によって入力データからの情報抽
出を行い、抽出された情報項目のデータを用いて、登録
されている出力書式情報に応じたデータ編集を行うた
め、任意の書式でのデータ変換が可能となる。また、適
切に書式を設定することにより、印刷データに含まれる
プリンタ制御データを除去し、所望の応じた形態でデー
タを参照することが可能となる。
Further, according to the present invention, information is extracted from input data according to position information for each registered information item, and the extracted output format information is converted into the registered output format information using the extracted information item data. Since the corresponding data is edited, data conversion in an arbitrary format becomes possible. In addition, by appropriately setting the format, it is possible to remove the printer control data included in the print data and refer to the data in a desired form.

【0040】また、この発明によれば、応答部が設けら
れ、入力された印刷データが該当する書式が予め登録さ
れてないときには、応答部がその旨の情報を外部に対し
て発することができるため、ネットワーク等により接続
された遠隔コンピュータ等においても、データ変換にお
けるこの問題を認識することが可能となる。
According to the present invention, the response unit is provided, and when the format corresponding to the input print data is not registered in advance, the response unit can emit information to that effect to the outside. Therefore, this problem in data conversion can be recognized even in a remote computer or the like connected via a network or the like.

【0041】[0041]

【図面の簡単な説明】[Brief description of the drawings]

【図1】 この発明の一実施形態によるデータ変換装置
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a data conversion device according to an embodiment of the present invention.

【図2】 同実施形態によるデータ変換装置の印刷デー
タ変換手順を示すフローチャートである。
FIG. 2 is a flowchart illustrating a print data conversion procedure of the data conversion apparatus according to the embodiment.

【図3】 同実施形態によるデータ変換装置の帳票抽出
情報の内容例を示す表図である。
FIG. 3 is a table showing an example of contents of form extraction information of the data conversion device according to the embodiment;

【図4】 同実施形態によるデータ変換装置の出力帳票
書式の内容例を示す兵頭である。
FIG. 4 is a warhead showing a content example of an output form format of the data conversion apparatus according to the embodiment;

【図5】 同実施形態によるデータ変換装置が受信する
印刷データの例を示す図である。
FIG. 5 is a diagram showing an example of print data received by the data conversion device according to the embodiment.

【図6】 同実施形態によるデータ変換装置が出力する
ファイルの内容例を示す図である。
FIG. 6 is a diagram showing an example of the contents of a file output by the data conversion device according to the embodiment.

【図7】 同実施形態によるデータ変換装置においてデ
ータ解析部によって抽出されデータ変換部に渡されるデ
ータ例を示す図である。
FIG. 7 is a diagram showing an example of data extracted by the data analysis unit and passed to the data conversion unit in the data conversion device according to the embodiment.

【図8】 この発明の別の実施形態によるデータ変換装
置の構成を示すブロック図である。
FIG. 8 is a block diagram showing a configuration of a data conversion device according to another embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 ホストコンピュータ 2 端末 3 データ処理部 4 記憶部 31 データ受信部 32 データ解析部 33 データ変換部 34 データ解析部 35 応答部 41 帳票抽出情報 42 出力帳票書式 43 出力データ部 REFERENCE SIGNS LIST 1 host computer 2 terminal 3 data processing unit 4 storage unit 31 data reception unit 32 data analysis unit 33 data conversion unit 34 data analysis unit 35 response unit 41 form extraction information 42 output form format 43 output data unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 設定された情報に応じて入力データを変
換して出力するデータ変換装置であって、 入力データの書式種別を識別するための条件を記憶する
識別情報記憶部と、 前記書式種別に応じて前記入力データから抽出すべき情
報項目の抽出方法を記憶する抽出情報記憶部と、 前記情報項目を用いて編集するための情報編集書式を記
憶する出力書式記憶部と、 前記識別情報記憶部および前記抽出情報記憶部に設定さ
れている情報をもとに、前記入力データの前記書式種別
を識別し、この書式種別に応じて前記入力ファイルから
前記情報項目を抽出するデータ解析部と、 このデータ解析部が抽出した前記情報項目を用いて、前
記情報編集書式に基づく書式でデータを出力するデータ
変換部とを備えることを特徴とするデータ変換装置。
1. A data conversion device for converting input data according to set information and outputting the converted data, comprising: an identification information storage unit for storing a condition for identifying a format type of the input data; An extraction information storage unit that stores a method of extracting an information item to be extracted from the input data according to the input data; an output format storage unit that stores an information editing format for editing using the information item; A data analysis unit that identifies the format type of the input data based on information set in the unit and the extraction information storage unit, and extracts the information item from the input file according to the format type; A data conversion unit that outputs data in a format based on the information editing format using the information items extracted by the data analysis unit.
【請求項2】 前記入力データはプリンタ制御コードを
含む印刷データであり、 前記抽出情報記憶部は、前記プリンタ制御コードを含ま
ない情報項目の前記位置情報を記憶しており、 前記出力書式記憶部は、前記プリンタ制御コードを含ま
ない前記情報編集書式を記憶していることを特徴とする
請求項1に記載のデータ変換装置。
2. The input data is print data including a printer control code, the extraction information storage unit stores the position information of an information item not including the printer control code, and the output format storage unit. 2. The data conversion apparatus according to claim 1, wherein said information editing format does not include said printer control code.
【請求項3】 前記データ解析部が前記識別情報記憶部
を検索し前記入力データに該当する前記書式種別がみつ
からない場合には、書式識別不能である旨を表す信号を
発する応答部を備えることを特徴とする請求項1または
2に記載のデータ変換装置。
3. A response unit that searches the identification information storage unit when the data analysis unit does not find the format type corresponding to the input data, and issues a signal indicating that format identification is impossible. The data conversion device according to claim 1 or 2, wherein:
【請求項4】 入力データを通信により外部から受信す
るデータ受信部を備えることを特徴とする請求項1〜3
のいずれかに記載のデータ変換装置。
4. A data receiving unit for receiving input data from outside through communication.
The data conversion device according to any one of the above.
【請求項5】 予め記憶された書式識別情報に基づいて
入力データの書式種別を識別する第1の過程と、 この第1の過程において識別された書式種別に応じて、
予め記憶された情報項目抽出位置情報に基づいて前記入
力データから情報項目を抽出する第2の過程と、 この第2の過程において抽出された情報項目を用いて、
予め記憶された情報編集書式に基づくデータ編集を行う
第3の過程と、 この第3の過程において編集されたデータを出力する第
4の過程と、からなることを特徴とするデータ変換方
法。
5. A first process for identifying a format type of input data based on format identification information stored in advance, and a format process according to the format type identified in the first process.
A second step of extracting information items from the input data based on information item extraction position information stored in advance, and using the information items extracted in the second step,
A data conversion method, comprising: a third step of editing data based on an information editing format stored in advance; and a fourth step of outputting data edited in the third step.
【請求項6】 データ変換プログラムを記録したコンピ
ュータ読み取り可能な記録媒体であって、 入力データを情報媒体から読み取る第1の処理と、 この第1の処理において読み取った入力データの書式種
別を予め記憶された書式識別情報に基づいて識別する第
2の処理と、 この第2の処理において識別された書式種別に応じて、
予め記憶された情報項目抽出位置情報に基づいて前記入
力データから情報項目を抽出する第3の処理と、 この第3の処理において抽出された情報項目を用いて、
予め記憶された情報編集書式に基づくデータ編集を行う
第4の処理と、 この第4の処理において編集されたデータを情報媒体に
出力する第5の処理と、 を実行するデータ変換プログラムを記録したコンピュー
タ読み取り可能な記録媒体。
6. A computer-readable recording medium on which a data conversion program is recorded, wherein a first process for reading input data from an information medium and a format type of the input data read in the first process are stored in advance. A second process for identifying based on the identified format identification information, and a format type identified in the second process.
A third process of extracting information items from the input data based on information item extraction position information stored in advance, and using the information items extracted in the third process,
A fourth process of performing data editing based on the information editing format stored in advance, and a fifth process of outputting data edited in the fourth process to an information medium. Computer readable recording medium.
JP31304499A 1999-11-02 1999-11-02 Device and method for data transform Pending JP2001134678A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31304499A JP2001134678A (en) 1999-11-02 1999-11-02 Device and method for data transform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31304499A JP2001134678A (en) 1999-11-02 1999-11-02 Device and method for data transform

Publications (1)

Publication Number Publication Date
JP2001134678A true JP2001134678A (en) 2001-05-18

Family

ID=18036536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31304499A Pending JP2001134678A (en) 1999-11-02 1999-11-02 Device and method for data transform

Country Status (1)

Country Link
JP (1) JP2001134678A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015127973A (en) * 2009-08-06 2015-07-09 キヤノンマーケティングジャパン株式会社 Electronic document system, method and program for processing the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015127973A (en) * 2009-08-06 2015-07-09 キヤノンマーケティングジャパン株式会社 Electronic document system, method and program for processing the same

Similar Documents

Publication Publication Date Title
JP4926004B2 (en) Document processing apparatus, document processing method, and document processing program
JP4924976B2 (en) Software development support system
TW200300233A (en) Document conversion system, document conversion method and computer readable recording medium storing document conversion program
US20080091699A1 (en) Method of converting structured data
US5950213A (en) Input sheet creating and processing system
CN101261621B (en) Document processing method and apparatus
JPH11272654A (en) Document editing device and method
JP2006119915A (en) Electronic filing system and electronic filing method
KR102296939B1 (en) Managing apparatus and method of electronic documents like pdf files for multi-modes
JP2002073598A (en) Document processor and method of processing document
JP2008165386A (en) Document management device, document management method and document management program
JP2003196471A (en) Information collection method and system
CN110941947A (en) Document editing method and device, computer storage medium and terminal
JP2001134678A (en) Device and method for data transform
US8743391B2 (en) Image processing apparatus, image processing method, and computer program product
US11182635B2 (en) Terminal apparatus, character recognition system, and character recognition method
US8294959B2 (en) Electronic document update based on handwritten edits
JP2007025815A (en) Image processing method, image processor, digital camera and computer program
US8170270B2 (en) Universal reader
WO2003073360A1 (en) 2-dimensional bar code print method with summary information
JP2004086846A (en) Information segmentation system, method and program, and record medium with information segmentation program recorded
JP2008046850A (en) Document type determination device, and document type determination program
KR100366657B1 (en) Method of reverse-transforming print output image data to text data file and apparatus therefor
JPH10161825A (en) Illegal character check method, and device for generating illegal character check data
KR100544375B1 (en) Extractor and method for extracting card information of the document file, and computer readable medium thereof

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030610