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 PDF

Info

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
print
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
Application number
JP2002193932A
Other languages
Japanese (ja)
Other versions
JP4100061B2 (en
Inventor
Toshio Emori
江森 敏夫
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2002193932A priority Critical patent/JP4100061B2/en
Publication of JP2004038506A publication Critical patent/JP2004038506A/en
Application granted granted Critical
Publication of JP4100061B2 publication Critical patent/JP4100061B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enable ruled line contained in a business form to be printed in appropriate line width regardless of a type of printer. <P>SOLUTION: The business form printing system 10 is equipped with a computer 12 and a printer 14. A storage medium 16 of the computer 12 records a business form printing program 18, a business form defining file 20, a printing color converting file 22, a line width converting file 24, and a business form content file 26. The line width converting file 24 stores line width converting information, which indicates a width of the horizontal rule to be instructed to the printer, in correspondence to the line width of the horizontal line contained in the business form defining information according to the type of printer. The business form printing program 18 prepares the business form printing data on the basis of the business form defining file 20. In doing so, the width of the ruled line contained in the business form defining information is converted on the basis of the line width converting information on the type of printer stored in the line width converting file 24. <P>COPYRIGHT: (C)2004,JPO

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 form printing system 10 according to an embodiment of the present invention. As shown in FIG. 1, the form printing system 10 includes a computer 12 and a printer 14. The printer 14 is, for example, an ink jet type or laser type color printer. In the present embodiment, one or more types of printers 14 are provided, and the printers 14 are registered in the OS (for example, Windows (registered trademark)) of the computer 12. The user can select a printer to be used for printing from the registered printers 14 on the computer 12. Hereinafter, the printer 14 thus selected is referred to as a printer to be used.
[0015]
A form printing program 18 is installed in a storage device 16 such as a hard disk device provided in the computer 12. The storage device 16 also records a form definition file 20, a print color conversion file 22, a line width conversion file 24, and a form content file 26. As will be described later, the form print program 18 generates print data of the form with reference to these files 20 to 26 and outputs it to the printer driver 28 for the printer used. The printer driver 28 transmits a print command suitable for the model of the printer to be used to the printer based on the print data.
[0016]
The form printing program 18 may be stored and distributed on a recording medium 30 such as a flexible disk, a CD-ROM, or a DVD-ROM and installed in the storage device 16 of the computer 12, or may be installed on the computer 12 via a network. May be downloaded to the storage device 16. Alternatively, the form printing program 18 may be installed in the storage device 16 from the beginning, and the form printing system 10 may be provided to the user as a form printing apparatus.
[0017]
2 and 3 show examples of forms printed by the form printing system 10 of the present embodiment. FIG. 2 shows a corporate tax final return, and FIG. 3 shows a consumption tax return. As shown in these figures, the form includes a ruled line 52a that forms a character frame 50 for inputting a character such as an amount and a date for each declared item one character at a time, and a ruled line 52b that appropriately partitions the form (the ruled line 52 and the ruled line 52b). Collectively), title characters 54 indicating the name (title) of each declared item, and the serial number of the item and the form such as “Heisei”, “Year”, “Month”, “Day” in the date are visually checked. The necessary supplementary characters 56 and a selection circle 58 for selecting the corresponding item with a circle are printed.
[0018]
Among the print contents of the form, the ruled line 52 and the auxiliary character 56 are printed in close proximity to the numbers (hereinafter, referred to as data characters 60) to be printed in the frame 50. When these are read by the OCR, A recognition error of the data character 60 may occur. Also, if the selection circle 58 is read by the OCR, it becomes impossible to recognize which item has been selected. Therefore, in the present embodiment, the ruled line 52, the auxiliary character 56, and the selection circle 58 are printed in a dropout color, so that the data characters 60 in the character frame 50 and the selection items in the selection circle 58 are selected. The OCR allows correct recognition. Also, in the example of FIG. 2, the background color 62 is added to the “blue report” column in the upper right part of the sheet, and this background color 62 is also a dropout color.
[0019]
FIG. 4 shows an example of data stored in the form definition file 20. As shown in the figure, the form definition file 20 includes, for each type of form, ruled line information on a ruled line 52 to be printed on the form, character information on a title character 54 and an auxiliary character 56, and data character 60 on each report item. Data character information and the like are stored. The ruled line information includes start point coordinates, end point coordinates, line width, and print color for each ruled line 52 included in each form. The character information includes a character string, a print start position, and a print color for each title character 54 and auxiliary character 56. The data character information includes the item name of each declaration item and the start position of the data character 60.
[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 color conversion file 22. As shown in the figure, in the print color conversion file 22, for each combination of the printer model and the form submission destination (hereinafter referred to as "model / submission destination"), the drop-out specified as the print color in the ruled line definition information. Information (hereinafter, referred to as print color conversion information) indicating the correspondence between the colors DC1 to DC4 and the print colors to be actually instructed to the printer is stored. That is, even if a print command of the same print color is given to the printer, the color tone differs depending on the printer model, and the color tone of the dropout color may differ depending on the OCR model used depending on the destination of the form. Therefore, the print color conversion information corresponding to the model / submission destination is stored in the print color conversion file 22 in order to absorb such a difference in the color tone of the dropout color depending on the printer model and the destination. . In the example of FIG. 5, when the model / submission destination is “EPSON LP8800C Tokyo” (a form to be submitted to a tax office in Tokyo by the EPSON LP8800C is printed), dropout colors DC1: (255, 128, 64), DC2: For (255, 128, 128), DC3: (255, 32, 128), and DC4: (255, 64, 0), the print colors (255, 128, 64) and (255, 128, 128), respectively. , (255, 32, 128) and (255, 64, 0) are associated with each other.
[0022]
FIG. 6 shows an example of data stored in the line width conversion file 24. As shown in the drawing, the line width conversion file 24 contains, for each printer model, information indicating the correspondence between the ruled line width specified in the form definition information and the ruled line width to be actually instructed to the printer (hereinafter, referred to as “line width”). (Referred to as line width conversion information). That is, even if a ruled line printing command of the same line width is given to the printer, the width of the ruled line actually printed may be different depending on the printer model. Line width conversion information corresponding to the printer model is stored in the line width conversion file 24. In the present embodiment, the ruled line width is represented by, for example, the number of points. In the example of FIG. 6, for example, for “EPSON LP8800C”, the ruled line widths “3”, “5”, and “7” in the form definition information correspond to the ruled line widths “4”, “7”, and “9”, respectively. Are associated.
[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 form printing program 18 includes a form definition file 20, a print color conversion file 22, a line width conversion file 24, and a form printing process based on the form content file 26 as described above, and a print color conversion file 22, a line width conversion file 24. , And contents setting processing of the form contents file 26, and the like. Hereinafter, the function of the form printing program 18 will be described in detail.
[0025]
FIG. 7 is a functional block diagram showing each functional unit of the form printing program 18. As shown in the figure, the form printing program 18 has a form content setting unit 18A, a form printing unit 18B, and a conversion table setting unit 18C.
[0026]
The form content setting unit 18A sets the form content information stored in the form content file 26. This form content information is divided into basic information common to various forms (for example, information on the filer) and individual information required for each form type (for example, the amount required for tax declaration such as income amount). You. FIG. 8 shows an example of a basic setting screen for setting basic information. As shown in the figure, the setting screen of the basic information is provided with setting fields such as a name of a corporation as a filer, a representative name, a report category, and a business year. FIG. 9 is an example of an individual setting screen for setting individual information, and shows an example of a corporate tax final income tax return. Of the fields displayed on this individual setting screen, some items such as "income or deficit" and "special deduction of corporate tax" are input fields for the amount. Displays a tax amount or the like automatically calculated based on the input amount. The form content information set on the basic setting screen and the individual setting screen is stored in the form content file 26.
[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 form content file 26, the form definition information stored in the form definition file 20, and the printing stored in the print color conversion file 22. With reference to the color conversion information and the line width conversion information stored in the line width conversion file 24, print data of the form is created and output to the printer driver 28 of the printer used.
[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 printers 14 registered in the computer 12 is displayed. The user can select a printer to be used from this list. When the check box of "color printing" is checked, color printing is turned on, and color printing including a dropout color is performed. Then, the model / submission destination can be set in the “print color” column so that the dropout color can be printed in an appropriate color tone according to the model / submission destination during color printing. That is, when the "▼" mark on the right side of the "print color" column is clicked, the model / submission destination is displayed in a drop-down list as shown in FIG. 11, and the model / submission destination can be selected from the list. When printing a form that is not expected to be read by OCR at the destination or a copy of the form, it is possible to perform monochrome printing by turning off the check box of “color printing”.
[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 color conversion file 22. Is obtained (S104). Based on this print color conversion information, the print color of the dropout color included in the form print data created in S100 is converted into a print color according to the model / submission destination (S106). Next, with reference to the line width conversion file 24, line width conversion information for the selected model / printer model corresponding to the submission destination is acquired (S108), and the form printing is performed based on the line width conversion information. The line width of the ruled line included in the data is converted into a line width suitable for the printer model (S110). In this way, a print preview screen is created and displayed based on the form print data in which the print color of the dropout color and the ruled line width have been converted (S112). When the "print" button is clicked on the preview screen (S114), the form print data is output to the printer driver 28 corresponding to the used printer (S116), and the form is printed by the used printer. If color printing is turned off in S102, the process jumps to S108, where only line width conversion is performed.
[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 form printing program 18 may print a plurality of preselected forms at once. It is possible. Also in this case, for each of the plurality of selected forms, the process of converting the print color of the dropout color and the ruled line width is performed in the same manner as described above, and the form print data is output to the printer driver 28. Will be.
[0032]
Next, the conversion table setting unit 18C will be described.
For existing printer models that are commercially available, the form printing program 18 or the vendor or manufacturer of the form printing system 10 must provide the user with a print color conversion file 22 that stores print color conversion information for each model. Can be. However, it is desirable that the user can set the contents of the print color conversion file 22 in order to cope with a case where the print color tone changes due to a change over time in the printer characteristics. Thus, in the present embodiment, the user can set the print color conversion file 22 by the conversion table setting unit 18C.
[0033]
The setting of the print color conversion file 22 can be performed by clicking a “print color setting” button on the print setting screen shown in FIG. When the “print color setting” button is clicked, a print color setting screen as shown in FIG. 13 is displayed. As shown in the figure, the print color setting screen is provided with a target selection column 80 and a color tone setting column 82. In the target selection field 80, the user can select and input the setting target of the dropout color printing color. That is, as described with reference to FIG. 2, the print target in the dropout color includes the ruled line 52, the supplementary character 56, the selection circle 58, and the background color 62. It can be specified.
[0034]
Specifically, when the “▼” mark on the right side of the target selection field 80 is clicked, the options of “OCR frame ruled line”, “character”, “circle”, and “background color” are displayed in a pull-down list format. , And a setting target can be selected from among them. In the color tone setting field 82, the color tone of the dropout color can be set in each of red (R), green (G), and blue (B) in, for example, 256 levels from 0 to 255. The color tone set in the color tone setting field 82 is displayed in the setting confirmation field 84, and when the "test print" button 86 is clicked, test printing is performed by the printer in use using the set color tone. By reading the result of such test printing by OCR on a trial basis, it is possible to confirm whether or not a color tone suitable for the dropout color has been set. In the case where reading is performed by OCR, the optimal RGB value of the dropout color can be set by repeating test printing and reading by OCR while gradually changing the RGB values.
[0035]
When the print color of the dropout color is set for each target item on the print color setting screen and the “OK” button 88 is clicked, the setting contents are changed to the corresponding model / submission destination (the print setting screen of FIG. 10). The print color conversion information is stored in the print color conversion file 22 as print color conversion information for the model / submission selected in the “print color” column.
[0036]
The above is the procedure for changing the print color conversion information already set in the print color conversion file 22. When a new printer is registered in the computer 12, for example, the print color conversion file 22 is changed using a text editor. By directly editing, print color conversion information can be added. That is, in the present embodiment, since the print color conversion file 22 is described by text data in the CSV format or the like, print color conversion information can be directly added. For example, when adding print color conversion information to be submitted to a tax office in Tokyo for a new printer EPSON L550C, the print color conversion file 22 should contain "EPSON L550C Tokyo, R1, G1, B1, R2, G2, B2". , R3, G3, B3, R4, G4, B4 "may be added. However, (Ri, Gi, Bi) (i = 1 to 4) is a print color corresponding to the dropout colors DC1 to DC4.
[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 destination input field 100, a target selection field 90, a color tone setting field 92, a color tone confirmation field 94, a "test print" button 96, A new registration screen including an “OK” button 98 is displayed. The roles of the target selection column 90, the color tone setting column 92, the color tone confirmation column 94, and the "test print" button 96 are as follows: the target selection column 80, the color tone setting column 82, and the color tone confirmation column 84 of the print color setting screen in FIG. , "Test print" button 86. When the model / submission destination is input in the model / submission input column 90, the setting target is selected in the target selection column 90, the RGB values are set in the color tone setting column 92, and the “OK” button 98 is clicked. The printing colors (RGB values) for each of the setting models / submission destinations are additionally recorded in the printing color conversion file 22.
[0038]
In addition, it is desirable that the content of the line width setting file 24 can be set so that the user can change the line width to a desired ruled line width. In the present embodiment, the line width conversion file 24 is described by text data as well as the print color conversion file 22, and the line width conversion information can be directly changed or added in the same manner as described above. It can be done by editing.
[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 width setting columns 110. In these setting columns 110, the ruled line width in the form definition information and the ruled line to be instructed to the printer corresponding to the ruled line width. Specify the width. In the setting confirmation column 112, a ruled line image of the set ruled line width is displayed. When the “test print” button 114 is clicked, the ruled line of the set line width is test printed by the printer 14 to be used. You. When the ruled line width is set in the line width setting column 110 and the “OK” button 116 is clicked, the setting contents are stored in the line width conversion file 24 as line width conversion information for the corresponding printer model.
[0040]
When adding line width conversion information for a new printer, a setting screen including a printer model name setting field 120 and a line width setting field 122 is displayed as shown in FIG. The printer model name and the line width conversion information may be additionally recorded in the line width conversion file 24.
[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 width conversion file 24. If the dropout color differs depending on the destination, as in the above-described embodiment, the same printer model may be used in a form such as “EPSON LP8800C Tokyo”, “EPSON LP8800C related”, “EPSON LP8800C other”. A plurality of different names including the submission destination may be registered, and the print color conversion information and the line width conversion information corresponding to the name selected as the printer to be used may be read.
[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 LIST 10 form printing system 12 computer 14 printer 16 storage device 18 form printing program 20 form definition file 22 print color conversion file 24 line width conversion file 26 form content file 28 printer driver 30 recording medium

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.
請求項1記載の帳票印刷方法において、コンピュータが、前記帳票へ表示すべきデータ内容を表す帳票内容情報を取得するステップを更に実行し、
前記印刷データ作成ステップでは、前記取得した帳票内容情報を含んだ前記印刷データを作成することを特徴とする方法。
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.
請求項1または2記載の帳票印刷方法において、
前記線幅情報取得ステップでは、ユーザにより入力された前記線幅変換情報を取得することを特徴とする方法。
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.
請求項1または2記載の帳票印刷方法において、コンピュータが、使用するプリンタの機種をユーザに選択させるステップを更に実行し、
前記線幅情報取得ステップでは、プリンタの各機種について前記線幅変換情報が記録されたデータ記憶部を参照して、前記選択されたプリンタ機種についての前記線幅変換情報を取得することを特徴とする方法。
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.
請求項4記載の帳票印刷方法において、コンピュータが、ユーザ入力に基づいて前記データ記憶部に記憶された前記線幅情報を設定する設定ステップを更に実行することを特徴とする方法。5. The method according to claim 4, wherein the computer further executes a setting step of setting the line width information stored in the data storage unit based on a user input. 請求項5記載の帳票印刷方法において、前記設定ステップは、ユーザがプリンタ機種を選択するための機種選択画面を表示するステップと、該機種選択画面で選択されたプリンタ機種についてユーザが前記線幅変換情報を設定するための線幅設定画面を表示するステップと、前記機種選択画面で選択されたプリンタ機種について、前記線幅設定画面で設定された線幅情報を前記データ記憶部に格納するステップとを含むことを特徴とする方法。6. The form printing method according to claim 5, wherein the setting step includes a step of displaying a model selection screen for a user to select a printer model, and the user performs the line width conversion for the printer model selected on the model selection screen. Displaying a line width setting screen for setting information; and storing the line width information set on the line width setting screen in the data storage unit for the printer model selected on the model selection screen. A method comprising: 請求項1乃至6のうち何れか1項記載の帳票印刷方法において、前記罫線は、文字枠を構成する線を含むことを特徴とする方法。7. The method according to claim 1, wherein the ruled line includes a line forming a character frame. 請求項1乃至7のうち何れか1項記載の方法をコンピュータに実行させるプログラム。A program for causing a computer to execute the method according to any one of claims 1 to 7. 請求項8記載のプログラムを記録した記録媒体。A recording medium on which the program according to claim 8 is recorded. 請求項8記載のプログラムがインストールされたコンピュータ。A computer on which the program according to claim 8 is installed. 帳票を印刷するための帳票印刷装置であって、
前記帳票を構成する罫線の線幅を含んだ帳票定義情報を取得する手段と、
前記帳票定義情報に含まれる罫線幅に対応して、使用するプリンタへ与える罫線印刷指令で指定すべき罫線幅を表す線幅変換情報を取得する手段と、
前記取得した帳票定義情報および線幅変換情報に基づいて、当該帳票定義情報に含まれる罫線幅を当該線幅変換情報に応じて変換した帳票印刷データを作成する手段と、
該作成した帳票印刷データを出力する手段とを備えることを特徴とする装置。
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.
請求項11記載の帳票印刷装置と、当該帳票印刷装置から出力された印刷データに応じて印刷を行うプリンタとにより構成された帳票印刷システム。A form printing system comprising: the form printing apparatus according to claim 11; and a printer that performs printing in accordance with print data output from the form printing apparatus.
JP2002193932A 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 Expired - Fee Related JP4100061B2 (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021043832A (en) * 2019-09-13 2021-03-18 富士ゼロックス株式会社 Information processing device, image formation system, and program

Cited By (2)

* Cited by examiner, † Cited by third party
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