JP2004355077A - Form print processing program, form definition object creation processing program and recording medium with form definition object recorded thereon - Google Patents

Form print processing program, form definition object creation processing program and recording medium with form definition object recorded thereon Download PDF

Info

Publication number
JP2004355077A
JP2004355077A JP2003148716A JP2003148716A JP2004355077A JP 2004355077 A JP2004355077 A JP 2004355077A JP 2003148716 A JP2003148716 A JP 2003148716A JP 2003148716 A JP2003148716 A JP 2003148716A JP 2004355077 A JP2004355077 A JP 2004355077A
Authority
JP
Japan
Prior art keywords
data
print
definition body
area
item
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
JP2003148716A
Other languages
Japanese (ja)
Inventor
Hirotoshi Okushiro
宏俊 奥城
Koji Tachibana
浩二 立花
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2003148716A priority Critical patent/JP2004355077A/en
Publication of JP2004355077A publication Critical patent/JP2004355077A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To print form data of an indefinite amount in an appropriate format by using one form definition object. <P>SOLUTION: A form data reading processing part 22 acquires form data 4. A form definition object reading processing part 21 acquires the form definition object 3 created in a form definition object creation processing program 1. A printing data generation processing part 23 changes a character pitch of a print attribute of a rectangular item, height of a line and a character size or enlarges a region of the rectangular item and creates print data 5 in accordance with a data handling classification defined in the form definition object 3 when the form data 4 exceeds the region of the corresponding rectangular item defined in the form definition object 3. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、帳票の印刷体裁を定義した帳票定義体を用いて、利用者が使用する応用プログラムで作成された帳票データを帳票として印刷する帳票印刷処理技術に関する。
【0002】
【従来の技術】
利用者が業務で使用する種々のアプリケーション・プログラム(以下、利用者プログラム)から帳票データを印刷する場合に、種々の利用者プログラムとプリンタとの間を仲介してプリンタの制御に対応した帳票印刷処理を行うミドルウェア(ソフトウェア)が利用される。
【0003】
このような帳票印刷処理ソフトウェアでは、利用者プログラムで作成された帳票データを読込み、指定された帳票定義体に定義された印刷形式および印刷属性にもとづいて作成し、指定されたプリンタの制御に対応させた印刷データを、所定のプリンタへ渡して帳票印刷処理を行う。
【0004】
帳票定義体は、帳票データの印刷体裁を定める情報を格納するデータである。帳票定義体には、用紙サイズ、帳票サイズなどの帳票全体に対する定義情報、帳票を構成する項目の位置、サイズなどの項目ごとの定義情報などの印刷属性が格納される。
【0005】
一般的に、文字や数字などのテキストデータ(以下、文字データ)が貼り込まれる矩形の領域を備える項目(以下、矩形項目)における文字データの印刷体裁は、項目内の貼り込み領域、行数および桁数などの印刷属性により定義される。帳票定義体は、帳票印刷処理に先立って作成され、帳票印刷処理ソフトウェアもしくは利用者プログラムにおいて記憶されるものであるため、前記の矩形項目へ貼り込みが可能な文字データ量には限界がある。
【0006】
一方、複数の帳票データを同一形式の帳票として印刷する場合に、帳票の矩形項目に貼り込まれる文字データ量は帳票データごとに異なり、不定であることが多い。したがって、帳票データによっては、帳票定義体で定義された矩形項目の貼り込み領域から文字データがはみ出してしまう。
【0007】
このような場合に、従来の帳票印刷処理では、帳票データの文字データの超過部分を切り捨て、矩形項目の領域へ貼り込める文字データの部分のみを使用して印刷データを作成していた。
【0008】
または、作成される帳票データの文字データ量を想定して、種々の大きさの領域を持つような矩形項目を定義した帳票定義体を数パターンから数十パターン用意しておき、読み込んだ帳票データの文字データ量に応じて複数の帳票定義体を切り替えて使用して印刷データを作成していた。
【0009】
例えば、表を含む帳票において表内に印刷される文字データの行数が不定であるような場合に、帳票データの文字データの量(例えば行数)に合わせて表の項目欄の枠の体裁を変更する必要がある。このような帳票に対しては、表の枠内の行数パターンに対応した数の帳票定義体を用意していた。
【0010】
なお、従来の文章編集処理について、ある文字入力域に対して入力可能な量を超える文字データがある場合に、その文字入力域を自動的に拡張して文字データをすべて入力できるようにする技術がある(特許文献1参照)。
【0011】
【特許文献1】
特開平7−114557号公報
【0012】
【発明が解決しようとする課題】
特許文献1に開示されているように、文書編集処理において、文字データが入力される時点での文字入力域は固定的ではないことから、入力される文字データのデータ量を考慮して文字入力域を動的に再設定することができる。
【0013】
しかし、帳票定義体を用いた帳票印刷処理において、帳票定義体の矩形項目の定義はある設定値で固定されている。一方、帳票データとして矩形項目に貼り込まれる文字データのデータ量は可変である。
【0014】
従来では、帳票定義体を定義する時点では、印刷データ作成処理時に、矩形項目に貼り込まれる文字データのデータ量を考慮して帳票定義体の定義を変更することができない。そのため、従来の印刷データ作成処理では、文字データのデータ量が対応する矩形項目の領域を超えるような場合には、以下のような問題が生じていた。
【0015】
1) 矩形項目の領域を超過した文字データを切り捨て、貼り込み可能な文字データのみを用いて印刷データを作成する処理の場合には、帳票に帳票データの一部が印刷されない状態が生じてしまう。
【0016】
2) 矩形項目に貼り込まれるデータ量を想定して、領域の大きさが異なるように定義した複数パターンの帳票定義体を予め用意し切り替えて使用する場合には、同一の帳票のために数十パターンの帳票定義体を用意する必要があり、作業処理負担が大きい。
【0017】
また、帳票データのデータ量に応じて複数の帳票定義体を切り替える処理が必要となり、印刷データ作成処理時の処理負担が大きい。
【0018】
本発明の目的は、かかる問題に鑑みてなされたものであり、同一帳票に対して複数の帳票定義体を使用することにより生じる作業負担および処理負担を軽減して、帳票データのデータ量にかかわらず適切な体裁で帳票を印刷する処理を、コンピュータに実行させるための帳票印刷処理プログラムを提供することである。
【0019】
また、本発明の目的は、前記帳票印刷処理プログラムにおいて使用する帳票定義体を作成する処理を、コンピュータに実行させるための帳票定義体作成処理プログラムを提供することである。
【0020】
さらに、本発明の目的は、前記帳票印刷処理プログラムで使用する帳票定義体を記録した記録媒体を提供することである。
【0021】
【課題を解決するための手段】
本発明は、帳票および帳票を構成する項目の印刷体裁を定義する印刷属性が記憶された帳票定義体を用いて帳票データを印刷する帳票印刷処理を、コンピュータに実行させるための帳票印刷処理プログラムにおいて、以下のような処理をコンピュータに実行させるものである。
【0022】
すなわち、帳票印刷処理プログラムは、帳票として印刷される帳票データを取得する帳票データ取得処理と、前記帳票データに対応し、帳票データが貼り込まれる領域を持つ矩形項目ごとに領域を超える帳票データの印刷データ作成処理時の取り扱いを指定するデータ取扱種別が定義された帳票定義体を取得する帳票定義体取得処理と、前記帳票データが対応する矩形項目の領域を超える場合に、前記帳票定義体に定義されたデータ取扱種別にしたがって前記矩形項目の印刷属性を変更して印刷データを作成する印刷データ作成処理とを、コンピュータに実行させるものである。
【0023】
前記帳票印刷処理プログラムでは、例えば、帳票定義体取得処理として、帳票データが対応する領域を超えるときは、前記矩形項目の印刷属性のうち、文字ピッチ、行の高さ、もしくは文字サイズのいずれかの値を小さくする旨のデータ取扱種別が定義された帳票定義体を取得し、印刷データ作成処理として、取得した帳票データが対応する領域を超えた場合に、前記データ取扱種別をもとに、前記矩形項目の印刷属性のうち、文字ピッチ、行の高さ、もしくは文字サイズのいずれか一つまたは複数の印刷属性値を小さい値に変更し、前記変更した印刷属性値を用いて印刷データを作成する。
【0024】
または、帳票定義体取得処理として、帳票データが対応する領域を超えるときは、前記矩形項目の領域を拡張する旨のデータ取扱種別が定義された帳票定義体を取得し、印刷データ作成処理として、取得した帳票データが対応する領域を超えた場合に、前記データ取扱種別をもとに、前記矩形項目の領域を拡張して印刷データを作成する。
【0025】
さらに、本発明は、帳票の印刷のために、帳票および帳票を構成する項目の印刷体裁を定義する印刷属性が記憶された帳票定義体を作成する帳票定義体作成処理を、コンピュータに実行させるための帳票定義体作成処理プログラムにおいて、印刷される帳票データが貼り込まれる領域を持つ矩形項目について、前記領域を超える帳票データに対する印刷データ作成処理時の取り扱いを指定するデータ取扱種別が定義された帳票定義体を作成する処理を、コンピュータに実行させるものである。
【0026】
さらに、本発明は、帳票の印刷のために、帳票および帳票を構成する項目の印刷体裁を定義する印刷属性が記憶された帳票定義体を記録するコンピュータが読み取り可能な記録媒体であって、印刷される帳票データが貼り込まれる領域を持つ矩形項目について、前記領域を超える帳票データに対する印刷データ作成処理時の取り扱いを指定するデータ取扱種別を備えるものである。
【0027】
本発明では、帳票データが帳票定義体で定義された矩形項目の領域を超過した場合であっても、印刷データ作成時に、その矩形項目の印刷属性を変更したり、その領域を拡大したりして、帳票データのすべてを領域に貼り込むことができる。これにより、帳票データの一部が帳票に印刷されないという状態をなくすことができる。
【0028】
また、あらかじめ、矩形項目に貼り込まれるデータ量を想定した複数パターンの帳票定義体を用意する必要がなく、帳票定義体作成の作業負担を軽減することができる。
【0029】
また、印刷データ作成処理時に、帳票データのデータ量に応じて複数の帳票定義体を切り替える処理が必要なく、印刷データ作成時の帳票定義体切り替え処理をなくすことができる。
【0030】
【発明の実施の形態】
図1に、本発明の実施の形態におけるシステムの構成例を示す。
【0031】
本形態において、本発明にかかる帳票定義体作成処理プログラム1および印刷データ作成処理プログラム2は、コンピュータ70に読み込まれ、コンピュータ70に所定の処理を実行させる処理プログラムである。
【0032】
帳票定義体作成処理プログラム1は、利用者プログラム6で作成された帳票データを帳票として出力するための帳票定義体3を作成する処理手段である。帳票定義体作成処理プログラム1は、コンピュータ70に接続する入力/出力装置73を通じて、GUI(Graphical User Interface)の対話操作により、利用者が指定した値にもとづいて帳票定義体3を作成する。
【0033】
印刷データ作成処理プログラム2は、利用者プログラム6から印刷要求と共に帳票データを受け付けると、指定された帳票定義体3にもとづいて、プリンタ74で帳票を印刷するための印刷データを帳票データから作成する処理手段である。
【0034】
なお、印刷データ作成処理プログラム2は、印刷データを作成する際に、プリンタ74の制御情報であるプリンタ情報72を参照して印刷データを作成する機能を備えてもよい。
【0035】
帳票定義体3は、帳票ごとに用意され、帳票の印刷体裁を特定するための印刷属性を定義するデータである。帳票定義体3は、帳票を構成する項目ごとに印刷属性が定義され、矩形項目の印刷属性に、対応する領域を超過する帳票データの印刷データ作成処理時の取り扱いを定義する情報(データ取扱種別)を含むものである。
【0036】
図2に帳票定義体と、帳票データおよび印刷データとの関係を示す。図2示すように、帳票定義体3は、利用者プログラム6で作成された帳票データ4から、帳票を印刷するためにプリンタへ渡される印刷データ5を生成するために使用される。
【0037】
図3に、帳票定義体3のデータ構成例を示す。帳票定義体3は、帳票定義体を識別するための帳票定義体名、帳票全体の大きさを特定する帳票の縦サイズ/横サイズ、出力される用紙の大きさを特定する用紙サイズ、帳票を構成する各矩形項目の印刷属性を定義する矩形項目rなどのデータから構成される。
【0038】
矩形項目rは、項目の種別を特定する項目種別、項目の大きさを特定する矩形の縦幅/横幅、印刷データ作成時に、対応する領域を超過した文字データの取り扱い扱いを指定するデータ取扱種別などのデータから構成される。
【0039】
例えば、項目種別には、矩形項目を示す値「0x10」が設定される。
【0040】
データ取扱種別には、矩形項目に対応付けられた帳票データ4(文字データ)のデータ量が、定義された領域の貼り込み可能なデータ量を超える場合の取り扱いを指定する値、例えば、値「0x00,0x01,0x10,0x11」などの値が設定される。
【0041】
「0x01」は、その矩形項目に対応する文字データが領域を超えた場合に、定義されている文字サイズ、文字ピッチ、もしくは行の高さなどの印刷属性の値を小さくして印刷データを作成する処理を指示する定義である。
【0042】
また、「0x10」は、その矩形項目に対応する文字データが領域を超えた場合に、定義されている領域の縦幅の値を大きくして印刷データを作成する処理を指示する定義である。
【0043】
また、「0x11」は、その矩形項目に対応する文字データが領域を超えた場合に、まず、定義されている文字サイズ、文字ピッチ、もしくは行の高さなどの印刷属性の値を小さくし、定義変更後の印刷属性によっても文字データが領域を超える場合に、さらに、定義されている領域の縦幅の値を大きくして印刷データを作成する処理を指示する定義である。
【0044】
さらに、「0x00」は、その矩形項目に対応する文字データが領域を超えた場合に、文字データのうち領域を超過した部分を切り捨てて印刷データを作成する処理を指示する定義である。
【0045】
図4に、本発明の実施の形態における、処理プログラムの処理部および機能の構成例を示す。
【0046】
帳票定義体作成処理プログラム1は、データ取扱種別設定機能11を備える。
【0047】
データ取扱種別設定機能11は、GUIにより、帳票定義体3にデータ取扱種別を設定する機能である。
【0048】
図5に、項目作成画面の例を示す。項目作成画面は、帳票定義体3を作成する際に、帳票を構成する項目を定義するための画面である。
【0049】
利用者が、項目作成画面に表示される帳票上に、文字データが貼り込まれる領域を備える矩形項目オブジェクトを貼り付け、領域を指定すると、帳票定義体作成処理プログラム1は、その項目の位置、大きさ、および領域の位置、大きさなどを定義した矩形項目rを帳票定義体3に設定する。
【0050】
図6に、矩形項目設定画面の例を示す。
【0051】
矩形項目設定画面は、項目ごとに、矩形項目の領域に文字データを貼り込む場合の行の高さ、領域の大きさ、データ取扱種別など、印刷属性を設定するための画面である。矩形項目設定画面内の「項目内に全データを出力」の欄の選択により、データ取扱種別が設定される。
【0052】
利用者が、矩形項目設定画面上で行の高さ、データ取扱種別などを指定すると、帳票定義体作成処理プログラム1は、帳票定義体3の矩形項目rに指定された値を設定する。
【0053】
利用者がデータ取扱種別の設定として「縦幅を拡張して出力」を選択した場合には、矩形項目rのデータ取扱種別に「0x10」を設定する。さらに、利用者が、領域の縦幅の拡張限界を示す最大縦幅に入力した値を矩形項目rに設定する。
【0054】
また、利用者が「文字ピッチ等を縮小して出力」を選択した場合には、矩形項目rのデータ取扱種別に「0x01」を設定する。
【0055】
また、利用者が「縦幅を拡張して出力」および「文字ピッチ等を縮小して出力」の両方を選択した場合には、データ取扱種別に「0x11」を設定する。さらに、利用者が指定した、最初に縮小する設定値(文字ピッチ、行の高さなど)を矩形項目rに設定する。
【0056】
さらに、利用者が「縦幅を拡張して出力」もしくは「文字ピッチ等を縮小して出力」のいずれの設定も選択しなかった場合には、データ取扱種別に「0x00」を設定する。
【0057】
なお、帳票定義体作成処理プログラム1は、矩形項目の印刷属性を設定する画面(図示しない)上で利用者が指定した文字サイズ、文字ピッチを矩形項目rに設定する。
【0058】
印刷データ作成処理プログラム2は、帳票定義体読込み処理部21、帳票データ読込み処理部22および印刷データ作成処理部23を備える。
【0059】
帳票定義体読込み処理部21は、帳票定義体3を読み込む処理を行う。帳票データ読込み処理部22は、利用者プログラム6で作成された印刷対象となる帳票データ4を読み込む処理を行う。
【0060】
印刷データ作成処理部23は、データ取扱種別判定機能25およびデータ量判定機能26を備える。
【0061】
データ取扱種別判定機能25では、読み込まれた帳票定義体3の矩形項目rのデータ取扱種別の設定値を判定する。
【0062】
また、データ量判定機能26では、設定項目rの行の高さ、文字サイズ、文字ピッチから、領域(矩形の縦幅・横幅)に貼り込み可能な文字数(設定文字数)を計算し、帳票データ4(文字データ)の全文字数が設定文字数を超えるかどうかを判定する。
【0063】
印刷データ作成処理部23は、帳票定義体3から、帳票の上部に位置する項目の定義情報を順に取り出して印刷データ5を作成する場合に、取り出した項目が矩形項目であるときは、データ取扱種別判定機能25およびデータ量判定機能26により判定したデータ取扱種別に応じて文字データを領域に貼り込み印刷データを作成する。
【0064】
以下に、印刷データ作成処理部23の処理を、図7および図8を用いて説明する。図7および図8は、文字データの全文字数が領域の設定文字数を超過する場合の印刷データ作成処理を説明するための図である。
【0065】
印刷データ作成処理部23は、矩形項目rのデータ取扱種別=0x01(文字ピッチ等を縮小)である場合には、以下に示すように、矩形項目rに設定された文字ピッチ、文字サイズ、行の高さの値を小さくして印刷データを作成する。
【0066】
(1)文字ピッチを縮小して出力する処理
印刷データ作成処理部23は、矩形項目rの文字ピッチが文字サイズより大きい場合に、文字ピッチを小さい値に変更して印刷データを作成する。文字ピッチの縮小は、文字同士が重ならないように、文字サイズと同じ値を限度とする。
【0067】
図7(A)に示すように、従来の処理では帳票データ4「定義された文字ピッチでは出力文字列が収まらない。」が領域からはみ出して一部が印刷されないような場合でも、矩形項目rの文字ピッチを縮小して印刷データを作成することにより、帳票データ4の全てを出力することができる。
【0068】
(2)行の高さを縮小して出力する処理
印刷データ作成処理部23は、矩形項目rの行の高さが文字サイズより大きい場合に、行の高さを小さい値に変更して印刷データを作成する。行の高さの縮小は、行同士が重ならないように、文字サイズと同じ値を限度とする。
【0069】
図7(B)に示すように、従来の処理では帳票データ4「定義された行の高さでは出力文字列が収まらない。」が矩形項目の領域からはみ出して一部が印刷されないような場合でも、矩形項目rの行の高さを縮小して印刷データを作成することにより、帳票データ4の全てを出力することができる。
【0070】
(3)文字ピッチおよび行の高さを縮小して出力する処理
印刷データ作成処理部23は、矩形項目rの文字ピッチおよび行の高さが文字サイズより大きい場合に、文字ピッチおよび行の高さの両方を小さい値に変更して印刷データを作成する。文字ピッチおよび行の高さの縮小は、文字サイズと同じ値を限度とする。
【0071】
図7(C)に示すように、従来の処理では帳票データ4「定義された行の高さでは出力文字列が収まらない。」が矩形項目の領域からはみ出して一部が印刷されない場合でも、矩形項目rの文字ピッチおよび行の高さを縮小して印刷データを作成することにより、帳票データ4の全てを出力することができる。
【0072】
(4)文字サイズを縮小して出力する処理
印刷データ作成処理部23は、矩形項目rの文字サイズを小さい値に変更し、文字ピッチおよび行の高さを縮小した文字サイズに対応する値に変更して印刷データを作成する。
【0073】
図7(D)に示すように、従来の処理では帳票データ4「定義された文字サイズでは出力文字列が収まらない場合がある。」が矩形項目の領域からはみ出して一部が印刷されない場合でも、矩形項目rの文字サイズを縮小して印刷データを作成することにより、帳票データ4の全てを出力することができる。
【0074】
印刷データ作成処理部23は、前記(1)〜(4)の処理を、組み合わせて印刷データを作成することもできる。
【0075】
例えば、矩形項目rの文字ピッチおよび行の高さが文字サイズより大きい場合には、(1)→(2)→(3)→(4)の順序で、もしくは(2)→(1)→(3)→(4)の順序で帳票データの印刷属性を調整して印刷データを作成する。(1)または(2)のどちらの調整から処理を行うかの設定は、利用者が矩形項目設定画面上で指定することができる。
【0076】
また、矩形項目rの文字ピッチが文字サイズより大きく、かつ行の高さが文字サイズと等しい場合には、(1)→(4)の順で処理を行う。文字ピッチが文字サイズより小さいか等しく、かつ行の高さが文字サイズより大きい場合には、(2)→(4)の順序で処理を行う。また、文字ピッチが文字サイズより小さいか等しく、かつ行の高さが文字サイズと等しい場合には、(4)の処理のみを行う。
【0077】
また、印刷データ作成処理部23は、データ取扱種別=0x10(領域の縦幅を拡張)である場合には、以下に示すように、矩形項目rの矩形の縦幅を大きい値に変更して領域を拡張し、印刷データを作成する。
【0078】
(5)項目の領域の縦幅を拡張して出力する処理
印刷データ作成処理部23は、矩形項目rの文字サイズ、文字ピッチ、行の高さ、矩形の横幅をもとに、帳票データ4の全文字数を貼り込むために必要な拡張領域を求め、矩形項目rの矩形の縦幅を拡張領域の縦幅の値へ変更し、確保した拡張領域に帳票データ4を貼り込み印刷データを作成する。
【0079】
図8(A)に示すように、従来の処理では帳票データ4「定義された縦サイズでは出力文字列が収まらない。」が矩形項目の領域からはみ出して一部が印刷されない場合でも、矩形項目rの矩形の縦幅を拡張して印刷データを作成することにより、帳票データ4の全てを出力することができる。
【0080】
矩形の縦幅の拡張の限界は、矩形項目として設定された範囲内を限度とするが、領域の拡張と共に矩形項目の範囲の拡張を許可する設定の場合には、図8(B)に示すように、矩形項目の範囲も同時に拡張して印刷データを作成する。
【0081】
図9および図10に、印刷データ作成処理プログラム2の処理フローを示す。
【0082】
図9に示すように、印刷データ作成処理プログラム2は、利用者プログラム6から印刷要求を受け付けて開始する。
【0083】
印刷データ作成処理プログラム2では、帳票データ読込み処理部22により、帳票データ4を受け付ける(ステップS1)。さらに、帳票定義体読込み処理部21により、受け付けた帳票データ4をもとに対応する帳票定義体3を読み込む(ステップS2)。
【0084】
印刷データ作成処理部23により、帳票定義体3の矩形項目rを、帳票の先頭に位置する項目のものから取り出す(ステップS3)。帳票定義体3に取り出していない項目があれば(ステップS4)、矩形項目rの位置および印刷属性をもとに印刷データを作成する(ステップS5)。
【0085】
さらに、帳票定義体3から次の項目を取り出して(ステップS6)、ステップS4の処理へ戻り、ステップS5の処理を繰り返す。一方、取り出す項目がない場合には(ステップS4)、処理を終了して利用者プログラム6へ制御を復帰する。
【0086】
図10に、ステップS5の印刷データ作成処理のより詳細な処理フローを示す。
【0087】
印刷データ作成処理部23では、データ取扱種別判定機能25により、帳票定義体3から取り出した項目の項目種別が矩形項目であるかどうかを判定し(ステップS51)、項目種別が矩形項目であれば、さらにデータ取扱種別を判定する(ステップS52)。
【0088】
データ取扱種別が「0x00(超過文字の切り捨て)」である場合には、データ量判定機能26により、帳票データ4(文字データ)が領域を超えるかどうかを判定し、文字データが領域を超える場合に、領域を超える文字を切り捨てて印刷データを作成する(ステップS53)。
【0089】
また、印刷種別が「0x01(文字ピッチ等の縮小)」である場合には、データ量判定機能26により、帳票データ4(文字データ)が領域を超えるかどうかを判定し、文字データが領域を超える場合に、矩形項目rの文字ピッチ、行の高さ、文字サイズを小さくして印刷データを作成する(ステップS54)。
【0090】
また、印刷種別が「0x10(矩形の縦幅拡張)」である場合には、データ量判定機能26により、帳票データ4(文字データ)が領域を超えるかどうかを判定し、文字データが領域を超える場合に、矩形項目rの矩形の縦幅を拡張して印刷データを作成する(ステップS55)。
【0091】
また、印刷種別が「0x11(文字ピッチ等の縮小および矩形の縦幅の拡張)」である場合には、データ量判定機能26により、帳票データ4(文字データ)が領域を超えるかどうかを判定し、文字データが領域を超える場合に、矩形項目rの文字ピッチ、行の高さ、文字サイズを小さくし、さらに文字データが領域を超える場合には、矩形項目rの矩形の縦幅を拡張して印刷データを作成する(ステップS56)。
【0092】
一方、ステップS51の処理において、項目の項目種別が矩形項目でなければ、項目の位置、印刷属性をもとに印刷データを作成する(ステップS57)。
【0093】
以上、本発明をその実施の形態により説明したが、本発明はその主旨の範囲において種々の変形が可能であることは当然である。
【0094】
例えば、本発明の実施の形態として、図1では、帳票定義体作成処理プログラム1および印刷データ作成プログラム2が同一のコンピュータ70に備えられている場合の構成例を示して説明したが、帳票定義体作成処理プログラム1および印刷データ作成プログラム2は、別々のコンピュータに備えられる構成でもよい。
【0095】
また、本発明の各処理手段または機能または要素は、コンピュータにより読み取られ実行される処理プログラムとして実施するものとして説明したが、本発明を実現する処理プログラムは、コンピュータが読み取り可能な、可搬媒体メモリ、半導体メモリ、ハードディスクなどの適当な記録媒体に格納することができ、これらの記録媒体に記録して提供され、または、通信インタフェースを介して種々の通信網を利用した送受信により提供されるものである。
【0096】
本発明の形態および実施例の特徴を列記すると以下のとおりである。
【0097】
(付記1) 帳票および帳票を構成する項目の印刷体裁を定義する印刷属性が記憶された帳票定義体を用いて帳票データを印刷する帳票印刷処理を、コンピュータに実行させるための帳票印刷処理プログラムにおいて、
帳票として印刷される帳票データを取得する帳票データ取得処理と、
前記帳票データに対応し、帳票データが貼り込まれる領域を持つ矩形項目ごとに領域を超える帳票データの印刷データ作成処理時の取り扱いを指定するデータ取扱種別が定義された帳票定義体を取得する帳票定義体取得処理と、
前記帳票データが対応する矩形項目の領域を超える場合に、前記帳票定義体に定義されたデータ取扱種別にしたがって前記矩形項目の印刷属性を変更して印刷データを作成する印刷データ作成処理とを、
コンピュータに実行させる
ことを特徴とする帳票印刷処理プログラム。
【0098】
(付記2) 前記付記1記載の帳票印刷処理プログラムにおいて、
前記帳票定義体取得処理として、帳票データが対応する領域を超えるときは、前記矩形項目の印刷属性のうち、文字ピッチ、行の高さ、もしくは文字サイズのいずれかの値を小さくする旨のデータ取扱種別が定義された帳票定義体を取得する処理を、
前記印刷データ作成処理として、取得した帳票データが対応する領域を超えた場合に、前記データ取扱種別をもとに、前記矩形項目の印刷属性のうち、文字ピッチ、行の高さ、もしくは文字サイズのいずれか一つまたは複数の印刷属性値を小さい値に変更し、前記変更した印刷属性値を用いて印刷データを作成する処理を、
コンピュータに実行させる
ことを特徴とする帳票印刷処理プログラム。
【0099】
(付記3) 前記付記1記載の帳票印刷処理プログラムにおいて、
前記帳票定義体取得処理として、帳票データが対応する領域を超えるときは、前記矩形項目の領域を拡張する旨のデータ取扱種別が定義された帳票定義体を取得する処理を、
前記印刷データ作成処理として、取得した帳票データが対応する領域を超えた場合に、前記データ取扱種別をもとに、前記矩形項目の領域を拡張して印刷データを作成する処理を、
コンピュータに実行させる
ことを特徴とする帳票印刷処理プログラム。
【0100】
(付記4) 帳票の印刷のために、帳票および帳票を構成する項目の印刷体裁を定義する印刷属性が記憶された帳票定義体を作成する帳票定義体作成処理を、コンピュータに実行させるための帳票定義体作成処理プログラムにおいて、
印刷される帳票データが貼り込まれる領域を持つ矩形項目について、前記領域を超える帳票データに対する印刷データ作成処理時の取り扱いを指定するデータ取扱種別が定義された帳票定義体を作成する処理を、
コンピュータに実行させる
ことを特徴とする帳票定義体作成処理プログラム。
【0101】
(付記5) 前記付記4記載の帳票定義体作成処理プログラムにおいて、
前記データ取扱種別は、帳票データが対応する領域を超えるときは、前記矩形項目の印刷属性のうち、文字ピッチ、行の高さ、もしくは文字サイズのいずれかの値を小さくする旨が定義された帳票定義体である
ことを特徴とする帳票定義体作成処理プログラム。
【0102】
(付記6) 前記付記4記載の帳票定義体作成処理プログラムにおいて、
前記データ取扱種別は、帳票データが対応する領域を超えるときは、前記矩形項目の領域を拡張する旨のデータ取扱種別が定義された帳票定義体である
ことを特徴とする帳票定義体作成処理プログラム。
【0103】
(付記7) 帳票の印刷のために、帳票および帳票を構成する項目の印刷体裁を定義する印刷属性が記憶された帳票定義体を記録するコンピュータが読み取り可能な記録媒体であって、
印刷される帳票データが貼り込まれる領域を持つ矩形項目について、前記領域を超える帳票データに対する印刷データ作成処理時の取り扱いを指定するデータ取扱種別を備える帳票定義体を記録した記録媒体。
【0104】
(付記8) 帳票および帳票を構成する項目の印刷体裁を定義する印刷属性が記憶された帳票定義体を用いて帳票データを印刷する帳票印刷処理装置において、
帳票として印刷される帳票データを取得する帳票データ取得手段と、
前記帳票データに対応し、帳票データが貼り込まれる領域を持つ矩形項目ごとに領域を超える帳票データの印刷データ作成処理時の取り扱いを指定するデータ取扱種別が定義された帳票定義体を取得する帳票定義体取得手段と、
前記帳票データが対応する矩形項目の領域を超える場合に、前記帳票定義体に定義されたデータ取扱種別にしたがって前記矩形項目の印刷属性を変更して印刷データを作成する印刷データ作成手段とを、備える
ことを特徴とする帳票印刷処理装置。
【0105】
(付記9) 帳票および帳票を構成する項目の印刷体裁を定義する印刷属性が記憶された帳票定義体を用いて帳票データを印刷する帳票印刷処理方法において、
帳票として印刷される帳票データを取得し、
前記帳票データに対応し、帳票データが貼り込まれる領域を持つ矩形項目ごとに領域を超える帳票データの印刷データ作成処理時の取り扱いを指定するデータ取扱種別が定義された帳票定義体を取得し、
前記帳票データが対応する矩形項目の領域を超える場合に、前記帳票定義体に定義されたデータ取扱種別にしたがって前記矩形項目の印刷属性を変更して印刷データを作成する
ことを特徴とする帳票印刷処理方法。
【0106】
【発明の効果】
以上説明したように、本発明によれば、同一帳票に対して一つの帳票定義体を用意するだけで、利用者プログラムで作成されたデータ量が異なる帳票データの帳票印刷を行うことが可能となる。
【0107】
これにより、一つの帳票に対して複数の帳票定義体を作成するという作業負担を軽減することができる。
【0108】
また、帳票印刷時に、複数の帳票定義体を切り替えて印刷データを作成するという処理負担を軽減することができる。
【0109】
特に、住所や製品名などの欄を含む受発注書、住所や社名の欄を含む顧客管理台帳、自由な記載を許容するような備考欄を持つ種々の帳票などにおいて、データの一部が切り捨てられて印刷されるという状況の発生を防止することができ、かかる帳票を使用する業務の作業負担の軽減化および作業効率化を図ることができる。
【図面の簡単な説明】
【図1】本発明の実施の形態におけるシステムの構成例を示す図である。
【図2】帳票定義体と、帳票データおよび印刷データとの関係を説明するための図である。
【図3】帳票定義体のデータ構成例を示す図である。
【図4】本発明の実施の形態における、処理プログラムの処理部および機能の構成例を示す図である。
【図5】項目作成画面の例を示す図である。
【図6】矩形項目設定画面の例を示す図である。
【図7】文字データの全文字数が領域の設定文字数を超過する場合の印刷データ作成処理を説明するための図である。
【図8】文字データの全文字数が領域の設定文字数を超過する場合の印刷データ作成処理を説明するための図である。
【図9】印刷データ作成処理プログラムの処理フローを示す図である。
【図10】図9のステップS5の印刷データ作成処理のより詳細な処理フローを示す図である。
【符号の説明】
1 帳票定義体作成処理プログラム
11 データ取扱種別設定機能
2 印刷データ作成処理プログラム
21 帳票定義体読込み処理部
22 帳票データ読込み処理部
23 印刷データ作成処理部
25 データ取扱種別判定機能
26 データ量判定機能
3 帳票定義体
4 帳票データ
5 印刷データ
6 利用者プログラム
70 コンピュータ
72 プリンタ情報
73 入力/出力装置
74 プリンタ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a form print processing technique for printing form data created by an application program used by a user as a form using a form definition body defining a form for printing the form.
[0002]
[Prior art]
When printing form data from various application programs (hereinafter, referred to as user programs) used by a user in business, form printing corresponding to control of the printer is performed by mediating between the various user programs and the printer. Middleware (software) for processing is used.
[0003]
Such form print processing software reads form data created by the user program, creates it based on the print format and print attributes defined in the specified form definition body, and responds to the control of the specified printer The print data sent is passed to a predetermined printer to perform a form printing process.
[0004]
The form definition body is data that stores information that determines the print format of the form data. The form definition body stores print attributes such as definition information for the entire form such as a paper size and a form size, and definition information for each item such as a position and a size of an item constituting the form.
[0005]
In general, the print format of character data in an item (hereinafter, rectangular item) having a rectangular area in which text data such as characters and numbers are pasted (hereinafter, character data) is represented by the paste area in the item, the number of lines And printing attributes such as the number of digits. Since the form definition body is created prior to the form print processing and is stored in the form print processing software or the user program, there is a limit to the amount of character data that can be pasted into the rectangular items.
[0006]
On the other hand, when printing a plurality of form data as forms of the same format, the amount of character data pasted into rectangular items of the form differs for each form data, and is often undefined. Therefore, depending on the form data, the character data protrudes from the pasting area of the rectangular item defined in the form definition body.
[0007]
In such a case, in the conventional form printing processing, the excess part of the character data of the form data is cut off, and the print data is created using only the character data that can be pasted into the rectangular item area.
[0008]
Alternatively, assuming the character data amount of the form data to be created, prepare several to dozens of form definition bodies defining rectangular items having areas of various sizes, and read the form data Print data is created by switching a plurality of form definition bodies according to the amount of character data.
[0009]
For example, when the number of lines of character data to be printed in a table in a form including a table is indefinite, the form of the frame of the item column of the table is adjusted according to the amount of character data of the form data (for example, the number of lines). Need to be changed. For such a form, a number of form definition bodies corresponding to the number-of-rows pattern in the table frame are prepared.
[0010]
In the conventional text editing process, when there is character data exceeding the amount that can be input to a certain character input area, the character input area is automatically extended so that all character data can be input. (See Patent Document 1).
[0011]
[Patent Document 1]
JP-A-7-114557
[0012]
[Problems to be solved by the invention]
As disclosed in Patent Document 1, in a document editing process, a character input area at the time when character data is input is not fixed, and therefore, character input is performed in consideration of the data amount of the input character data. The area can be reset dynamically.
[0013]
However, in the form printing process using the form definition body, the definition of the rectangular item of the form definition body is fixed at a certain set value. On the other hand, the data amount of the character data pasted into the rectangular item as the form data is variable.
[0014]
Conventionally, at the time of defining a form definition body, it is not possible to change the definition of the form definition body in consideration of the amount of character data to be pasted into a rectangular item at the time of print data creation processing. Therefore, in the conventional print data creation processing, when the data amount of the character data exceeds the area of the corresponding rectangular item, the following problem occurs.
[0015]
1) In the case of processing in which character data exceeding the rectangular item area is truncated and print data is created using only pasteable character data, a state occurs in which part of the form data is not printed on the form. .
[0016]
2) Assuming the amount of data to be pasted into a rectangular item, if a plurality of forms of the form definition body defined so that the sizes of the areas are different are prepared in advance and switched and used, the number of It is necessary to prepare ten forms of the form definition body, and the work processing load is large.
[0017]
In addition, a process of switching a plurality of form definition bodies according to the data amount of the form data is required, and the processing load at the time of print data creation processing is large.
[0018]
An object of the present invention has been made in view of such a problem, and reduces a work load and a processing load caused by using a plurality of form definition bodies for the same form, thereby reducing the amount of form data. Another object of the present invention is to provide a form printing processing program for causing a computer to execute processing for printing a form in an appropriate format.
[0019]
Another object of the present invention is to provide a form definition body creation processing program for causing a computer to execute processing for creating a form definition body used in the form printing processing program.
[0020]
Still another object of the present invention is to provide a recording medium that records a form definition used in the form print processing program.
[0021]
[Means for Solving the Problems]
The present invention relates to a form print processing program for causing a computer to execute form print processing for printing form data using a form definition body in which a print attribute that defines a form and items forming the form is stored. , And causes the computer to execute the following processing.
[0022]
In other words, the form print processing program includes a form data acquisition process for acquiring form data to be printed as a form, and a form data acquisition process that exceeds the area for each rectangular item having an area where the form data is pasted, corresponding to the form data. A form definition body acquisition process for acquiring a form definition body in which a data handling type that specifies handling during print data creation processing is defined, and when the form data exceeds the area of the corresponding rectangular item, the form definition body A print data creation process for creating print data by changing the print attribute of the rectangular item according to the defined data handling type.
[0023]
In the form print processing program, for example, as form definition body acquisition processing, when the form data exceeds the corresponding area, any one of the character pitch, line height, or character size among the print attributes of the rectangular items Acquire a form definition body in which the data handling type to reduce the value of is defined, and as a print data creation process, when the acquired form data exceeds the corresponding area, based on the data handling type, Among the print attributes of the rectangular item, one or more of the print attributes of character pitch, line height, or character size is changed to a small value, and print data is changed using the changed print attribute value. create.
[0024]
Alternatively, as a form definition body acquisition process, when the form data exceeds the corresponding area, a form definition body in which a data handling type for expanding the area of the rectangular item is acquired, and as the print data creation processing, When the acquired form data exceeds the corresponding area, the rectangular data area is extended based on the data handling type to create print data.
[0025]
Further, the present invention allows a computer to execute a form definition body creation process for creating a form definition body storing print attributes for defining a form and a print format of items constituting the form for printing the form. In the form definition body creation processing program of the above, for a rectangular item having an area where the form data to be printed is pasted, a form in which a data handling type for specifying handling of the form data exceeding the area at the time of the print data creation processing is defined The computer is made to execute a process of creating a definition body.
[0026]
Further, the present invention is a computer-readable recording medium for recording a form definition body in which a print attribute for defining a form and a print format of items constituting the form is stored for printing the form. For a rectangular item having an area where the form data to be pasted is pasted, a data handling type for designating the handling at the time of the print data creation processing for the form data exceeding the area is provided.
[0027]
According to the present invention, even when the form data exceeds the area of the rectangular item defined in the form definition body, the print attribute of the rectangular item is changed or the area is enlarged when the print data is created. All of the form data can be pasted into the area. Thus, it is possible to eliminate a state in which a part of the form data is not printed on the form.
[0028]
Further, there is no need to prepare a plurality of forms of the form definition body in advance, assuming the amount of data to be pasted into the rectangular item, and the work load of creating the form definition body can be reduced.
[0029]
Further, at the time of print data creation processing, there is no need to perform a process of switching between a plurality of form definition bodies according to the data amount of the form data, and the form definition body switching processing at the time of print data creation can be eliminated.
[0030]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 shows a configuration example of a system according to an embodiment of the present invention.
[0031]
In this embodiment, the form definition body creation processing program 1 and the print data creation processing program 2 according to the present invention are processing programs that are read by the computer 70 and cause the computer 70 to execute predetermined processing.
[0032]
The form definition body creation processing program 1 is processing means for creating a form definition body 3 for outputting the form data created by the user program 6 as a form. The form definition body creation processing program 1 creates the form definition body 3 based on a value specified by the user through an input / output device 73 connected to the computer 70, through an interactive operation of a GUI (Graphical User Interface).
[0033]
When receiving the form data together with the print request from the user program 6, the print data creation processing program 2 creates print data for printing the form with the printer 74 from the form data based on the designated form definition body 3. Processing means.
[0034]
Note that the print data creation processing program 2 may have a function of creating print data with reference to the printer information 72 that is control information of the printer 74 when creating print data.
[0035]
The form definition body 3 is data that is prepared for each form and defines print attributes for specifying the print style of the form. In the form definition body 3, print attributes are defined for each item constituting the form, and information (data handling type) defining, in the print attribute of the rectangular item, how to handle the form data exceeding the corresponding area in the print data creation process ).
[0036]
FIG. 2 shows the relationship between the form definition body and the form data and print data. As shown in FIG. 2, the form definition body 3 is used to generate, from the form data 4 created by the user program 6, print data 5 to be passed to a printer for printing a form.
[0037]
FIG. 3 shows a data configuration example of the form definition body 3. The form definition body 3 includes a form definition body name for identifying the form definition body, a vertical size / width size of the form for specifying the size of the entire form, a paper size for specifying the size of the output paper, and a form. It consists of data such as a rectangle item r defining the printing attribute of each rectangle item to be composed.
[0038]
The rectangular item r is an item type for specifying the type of the item, a vertical / horizontal width of a rectangle for specifying the size of the item, and a data handling type for designating handling of character data exceeding a corresponding area when creating print data. It consists of data such as.
[0039]
For example, a value “0x10” indicating a rectangular item is set in the item type.
[0040]
In the data handling type, a value designating handling when the data amount of the form data 4 (character data) associated with the rectangular item exceeds the data amount that can be pasted in the defined area, for example, the value “ A value such as “0x00, 0x01, 0x10, 0x11” is set.
[0041]
“0x01” indicates that when character data corresponding to the rectangular item exceeds the area, print data is created by reducing a value of a print attribute such as a defined character size, a character pitch, or a line height. This is a definition that indicates a process to be performed.
[0042]
“0x10” is a definition instructing a process of creating print data by increasing the value of the vertical width of the defined area when the character data corresponding to the rectangular item exceeds the area.
[0043]
In addition, when the character data corresponding to the rectangular item exceeds the area, “0x11” first decreases the value of the print attribute such as the defined character size, character pitch, or line height, This is a definition for instructing a process of creating print data by further increasing the value of the vertical width of the defined area when the character data exceeds the area even according to the print attribute after the definition change.
[0044]
Further, “0x00” is a definition instructing, when character data corresponding to the rectangular item exceeds an area, a process of creating print data by cutting off a portion of the character data that exceeds the area.
[0045]
FIG. 4 shows a configuration example of a processing unit and functions of a processing program according to the embodiment of the present invention.
[0046]
The form definition body creation processing program 1 has a data handling type setting function 11.
[0047]
The data handling type setting function 11 is a function for setting the data handling type in the form definition body 3 by using a GUI.
[0048]
FIG. 5 shows an example of the item creation screen. The item creation screen is a screen for defining items constituting a form when the form definition body 3 is created.
[0049]
When the user pastes a rectangular item object having an area where character data is to be pasted on the form displayed on the item creation screen and specifies the area, the form definition body creation processing program 1 determines the position of the item, A rectangular item r defining the size, the position of the area, the size, and the like is set in the form definition body 3.
[0050]
FIG. 6 shows an example of the rectangle item setting screen.
[0051]
The rectangular item setting screen is a screen for setting print attributes such as a line height, a region size, and a data handling type when character data is pasted into a rectangular item region for each item. The data handling type is set by selecting the "output all data in item" field on the rectangular item setting screen.
[0052]
When the user specifies the row height, data handling type, and the like on the rectangular item setting screen, the form definition body creation processing program 1 sets the value specified in the rectangular item r of the form definition body 3.
[0053]
When the user selects "output with expanded vertical width" as the setting of the data handling type, "0x10" is set as the data handling type of the rectangular item r. Further, the value input by the user to the maximum vertical width indicating the expansion limit of the vertical width of the area is set in the rectangular item r.
[0054]
When the user selects “output with reduced character pitch or the like”, “0x01” is set as the data handling type of the rectangular item r.
[0055]
When the user selects both “output with expanded vertical width” and “output with reduced character pitch and the like”, “0x11” is set as the data handling type. Further, the first set value (character pitch, line height, etc.) specified by the user to be reduced is set in the rectangular item r.
[0056]
Further, when the user does not select any of the settings of “output with expanded vertical width” or “output with reduced character pitch or the like”, “0x00” is set as the data handling type.
[0057]
The form definition body creation processing program 1 sets the character size and character pitch specified by the user on the screen (not shown) for setting the print attribute of the rectangular item in the rectangular item r.
[0058]
The print data creation processing program 2 includes a form definition body read processing unit 21, a form data read processing unit 22, and a print data creation processing unit 23.
[0059]
The form definition body reading processing unit 21 performs a process of reading the form definition body 3. The form data reading processing unit 22 performs a process of reading the form data 4 to be printed created by the user program 6.
[0060]
The print data creation processing unit 23 includes a data handling type determination function 25 and a data amount determination function 26.
[0061]
The data handling type determination function 25 determines the set value of the data handling type of the rectangular item r of the read form definition body 3.
[0062]
The data amount determination function 26 calculates the number of characters (the number of set characters) that can be pasted into an area (vertical width / width) from the line height, character size, and character pitch of the setting item r. It is determined whether or not the total number of characters of 4 (character data) exceeds the set number of characters.
[0063]
When the print data 5 is created by sequentially extracting the definition information of the items located at the top of the form from the form definition body 3 and forming the print data 5, the print data creation processing unit 23 performs data handling if the extracted items are rectangular items. Character data is pasted into the area according to the data handling type determined by the type determination function 25 and the data amount determination function 26 to create print data.
[0064]
Hereinafter, the processing of the print data creation processing unit 23 will be described with reference to FIGS. 7 and 8. FIGS. 7 and 8 are diagrams for explaining print data creation processing when the total number of characters of character data exceeds the set number of characters in an area.
[0065]
When the data handling type of the rectangular item r is 0x01 (reducing the character pitch or the like), the print data creation processing unit 23 determines the character pitch, the character size, and the line set in the rectangular item r as follows. The print data is created by reducing the height value of.
[0066]
(1) Output processing with reduced character pitch
When the character pitch of the rectangular item r is larger than the character size, the print data creation processing unit 23 changes the character pitch to a smaller value and creates print data. The reduction of the character pitch is limited to the same value as the character size so that characters do not overlap.
[0067]
As shown in FIG. 7A, in the conventional processing, even if the form data 4 "The output character string cannot be accommodated at the defined character pitch" protrudes from the area and a part is not printed, the rectangular item r By generating the print data by reducing the character pitch, all the form data 4 can be output.
[0068]
(2) Processing for reducing and outputting the row height
When the height of the line of the rectangular item r is larger than the character size, the print data creation processing unit 23 changes the line height to a smaller value to create print data. The reduction of the line height is limited to the same value as the character size so that the lines do not overlap.
[0069]
As shown in FIG. 7B, a case where form data 4 “the output character string does not fit in the defined line height” protrudes from the rectangular item area in the conventional processing and a part thereof is not printed. However, by generating the print data by reducing the height of the row of the rectangular item r, the entire form data 4 can be output.
[0070]
(3) Processing for reducing character pitch and line height for output
When the character pitch and the line height of the rectangular item r are larger than the character size, the print data creation processing unit 23 creates print data by changing both the character pitch and the line height to small values. Reduction of character pitch and line height is limited to the same value as character size.
[0071]
As shown in FIG. 7C, in the conventional processing, even if the form data 4 “the output character string does not fit in the defined line height” protrudes from the area of the rectangular item and a part is not printed, By generating print data by reducing the character pitch and line height of the rectangular item r, all of the form data 4 can be output.
[0072]
(4) Processing for reducing character size and outputting
The print data creation processing unit 23 creates the print data by changing the character size of the rectangular item r to a small value, and changing the character pitch and line height to values corresponding to the reduced character size.
[0073]
As shown in FIG. 7 (D), in the conventional processing, the form data 4 “the output character string may not fit in the defined character size” may be out of the rectangular item area and may not be partially printed. By generating print data by reducing the character size of the rectangular item r, the entire form data 4 can be output.
[0074]
The print data creation processing unit 23 can also create print data by combining the processes (1) to (4).
[0075]
For example, if the character pitch and line height of the rectangular item r are larger than the character size, the order is (1) → (2) → (3) → (4) or (2) → (1) → The print attributes of the form data are adjusted in the order of (3) → (4) to create print data. The user can specify which of the adjustments (1) and (2) is to be used for the processing on the rectangular item setting screen.
[0076]
If the character pitch of the rectangular item r is larger than the character size and the height of the line is equal to the character size, processing is performed in the order of (1) → (4). If the character pitch is smaller than or equal to the character size and the line height is larger than the character size, processing is performed in the order of (2) → (4). If the character pitch is smaller than or equal to the character size and the height of the line is equal to the character size, only the process (4) is performed.
[0077]
If the data handling type is 0x10 (extending the vertical width of the area), the print data creation processing unit 23 changes the vertical width of the rectangle of the rectangular item r to a larger value as described below. Expand the area and create print data.
[0078]
(5) Processing for expanding and outputting the vertical width of the item area
Based on the character size, character pitch, line height, and width of the rectangle of the rectangle item r, the print data creation processing unit 23 finds an extended area necessary for pasting the total number of characters of the form data 4, and The vertical width of the rectangle of the item r is changed to the value of the vertical width of the extended area, and the form data 4 is pasted into the secured extended area to create print data.
[0079]
As shown in FIG. 8A, in the conventional processing, the form data 4 “The output character string cannot be accommodated in the defined vertical size” protrudes from the area of the rectangular item and even if a part is not printed, the rectangular item By generating print data by extending the vertical width of the rectangle of r, all of the form data 4 can be output.
[0080]
The limit of the extension of the vertical width of the rectangle is limited to the range set as the rectangle item. However, in the case of setting to allow the extension of the range of the rectangle item together with the extension of the area, the limit is shown in FIG. Thus, the print data is created by simultaneously expanding the range of the rectangular items.
[0081]
9 and 10 show a processing flow of the print data creation processing program 2.
[0082]
As shown in FIG. 9, the print data creation processing program 2 starts upon receiving a print request from the user program 6.
[0083]
In the print data creation processing program 2, the form data reading processing unit 22 receives the form data 4 (step S1). Further, the corresponding form definition body 3 is read by the form definition body reading processing section 21 based on the received form data 4 (step S2).
[0084]
The print data creation processing unit 23 extracts the rectangular item r of the form definition body 3 from the item located at the top of the form (step S3). If there is any item not extracted in the form definition body 3 (step S4), print data is created based on the position and print attribute of the rectangular item r (step S5).
[0085]
Further, the next item is extracted from the form definition body 3 (step S6), the process returns to step S4, and the process of step S5 is repeated. On the other hand, if there is no item to be taken out (step S4), the process is terminated and the control returns to the user program 6.
[0086]
FIG. 10 shows a more detailed processing flow of the print data creation processing in step S5.
[0087]
In the print data creation processing unit 23, the data handling type determination function 25 determines whether the item type of the item extracted from the form definition body 3 is a rectangular item (step S51). Then, the data handling type is determined (step S52).
[0088]
If the data handling type is "0x00 (excess character truncation)", the data amount determination function 26 determines whether the form data 4 (character data) exceeds the area. Then, print data is created by cutting off characters exceeding the area (step S53).
[0089]
When the print type is “0x01 (reduction of character pitch or the like)”, the data amount determination function 26 determines whether the form data 4 (character data) exceeds the area, and determines whether the character data If it exceeds, the print data is created with the character pitch, line height, and character size of the rectangular item r reduced (step S54).
[0090]
When the print type is “0x10 (extended rectangular width)”, the data amount determination function 26 determines whether the form data 4 (character data) exceeds the area. If it exceeds, the print data is created by expanding the vertical width of the rectangle of the rectangle item r (step S55).
[0091]
When the print type is “0x11 (reduction of character pitch and the like and expansion of vertical width of rectangle)”, the data amount determination function 26 determines whether the form data 4 (character data) exceeds the area. If the character data exceeds the area, the character pitch, line height, and character size of the rectangle item r are reduced, and if the character data exceeds the area, the height of the rectangle of the rectangle item r is extended. To create print data (step S56).
[0092]
On the other hand, in the process of step S51, if the item type of the item is not a rectangular item, print data is created based on the position of the item and the print attribute (step S57).
[0093]
Although the present invention has been described with reference to the embodiments, it is obvious that the present invention can be variously modified within the scope of the gist.
[0094]
For example, as an embodiment of the present invention, FIG. 1 shows an example in which a form definition body creation processing program 1 and a print data creation program 2 are provided in the same computer 70. The body creation processing program 1 and the print data creation program 2 may be provided in separate computers.
[0095]
In addition, although each processing means or function or element of the present invention has been described as being implemented as a processing program read and executed by a computer, the processing program for realizing the present invention is a computer-readable portable medium. It can be stored in an appropriate recording medium such as a memory, a semiconductor memory, or a hard disk, and is provided by being recorded on these recording media, or provided by transmission / reception using various communication networks via a communication interface. It is.
[0096]
The features of the embodiments and examples of the present invention are listed below.
[0097]
(Supplementary Note 1) In a form print processing program for causing a computer to execute form print processing for printing form data using a form definition body storing print attributes that define a form and the print format of items constituting the form. ,
A form data acquisition process for acquiring form data to be printed as a form,
A form for obtaining a form definition body in which a data handling type that specifies the handling at the time of print data creation processing of form data that exceeds the area for each rectangular item having an area where the form data is pasted, corresponding to the form data, is defined. Definition body acquisition processing,
When the form data exceeds the area of the corresponding rectangular item, a print data creation process of changing the print attribute of the rectangular item according to the data handling type defined in the form definition body to create print data,
Let the computer run
A form printing processing program characterized by the following.
[0098]
(Supplementary Note 2) In the form printing processing program according to Supplementary Note 1,
When the form data exceeds the corresponding area as the form definition body acquisition processing, data indicating that one of the character pitch, line height, or character size among the print attributes of the rectangular items is reduced. The process of acquiring the form definition body in which the handling type is defined,
In the print data creation process, when the acquired form data exceeds the corresponding area, based on the data handling type, the print attributes of the rectangular items include a character pitch, a line height, or a character size. The process of changing any one or more of the print attribute values to a smaller value, and creating print data using the changed print attribute value,
Let the computer run
A form printing processing program characterized by the following.
[0099]
(Supplementary Note 3) In the form printing processing program according to the supplementary note 1,
As the form definition body acquisition process, when the form data exceeds the corresponding area, a process of acquiring a form definition body in which a data handling type for extending the area of the rectangular item is defined,
As the print data creation processing, when the acquired form data exceeds the corresponding area, based on the data handling type, expand the area of the rectangular item to create print data,
Let the computer run
A form printing processing program characterized by the following.
[0100]
(Supplementary Note 4) A form for causing a computer to execute a form definition body creation process for creating a form definition body storing print attributes for defining a form and a print format of items constituting the form for printing the form In the definition body creation processing program,
For a rectangular item having an area where the form data to be printed is pasted, a process of creating a form definition body in which a data handling type that specifies the handling during the print data creation process for the form data exceeding the area is defined.
Let the computer run
A form definition body creation processing program characterized in that:
[0101]
(Supplementary Note 5) In the form definition body creation processing program according to the supplementary note 4,
The data handling type is defined such that when the form data exceeds the corresponding area, the value of any one of the character pitch, line height, or character size among the print attributes of the rectangular items is reduced. It is a form definition body
A form definition body creation processing program characterized in that:
[0102]
(Supplementary Note 6) In the form definition body creation processing program according to the supplementary note 4,
The data handling type is a form definition body in which a data handling type for extending the area of the rectangular item when the form data exceeds the corresponding area is defined.
A form definition body creation processing program characterized in that:
[0103]
(Supplementary Note 7) A computer-readable recording medium that records a form definition body that stores a form and a print attribute that defines a print format of items constituting the form for printing the form.
A recording medium recording a form definition body for a rectangular item having an area to which form data to be printed is to be pasted, the form definition body having a data handling type for designating handling of form data exceeding the area at the time of print data creation processing.
[0104]
(Supplementary Note 8) In a form print processing apparatus that prints form data using a form definition body in which a print attribute that defines a form and a print format of items constituting the form is stored,
Form data acquisition means for acquiring form data to be printed as a form,
A form for acquiring a form definition body in which a data handling type that specifies the handling of the form data exceeding the area at the time of print data creation processing is defined for each rectangular item having an area where the form data is pasted, corresponding to the form data Definition body obtaining means;
When the form data exceeds the area of the corresponding rectangular item, a print data creating unit that creates print data by changing a print attribute of the rectangular item according to a data handling type defined in the form definition body, Prepare
A form print processing apparatus, characterized in that:
[0105]
(Supplementary Note 9) In a form print processing method for printing form data using a form definition body in which a print attribute defining a form and a print format of an item constituting the form is stored,
Get the form data to be printed as a form,
Corresponding to the form data, obtain a form definition body in which a data handling type that specifies the handling at the time of print data creation processing of the form data exceeding the area for each rectangular item having an area where the form data is pasted,
When the form data exceeds the area of the corresponding rectangular item, print data is generated by changing the print attribute of the rectangular item according to the data handling type defined in the form definition body.
A form printing processing method, characterized in that:
[0106]
【The invention's effect】
As described above, according to the present invention, it is possible to perform form printing of form data having a different data amount created by a user program only by preparing one form definition body for the same form. Become.
[0107]
Thereby, the work load of creating a plurality of form definition bodies for one form can be reduced.
[0108]
Further, at the time of printing a form, it is possible to reduce a processing load of switching a plurality of form definition bodies and creating print data.
[0109]
Part of the data is truncated, especially in order forms that include fields such as addresses and product names, customer management ledgers that include fields for addresses and company names, and various forms that have remarks that allow free entry. Thus, it is possible to prevent a situation in which the document is printed after being printed, and it is possible to reduce the work load and work efficiency of the work using the form.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a configuration example of a system according to an embodiment of the present invention.
FIG. 2 is a diagram for explaining the relationship between a form definition body and form data and print data.
FIG. 3 is a diagram illustrating a data configuration example of a form definition body.
FIG. 4 is a diagram illustrating a configuration example of a processing unit and a function of a processing program according to the embodiment of the present invention.
FIG. 5 is a diagram showing an example of an item creation screen.
FIG. 6 is a diagram illustrating an example of a rectangle item setting screen.
FIG. 7 is a diagram for explaining print data creation processing when the total number of characters of character data exceeds the set number of characters in an area.
FIG. 8 is a diagram for explaining print data creation processing when the total number of characters of character data exceeds the set number of characters in an area.
FIG. 9 is a diagram illustrating a processing flow of a print data creation processing program.
FIG. 10 is a diagram showing a more detailed processing flow of print data creation processing in step S5 of FIG. 9;
[Explanation of symbols]
1 Form definition body creation processing program
11 Data handling type setting function
2 Print data creation processing program
21 Form definition body reading processing unit
22 Form data read processing unit
23 Print data creation processing unit
25 Data handling type judgment function
26 Data amount judgment function
3 Form definition body
4 Form data
5 Print data
6 user programs
70 Computer
72 Printer information
73 input / output devices
74 Printer

