JP2004038506A - Method, device, system, and program for business form printing, recording medium for recording the same program and computer - Google Patents
Method, device, system, and program for business form printing, recording medium for recording the same program and computer Download PDFInfo
- Publication number
- JP2004038506A JP2004038506A JP2002193932A JP2002193932A JP2004038506A JP 2004038506 A JP2004038506 A JP 2004038506A JP 2002193932 A JP2002193932 A JP 2002193932A JP 2002193932 A JP2002193932 A JP 2002193932A JP 2004038506 A JP2004038506 A JP 2004038506A
- Authority
- JP
- Japan
- Prior art keywords
- line width
- information
- printer
- printing
- 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.)
- Granted
Links
Images
Landscapes
- Record Information Processing For Printing (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、税申告書等の罫線を含んだ帳票を印刷する方法および装置に関する。また、本発明は、そのような方法をコンピュータに実行させるためのプログラム、このプログラムを記録した記録媒体、およびこのプログラムがインストールされたコンピュータにも関する。
【0002】
【従来の技術】
確定申告書や地方税申告書といった税申告書等の帳票では、文字枠に申告内容を表す数字等の文字が記載される。このような税申告書等の作成は、納税データをコンピュータ処理したうえでプリンタで印刷することにより行うのが一般的である。その際、予め文字枠が表示された所定様式の用紙に印刷しようとすると、文字が文字枠内に正しく配置されるように印刷位置を細かく調整することが必要となって面倒である。そこで、印刷位置の細かな調整を行わなくとも文字を文字枠内に正しく印刷できるように、従来より、例えば、白紙の用紙に文字枠と文字の両方を印刷することが行われている。
【0003】
【発明が解決しようとする課題】
ところで、上記のように文字枠等の罫線を含んだ帳票の印刷を行う場合、プリンタに対して同じ罫線幅の印刷指示を与えても、プリンタ機種によっては印刷された罫線の幅が異なる場合がある。このため、あるプリンタでは罫線が適度な線幅で印刷されるのに、他のプリンタでは罫線が太過ぎたり、あるいは、細過ぎて見難くなったりすることある。しかしながら、従来は、帳票印刷にあたり、印刷された罫線幅がプリンタ機種により異なることについて何ら考慮されていない。このため、上記のように文字と文字枠の両方を印刷することとした場合、使用するプリンタの機種によっては、罫線の印刷幅の違いから帳票の見栄えが悪くなってしまうことが起こり得る。
【0004】
本発明は上記の点に鑑みてなされたものであり、帳票に含まれる罫線をプリンタ機種にかかわらず適切な線幅で印刷できるようにすることを目的とする。
【0005】
【課題を解決するための手段】
本発明は、帳票を印刷するための帳票印刷方法であって、コンピュータが、
前記帳票を構成する罫線の線幅を含んだ帳票定義情報を取得する定義情報取得ステップと、
前記帳票定義情報に含まれる罫線幅に対応して、使用するプリンタへの罫線印刷指令で指定すべき罫線幅を表す線幅変換情報を取得する線幅情報取得ステップと、
前記取得した帳票定義情報および線幅変換情報に基づいて、当該帳票定義情報に含まれる罫線幅を当該線幅変換情報に応じて変換した帳票印刷データを作成するステップと、
該作成した帳票印刷データを出力するステップとを実行することを特徴とする。
【0006】
本発明によれば、帳票定義情報に含まれる罫線幅に対応して、使用するプリンタへの罫線印刷指令で指定すべき罫線幅を表す線幅変換情報を取得し、この線幅変換情報に応じて罫線幅を変換した帳票印刷データを作成する。このため、帳票に含まれる罫線をプリンタ機種にかかわらず適切な線幅で印刷することができる。
【0007】
この場合、コンピュータが、前記帳票へ表示すべきデータ内容を表す帳票内容情報を取得するステップを更に実行し、
前記印刷データ作成ステップでは、前記取得した帳票内容情報を含んだ前記印刷データを作成することとしてもよい。
【0008】
また、前記線幅情報取得ステップでは、ユーザにより入力された前記線幅変換情報を取得することとしてもよい。このようにすれば、ユーザが自ら線幅変換情報を入力できるので、例えば、新規なプリンタを導入した場合にも、そのプリンタに応じた適切な線幅変換情報により変換された罫線幅を用いて帳票印刷を行うことができる。
【0009】
また、コンピュータが、使用するプリンタの機種をユーザに選択させるステップを更に実行し、
前記線幅情報取得ステップでは、プリンタの各機種について前記線幅変換情報が記録されたデータ記憶部を参照して、前記選択されたプリンタ機種についての前記線幅変換情報を取得することとしてもよい。このようにすれば、ユーザがプリンタ機種を選択すると、当該プリンタ機種に適合した線幅変換情報により変換された罫線幅を用いて帳票印刷を行うことができる。
【0010】
この場合、コンピュータが、ユーザ入力に基づいて前記データ記憶部に記憶された前記線幅情報を設定する設定ステップを更に実行することとしてもよい。そして、この設定ステップは、ユーザがプリンタ機種を選択するための機種選択画面を表示するステップと、該機種選択画面で選択されたプリンタ機種についてユーザが前記線幅変換情報を設定するための線幅設定画面を表示するステップと、前記機種選択画面で選択されたプリンタ機種について、前記線幅設定画面で設定された線幅情報を前記データ記憶部に格納するステップとを含むこととしてもよい。
【0011】
また、本発明は、上記の帳票印刷方法をコンピュータに実行させるプログラム、このプログラムを記録した記録媒体、およびこのプログラムがインストールされたコンピュータも含む。
【0012】
また、本発明は、帳票を印刷するための帳票印刷装置であって、
前記帳票を構成する罫線の線幅を含んだ帳票定義情報を取得する手段と、
前記帳票定義情報に含まれる罫線幅に対応して、使用するプリンタへ与える罫線印刷指令で指定すべき罫線幅を表す線幅変換情報を取得する手段と、
前記取得した帳票定義情報および線幅変換情報に基づいて、当該帳票定義情報に含まれる罫線幅を当該線幅変換情報に応じて変換した帳票印刷データを作成する手段と、
該作成した帳票印刷データを出力する手段とを備えることを特徴とする。
【0013】
さらに、本発明は、このような帳票印刷装置と、当該帳票印刷装置から出力された印刷データに応じて印刷を行うプリンタとにより構成された帳票印刷システムを含む。
【0014】
【発明の実施の形態】
図1は、本発明の一実施形態である帳票印刷システム10の構成図である。同図に示すように、帳票印刷システム10は、コンピュータ12とプリンタ14とにより構成されている。プリンタ14は例えばインクジェット式またはレーザ式のカラープリンタである。本実施形態では、一または複数機種のプリンタ14が設けられており、それらプリンタ14は、コンピュータ12のOS(例えばWindows(登録商標))に登録されている。ユーザは、登録されたプリンタ14の中から、印刷に使用するプリンタをコンピュータ12上で選択することができる。以下、このように選択されたプリンタ14を使用プリンタと称する。
【0015】
コンピュータ12が備えるハードディスク装置等の記憶装置16には、帳票印刷プログラム18がインストールされている。記憶装置16には、また、帳票定義ファイル20、印刷色変換ファイル22、線幅変換ファイル24、および、帳票内容ファイル26が記録されている。後述するように、帳票印刷プログラム18は、これらのファイル20〜26を参照して帳票の印刷データを生成し、使用プリンタ用のプリンタドライバ28へ出力する。プリンタドライバ28は、この印刷データに基づいて、使用プリンタの機種に適合した印刷コマンドを当該使用プリンタへ送信する。
【0016】
なお、帳票印刷プログラム18は、フレキシブルディスク、CD−ROM、DVD−ROM等の記録媒体30に格納され配布されてコンピュータ12の記憶装置16にインストールされることとしてもよいし、ネットワーク経由でコンピュータ12にダウンロードされて記憶装置16にインストールされることとしてもよい。あるいは、当初から帳票印刷プログラム18を記憶装置16にインストールして、帳票印刷システム10を帳票印刷用の装置としてユーザに提供することとしてもよい。
【0017】
図2および図3は、本実施形態の帳票印刷システム10により印刷された帳票の例を示すものであり、図2は法人税確定申告書を、図3は消費税申告書を示す。これらの図に示すように、帳票には、申告項目毎の金額や日付等の数字を1文字ずつ入力するための文字枠50を構成する罫線52aや帳票を適宜区画する罫線52b(罫線52と総称する)、各申告項目等の名称(タイトル)を示すタイトル文字54、項目の連番や年月日における「平成」・「年」・「月」・「日」等の帳票を目視確認するうえで必要な補助文字56、該当項目を丸印で選択するための選択用丸印58等が印刷される。
【0018】
帳票の印刷内容のうち、罫線52および補助文字56は、枠50内に印刷される数字(以下、データ文字60という)と近接して印刷されるものであり、これらがOCRで読み取られると、データ文字60の認識エラーが生ずるおそれがある。また、選択用丸印58についても、OCRで読み取られてしまうと、どの項目が選択されたのか認識不能となってしまう。そこで、本実施形態では、罫線52、補助文字56、および選択用丸印58をドロップアウトカラーで印刷することにより、文字枠50内のデータ文字60や、選択用丸印58での選択項目をOCRによって正しく認識することができるようにしている。また、図2の例では、用紙右上部の「青色申告」の欄に背景色62が付されているが、この背景色62もドロップアウトカラーとなっている。
【0019】
図4は、帳票定義ファイル20に格納されたデータの例を示す。同図に示すように、帳票定義ファイル20には、各種類の帳票について、帳票に印刷すべき罫線52に関する罫線情報、タイトル文字54や補助文字56に関する文字情報、各申告項目のデータ文字60に関するデータ文字情報等が格納されている。罫線情報には、各帳票に含まれる各罫線52についての始点座標、終点座標、線幅、および印刷色が含まれている。文字情報には、各タイトル文字54および補助文字56についての文字列、印刷開始位置、および印刷色が含まれている。また、データ文字情報には、各申告項目の項目名およびデータ文字60の開始位置が含まれている。
【0020】
なお、本実施形態では、印刷色をRGB値(R,G,Bの各レベルを例えば0〜255の256段階で表す値)で表現されるものとしている。そして、本実施形態では、複数(例えば4種類)のドロップアウトカラーDC1〜DC4が用いられるものとし、それらのRGB値を、例えばDC1:(255,128,64),DC2:(255,128,128),DC3:(255,32,128),DC4:(255,64,0)としている。
【0021】
図5は、印刷色変換ファイル22に格納されたデータの例を示す。同図に示すように、印刷色変換ファイル22には、プリンタ機種および帳票の提出先の組み合わせ(以下、「機種/提出先」という)毎に、罫線定義情報で印刷色として指定されたドロップアウトカラーDC1〜DC4と、実際にプリンタに指示すべき印刷色との対応関係を表す情報(以下、印刷色変換情報という)が格納されている。すなわち、プリンタに同じ印刷色の印刷指令を与えてもプリンタ機種によって色調は相違し、また、帳票の提出先によっても、使用されるOCRの機種の相違からドロップアウトカラーの色調が異なる場合があることから、そのようなプリンタ機種や提出先に応じたドロップアウトカラーの色調の相違を吸収すべく、機種/提出先に応じた印刷色変換情報を印刷色変換ファイル22に格納しているのである。図5の例では、機種/提出先が「EPSON LP8800C 東京」(EPSON LP8800Cにより東京都内の税務署へ提出する帳票を印刷する)の場合、ドロップアウトカラーDC1:(255,128,64),DC2:(255,128,128),DC3:(255,32,128),DC4:(255,64,0)に対して、夫々、印刷色(255,128,64),(255,128,128),(255,32,128),(255,64,0)が対応付けられている。
【0022】
図6は、線幅変換ファイル24に格納されたデータの例を示す。同図に示すように、線幅変換ファイル24には、プリンタ機種毎に、帳票定義情報で指定された罫線幅と、実際にプリンタに指示すべき罫線幅との対応関係を表す情報(以下、線幅変換情報という)が格納されている。すなわち、プリンタに同じ線幅の罫線印刷指令を与えても、プリンタ機種によって実際に印刷される罫線の幅は相違する場合があることから、そのような罫線幅の機種依存性を吸収すべく、線幅変換ファイル24にプリンタ機種に応じた線幅変換情報を格納しているのである。なお、本実施形態では、罫線幅を例えばポイント数で表すものとしている。図6の例では、例えば「EPSON LP8800C」について、帳票定義情報での罫線幅「3」,「5」,「7」に対して、夫々、罫線幅「4」,「7」,「9」が対応付けられている。
【0023】
なお、帳票内容ファイル26には、帳票に申告内容として記載すべき情報(以下、帳票内容情報という)が格納される。後述するように、帳票内容情報は設定画面上でユーザにより設定される。
【0024】
帳票印刷プログラム18は上述したような帳票定義ファイル20、印刷色変換ファイル22、線幅変換ファイル24、および帳票内容ファイル26に基づく帳票印刷処理、ならびに、印刷色変換ファイル22、線幅変換ファイル24、および帳票内容ファイル26の内容設定処理等を行う。以下、帳票印刷プログラム18の機能について詳細に説明する。
【0025】
図7は、帳票印刷プログラム18の各機能部を表す機能ブロック図である。同図に示すように、帳票印刷プログラム18は、帳票内容設定部18A、帳票印刷部18B、および、変換テーブル設定部18Cを有している。
【0026】
帳票内容設定部18Aは、帳票内容ファイル26に格納される帳票内容情報を設定する。この帳票内容情報は、各種帳票に共通の基本情報(例えば、申告者に関する情報等)と、帳票種類毎に必要な個別情報(例えば、所得金額等の税申告に必要な金額)とに区分される。図8は、基本情報を設定するための基本設定画面の一例を示す。同図に示すように、基本情報の設定画面には、例えば、申告者である法人の名称、代表者名、申告区分、事業年度等の設定欄が設けられている。また、図9は、個別情報を設定するための個別設定画面の一例であり、法人税確定申告書についての例を示している。この個別設定画面に表示される各欄のうち、例えば「所得金額又は欠損金額」、「法人税額の特別控除額」等の幾つかの項目が金額の入力欄となっており、その他の欄には、入力された金額に基づいて自動計算された税額等が表示されるようになっている。基本設定画面および個別設定画面で設定された帳票内容情報は、帳票内容ファイル26に格納される。
【0027】
帳票印刷部18Bは、ユーザからの印刷指示操作に応じて起動される。そして、帳票内容設定部18Aで設定され、あるいは、帳票内容ファイル26から読み出された帳票内容情報と、帳票定義ファイル20に格納された帳票定義情報と、印刷色変換ファイル22に格納された印刷色変換情報と、線幅変換ファイル24に格納された線幅変換情報とを参照して、当該帳票の印刷データを作成し、使用プリンタのプリンタドライバ28へ出力する。
【0028】
ユーザによる印刷指示は、例えば、上記図9に示す個別設定画面にて「印刷」ボタンをクリックすることにより行うことができる。この場合、個別設定画面で個別情報を入力中の帳票(図9の場合は法人税確定申告書)が印刷対象となり、「印刷」ボタンがクリックされると、帳票の印刷イメージを表すプレビュー画面が表示される。このプレビュー画面で更に「詳細設定」ボタンがクリックされると、図10に示すような印刷設定画面が表示される。
【0029】
図10に示す印刷設定画面で「プリンタの設定」ボタンがクリックされると、コンピュータ12に登録されたプリンタ14のリストが表示される。ユーザは、このリストから使用プリンタを選択することができる。また、「カラー印刷する」のチェックボックスがチェックされた場合に、カラー印刷オンの状態となり、ドロップアウトカラーを含めたカラー印刷が行われる。そして、カラー印刷の際にドロップアウトカラーを機種/提出先に応じた適切な色調で印刷できるように、機種/提出先を「印刷色」欄で設定できる。すなわち、「印刷色」欄右側の「▼」マークがクリックされると、図11に示すように、機種/提出先がドロップダウンリストで表示され、その中から機種/提出先を選択できる。なお、帳票の控えや、提出先にてOCRで読み取ることが想定されていない帳票を印刷する場合には、「カラー印刷する」のチェックボックスをオフにすることで、白黒印刷することができる。
【0030】
図12は、上記した帳票印刷部18Bによる印刷処理の流れを表すフローチャートである。同図に示すように、印刷指示操作が行われると、印刷対象である帳票について、帳票内容情報および帳票定義情報に従って帳票印刷データが作成される(S100)。次に、カラー印刷オン状態であるか否かが判別され(S102)、カラー印刷オンであれば、印刷色変換ファイル22を参照して、「印刷色」欄で選択された機種/提出先についての印刷色変換情報が取得される(S104)。この印刷色変換情報に基づいて、S100で作成された帳票印刷データに含まれるドロップアウトカラーの印刷色が、機種/提出先に応じた印刷色に変換される(S106)。次に、線幅変換ファイル24を参照して、選択された機種/提出先に該当するプリンタ機種についての線幅変換情報が取得され(S108)、この線幅変換情報に基づいて、上記帳票印刷データに含まれる罫線の線幅が、プリンタ機種に適合した線幅に変換される(S110)。こうしてドロップアウトカラーの印刷色および罫線幅が変換された帳票印刷データに基づいて、印刷プレビュー画面が作成され表示される(S112)。そして、プレビュー画面で「印刷」ボタンがクリックされると(S114)、当該帳票印刷データが、使用プリンタに対応したプリンタドライバ28へ出力され(S116)、使用プリンタにより帳票印刷が行われる。なお、S102でカラー印刷オフの場合は、S108にジャンプして線幅の変換のみが行われる。
【0031】
なお、上記の説明では、個別設定画面で「印刷」ボタンをクリックして印刷指示を行う場合について説明したが、帳票印刷プログラム18では、予め選択された複数の帳票を一括して印刷することも可能となっている。この場合にも、選択された複数の帳票の夫々について、上記と同様に、ドロップアウトカラーの印刷色および罫線幅を変換する処理が行われたうえで帳票印刷データがプリンタドライバ28に出力されることになる。
【0032】
次に、変換テーブル設定部18Cについて説明する。
市販されている既存のプリンタ機種については、帳票印刷プログラム18または帳票印刷システム10の販売元または製造元が、それら各機種についての印刷色変換情報を格納した印刷色変換ファイル22をユーザに提供することができる。しかし、プリンタ特性の経時変化等により印刷色調が変化した場合に対応するため、ユーザが印刷色変換ファイル22の内容を設定できるようにすることが望ましい。そこで、本実施形態では、変換テーブル設定部18Cにより、ユーザが印刷色変換ファイル22の設定を行えるようにしている。
【0033】
印刷色変換ファイル22の設定は、上記図10に示す印刷設定画面で「印刷カラー設定」ボタンをクリックすることにより行うことができる。「印刷カラー設定」ボタンがクリックされると、図13に示すような印刷カラー設定画面が表示される。同図に示すように、印刷カラー設定画面には、対象選択欄80および色調設定欄82が設けられている。対象選択欄80では、ドロップアウトカラー印刷色の設定対象を選択入力することができる。すなわち、上記図2を参照して述べたように、ドロップアウトカラーでの印刷対象として、罫線52、補助文字56、選択用丸印58、および、背景色62があり、夫々について、印刷色を指定できるようになっている。
【0034】
具体的には、対象選択欄80右側の「▼」マークがクリックされた場合に、「OCR枠罫線」、「文字」、「丸印」、「背景色」の選択肢がプルダウンリスト形式で表示され、その中から設定対象を選択できる。また、色調設定欄82では、ドロップアウトカラーの色調を赤(R),緑(G),青(B)の夫々を例えば0〜255の256段階で設定できる。色調設定欄82で設定された色調は、設定確認欄84に表示され、また、「テスト印刷」ボタン86がクリックされると、設定された色調を用いて使用プリンタによりテスト印刷が行われる。このようなテスト印刷の結果をOCRで試験的に読み取ることで、ドロップアウトカラーに適合した色調が設定されたかどうかの確認を行うことができる。そして、OCRで読み取られてしまう場合には、RGB値を少しずつ変更しながら、テスト印刷とOCRによる読み取りを繰り返すことで、ドロップアウトカラーの最適なRGB値を設定することができる。
【0035】
印刷カラー設定画面にて、各対象項目についてドロップアウトカラーの印刷色調が設定されて「OK」ボタン88がクリックされると、設定内容が、該当する機種/提出先(図10の印刷設定画面の「印刷色」欄で選択された機種/提出先)についての印刷色変換情報として印刷色変換ファイル22に格納される。
【0036】
以上は、印刷色変換ファイル22に設定済みの印刷色変換情報を変更する場合の手順であるが、新規なプリンタをコンピュータ12に登録した場合には、例えば、印刷色変換ファイル22をテキストエディタで直接編集することにより、印刷色変換情報を追加することができる。すなわち、本実施形態では、印刷色変換ファイル22をCSV形式等のテキストデータにより記述しているので、直接印刷色変換情報を追加できるのである。例えば、新規のプリンタ EPSON L550Cについて、東京都内の税務署提出用の印刷色変換情報を追加する場合には、印刷色変換ファイル22に、”EPSON L550C 東京,R1,G1,B1,R2,G2,B2,R3,G3,B3,R4,G4,B4”を追加すればよい。ただし、(Ri,Gi,Bi)(i=1〜4)は、ドロップアウトカラーDC1〜DC4に対応する印刷色である。
【0037】
あるいは、帳票印刷プログラムに印刷色変換情報の新規設定メニューを設け、このメニューにより新規プリンタについて印刷色変換情報を設定できるようにしてもよい。すなわち、新規設定メニューが選択された場合に、例えば図14に示すように、機種/提出先入力欄100、対象選択欄90、色調設定欄92、色調確認欄94、「テスト印刷」ボタン96、「OK」ボタン98等を含んだ新規登録画面を表示させる。なお、対象選択欄90、色調設定欄92、色調確認欄94、「テスト印刷」ボタン96の役割は、上記図13の印刷カラー設定画面の対象選択欄80、色調設定欄82、色調確認欄84、「テスト印刷」ボタン86と同様である。機種/提出先入力欄90に機種/提出先が入力され、対象選択欄90で設定対象が選択され、色調設定欄92でRGB値が設定されて「OK」ボタン98がクリックされると、入力された機種/提出先について設定対象毎の印刷色(RGB値)が印刷色変換ファイル22に追加記録される。
【0038】
また、線幅設定ファイル24についても、ユーザが好みの罫線幅に変更できるように、その内容を設定できることが望ましい。本実施形態では、印刷色変換ファイル22と同様に線幅変換ファイル24もテキストデータにより記述しており、線幅変換情報の変更や追加も、上記と同様にして、線幅変換ファイル24を直接編集することにより行うことができる。
【0039】
あるいは、上記図10に示す印刷設定画面に「線幅設定」ボタンを設け、このボタンがクリックされた場合に、図15に示す線幅設定画面を表示させて、ユーザが線幅変換情報を設定できるようにしてもよい。図15に示すように、線幅設定画面には、線幅設定欄110が設けられており、これらの設定欄110で、帳票定義情報における罫線幅と、それに対応してプリンタへ指示すべき罫線幅とを指定する。また、設定確認欄112には、設定された罫線幅の罫線イメージが表示され、また、「テスト印刷」ボタン114がクリックされると、設定された線幅の罫線が使用プリンタ14でテスト印刷される。線幅設定欄110に罫線幅が設定されて「OK」ボタン116がクリックされると、その設定内容が、該当するプリンタ機種についての線幅変換情報として線幅変換ファイル24に格納される。
【0040】
また、新規プリンタについて線幅変換情報を追加する場合には、図16に示すように、プリンタ機種名設定欄120および線幅設定欄122を含む設定画面を表示させ、この設定画面で設定されたプリンタ機種名および線幅変換情報を線幅変換ファイル24に追加記録するようにしてもよい。
【0041】
図17は、A,B2種類のプリンタでの罫線の印刷結果を、本発明の適用前(同図(a))および本発明の適用後(同図(b))について示す。帳票定義情報で指定された罫線幅が例えば「5」であった場合、本発明の適用前は、同図(a)に示すように、プリンタAでは細く、プリンタBでは太く印刷される。これに対して、本発明の適用後は、同図(b)に示すように、線幅変換情報に基づく線幅変換によってAには罫線幅「7」の印刷指示が与えられ、プリンタBには罫線幅「3」の印刷指示が与えられ、これにより、両プリンタでほぼ等しい太さの罫線が印刷されている。
【0042】
以上説明したように、本実施形態によれば、プリンタ機種によって罫線の印刷幅が変わることに鑑みて、プリンタ機種に応じてプリンタへ印刷指示する罫線幅を変換している。このため、プリンタ機種にかかわらず、帳票定義情報で定義された罫線幅に対応した適切な線幅の罫線を印刷することができる。例えば、図2に示した法人税確定申告書において、法人名とふりがなとの間の点線や、選択丸の点線のように細い罫線の場合にプリンタ機種によってかすれて見難くなってしまうのを防止したり、あるいは、逆に罫線が太すぎて見苦しくなるなど、帳票の見栄えが悪くなるのを防止することができる。
【0043】
なお、上記実施形態では、帳票に申告内容として表示すべき帳票内容情報を帳票上に印刷するものとして説明したが、帳票内容情報を含まない帳票フォーム用紙を印刷することも可能である。この場合には、印刷された帳票フォーム用紙に利用者が申告内容を印刷または記入して、税務署等へ提出することとなる。
【0044】
また、上記実施形態では、使用プリンタと、機種/提出先とを別個に設定するものとしたが、これに限らず、使用プリンタの選択に連動して機種/提出先に応じた印刷色変換情報および線幅変換情報が決定されるようにしてもよい。例えば、提出先が1箇所である場合(または提出先によってドロップアウトカラーの色調が異ならない場合)には、選択された使用プリンタに該当する印刷色変換情報および線幅変換情報を印刷色変換ファイル22および線幅変換ファイル24から読み出すようにすればよい。また、上記実施形態のように、提出先によってドロップアウトカラーが異なる場合は、同じプリンタ機種を、例えば、「EPSON LP8800C 東京」,「EPSON LP8800C 関信」、「EPSON LP8800C その他」のように、帳票提出先を含んだ複数の異なる名称で登録しておき、使用プリンタとして選択された名称に対応する印刷色変換情報および線幅変換情報を読み出すようにすればよい。
【0045】
【発明の効果】
本発明によれば、帳票に含まれる罫線をプリンタ機種にかかわらず適切な線幅で印刷することができる。
【図面の簡単な説明】
【図1】本発明の一実施形態である帳票印刷システムの構成図である
【図2】本実施形態の帳票印刷システムにより印刷される帳票の一例である法人税確定申告書を示す図である。
【図3】本実施形態の帳票印刷システムにより印刷される帳票の一例である消費税申告書を示す図である。
【図4】帳票定義ファイルに格納されたデータの例を示す図である。
【図5】印刷色変換ファイルに格納されたデータの例を示す図である。
【図6】線幅変換ファイルに格納されたデータの例を示す図である。
【図7】帳票印刷プログラムが有する各機能部を表す機能ブロック図である。
【図8】帳票内容情報の基本情報を設定するための基本設定画面の例を示す図である。
【図9】帳票内容情報の個別情報を設定するための基本設定画面の例を示す図である。
【図10】印刷設定画面の例を示す図である。
【図11】印刷設定画面で機種/提出先がドロップダウン表示された状態を示す図である。
【図12】帳票印刷部による印刷処理の流れを表すフローチャートである。
【図13】印刷色変換情報を設定するための印刷カラー設定画面の例を示す図である。
【図14】新規プリンタについて印刷色変換情報を設定するための設定画面の例を示す図である。
【図15】線幅設定画面の一例を示す図である。
【図16】新規プリンタについて線幅変換情報を設定するための設定画面の例を示す図である。
【図17】本発明の適用前および適用後における罫線の印刷結果を示す図である。
【符号の説明】
10 帳票印刷システム
12 コンピュータ
14 プリンタ
16 記憶装置
18 帳票印刷プログラム
20 帳票定義ファイル
22 印刷色変換ファイル
24 線幅変換ファイル
26 帳票内容ファイル
28 プリンタドライバ
30 記録媒体[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a method and an apparatus for printing a form including a ruled line such as a tax return. The present invention also relates to a program for causing a computer to execute such a method, a recording medium on which the program is recorded, and a computer on which the program is installed.
[0002]
[Prior art]
In a form such as a tax return such as a final income tax return or a local tax return, characters such as numbers representing the contents of the report are described in a character frame. In general, such a tax return is prepared by processing tax payment data by computer and printing it by a printer. At this time, if printing is to be performed on paper of a predetermined format in which a character frame is displayed in advance, it is necessary to finely adjust the printing position so that the characters are correctly arranged in the character frame, which is troublesome. Therefore, conventionally, for example, both character frames and characters are printed on blank paper so that characters can be correctly printed in the character frames without fine adjustment of the print position.
[0003]
[Problems to be solved by the invention]
By the way, when printing a form including ruled lines such as character frames as described above, even if a print instruction of the same ruled line width is given to the printer, the width of the printed ruled line may differ depending on the printer model. is there. For this reason, in some printers, ruled lines are printed with an appropriate line width, while in other printers, ruled lines may be too thick or too thin, making them difficult to see. However, conventionally, when printing a form, no consideration is given to the fact that the printed ruled line width differs depending on the printer model. For this reason, if both characters and character frames are printed as described above, the appearance of the form may be deteriorated due to the difference in the printing width of the ruled line depending on the type of printer used.
[0004]
The present invention has been made in view of the above points, and has as its object to print ruled lines included in a form with an appropriate line width regardless of the printer model.
[0005]
[Means for Solving the Problems]
The present invention is a form printing method for printing a form, wherein the computer comprises:
Definition information acquisition step of acquiring form definition information including the line width of a ruled line constituting the form,
A line width information obtaining step of obtaining line width conversion information representing a ruled line width to be designated by a ruled line print command to a printer to be used, in accordance with the ruled line width included in the form definition information;
Based on the obtained form definition information and line width conversion information, creating a form print data by converting the ruled line width included in the form definition information according to the line width conversion information,
And outputting the created form print data.
[0006]
According to the present invention, line width conversion information representing a ruled line width to be specified by a ruled line print command to a printer to be used is acquired corresponding to the ruled line width included in the form definition information, and To create form print data with the ruled line width converted. Therefore, the ruled lines included in the form can be printed with an appropriate line width regardless of the printer model.
[0007]
In this case, the computer further executes a step of acquiring form content information representing data content to be displayed on the form,
In the print data creating step, the print data including the acquired form content information may be created.
[0008]
Further, in the line width information obtaining step, the line width conversion information input by a user may be obtained. In this way, the user can input the line width conversion information by himself. For example, even when a new printer is introduced, the ruled line width converted by the appropriate line width conversion information according to the printer can be used. Form printing can be performed.
[0009]
Further, the computer further executes a step of allowing the user to select a model of the printer to be used,
In the line width information obtaining step, the line width conversion information for the selected printer model may be obtained by referring to a data storage unit in which the line width conversion information is recorded for each model of the printer. . In this way, when the user selects a printer model, form printing can be performed using the ruled line width converted by the line width conversion information suitable for the printer model.
[0010]
In this case, the computer may further execute a setting step of setting the line width information stored in the data storage unit based on a user input. The setting step includes a step of displaying a model selection screen for the user to select a printer model, and a line width for the user to set the line width conversion information for the printer model selected on the model selection screen. The method may further include displaying a setting screen, and storing, in the data storage unit, line width information set on the line width setting screen for the printer model selected on the model selection screen.
[0011]
The present invention also includes a program for causing a computer to execute the form printing method, a recording medium on which the program is recorded, and a computer on which the program is installed.
[0012]
Further, the present invention is a form printing device for printing a form,
Means for acquiring form definition information including a line width of a ruled line constituting the form,
Means for acquiring line width conversion information indicating a ruled line width to be designated by a ruled line print command given to a printer to be used, in accordance with the ruled line width included in the form definition information;
Based on the obtained form definition information and line width conversion information, means for creating form print data in which the ruled line width included in the form definition information is converted according to the line width conversion information,
Means for outputting the created form print data.
[0013]
Further, the present invention includes a form printing system including such a form printing apparatus and a printer that performs printing in accordance with print data output from the form printing apparatus.
[0014]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 is a configuration diagram of a
[0015]
A
[0016]
The
[0017]
2 and 3 show examples of forms printed by the
[0018]
Among the print contents of the form, the ruled
[0019]
FIG. 4 shows an example of data stored in the
[0020]
In the present embodiment, it is assumed that the print color is represented by RGB values (each level of R, G, B is represented by, for example, 256 levels from 0 to 255). In the present embodiment, a plurality (for example, four types) of dropout colors DC1 to DC4 are used, and their RGB values are, for example, DC1: (255, 128, 64) and DC2: (255, 128, 128), DC3: (255, 32, 128) and DC4: (255, 64, 0).
[0021]
FIG. 5 shows an example of data stored in the print
[0022]
FIG. 6 shows an example of data stored in the line
[0023]
The form contents file 26 stores information to be described as report contents in the form (hereinafter, referred to as form contents information). As will be described later, the form content information is set by the user on the setting screen.
[0024]
The
[0025]
FIG. 7 is a functional block diagram showing each functional unit of the
[0026]
The form content setting unit 18A sets the form content information stored in the
[0027]
The form printing unit 18B is activated in response to a print instruction operation from a user. Then, the form content information set in the form content setting unit 18A or read from the
[0028]
The user can issue a print instruction by, for example, clicking a “print” button on the individual setting screen shown in FIG. In this case, the form in which the individual information is being entered on the individual setting screen (corporate tax return in the case of FIG. 9) is to be printed, and when the “Print” button is clicked, a preview screen showing the print image of the form is displayed. Is displayed. When the “detailed setting” button is further clicked on this preview screen, a print setting screen as shown in FIG. 10 is displayed.
[0029]
When the “printer setting” button is clicked on the print setting screen shown in FIG. 10, a list of
[0030]
FIG. 12 is a flowchart showing the flow of the printing process by the form printing unit 18B. As shown in the figure, when a print instruction operation is performed, form print data is created for a form to be printed in accordance with form content information and form definition information (S100). Next, it is determined whether or not the color printing is on (S102). If the color printing is on, the model / submission selected in the "print color" column is referred to with reference to the print
[0031]
In the above description, the case where the print instruction is issued by clicking the “print” button on the individual setting screen has been described. However, the
[0032]
Next, the conversion table setting unit 18C will be described.
For existing printer models that are commercially available, the
[0033]
The setting of the print
[0034]
Specifically, when the “▼” mark on the right side of the
[0035]
When the print color of the dropout color is set for each target item on the print color setting screen and the “OK”
[0036]
The above is the procedure for changing the print color conversion information already set in the print
[0037]
Alternatively, a new print color conversion information setting menu may be provided in the form printing program, and this menu may be used to set print color conversion information for a new printer. That is, when the new setting menu is selected, for example, as shown in FIG. 14, a model / submission
[0038]
In addition, it is desirable that the content of the line
[0039]
Alternatively, a “line width setting” button is provided on the print setting screen shown in FIG. 10, and when this button is clicked, the line width setting screen shown in FIG. 15 is displayed, and the user sets the line width conversion information. You may be able to. As shown in FIG. 15, the line width setting screen is provided with line
[0040]
When adding line width conversion information for a new printer, a setting screen including a printer model
[0041]
FIG. 17 shows the results of printing ruled lines by two types of printers, A and B, before applying the present invention (FIG. 17A) and after applying the present invention (FIG. 17B). If the ruled line width specified in the form definition information is, for example, "5", before the application of the present invention, as shown in FIG. On the other hand, after the application of the present invention, as shown in FIG. 7B, a printing instruction of the ruled line width “7” is given to A by the line width conversion based on the line width conversion information, and the printer B is given to the printer B. Is given a print instruction with a ruled line width of "3", whereby ruled lines having substantially the same thickness are printed by both printers.
[0042]
As described above, according to the present embodiment, in consideration of the printing width of the ruled line depending on the printer model, the ruled line width for instructing the printer to print is converted according to the printer model. Therefore, regardless of the printer model, it is possible to print a ruled line having an appropriate line width corresponding to the ruled line width defined in the form definition information. For example, in the corporate tax return as shown in FIG. 2, in the case of a thin dotted line such as a dotted line between a corporate name and a furigana or a dotted line of a selection circle, it is prevented from being blurred by a printer model to make it difficult to see. This makes it possible to prevent the appearance of the form from deteriorating, for example, by making the ruled line too thick to make it difficult to see.
[0043]
In the above-described embodiment, the description has been made assuming that the form content information to be displayed as the declaration content on the form is printed on the form. However, it is also possible to print a form form sheet that does not include the form content information. In this case, the user prints or fills out the contents of the declaration on the printed form sheet and submits it to the tax office or the like.
[0044]
Further, in the above-described embodiment, the printer used and the model / submission destination are separately set. However, the present invention is not limited to this, and the print color conversion information corresponding to the model / submission destination is linked to the selection of the printer used. And line width conversion information may be determined. For example, when there is only one submission destination (or when the color tone of the dropout color does not differ depending on the submission destination), the print color conversion information and the line width conversion information corresponding to the selected used printer are printed in a print color conversion file. 22 and the line
[0045]
【The invention's effect】
According to the present invention, ruled lines included in a form can be printed with an appropriate line width regardless of the printer model.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of a form printing system according to an embodiment of the present invention; FIG. 2 is a diagram illustrating a corporate tax final return which is an example of a form printed by the form printing system of the embodiment; .
FIG. 3 is a diagram illustrating a consumption tax report, which is an example of a form printed by the form printing system according to the embodiment.
FIG. 4 is a diagram showing an example of data stored in a form definition file.
FIG. 5 illustrates an example of data stored in a print color conversion file.
FIG. 6 is a diagram illustrating an example of data stored in a line width conversion file.
FIG. 7 is a functional block diagram illustrating each functional unit of the form printing program.
FIG. 8 is a diagram showing an example of a basic setting screen for setting basic information of form content information.
FIG. 9 is a diagram showing an example of a basic setting screen for setting individual information of form content information.
FIG. 10 is a diagram illustrating an example of a print setting screen.
FIG. 11 is a diagram illustrating a state in which a model / submission destination is displayed in a drop-down display on a print setting screen.
FIG. 12 is a flowchart illustrating a flow of a printing process performed by a form printing unit.
FIG. 13 is a diagram illustrating an example of a print color setting screen for setting print color conversion information.
FIG. 14 is a diagram illustrating an example of a setting screen for setting print color conversion information for a new printer.
FIG. 15 is a diagram illustrating an example of a line width setting screen.
FIG. 16 is a diagram illustrating an example of a setting screen for setting line width conversion information for a new printer.
FIG. 17 is a diagram showing a result of printing ruled lines before and after application of the present invention.
[Explanation of symbols]
REFERENCE SIGNS
Claims (12)
前記帳票を構成する罫線の線幅を含んだ帳票定義情報を取得する定義情報取得ステップと、
前記帳票定義情報に含まれる罫線幅に対応して、使用するプリンタへの罫線印刷指令で指定すべき罫線幅を表す線幅変換情報を取得する線幅情報取得ステップと、
前記取得した帳票定義情報および線幅変換情報に基づいて、当該帳票定義情報に含まれる罫線幅を当該線幅変換情報に応じて変換した帳票印刷データを作成するステップと、
該作成した帳票印刷データを出力するステップとを実行することを特徴とする方法。A form printing method for printing a form, comprising:
Definition information acquisition step of acquiring form definition information including the line width of a ruled line constituting the form,
A line width information obtaining step of obtaining line width conversion information representing a ruled line width to be designated by a ruled line print command to a printer to be used, in accordance with the ruled line width included in the form definition information;
Based on the obtained form definition information and line width conversion information, creating a form print data by converting the ruled line width included in the form definition information according to the line width conversion information,
Outputting the created form print data.
前記印刷データ作成ステップでは、前記取得した帳票内容情報を含んだ前記印刷データを作成することを特徴とする方法。2. The form printing method according to claim 1, wherein the computer further executes a step of acquiring form content information representing data content to be displayed on the form.
In the print data creating step, the print data including the acquired form content information is created.
前記線幅情報取得ステップでは、ユーザにより入力された前記線幅変換情報を取得することを特徴とする方法。The form printing method according to claim 1 or 2,
In the method, the line width information acquiring step acquires the line width conversion information input by a user.
前記線幅情報取得ステップでは、プリンタの各機種について前記線幅変換情報が記録されたデータ記憶部を参照して、前記選択されたプリンタ機種についての前記線幅変換情報を取得することを特徴とする方法。3. The form printing method according to claim 1, wherein the computer further executes a step of allowing a user to select a printer model to be used,
In the line width information obtaining step, the line width conversion information for the selected printer model is obtained by referring to a data storage unit in which the line width conversion information is recorded for each model of the printer. how to.
前記帳票を構成する罫線の線幅を含んだ帳票定義情報を取得する手段と、
前記帳票定義情報に含まれる罫線幅に対応して、使用するプリンタへ与える罫線印刷指令で指定すべき罫線幅を表す線幅変換情報を取得する手段と、
前記取得した帳票定義情報および線幅変換情報に基づいて、当該帳票定義情報に含まれる罫線幅を当該線幅変換情報に応じて変換した帳票印刷データを作成する手段と、
該作成した帳票印刷データを出力する手段とを備えることを特徴とする装置。A form printing device for printing a form,
Means for acquiring form definition information including a line width of a ruled line constituting the form,
Means for acquiring line width conversion information indicating a ruled line width to be designated by a ruled line print command given to a printer to be used, in accordance with the ruled line width included in the form definition information;
Based on the obtained form definition information and line width conversion information, means for creating form print data in which the ruled line width included in the form definition information is converted according to the line width conversion information,
Means for outputting the created form print data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002193932A JP4100061B2 (en) | 2002-07-02 | 2002-07-02 | Form printing method, form printing apparatus, form printing system, form printing program, recording medium recording form printing program, computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002193932A JP4100061B2 (en) | 2002-07-02 | 2002-07-02 | Form printing method, form printing apparatus, form printing system, form printing program, recording medium recording form printing program, computer |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004038506A true JP2004038506A (en) | 2004-02-05 |
JP4100061B2 JP4100061B2 (en) | 2008-06-11 |
Family
ID=31702792
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002193932A Expired - Fee Related JP4100061B2 (en) | 2002-07-02 | 2002-07-02 | Form printing method, form printing apparatus, form printing system, form printing program, recording medium recording form printing program, computer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4100061B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021043832A (en) * | 2019-09-13 | 2021-03-18 | 富士ゼロックス株式会社 | Information processing device, image formation system, and program |
-
2002
- 2002-07-02 JP JP2002193932A patent/JP4100061B2/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021043832A (en) * | 2019-09-13 | 2021-03-18 | 富士ゼロックス株式会社 | Information processing device, image formation system, and program |
JP7400280B2 (en) | 2019-09-13 | 2023-12-19 | 富士フイルムビジネスイノベーション株式会社 | Information processing device, image forming system and program |
Also Published As
Publication number | Publication date |
---|---|
JP4100061B2 (en) | 2008-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6301013B1 (en) | Printing control apparatus, printing control method, and computer program product for realizing the method | |
US7359087B2 (en) | Print control apparatus and program | |
US6295136B1 (en) | Printer control apparatus method of controlling printer and recording medium used therefor | |
JP4306367B2 (en) | Image processing device | |
JP6917011B2 (en) | Print data editing device and print data editing program | |
EP0760140B1 (en) | Method and system for checking print orders for short run printing applications | |
US20040239955A1 (en) | Print job creation apparatus and print job creation method | |
JP4103473B2 (en) | Form printing method, form printing apparatus, form printing system, form printing program, recording medium recording form printing program, computer | |
JP4100061B2 (en) | Form printing method, form printing apparatus, form printing system, form printing program, recording medium recording form printing program, computer | |
US8437042B2 (en) | Image forming system | |
US20100100834A1 (en) | System and method of online custom design of printed office products | |
JP4601359B2 (en) | Photo printing device | |
JP2005038308A (en) | Index image creation method and device | |
JP3205535B2 (en) | OCR system | |
JP4123168B2 (en) | Image processing system, image processing method, template generation system, and template data structure | |
JP2008305220A (en) | Logo data distribution system and program | |
US20020146264A1 (en) | Printing apparatus and printing method | |
JPH11213063A (en) | Method and device for verifying order information and recording medium recording order information verification program | |
JP2857642B2 (en) | OCR system | |
JP2004177577A (en) | Photographic printing apparatus | |
JP2803802B2 (en) | Proofreading method of composition | |
JP2006058963A (en) | Photographic printer | |
JP3217100B2 (en) | Image printing apparatus and method | |
JP2006053719A (en) | Service charge calculation system | |
JP2006071744A (en) | Photographic printing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050607 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20070402 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080130 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20080226 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080310 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110328 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4100061 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120328 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120328 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130328 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140328 Year of fee payment: 6 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |