JP2015125465A - Sheet size setting program and sheet size setting method - Google Patents
Sheet size setting program and sheet size setting method Download PDFInfo
- Publication number
- JP2015125465A JP2015125465A JP2013267242A JP2013267242A JP2015125465A JP 2015125465 A JP2015125465 A JP 2015125465A JP 2013267242 A JP2013267242 A JP 2013267242A JP 2013267242 A JP2013267242 A JP 2013267242A JP 2015125465 A JP2015125465 A JP 2015125465A
- Authority
- JP
- Japan
- Prior art keywords
- paper size
- printing
- area
- width
- length
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Record Information Processing For Printing (AREA)
Abstract
Description
本発明は、用紙サイズ設定プログラムおよび用紙サイズ設定方法に関し、詳しくは、表計算ソフトウェアによるドキュメントを1ページに収めて印刷するための、用紙サイズの設定に関するものである。 The present invention relates to a paper size setting program and a paper size setting method, and more particularly, to a paper size setting for printing a document by a spreadsheet software on one page.
表計算ソフトウェアにはページの概念がない。そのため表計算ソフトウェアによるドキュメントを印刷する場合、ページの概念に対応した用紙サイズを設定する。特許文献1には、表計算ソフトウェアによるドキュメントが存在する範囲の高さおよび幅それぞれを基準用紙サイズのページ数で特定し、基準用紙サイズの高さおよび幅それぞれを上記ページ数倍に拡大してドキュメントが1ページに収まるようにした用紙サイズを設定することが記載されている。そして、この設定した用紙サイズに対して、表計算ソフトウェア上でドキュメントの拡大、縮小をすることによって、上記ドキュメントが印刷されたときに用紙に過不足なく収まるようにしている。
Spreadsheet software has no page concept. Therefore, when printing a document using spreadsheet software, a paper size corresponding to the page concept is set. In
しかしながら、特許文献1に記載の技術をもってしても、表計算ソフトウェアによるドキュメントのサイズが極めて大きい場合は、用紙の所定の1ページに過不足なく収めて印刷できない場合がある。すなわち、印刷に用いることができる用紙のサイズは印刷を制御するプリンタドライバで取り扱う用紙サイズという前提がある。また、表計算ソフトウェアの拡大縮小率には制限がある。そのため、表計算ドキュメントのサイズによっては、表計算ソフトウェア上の最小の縮小率(最も縮小される縮小率)で縮小してもプリンタドライバで取り扱える用紙サイズを超えてしまう場合があり、その結果、1ページに収まるように印刷することができないことがある。
However, even with the technique described in
本発明は、極めて大きなサイズの表計算ドキュメントであっても、1ページ内に収まる印刷物を得ることを可能とする用紙サイズ設定プログラムおよび用紙サイズ設定方法を提供することを目的とする。 SUMMARY OF THE INVENTION An object of the present invention is to provide a paper size setting program and a paper size setting method capable of obtaining a printed matter that fits within one page even for an extremely large spreadsheet document.
そのために本発明では、コンピュータに、表計算ソフトウェアにおいて用紙サイズを設定する処理を実行させるための用紙サイズ設定プログラムであって、前記処理は、表計算ソフトウェア上で作成されるデータが存在する領域について、所定の基準用紙サイズに基づいて得られる、前記領域の横方向のページ数に対応した横方向の長さと、前記領域の縦方向のページ数に対応した縦方向の長さと、から当該データの印刷の向きを決定する印刷向き決定工程と、前記決定された印刷の向きに応じて、前記領域の横方向および縦方向に対応した用紙サイズの高さおよび幅を定めて当該用紙サイズを決定する用紙サイズ決定工程と、前記決定された印刷の向きに応じて、前記用紙サイズの前記高さおよび幅を拡大または縮小し、前記用紙サイズの高さおよび幅うち少なくとも一方の内に前記データが存在する領域が含まれるようにする拡大縮小工程と、を有したことを特徴とする。 Therefore, according to the present invention, there is provided a paper size setting program for causing a computer to execute processing for setting a paper size in spreadsheet software, and the processing is performed on an area where data created on the spreadsheet software exists. The horizontal length corresponding to the number of pages in the horizontal direction of the area and the vertical length corresponding to the number of pages in the vertical direction of the area obtained based on a predetermined reference paper size, A printing orientation determining step for determining a printing orientation, and the paper size is determined by determining the height and width of the paper size corresponding to the horizontal and vertical directions of the area according to the determined printing orientation. According to the paper size determining step and the determined printing orientation, the height and width of the paper size are enlarged or reduced, and the paper size Characterized in that said data of at least one and a width having a scaling step is to be included in the region exists, the.
以上の構成によれば、用紙サイズの設定において、極めて大きなサイズの表計算ドキュメントであっても、1ページ内に収まる印刷物を得ることが可能となる。 According to the above configuration, it is possible to obtain a printed matter that fits within one page even when the spreadsheet size is extremely large in the setting of the paper size.
以下、添付の図面を参照して本発明の実施形態を詳細に説明する。本発明の実施形態は、表計算ソフトウェアのプラグインに関し、このプラグインによって、表計算ソフトウェアに対して、用紙サイズを設定し、また、プリンタドライバに対して、設定した用紙サイズに基づいて、変倍などを設定する。ここで、プラグインとは、アプリケーションに対して機能を追加するプログラムである。例えば、Microsoft Office(米国マイクロソフトウェア社)や、Microsoft Internet Explorer(米国マイクロソフトウェア社)などは、自身の機能を拡張させるための手段を公開している。これにより、このようなアプリケーションは、プラグインを登録して機能を追加することが可能となっている。 Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. The embodiment of the present invention relates to a plug-in for spreadsheet software. With this plug-in, the paper size is set for the spreadsheet software, and the printer driver is changed based on the set paper size. Set such as double. Here, a plug-in is a program that adds a function to an application. For example, Microsoft Office (Micro Software Inc., USA), Microsoft Internet Explorer (Micro Software Corporation, USA), and the like have released means for extending their functions. Thereby, such an application can add a function by registering a plug-in.
<記録システムの構成>
図1は、本発明の一実施形態に係る印刷システムを構成するホストコンピュータ(以下、単に、ホストとも言う)1とインクジェットプリンタ(以下、記録装置とも言う)2の概略を示すブロック図である。なお、本発明は、記録装置としてインクジェットプリンタを例にとって説明するが、ロール紙に印刷可能なプリンタであれば、電子写真記録方式のプリンタでもオフセット印刷機でも適用することができる。
<Configuration of recording system>
FIG. 1 is a block diagram showing an outline of a host computer (hereinafter simply referred to as a host) 1 and an ink jet printer (hereinafter also referred to as a recording apparatus) 2 constituting a printing system according to an embodiment of the present invention. The present invention will be described by taking an ink jet printer as an example of the recording apparatus. However, any printer capable of printing on roll paper can be applied to an electrophotographic recording type printer or an offset printing machine.
図1に示されるように、ホスト1と記録装置2とは双方向インタフェース3(例えば、USB、IEEE1394、TCP/IPなど)を介して互いにデータ接続される。ホスト1はパーソナルコンピュータ(PC)などが代表的な例である。ホスト1は、CPU101などを含むメインボード100と、キーボード(KB)105と、LCDなどのディスプレイ(DISPLAY)107と、ハードディスク(HDD)やフレキシブルディスク(FDD)などの外部記憶装置109と、を有している。メインボード100は、さらに、RAM102、ROM103、キーボードコントローラ(KBC)104、ディスプレイコントローラ(DISPC)106、ディスクコントローラ(DKC)108、プリンタコントローラ(PRTC)110を有している。
As shown in FIG. 1, the
CPU101は、システムバス111に接続される上記各要素を総括的に制御し、図10、図12で後述されるプログラムを含んだ各種プログラムを実行する。キーボードコントローラ(KBC)104は、キーボード105やポインティングデバイス(不図示)からの入力を制御する。キーボードコントローラ104を操作部または入力部とも呼ぶ。ディスプレイコントローラ(DISPC)106は、ディスプレイ107の表示を制御する。RAM102は、CPU101のメインメモリあるいはワークエリアとして機能する。ROM103は、オペレーティングシステム、この実施形態に従う各機能を実行するプログラム、ブートプログラム、各種のアプリケーション、プリンタ制御コマンド生成プログラム(以下、プリンタドライバ)等を記憶する。
The
ディスクコントローラ(DKC)108は、ハードディスクやフレキシブルディスク(登録商標)等の外部記憶装置109とのアクセスを制御する。プリンタコントローラ(PRTC)110は、双方向インタフェース3を介して記録装置2に接続され、記録装置2とのデータ及びコマンドの通信処理を制御する。
A disk controller (DKC) 108 controls access to an
プリンタ2は、コントローラ121と、プリンタエンジン122と、操作パネル12と、不揮発性記憶装置133とを有し、双方向インタフェース3を介して、ホスト1とデータ接続されている。不揮発性記憶装置133は、ハードディスク(HDD)128またはEEPROM129を含む。不揮発性記憶装置を不揮発性メモリともいう。
The
コントローラ121は、CPU124、ROM125、RAM126、インタフェースコントローラ(I/FC)123、ディスクコントローラ(DKC)127、パネルインタフェース(I/FP)130、エンジンインタフェース(I/FE)132を含む。
The
CPU124は各種プログラムを実行する。ROM125は、ホスト1から印刷用画像データとコマンドを受信し、プリンタエンジン122を制御して最適な記録を実現させるプログラムや各種データを記憶する。RAM126は、各種データや各種プログラムを一時的に記憶するワークエリアとして用いられる。
The
インタフェースコントローラ(I/FC)123は、双方向インタフェース3を介してホスト1に接続され、ホスト1とのデータとコマンドの通信処理を制御する。ハードディスク(HDD)128は、ホスト1からのデータ及びそのデータに関する付属情報など大容量のデータを記憶する。EEPROM129は、記録動作時に使用する記録装置独自の情報などを記憶する。ディスクコントローラ(DKC)127は、不揮発性記憶装置133とのアクセスを制御する。パネルインタフェース(I/FP)130は、操作パネル12への表示や操作パネル12からの入力を制御する。エンジンインタフェース(I/FE)132は、ハードウェアを直接制御して最適な記録を実現させるプリンタエンジン122を制御する。
An interface controller (I / FC) 123 is connected to the
なお、本実施形態では、プリンタエンジン122はインクジェット記録方法を用いたものであるが、電子写真方式に従うプリンタエンジンやオフセット印刷機を用いることもできる。
In this embodiment, the
<インクジェットプリンタの概略構成>
図2は、図1に示した記録システムを構成する記録装置2の外観斜視図である。図2に示されるように、記録装置2の前面に手差し挿入口88が設けられ、その下部に前面へ開閉可能なロール紙カセット89が設けられている。これにより、記録紙等の記録媒体は手差し挿入口88又はロール紙カセット89から記録装置内部へと供給される。記録装置2は、2つの脚部93に支持された装置本体94、排紙された記録媒体を積載するスタッカ90、内部が透視可能な透明で開閉可能なアッパカバー91を備えている。また、装置本体94の右側には、制御ユニット(不図示)、操作パネル12、インク供給ユニット(不図示)及びインクタンク8が設けられている。この記録装置は、カット紙に換算して、B0、A0サイズなどの大きなサイズの記録媒体への記録が可能な大判プリンタの形態である。なお、本明細書および添付の図面においては、この記録装置による記録を「印刷」とも言う。
<Schematic configuration of inkjet printer>
FIG. 2 is an external perspective view of the
<本実施形態に係るプラグインを有するシステム構成>
図3は、本発明の一実施形態に係るプラグインを有するシステムの構成を示す図であり、図1、図2に示したPC1とプリンタ2を有して構成される。図3において、303は、PC1上で動作する表計算ソフトウェアを示し、一例として、一般的な表計算ソフトウェアである、Microsoft Excel(米国マイクロソフトウェア社)を挙げることができる。304は、表計算ソフトウェアの機能を拡張するプラグインを示し、表計算ソフトウェア上で動作し、表計算ソフトウェアや、プリンタを制御するプリンタドライバと連携して動作する。後述されるようにこのプラグインは用紙サイズ設定プログラムとして機能する。305は、アプリケーションがオペレーティングシステム(以下、OSと記す)を介してプリンタに印刷を依頼するプリンタドライバを示す。プリンタドライバ305は、OSを介して受け取った印刷命令を解釈し、プリンタで解釈可能な印刷データの生成を行う。また、プラグイン304からの印刷設定の変更を受け付ける。306は、プラグイン304が備える表計算ソフトウェア設定部を示し、表計算ソフトウェアに各種の設定を行うプログラムを有する。307は、プラグイン304が備える印刷設定部を示し、プリンタドライバに各種の設定を行うプログラムを有する。
<System configuration having a plug-in according to the present embodiment>
FIG. 3 is a diagram illustrating a configuration of a system having a plug-in according to an embodiment of the present invention, and includes the
<本実施形態のプラグインの起動>
図4は、表計算ソフトウェア303を起動したときの表示画面を示す図である。表計算ソフトウェアの画面は、ドキュメントのタイトルを表示するタイトルバー401と、各種機能を表示するメニューバー402と、機能をアイコンで表示するツールバー403と、現在編集中のドキュメントを表示する文書表示領域404からなる。ツールバー403におけるアイコン405は、プラグイン304を表計算ソフトウェア303に登録することにより、表示されるプラグイン起動アイコンである。なお、表計算ソフトウェアに対するプラグインの登録の方法については、公知であるためその説明を省略する。
<Starting the plug-in of this embodiment>
FIG. 4 is a diagram showing a display screen when the
図5は、プラグイン起動アイコン405が押下された際にディスプレイ107に表示されるロール紙幅指定ダイアログを示す図である。図5において、ロール紙幅指定ダイアログ501は、ロール紙幅を指定するコンボボックス502と、印刷ボタン503と、キャンセルボタン504とを有して構成されている。ここで、印刷するロール紙幅をコンボボックス502を介して指定し、印刷ボタン503を押下することにより、印刷が行われる。また、キャンセルボタン504を押下すると、図4に示す画面へ戻る。本実施形態では、特に、印刷ボタン503が押下されたときの、用紙サイズの設定および印刷設定の動作について、図8〜図13を参照して後述する。
FIG. 5 is a diagram showing a roll paper width designation dialog displayed on the
これらの動作を説明する前にプリンタ2が有する機能について以下に説明する。図6および図7は、本実施形態のプリンタ2が有するそれぞれの機能を説明する図である。
Before describing these operations, the functions of the
<本実施形態のプリンタが備える余白削除機能>
図6(a)および(b)は、プリンタドライバが備える余白削除機能を説明する図である。余白削除機能は、プリンタドライバ305からの制御コマンドによる指示によって、ページ内に存在するイメージデータのみを印刷する機能である。すなわち、この機能は、ドキュメントデータの余白部分については紙送りを行わないようにして印刷結果において余白が形成されないようにする機能である。余白削除機能によって用紙を節約することができる。具体的には、図6(a)は余白削除機能を使用しない場合を示しており、その結果、画像部分601の上下に余分な空白602、603が形成されている。一方、図6(b)は、余白削除機能を使用した場合を示しており、画像部分601の上下の余分な空白は紙送りされずに、これによって画像のみが形成される。
<Margin Delete Function Provided in Printer of this Embodiment>
6A and 6B are diagrams for explaining a margin deletion function provided in the printer driver. The margin deletion function is a function for printing only image data existing in a page in accordance with an instruction from the
<本実施形態のプリンタが備えるカット無し機能>
図7(a)および(b)は、プリンタドライバが備えるカット無し機能を説明する図である。カット無し機能は、プリンタドライバ305からの制御コマンドによる指示によって、ページ毎にロール紙のカットを行わないようにする機能である。カット無し機能は、長尺印刷をする場合やカットできない用紙を用いる場合に使用される。換言すれば、このカット無し機能は、表計算ソフトにおける用紙サイズによる複数の分割領域(ページ)の境界を解消することができる。
<No-cut function provided in the printer of this embodiment>
FIGS. 7A and 7B are diagrams for explaining the non-cut function provided in the printer driver. The no-cut function is a function that prevents the roll paper from being cut for each page in accordance with an instruction from the
図7(a)は、カット無し機能を使わない場合を示している。図7(a)に示すように、1ページ目701と2ページ目702の間で切断が行われる。一方、図7(b)はカット無し機能を使用した場合を示している。1ページ目701と2ページ目702の間で切断は行われず続けて印刷される。
FIG. 7A shows a case where the no-cut function is not used. As shown in FIG. 7A, cutting is performed between the
<本実施形態に係るプラグインの動作>
以下、本発明の一実施形態に係るプラグイン304の動作を説明する。図8は、図5に示したロール紙幅指定ダイアログ501で、ユーザが印刷ボタン503を押下したときに呼び出されるプラグイン304のプログラムによる動作を示すフローチャートである。
<Operation of plug-in according to this embodiment>
Hereinafter, the operation of the plug-in 304 according to an embodiment of the present invention will be described. FIG. 8 is a flowchart showing the operation of the plug-in 304 program called when the user presses the
ステップS801では、表計算ソフトウェア303に対する設定を行う。具体的には、図10にて後述されるように、用紙サイズの作成及び設定、印刷の向きの設定、および拡大縮小の設定を行う。次に、ステップS802では、プリンタドライバ305に対する設定を行う。具体的には、図10にて後述されるように、ステップS801で設定した用紙サイズに基づき、ロール紙幅指定ダイアログ501で指定されたロール紙幅に印刷されるように変倍設定、余白削除機能の設定、カットなし機能の設定、ページ回転の設定および印刷の設定を行う。
In step S801, settings are made for the
図9(a)〜(h)は、プラグイン304による上述した、表計算ソフトウェアに対する設定およびプリンタドライバに対する設定によって変化する、表計算ソフトウェアによるドキュメントを示す図である。図9(a)に示すように、表計算ソフトウェアによって作成されたドキュメントは、幅6600mm×高さ10500mmの範囲に存在している。なお、このドキュメントが存在する範囲のサイズは、セルについて設定されているサイズに基づいており、この範囲の縦および横方向に存在するセルのサイズの合計によって定まるものである。本例のこのサイズは、ドキュメントが存在する範囲が比較的大きいことを示している。以下に、図10および図12を参照して説明する、プラグイン304による設定処理によって、このサイズのドキュメントは24インチ幅(610.0mm)のロール紙に対して印刷を行うためのデータとなる。 FIGS. 9A to 9H are diagrams showing documents by spreadsheet software that change according to the settings for the spreadsheet software and the settings for the printer driver described above by the plug-in 304. As shown in FIG. 9A, the document created by the spreadsheet software exists in a range of width 6600 mm × height 10500 mm. Note that the size of the range in which this document exists is based on the size set for the cell, and is determined by the sum of the sizes of the cells existing in the vertical and horizontal directions of this range. This size in this example indicates that the range in which the document exists is relatively large. A document of this size becomes data for printing on a roll paper having a width of 24 inches (610.0 mm) by setting processing by the plug-in 304 described below with reference to FIGS. 10 and 12. .
図10は、本発明の一実施形態に係るプラグインによる表計算ソフトウェア対する設定処理を示すフローチャートである。 FIG. 10 is a flowchart showing a setting process for the spreadsheet software by the plug-in according to the embodiment of the present invention.
先ず、ステップS1001で、表計算ソフトウェアのドキュメントに対して、基準とする所定の用紙サイズ(基準用紙サイズ)を設定する。基準用紙サイズは、特に大きさを特定するものではなく、プリンタドライバで扱えるサイズであればいかなるサイズであってもよい。本例では、基準用紙サイズを300mm×300mmとする。このステップS1001によって、図9(a)において縦の実線および横の破線で区画されるように、ドキュメントが存在する範囲は、基準用紙サイズによって、幅方向(図9(a)の横方向)22個分および高さ方向(図9(a)の縦方向)35個分に分割される。すなわち、ドキュメントが存在する範囲は、基準用紙サイズによって、幅方向に22ページ分、高さ方向に35ページ分となる。 First, in step S1001, a predetermined predetermined paper size (reference paper size) is set for a document of spreadsheet software. The reference paper size is not particularly specified, and may be any size that can be handled by the printer driver. In this example, the reference paper size is 300 mm × 300 mm. As a result of this step S1001, the range in which the document exists as indicated by the vertical solid line and the horizontal broken line in FIG. 9A is the width direction (horizontal direction in FIG. 9A) 22 depending on the reference paper size. It is divided into 35 pieces and 35 pieces in the height direction (vertical direction in FIG. 9A). That is, the range in which the document exists is 22 pages in the width direction and 35 pages in the height direction depending on the reference paper size.
次に、ステップS1002で、上記のように基準用紙サイズの設定によって横方向および縦方向に分割されるページ数を取得する。すなわち、図9(b)に示すように、縦35ページ、横22ページを取得する。 In step S1002, the number of pages divided in the horizontal and vertical directions according to the setting of the reference paper size as described above is acquired. That is, as shown in FIG. 9B, 35 pages long and 22 pages wide are acquired.
次に、ステップS1003で、基準用紙サイズの幅を横方向のページ数倍に拡大した横方向長さと、基準用紙サイズの高さを縦方向のページ数倍に拡大した縦方向長さと、から印刷の向きを決定する(印刷向き決定)。具体的には、先ず、縦方向長さと横方向長さを比較する。そして、横方向長さのほうが大きい場合は「縦」、縦方向長さの方が大きい場合は「横」と、印刷の向きを決定する。図示の例では、横方向長さは300×22=6600であり、縦方向長さは300×35=10500であることから、縦方向長さの方が大きいと判定される。この結果、図9(c)に示すように印刷の向きが、「横」であることを決定する。すなわち、この処理は、ドキュメントの縦、横のうち長さが小さい方が記録媒体であるロール紙の幅方向に沿うような印刷の向きとするものである。これにより、最終的にロール紙の幅に合わせてドキュメントを印刷するようにする用紙サイズの処理において、縮小率がより大きくて済むようでき、結果として、極めて大きなサイズのドキュメントを1ページに収める際に、表計算ソフトウェアが持つ縮小率で対応することが可能となる。 Next, in step S1003, printing is performed from the horizontal length obtained by expanding the width of the reference paper size by the number of pages in the horizontal direction and the vertical length obtained by increasing the height of the reference paper size by the number of pages in the vertical direction. The orientation of the print is determined (print orientation determination). Specifically, first, the vertical length and the horizontal length are compared. The printing direction is determined as “vertical” when the horizontal length is larger, and “horizontal” when the vertical length is larger. In the illustrated example, the horizontal length is 300 × 22 = 6600, and the vertical length is 300 × 35 = 10500. Therefore, it is determined that the vertical length is larger. As a result, as shown in FIG. 9C, it is determined that the printing direction is “horizontal”. That is, in this process, the printing direction is such that the smaller one of the vertical and horizontal lengths of the document is along the width direction of the roll paper as the recording medium. As a result, in the paper size processing in which the document is finally printed in accordance with the width of the roll paper, the reduction ratio can be further increased. As a result, when an extremely large document is put on one page, It is possible to cope with the reduction ratio of the spreadsheet software.
次に、ステップS1004では、基準用紙サイズの幅を横方向のページ数倍に拡大した横方向長さと、基準用紙サイズの高さを縦方向のページ数倍に拡大した縦方向長さと、から用紙サイズを決定する(用紙サイズ決定)。先ず、縦方向長さと横方向長さを求めそれらを比較する。横方向長さは300×22=6600であり、縦方向長さは300×35=10500であることから、横方向長さが小さいと判定される。そして、小さい方の長さを基に用紙サイズの高さを決定する。 Next, in step S1004, the paper is obtained from the horizontal length obtained by expanding the width of the reference paper size to the number of pages in the horizontal direction and the vertical length obtained by expanding the height of the reference paper size to the number of pages in the vertical direction. Determine the size (determine paper size). First, the vertical length and the horizontal length are obtained and compared. Since the horizontal length is 300 × 22 = 6600 and the vertical length is 300 × 35 = 10500, it is determined that the horizontal length is small. Then, the height of the paper size is determined based on the smaller length.
ここで当該アプリケーション(表計算ソフト303)において設定可能なページサイズの上限が縦、横ともに6000mmであるとする。すると、仮に印刷対象のデータの縦方向(10500mm)を6000mmに縮小すると、縮小率が低く、表計算ソフト303の最小の縮小率を越えてしまう場合がある。そこで、印刷対象のデータの縦横のうち、より小さな横方向(6600mm)を基準とするすなわち、ステップS1003で決定された印刷の向き(本例では「横」)に応じて、決定された印刷の向きにおける縦方向に相当する用紙サイズの「高さ」を横方向長さを基準として定める。この処理によっても、上記ステップS1003について説明したのと同様に、極めて大きなサイズのドキュメントを1ページに収める際に、表計算ソフトウェアが持つ縮小率で対応することが可能となる。
Here, it is assumed that the upper limit of the page size that can be set in the application (spreadsheet software 303) is 6000 mm in both vertical and horizontal directions. Then, if the vertical direction (10500 mm) of the data to be printed is reduced to 6000 mm, the reduction rate is low and may exceed the minimum reduction rate of the
本例では、横方向長さが小さいので横方向長さ6600mmが基準となり、この基準より小さい6000mmを用紙サイズの高さとする。また、印刷の向きにおいて横方向に相当する、用紙サイズの幅は任意でよいことから、24インチである610mmとする。すなわち、本処理によって、図9(d)に示すように、幅610mm×高さ6000mmという用紙サイズを決定する。 In this example, since the horizontal length is small, the horizontal length of 6600 mm is used as a reference, and 6000 mm, which is smaller than this reference, is set as the height of the paper size. Further, since the width of the paper size corresponding to the horizontal direction in the printing direction may be arbitrary, it is set to 610 mm which is 24 inches. That is, by this process, as shown in FIG. 9D, a paper size of width 610 mm × height 6000 mm is determined.
次に、ステップS1005で、上述のステップS1003で決定した印刷の向きを表計算ソフトウェアに設定し、ステップS1006で、上述のステップS1004で決定した用紙サイズを表計算ソフトウェアに設定する。これらの処理によって、表計算ドキュメントにおいて、図9(e)に示すような、用紙サイズを単位とするページが画定される。具体的には、横方向に2ページ分、縦方向に18ページ分の分割された領域が画定する。 In step S1005, the printing direction determined in step S1003 is set in the spreadsheet software. In step S1006, the paper size determined in step S1004 is set in the spreadsheet software. By these processes, pages in units of paper size as shown in FIG. 9E are defined in the spreadsheet document. Specifically, an area divided into two pages in the horizontal direction and 18 pages in the vertical direction is defined.
次に、ステップS1007で、1×Nページの拡大縮小を表計算ソフトウェアに設定する。ここでは、ステップS1003で決定した印刷の向きが縦であれば、縦1ページ、横Nページを設定し、ステップS1003で決定した印刷の向きが横であれば、縦Nページ、横1ページを設定する。 In step S1007, enlargement / reduction of 1 × N pages is set in the spreadsheet software. Here, if the printing orientation determined in step S1003 is vertical, one vertical page and N horizontal pages are set. If the printing orientation determined in step S1003 is horizontal, vertical N pages and horizontal one page are set. Set.
この設定は一般的な表計算ソフトウェアが備えている設定で、図11に示すダイアログを介して設定する。図11に示すように、拡大縮小設定ダイアログ1101は、拡大/縮小率指定ラジオボタン1102、ページ数指定ラジオボタン1103、OKボタン1104、キャンセルボタン1105を有している。拡大縮小率指定ラジオボタン1102を選択すると、現在のドキュメントを指定された拡大縮小率でページに配置する。ページ数指定ラジオボタン1103を選択すると、現在のドキュメントを指定されたページ数に配置する。ここで所望の拡大縮小設定を選択し、OKボタン1104を押下することで、設定が反映される。また、キャンセルボタン1105を押下すると、拡大縮小設定ダイアログ1101を起動した画面へ戻る。本例では、ページ数指定ラジオボタン1103を選択し、縦Nページ、横1ページを設定する動作をプログラムで指定する。なお、ラジオボタンが既にこの状態になっている場合は特に何もしなくてもよい。本ステップS1007の処理によって、図9(f)に示すように、印刷の向きが「横」であるから、ドキュメントの横方向が1ページとなるように印刷対象のデータが縮小されるまた、縦方向はNページ分(図示の例では、16)となるよう、印刷対象のデータが縮小される。
This setting is a setting provided in general spreadsheet software, and is set via a dialog shown in FIG. As shown in FIG. 11, the enlargement /
またアプリケーションにおける余白設定によっては、ページ内に余白が設けられる場合がある。そこでS1008で、表計算ソフトウェアの余白設定において、ページ内の余白が設けられないように設定を行う。例えば、余白設定における、ページの上下左右に対応する余白量として「0.0mm」を設定する。これにより、ページ内の余白がないようにページ分割されたデータが、表計算ソフトウェアにより作成される。 Depending on the margin setting in the application, a margin may be provided in the page. In step S1008, the margin setting of the spreadsheet software is set so that no margin is provided in the page. For example, “0.0 mm” is set as the margin amount corresponding to the top, bottom, left, and right of the page in the margin setting. Thereby, the data divided into pages so that there is no margin in the page is created by the spreadsheet software.
このように、本発明の一実施形態によれば、ステップS1003、S1004の処理を経ることにより、印刷対象のデータの縦横のうちの短い方が、ロール紙の幅方向に合うように印刷対象のデータが縮小される。そのため、印刷対象の表計算データを縮小するにあたり、表計算ソフトウェアが持つ縮小率によっても、比較的大きなサイズの範囲に存在する表計算データであっても、プリンタドライバが扱うことができる用紙サイズによって1ページに表計算データを収めることが可能となる。 As described above, according to the embodiment of the present invention, through the processing of steps S1003 and S1004, the shorter one of the vertical and horizontal data to be printed matches the width direction of the roll paper. Data is reduced. Therefore, when reducing the spreadsheet data to be printed, depending on the reduction ratio of the spreadsheet software, even the spreadsheet data existing in a relatively large size range depends on the paper size that the printer driver can handle. Spreadsheet data can be stored on one page.
図5にて前述したように、以上の「表計算ソフト設定」(S801)を終了すると、次に、「印刷設定」(S802)が行われる。 As described above with reference to FIG. 5, when the above “spreadsheet software setting” (S801) is completed, “print setting” (S802) is performed.
図12は、本発明の一実施形態に係る印刷設定処理を示すフローチャートである。 FIG. 12 is a flowchart showing print setting processing according to an embodiment of the present invention.
先ず、ステップS1201で、プリンタドライバ305に、ステップS1004で決定した用紙サイズに基づいて、コンボボックス502で指定されたロール紙幅への変倍を設定する。この設定は、プリンタドライバが備えている設定であり、図13に示すダイアログを介して設定する。図13に示すように、ダイアログ1301は、原稿サイズを指定するコンボボックス1302、拡大縮小印刷を指定するチェックボックス1303、拡大縮小方法を指定するラジオボタン1304〜1306、ロール紙幅を指定するコンボボックス1307を有している。コンボボックス1302は、アプリケーションの用紙サイズを設定する。チェックボックス1303を指定すると、3つの拡大縮小方法から1つを指定することができる。出力用紙サイズ指定ラジオボタン1304を選択すると、出力用紙サイズとして指定される用紙サイズに合わせて、原稿サイズが拡大または縮小される。ロール紙幅指定ラジオボタン1305を選択すると、コンボボックス1307で指定されたロール紙幅に合わせて、原稿サイズが拡大または縮小される。さらに、倍率指定ラジオボタン1306を選択すると、指定された倍率で原稿サイズが拡大または縮小される。
First, in step S1201, the
本例では、コンボボックス1302に、ステップS1004で決定した用紙サイズを指定し、ロール紙幅指定ラジオボタン1305を選択することにより、コンボボックス502で指定されたロール紙幅をコンボボックス1307に指定する動作をプログラムで指定する。
In this example, an operation for designating the roll paper width designated in the
次に、ステップS1202で、プリンタドライバにページ回転機能を設定する。この設定は、プリンタドライバが備えている設定であり、ページを90度または270度回転することによってロール紙の節約を図ことができる。図13に示すダイアログにおいて、ページ回転機能を指定するチェックボックス1310を介して回転を指定する。本例では、チェックボックス1310を指定する動作をプログラムで指定する。
In step S1202, a page rotation function is set in the printer driver. This setting is a setting provided in the printer driver, and roll paper can be saved by rotating the page by 90 degrees or 270 degrees. In the dialog shown in FIG. 13, the rotation is designated via a
以上のステップS1201、S1202の処理によって、図9(g)に示すように、ドキュメントの状態が変更されロール紙の幅に縮小される。 Through the processes in steps S1201 and S1202, the document state is changed and reduced to the roll paper width as shown in FIG.
次に、ステップS1203で、プリンタドライバにカット無し機能を設定する。この設定は、プリンタドライバが備えている設定であり、図7にて前述した機能である。この機能は、図13に示すダイアログを介して設定することができる。ダイアログ1301における、カットなし機能を指定するチェックボックス1309を介して設定する。本例では、チェックボックス1309を指定する動作をプログラムで指定する。
Next, in step S1203, the no-cut function is set in the printer driver. This setting is a setting provided in the printer driver and is the function described above with reference to FIG. This function can be set via a dialog shown in FIG. This is set through a
この機能によって、表計算ドキュメントの縦方向を1ページに収めることができる。なお、上述したステップS1007の処理で、表計算ドキュメントの縦方向をNページでなく、1ページとして用紙サイズを定めることにより、このカット無し機能を経ずに表計算ドキュメントの縦方向を1ページに収めるようにしてもよい。 With this function, the vertical direction of the spreadsheet document can be contained on one page. In the process of step S1007 described above, by setting the paper size as one page instead of N pages as the vertical direction of the spreadsheet document, the vertical direction of the spreadsheet document is changed to one page without passing through this no-cut function. You may make it contain.
次に、ステップS1204で、プリンタドライバに余白削除機能を設定する。この設定は、プリンタドライバが備えている設定であり、図6にて前述した機能である。この機能は、図13に示すダイアログ1301において、余白削除機能を指定するチェックボックス1308を介して設定する。本例では、チェックボックス1308を指定する動作をプラグインソフトウェアのプログラムで指定する。
In step S1204, a margin deletion function is set in the printer driver. This setting is a setting provided in the printer driver and is the function described above with reference to FIG. This function is set via a
以上のステップS1203、S1204の処理によって、プリンタドライバによる制御により印刷が実行された場合に、図9(h)に示すように、ページ間の余白が無い状態でドキュメントが印刷される。 When printing is executed under the control of the printer driver by the processes in steps S1203 and S1204, as shown in FIG. 9H, the document is printed with no margin between pages.
最後に、ステップS1205で、表計算ソフトウェアに印刷を指示する。これにより、図9(h)に示す、図9(a)に示した比較的大きなサイズの表計算ソフトのドキュメントを、1ページの印刷物として得ることができる。 Finally, in step S1205, the spreadsheet software is instructed to print. Thereby, the document of the spreadsheet software having a relatively large size shown in FIG. 9A shown in FIG. 9H can be obtained as a one-page printed matter.
また以上の図10、図12における表計算ソフトウェア(アプリケーション)、プリンタドライバに対する設定はプラグインにより実行される。即ち、表計算ソフトウェアのページ設定、余白設定、プリンタドライバに対する変倍設定、回転設定、余白削除機能設定等が、ユーザによる指示によるものでなく、プラグインにより自動的に実行される。そのため、ユーザが上記の指示を行わなくても、表計算データをロール紙の幅に合うように容易に印刷させることができる。 Also, the settings for the spreadsheet software (application) and printer driver in FIGS. 10 and 12 are executed by plug-ins. That is, page setting, margin setting, scaling setting for printer driver, rotation setting, margin deletion function setting, etc. of the spreadsheet software are automatically executed by the plug-in, not by the user's instruction. Therefore, it is possible to easily print the spreadsheet data so as to fit the width of the roll paper without the user giving the above instruction.
なお、上記のプラグインにより設定によるユーザが意図せずに各種の設定変更が行われる場合がある。そこで、図10、図12における処理の後、表計算ソフトウェア、プリンタドライバにおいて変更された設定を、図10、図12の処理の実行前の設定に戻す処理を行ってもよい。この場合、例えば処理前の設定がRAM102に記憶され、プラグインが図10、図12の処理を実行した後、RAM102に記憶されている設定を改めて表計算ソフトウェア、プリンタドライバに設定してもよい。
Note that various settings may be changed by the above plug-in without the intention of the user. Therefore, after the processing in FIGS. 10 and 12, processing that returns the setting changed in the spreadsheet software and printer driver to the setting before execution of the processing in FIGS. 10 and 12 may be performed. In this case, for example, the settings before processing are stored in the
なお、表計算ソフトウェア設定処理の中で、表計算ドキュメントのデータの周囲に枠線を付与することにより(枠線付与)、上述した表計算ソフトウェア設定の各種処理によって枠線内のドキュメントのレイアウトが変更されないようにしてもよい。 In addition, in the spreadsheet software setting process, by adding a frame line around the data of the spreadsheet document (adding a frame line), the layout of the document in the frame line is changed by the various processes of the spreadsheet software setting described above. It may not be changed.
また、上述した実施形態は、表計算ソフトウェアに対して機能を追加するプログラムであるプラグインによる、表計算ソフトウェアに対する設定およびプリンタドライバに対する設定を介して用紙サイズの決定および印刷データのサイズの決定を行うものであが、本発明の適用はこの形態に限られない。例えば、表計算ソフトウェア自体が図8について説明した処理を実行するようにしてもよい。 In the above-described embodiment, the paper size is determined and the print data size is determined by the plug-in, which is a program for adding functions to the spreadsheet software, through the settings for the spreadsheet software and the settings for the printer driver. However, application of the present invention is not limited to this form. For example, the spreadsheet software itself may execute the processing described with reference to FIG.
さらに、図9(c)において印刷の向きを決定するときに、印刷対象のデータの縦方向の方が横方向よりも長いときは印刷の向きを「縦」、横方向の方が長いときには印刷の向きを「横」としてもよい。 Further, when determining the printing direction in FIG. 9C, the printing direction is “vertical” when the vertical direction of the data to be printed is longer than the horizontal direction, and printing is performed when the horizontal direction is longer. The direction may be “horizontal”.
なお、本実施形態の機能は以下の構成によっても実現することができる。つまり、本実施形態の処理を行うためのプログラムコードをシステムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)がプログラムコードを実行することによっても達成される。この場合、記憶媒体から読み出されたプログラムコード自体が上述した実施形態の機能を実現することとなり、またそのプログラムコードを記憶した記憶媒体も本実施形態の機能を実現することになる。 Note that the functions of this embodiment can also be realized by the following configuration. That is, it is also achieved by supplying a program code for performing the processing of the present embodiment to a system or apparatus, and a computer (or CPU or MPU) of the system or apparatus executing the program code. In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code also realizes the function of the present embodiment.
また、本実施形態の機能を実現するためのプログラムコードを、1つのコンピュータ(CPU、MPU)で実行する場合であってもよいし、複数のコンピュータが協働することによって実行する場合であってもよい。さらに、プログラムコードをコンピュータが実行する場合であってもよいし、プログラムコードの機能を実現するための回路等のハードウェアを設けてもよい。またはプログラムコードの一部をハードウェアで実現し、残りの部分をコンピュータが実行する場合であってもよい。 Further, the program code for realizing the function of the present embodiment may be executed by one computer (CPU, MPU), or may be executed by a plurality of computers cooperating. Also good. Further, the program code may be executed by a computer, or hardware such as a circuit for realizing the function of the program code may be provided. Alternatively, a part of the program code may be realized by hardware and the remaining part may be executed by a computer.
1 ホストコンピュータ
2 記録装置(プリンタ)
101 CPU
102 RAM
103 ROM
107 ディスプレイ
303 表計算ソフトウェア
304 プラグイン
305 プリンタドライバ
306 表計算ソフト設定部
307 印刷設定部
1011 拡大縮小設定ダイアログ
1301 ダイアログ
1
101 CPU
102 RAM
103 ROM
Claims (8)
表計算ソフトウェア上で作成されるデータが存在する領域について、所定の基準用紙サイズに基づいて得られる、前記領域の横方向のページ数に対応した横方向の長さと、前記領域の縦方向のページ数に対応した縦方向の長さと、から当該データの印刷の向きを決定する印刷向き決定工程と、
前記決定された印刷の向きに応じて、前記領域の横方向および縦方向に対応した用紙サイズの高さおよび幅を定めて当該用紙サイズを決定する用紙サイズ決定工程と、
前記決定された印刷の向きに応じて、前記用紙サイズの前記高さおよび幅を拡大または縮小し、前記用紙サイズの高さおよび幅うち少なくとも一方の内に前記データが存在する領域が含まれるようにする拡大縮小工程と、
を有したことを特徴とする用紙サイズ設定プログラム。 A paper size setting program for causing a computer to execute processing for setting a paper size in spreadsheet software, wherein the processing includes:
For an area where data created on spreadsheet software is present, a horizontal length corresponding to the number of pages in the horizontal direction of the area and a vertical page of the area obtained based on a predetermined reference paper size A printing direction determination step for determining the printing direction of the data from the length in the vertical direction corresponding to the number;
A paper size determining step for determining the paper size by determining the height and width of the paper size corresponding to the horizontal direction and the vertical direction of the area according to the determined printing orientation;
The height and width of the paper size are enlarged or reduced according to the determined printing orientation, and an area where the data exists is included in at least one of the height and width of the paper size. Scaling process to
A paper size setting program characterized by comprising:
表計算ソフトウェア上で作成されるデータが存在する領域について、所定の基準用紙サイズに基づいて得られる、前記領域の横方向のページ数に対応した横方向の長さと、前記領域の縦方向のページ数に対応した縦方向の長さと、から当該データの印刷の向きを決定する印刷向き決定工程と、
前記決定された印刷の向きに応じて、前記領域の横方向および縦方向に対応した用紙サイズの高さおよび幅を定めて当該用紙サイズを決定する用紙サイズ決定工程と、
前記決定された印刷の向きに応じて、前記用紙サイズの前記高さおよび幅を拡大または縮小し、前記用紙サイズの高さおよび幅うち少なくとも一方の内に前記データが存在する領域が含まれるようにする拡大縮小工程と、
を有したことを特徴とする用紙サイズ設定方法。 A paper size setting method for executing processing for setting a paper size in spreadsheet software,
For an area where data created on spreadsheet software is present, a horizontal length corresponding to the number of pages in the horizontal direction of the area and a vertical page of the area obtained based on a predetermined reference paper size A printing direction determination step for determining the printing direction of the data from the length in the vertical direction corresponding to the number;
A paper size determining step for determining the paper size by determining the height and width of the paper size corresponding to the horizontal direction and the vertical direction of the area according to the determined printing orientation;
The height and width of the paper size are enlarged or reduced according to the determined printing orientation, and an area where the data exists is included in at least one of the height and width of the paper size. Scaling process to
A paper size setting method characterized by comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013267242A JP2015125465A (en) | 2013-12-25 | 2013-12-25 | Sheet size setting program and sheet size setting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013267242A JP2015125465A (en) | 2013-12-25 | 2013-12-25 | Sheet size setting program and sheet size setting method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2015125465A true JP2015125465A (en) | 2015-07-06 |
Family
ID=53536160
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013267242A Pending JP2015125465A (en) | 2013-12-25 | 2013-12-25 | Sheet size setting program and sheet size setting method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2015125465A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2017068652A (en) * | 2015-09-30 | 2017-04-06 | キヤノン株式会社 | Print controller and control method thereof |
JP2019204347A (en) * | 2018-05-24 | 2019-11-28 | キヤノン株式会社 | Information processing device, control method therefor, and program |
-
2013
- 2013-12-25 JP JP2013267242A patent/JP2015125465A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2017068652A (en) * | 2015-09-30 | 2017-04-06 | キヤノン株式会社 | Print controller and control method thereof |
JP2019204347A (en) * | 2018-05-24 | 2019-11-28 | キヤノン株式会社 | Information processing device, control method therefor, and program |
JP7152879B2 (en) | 2018-05-24 | 2022-10-13 | キヤノン株式会社 | Information processing device and its control method and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2011203826A (en) | Apparatus and method for processing image, and program | |
JP5920670B2 (en) | Image forming apparatus, print control program, and print control method | |
JP6115062B2 (en) | Print control program, information processing apparatus, and recording medium | |
JP6320088B2 (en) | Information processing apparatus, information processing method, and program | |
JP7332345B2 (en) | Program, control method and image processing device | |
JP5253060B2 (en) | Print control apparatus, print control method, and program | |
JP6012382B2 (en) | Information processing apparatus, information processing method, and program | |
JP2014109920A (en) | Information processor, data edit method and data edit program | |
JP5084649B2 (en) | Information processing apparatus, information processing method, and program | |
JP2005115683A (en) | Print setting method and information processor | |
JP2021010061A (en) | Preview screen control device, control method, and program | |
JP2015125465A (en) | Sheet size setting program and sheet size setting method | |
JP5371550B2 (en) | Information processing apparatus, control method therefor, and computer program | |
JP4578541B2 (en) | Printing condition setting device, printing device, printing system, and printing condition setting recording medium | |
JP2007253597A (en) | Printer | |
JP5734020B2 (en) | Print control apparatus, print control method for print control apparatus, and program | |
JP2005165466A (en) | Print controller, print control method and computer program | |
JP2007279855A (en) | Information processor and its control method, and program | |
JP5982916B2 (en) | Image processing apparatus, image processing program, image processing system, and image processing method | |
JP7250605B2 (en) | PRINTING METHOD, PRINTING SYSTEM AND PRINTING APPARATUS | |
JP2021086185A (en) | Information processing device, control method for information processing device and program | |
JP2013054527A (en) | Information processing apparatus, information processing method, and program | |
JP4933919B2 (en) | Image forming apparatus, document orientation determination method, and document orientation determination program | |
JP2010277245A (en) | Printing system and print control method | |
JP2022159389A (en) | Information processing device, program, and method of controlling information processing device |