Claims (5)

帳票および帳票を構成する項目の印刷体裁を定義する印刷属性が記憶された帳票定義体を用いて帳票データを印刷する帳票印刷処理を、コンピュータに実行させるための帳票印刷処理プログラムにおいて、
帳票として印刷される帳票データを取得する帳票データ取得処理と、
前記帳票データに対応し、帳票データが貼り込まれる領域を持つ矩形項目ごとに領域を超える帳票データの印刷データ作成処理時の取り扱いを指定するデータ取扱種別が定義された帳票定義体を取得する帳票定義体取得処理と、
前記帳票データが対応する矩形項目の領域を超える場合に、前記帳票定義体に定義されたデータ取扱種別にしたがって前記矩形項目の印刷属性を変更して印刷データを作成する印刷データ作成処理とを、
コンピュータに実行させる
ことを特徴とする帳票印刷処理プログラム。
A form print processing program for causing a computer to execute a form print processing for printing form data using a form definition body in which print attributes that define a form and items constituting the form are stored.
A form data acquisition process for acquiring form data to be printed as a form,
A form for obtaining a form definition body in which a data handling type that specifies the handling at the time of print data creation processing of form data that exceeds the area for each rectangular item having an area where the form data is pasted, corresponding to the form data, is defined. Definition body acquisition processing,
When the form data exceeds the area of the corresponding rectangular item, a print data creation process of changing the print attribute of the rectangular item according to the data handling type defined in the form definition body to create print data,
A form printing processing program that is executed by a computer.
請求項1記載の帳票印刷処理プログラムにおいて、
前記帳票定義体取得処理として、帳票データが対応する領域を超えるときは、前記矩形項目の印刷属性のうち、文字ピッチ、行の高さ、もしくは文字サイズのいずれかの値を小さくする旨のデータ取扱種別が定義された帳票定義体を取得する処理を、
前記印刷データ作成処理として、取得した帳票データが対応する領域を超えた場合に、前記データ取扱種別をもとに、前記矩形項目の印刷属性のうち、文字ピッチ、行の高さ、もしくは文字サイズのいずれか一つまたは複数の印刷属性値を小さい値に変更し、前記変更した印刷属性値を用いて印刷データを作成する処理を、
コンピュータに実行させる
ことを特徴とする帳票印刷処理プログラム。
The form printing processing program according to claim 1,
When the form data exceeds the corresponding area as the form definition body acquisition processing, data indicating that one of the character pitch, line height, or character size among the print attributes of the rectangular items is reduced. The process of acquiring the form definition body in which the handling type is defined,
In the print data creation process, when the acquired form data exceeds the corresponding area, based on the data handling type, the print attributes of the rectangular items include a character pitch, a line height, or a character size. The process of changing any one or more of the print attribute values to a smaller value, and creating print data using the changed print attribute value,
A form printing processing program that is executed by a computer.
請求項1記載の帳票印刷処理プログラムにおいて、
前記帳票定義体取得処理として、帳票データが対応する領域を超えるときは、前記矩形項目の領域を拡張する旨のデータ取扱種別が定義された帳票定義体を取得する処理を、
前記印刷データ作成処理として、取得した帳票データが対応する領域を超えた場合に、前記データ取扱種別をもとに、前記矩形項目の領域を拡張して印刷データを作成する処理を、
コンピュータに実行させる
ことを特徴とする帳票印刷処理プログラム。
The form printing processing program according to claim 1,
As the form definition body acquisition process, when the form data exceeds the corresponding area, a process of acquiring a form definition body in which a data handling type for extending the area of the rectangular item is defined,
As the print data creation processing, when the acquired form data exceeds the corresponding area, based on the data handling type, expand the area of the rectangular item to create print data,
A form printing processing program that is executed by a computer.
帳票の印刷のために、帳票および帳票を構成する項目の印刷体裁を定義する印刷属性が記憶された帳票定義体を作成する帳票定義体作成処理を、コンピュータに実行させるための帳票定義体作成処理プログラムにおいて、
印刷される帳票データが貼り込まれる領域を持つ矩形項目について、前記領域を超える帳票データに対する印刷データ作成処理時の取り扱いを指定するデータ取扱種別が定義された帳票定義体を作成する処理を、
コンピュータに実行させる
ことを特徴とする帳票定義体作成処理プログラム。
A form definition body creation process for causing a computer to execute a form definition body creation process for creating a form definition body storing print attributes for defining a form and a print format of items constituting the form for printing the form In the program,
For a rectangular item having an area where the form data to be printed is pasted, a process of creating a form definition body in which a data handling type that specifies the handling during the print data creation process for the form data exceeding the area is defined.
A form definition body creation processing program that is executed by a computer.
帳票の印刷のために、帳票および帳票を構成する項目の印刷体裁を定義する印刷属性が記憶された帳票定義体を記録するコンピュータが読み取り可能な記録媒体であって、
印刷される帳票データが貼り込まれる領域を持つ矩形項目について、前記領域を超える帳票データに対する印刷データ作成処理時の取り扱いを指定するデータ取扱種別を備える帳票定義体を記録した記録媒体。
A computer-readable recording medium for recording a form definition body in which print attributes for defining a form and a print format of items constituting the form are stored for printing the form.
A recording medium recording a form definition body for a rectangular item having an area to which form data to be printed is to be pasted, the form definition body having a data handling type for designating handling of form data exceeding the area at the time of print data creation processing.
JP2003148716A 2003-05-27 2003-05-27 Form print processing program, form definition object creation processing program and recording medium with form definition object recorded thereon Pending JP2004355077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003148716A JP2004355077A (en) 2003-05-27 2003-05-27 Form print processing program, form definition object creation processing program and recording medium with form definition object recorded thereon

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003148716A JP2004355077A (en) 2003-05-27 2003-05-27 Form print processing program, form definition object creation processing program and recording medium with form definition object recorded thereon

Publications (1)

Publication Number Publication Date
JP2004355077A true JP2004355077A (en) 2004-12-16

Family

ID=34045008

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003148716A Pending JP2004355077A (en) 2003-05-27 2003-05-27 Form print processing program, form definition object creation processing program and recording medium with form definition object recorded thereon

Country Status (1)

Country Link
JP (1) JP2004355077A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007080247A (en) * 2005-08-15 2007-03-29 Canon Inc Information processing apparatus, information processing method, program and storage medium
JP2007115078A (en) * 2005-10-21 2007-05-10 Canon Inc Information processor, printing device, information processing method, program and storage medium
JP2010140122A (en) * 2008-12-10 2010-06-24 Fujitsu Ltd Program, apparatus and method for generating spreadsheet
JP2010257168A (en) * 2009-04-24 2010-11-11 Fujitsu Ltd Device, method and program for controlling input screen
JP2013009378A (en) * 2012-07-23 2013-01-10 Canon Inc Image processing apparatus, image processing method, computer program, and memory medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007080247A (en) * 2005-08-15 2007-03-29 Canon Inc Information processing apparatus, information processing method, program and storage medium
US8253967B2 (en) 2005-08-15 2012-08-28 Canon Kabushiki Kaisha Information processing apparatus and information processing method
JP2007115078A (en) * 2005-10-21 2007-05-10 Canon Inc Information processor, printing device, information processing method, program and storage medium
JP4574513B2 (en) * 2005-10-21 2010-11-04 キヤノン株式会社 Information processing apparatus, printing apparatus, information processing method, program, and storage medium
US8194263B2 (en) 2005-10-21 2012-06-05 Canon Kabushiki Kaisha Technique to process a tint block image for restraining a material printed by a printing apparatus from being copied
JP2010140122A (en) * 2008-12-10 2010-06-24 Fujitsu Ltd Program, apparatus and method for generating spreadsheet
JP2010257168A (en) * 2009-04-24 2010-11-11 Fujitsu Ltd Device, method and program for controlling input screen
JP2013009378A (en) * 2012-07-23 2013-01-10 Canon Inc Image processing apparatus, image processing method, computer program, and memory medium

Similar Documents

Publication Publication Date Title
US7426057B2 (en) Document processing method
JP2002111995A (en) Image editing device and method and image print control device and method
JP5526874B2 (en) Image processing apparatus and image processing program
JP2004012633A (en) List display of multiple images
JP2004355077A (en) Form print processing program, form definition object creation processing program and recording medium with form definition object recorded thereon
JPH11143872A (en) Reduced picture preparation device
US8332749B2 (en) Adjusting tables in a document to avoid overlap with last page graphics
JP2006331301A (en) Image editing apparatus, image editing method, program, and storage medium
JP2003230005A (en) Album production system, and computer-readable recording medium recorded with processing program
JP4250233B2 (en) Information processing apparatus, method, and storage medium
JP6481904B2 (en) Learning device, editing device, learning method, editing method, and program
JP2004240672A (en) Image edit program
US20060209311A1 (en) Image processing apparatus and image processing method
JP2007287099A (en) Processing method and apparatus for arrangement setting information of variable table sum-up line in document layout and medium
JP4123168B2 (en) Image processing system, image processing method, template generation system, and template data structure
JP2011186835A (en) Image processing apparatus and image processing program
JPH10232916A (en) Image editing device and method, and medium recording program
JP2003186634A (en) Printing data output apparatus and program
JP2004220327A (en) Printing system
WO2023119610A1 (en) Information processing device, layout assistance method, and layout assistance program
JP4168938B2 (en) Image processing apparatus, image processing program, and image processing method
JP2002158860A (en) Image editor, method and system for editing image
KR0185306B1 (en) Postprocessing drawing creation method
JP2004046836A (en) Printer host, print command creation device, and storage medium storing program
JP2005332244A (en) Image processing apparatus and image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051209

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080515

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080624

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090203