JP2015125465A - Sheet size setting program and sheet size setting method - Google Patents

Sheet size setting program and sheet size setting method Download PDF

Info

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
Application number
JP2013267242A
Other languages
Japanese (ja)
Inventor
荒井 克俊
Katsutoshi Arai
克俊 荒井
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2013267242A priority Critical patent/JP2015125465A/en
Publication of JP2015125465A publication Critical patent/JP2015125465A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain, in setting of a sheet size, a print having a spread sheet document accommodated in a page even when the size of the document is extremely large.SOLUTION: Printing direction is determined according to the lateral length obtained by expanding the width of a reference sheet size by the number of pages in the lateral direction, and the vertical length obtained by expanding the height of the reference sheet size by the number of pages in the vertical direction. Specifically, the lengths in the vertical and lateral directions are compared first. Then, the printing direction is determined to be the "vertical direction" or the "lateral direction" according to whether the lateral length or the vertical length is longer than the other, so that the vertical direction or the lateral direction of a document which has the length shorter than the other is made along the width direction of rolled paper as a recording medium. Accordingly, the reduction rate can be made larger in sheet size processing for eventual printing of a document made fit in with the width of the rolled paper, resultantly enabling an extremely large document to be accommodated in a page with a reduction rate of a spread sheet software.

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 Patent Document 1, the height and width of a range in which a document exists by spreadsheet software is specified by the number of pages of the reference paper size, and the height and width of the reference paper size are respectively expanded to the number of pages. It describes that the paper size is set so that the document can fit on one page. Then, by enlarging and reducing the document on the spreadsheet software with respect to the set paper size, when the document is printed, it fits on the paper without excess or deficiency.

特開2010−67034号公報JP 2010-67034 A

しかしながら、特許文献1に記載の技術をもってしても、表計算ソフトウェアによるドキュメントのサイズが極めて大きい場合は、用紙の所定の1ページに過不足なく収めて印刷できない場合がある。すなわち、印刷に用いることができる用紙のサイズは印刷を制御するプリンタドライバで取り扱う用紙サイズという前提がある。また、表計算ソフトウェアの拡大縮小率には制限がある。そのため、表計算ドキュメントのサイズによっては、表計算ソフトウェア上の最小の縮小率(最も縮小される縮小率)で縮小してもプリンタドライバで取り扱える用紙サイズを超えてしまう場合があり、その結果、1ページに収まるように印刷することができないことがある。   However, even with the technique described in Patent Document 1, when the size of a document by spreadsheet software is extremely large, it may not be possible to print on a predetermined one page of a sheet without excess or deficiency. That is, there is a premise that the paper size that can be used for printing is the paper size handled by the printer driver that controls printing. In addition, there is a limit to the scaling ratio of spreadsheet software. Therefore, depending on the size of the spreadsheet document, there are cases where the paper size that can be handled by the printer driver exceeds the paper size even if it is reduced at the minimum reduction ratio (the reduction ratio that is reduced most) on the spreadsheet software. You may not be able to print to fit on the page.

本発明は、極めて大きなサイズの表計算ドキュメントであっても、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.

本発明の一実施形態に係る印刷システムを構成するホストコンピュータとインクジェットプリンタの概略を示すブロック図である。1 is a block diagram illustrating an outline of a host computer and an inkjet printer that constitute a printing system according to an embodiment of the present invention. FIG. 図1に示した記録システムを構成するプリンタの外観斜視図である。FIG. 2 is an external perspective view of a printer configuring the recording system illustrated in FIG. 1. 本発明の一実施形態に係るプラグインを有するシステムの構成を示す図である。It is a figure which shows the structure of the system which has a plug-in which concerns on one Embodiment of this invention. 図3に示す表計算ソフトウェア303を起動したときの表示画面を示す図である。It is a figure which shows a display screen when the spreadsheet software 303 shown in FIG. 3 is started. 図4に示すプラグイン起動アイコンが押下された際にディスプレイに表示されるロール紙幅指定ダイアログを示す図である。FIG. 5 is a diagram showing a roll paper width designation dialog displayed on the display when the plug-in activation icon shown in FIG. 4 is pressed. (a)および(b)は、プリンタドライバが備える余白削除機能を説明する図である。(A) And (b) is a figure explaining the margin deletion function with which a printer driver is provided. (a)および(b)は、プリンタドライバが備えるカット無し機能を説明する図である。(A) And (b) is a figure explaining the no-cut function with which a printer driver is provided. 図5に示したロール紙幅指定ダイアログで、印刷ボタンが押下されたときに呼び出されるプラグインのプログラムによる動作を示すフローチャートである。6 is a flowchart showing an operation by a plug-in program called when a print button is pressed in the roll paper width designation dialog shown in FIG. 5. (a)〜(h)は、プラグインによる、表計算ソフトウェアに対する設定およびプリンタドライバに対する設定によって変化するドキュメントを示す図である。(A)-(h) is a figure which shows the document which changes with the setting with respect to spreadsheet software and the setting with respect to a printer driver by a plug-in. 本発明の一実施形態に係るプラグインによる表計算ソフトウェア対する設定処理を示すフローチャートである。It is a flowchart which shows the setting process with respect to the spreadsheet software by the plug-in which concerns on one Embodiment of this invention. 表計算ソフトウェアが備える拡大縮小設定ダイアログを示す図である。It is a figure which shows the enlargement / reduction setting dialog with which spreadsheet software is provided. 本発明の一実施形態に係る印刷設定処理を示すフローチャートである。6 is a flowchart illustrating print setting processing according to an embodiment of the present invention. プリンタドライバが備える設定ダイアログを示す図である。FIG. 6 is a diagram illustrating a setting dialog provided in the printer driver.

以下、添付の図面を参照して本発明の実施形態を詳細に説明する。本発明の実施形態は、表計算ソフトウェアのプラグインに関し、このプラグインによって、表計算ソフトウェアに対して、用紙サイズを設定し、また、プリンタドライバに対して、設定した用紙サイズに基づいて、変倍などを設定する。ここで、プラグインとは、アプリケーションに対して機能を追加するプログラムである。例えば、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 host 1 and the recording apparatus 2 are connected to each other via a bidirectional interface 3 (for example, USB, IEEE 1394, TCP / IP, etc.). A typical example of the host 1 is a personal computer (PC). The host 1 includes a main board 100 including a CPU 101, a keyboard (KB) 105, a display (DISPLAY) 107 such as an LCD, and an external storage device 109 such as a hard disk (HDD) and a flexible disk (FDD). doing. The main board 100 further includes a RAM 102, a ROM 103, a keyboard controller (KBC) 104, a display controller (DISPC) 106, a disk controller (DKC) 108, and a printer controller (PRTC) 110.

CPU101は、システムバス111に接続される上記各要素を総括的に制御し、図10、図12で後述されるプログラムを含んだ各種プログラムを実行する。キーボードコントローラ(KBC)104は、キーボード105やポインティングデバイス(不図示)からの入力を制御する。キーボードコントローラ104を操作部または入力部とも呼ぶ。ディスプレイコントローラ(DISPC)106は、ディスプレイ107の表示を制御する。RAM102は、CPU101のメインメモリあるいはワークエリアとして機能する。ROM103は、オペレーティングシステム、この実施形態に従う各機能を実行するプログラム、ブートプログラム、各種のアプリケーション、プリンタ制御コマンド生成プログラム(以下、プリンタドライバ)等を記憶する。   The CPU 101 comprehensively controls the above-described elements connected to the system bus 111, and executes various programs including programs described later with reference to FIGS. A keyboard controller (KBC) 104 controls input from a keyboard 105 and a pointing device (not shown). The keyboard controller 104 is also referred to as an operation unit or an input unit. A display controller (DISPC) 106 controls display on the display 107. The RAM 102 functions as a main memory or work area for the CPU 101. The ROM 103 stores an operating system, a program that executes each function according to this embodiment, a boot program, various applications, a printer control command generation program (hereinafter referred to as a printer driver), and the like.

ディスクコントローラ(DKC)108は、ハードディスクやフレキシブルディスク(登録商標)等の外部記憶装置109とのアクセスを制御する。プリンタコントローラ(PRTC)110は、双方向インタフェース3を介して記録装置2に接続され、記録装置2とのデータ及びコマンドの通信処理を制御する。   A disk controller (DKC) 108 controls access to an external storage device 109 such as a hard disk or a flexible disk (registered trademark). A printer controller (PRTC) 110 is connected to the recording apparatus 2 via the bidirectional interface 3 and controls data and command communication processing with the recording apparatus 2.

プリンタ2は、コントローラ121と、プリンタエンジン122と、操作パネル12と、不揮発性記憶装置133とを有し、双方向インタフェース3を介して、ホスト1とデータ接続されている。不揮発性記憶装置133は、ハードディスク(HDD)128またはEEPROM129を含む。不揮発性記憶装置を不揮発性メモリともいう。   The printer 2 includes a controller 121, a printer engine 122, an operation panel 12, and a nonvolatile storage device 133, and is data-connected to the host 1 via the bidirectional interface 3. The non-volatile storage device 133 includes a hard disk (HDD) 128 or an EEPROM 129. The nonvolatile storage device is also referred to as a nonvolatile memory.

コントローラ121は、CPU124、ROM125、RAM126、インタフェースコントローラ(I/FC)123、ディスクコントローラ(DKC)127、パネルインタフェース(I/FP)130、エンジンインタフェース(I/FE)132を含む。   The controller 121 includes a CPU 124, ROM 125, RAM 126, interface controller (I / FC) 123, disk controller (DKC) 127, panel interface (I / FP) 130, and engine interface (I / FE) 132.

CPU124は各種プログラムを実行する。ROM125は、ホスト1から印刷用画像データとコマンドを受信し、プリンタエンジン122を制御して最適な記録を実現させるプログラムや各種データを記憶する。RAM126は、各種データや各種プログラムを一時的に記憶するワークエリアとして用いられる。   The CPU 124 executes various programs. The ROM 125 receives printing image data and commands from the host 1 and stores programs and various data for controlling the printer engine 122 to realize optimum recording. The RAM 126 is used as a work area for temporarily storing various data and various programs.

インタフェースコントローラ(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 host 1 via the bidirectional interface 3 and controls data and command communication processing with the host 1. A hard disk (HDD) 128 stores a large amount of data such as data from the host 1 and attached information related to the data. The EEPROM 129 stores information unique to the recording device used during the recording operation. A disk controller (DKC) 127 controls access to the nonvolatile storage device 133. A panel interface (I / FP) 130 controls display on the operation panel 12 and input from the operation panel 12. An engine interface (I / FE) 132 controls the printer engine 122 that directly controls hardware to realize optimal printing.

なお、本実施形態では、プリンタエンジン122はインクジェット記録方法を用いたものであるが、電子写真方式に従うプリンタエンジンやオフセット印刷機を用いることもできる。   In this embodiment, the printer engine 122 uses an ink jet recording method, but a printer engine or an offset printing machine according to an electrophotographic method can also be used.

<インクジェットプリンタの概略構成>
図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 recording apparatus 2 constituting the recording system shown in FIG. As shown in FIG. 2, a manual insertion slot 88 is provided on the front surface of the recording apparatus 2, and a roll paper cassette 89 that can be opened and closed to the front surface is provided below the manual insertion slot 88. Thus, a recording medium such as recording paper is supplied from the manual insertion slot 88 or the roll paper cassette 89 into the recording apparatus. The recording apparatus 2 includes an apparatus main body 94 supported by two leg portions 93, a stacker 90 on which the discharged recording medium is stacked, and a transparent and openable upper cover 91 through which the inside can be seen. A control unit (not shown), an operation panel 12, an ink supply unit (not shown), and an ink tank 8 are provided on the right side of the apparatus main body 94. This recording apparatus is in the form of a large format printer capable of recording on a recording medium having a large size such as B0 or A0 size in terms of cut paper. In the present specification and the accompanying drawings, recording by this recording apparatus is also referred to as “printing”.

<本実施形態に係るプラグインを有するシステム構成>
図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 PC 1 and the printer 2 illustrated in FIGS. 1 and 2. In FIG. 3, reference numeral 303 denotes spreadsheet software that operates on the PC 1. As an example, Microsoft Excel (US Micro Software Co., Ltd.), which is general spreadsheet software, can be cited. A plug-in 304 expands the function of the spreadsheet software and operates on the spreadsheet software, and operates in cooperation with the spreadsheet software and the printer driver that controls the printer. As will be described later, this plug-in functions as a paper size setting program. Reference numeral 305 denotes a printer driver that an application requests a printer to print via an operating system (hereinafter referred to as OS). The printer driver 305 interprets a print command received via the OS and generates print data that can be interpreted by the printer. Also, a change in print settings from the plug-in 304 is accepted. Reference numeral 306 denotes a spreadsheet software setting unit included in the plug-in 304, and includes a program for performing various settings in the spreadsheet software. Reference numeral 307 denotes a print setting unit included in the plug-in 304, and has a program for making various settings in the printer driver.

<本実施形態のプラグインの起動>
図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 spreadsheet software 303 is activated. The spreadsheet software screen includes a title bar 401 that displays a document title, a menu bar 402 that displays various functions, a toolbar 403 that displays functions as icons, and a document display area 404 that displays a document that is currently being edited. Consists of. An icon 405 in the toolbar 403 is a plug-in activation icon displayed by registering the plug-in 304 in the spreadsheet software 303. In addition, since the method of registering the plug-in for the spreadsheet software is known, the description thereof is omitted.

図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 display 107 when the plug-in activation icon 405 is pressed. In FIG. 5, the roll paper width designation dialog 501 has a combo box 502 for designating the roll paper width, a print button 503, and a cancel button 504. Here, printing is performed by designating the roll paper width to be printed via the combo box 502 and pressing the print button 503. When the cancel button 504 is pressed, the screen returns to the screen shown in FIG. In the present embodiment, the operation of setting the paper size and the print setting especially when the print button 503 is pressed will be described later with reference to FIGS.

これらの動作を説明する前にプリンタ2が有する機能について以下に説明する。図6および図7は、本実施形態のプリンタ2が有するそれぞれの機能を説明する図である。   Before describing these operations, the functions of the printer 2 will be described below. 6 and 7 are diagrams for explaining respective functions of the printer 2 according to the present embodiment.

<本実施形態のプリンタが備える余白削除機能>
図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 printer driver 305 according to a control command. In other words, this function is a function that does not feed the margin of the document data so that no margin is formed in the print result. Paper can be saved by the margin deletion function. Specifically, FIG. 6A shows a case where the margin deletion function is not used, and as a result, extra blanks 602 and 603 are formed above and below the image portion 601. On the other hand, FIG. 6B shows a case where the margin deletion function is used, and extra blanks at the top and bottom of the image portion 601 are not fed and only the image is formed.

<本実施形態のプリンタが備えるカット無し機能>
図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 printer driver 305 according to a control command. The no-cut function is used for long printing or when using paper that cannot be cut. In other words, this no-cut function can eliminate the boundaries between a plurality of divided areas (pages) depending on the sheet size in the spreadsheet software.

図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 first page 701 and the second page 702. On the other hand, FIG. 7B shows a case where the no-cut function is used. Printing is continued without cutting between the first page 701 and the second page 702.

<本実施形態に係るプラグインの動作>
以下、本発明の一実施形態に係るプラグイン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 print button 503 in the roll paper width designation dialog 501 shown in FIG.

ステップS801では、表計算ソフトウェア303に対する設定を行う。具体的には、図10にて後述されるように、用紙サイズの作成及び設定、印刷の向きの設定、および拡大縮小の設定を行う。次に、ステップS802では、プリンタドライバ305に対する設定を行う。具体的には、図10にて後述されるように、ステップS801で設定した用紙サイズに基づき、ロール紙幅指定ダイアログ501で指定されたロール紙幅に印刷されるように変倍設定、余白削除機能の設定、カットなし機能の設定、ページ回転の設定および印刷の設定を行う。   In step S801, settings are made for the spreadsheet software 303. Specifically, as will be described later with reference to FIG. 10, paper size creation and setting, printing orientation setting, and enlargement / reduction setting are performed. In step S802, settings for the printer driver 305 are performed. Specifically, as will be described later with reference to FIG. 10, based on the paper size set in step S801, the scaling setting and the margin deletion function are set so that the roll paper width specified in the roll paper width specification dialog 501 is printed. Configure settings, cut-off function settings, page rotation settings, and print settings.

図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 spreadsheet software 303. Therefore, the smaller horizontal direction (6600 mm) of the data to be printed is used as a reference, that is, according to the printing direction determined in step S1003 ("horizontal" in this example). The “height” of the paper size corresponding to the vertical direction in the orientation is determined based on the length in the horizontal direction. In this process as well, as described above for step S1003, when a very large document is put on one page, it is possible to cope with the reduction ratio of the spreadsheet software.

本例では、横方向長さが小さいので横方向長さ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 / reduction setting dialog 1101 includes an enlargement / reduction ratio designation radio button 1102, a page number designation radio button 1103, an OK button 1104, and a cancel button 1105. When the enlargement / reduction ratio designation radio button 1102 is selected, the current document is arranged on the page at the designated enlargement / reduction ratio. When the page number designation radio button 1103 is selected, the current document is arranged in the designated page number. Here, by selecting a desired enlargement / reduction setting and pressing an OK button 1104, the setting is reflected. If a cancel button 1105 is pressed, the screen returns to the screen on which the enlargement / reduction setting dialog 1101 has been activated. In this example, the page number designation radio button 1103 is selected, and an operation for setting the vertical N page and the horizontal page is designated by the program. If the radio button is already in this state, nothing needs to be done. As a result of the processing in step S1007, as shown in FIG. 9F, since the printing direction is “horizontal”, the data to be printed is reduced so that the horizontal direction of the document becomes one page. The data to be printed is reduced so that the direction is N pages (16 in the illustrated example).

またアプリケーションにおける余白設定によっては、ページ内に余白が設けられる場合がある。そこで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 printer driver 305 is set to scale to the roll paper width specified in the combo box 502 based on the paper size determined in step S1004. This setting is a setting provided in the printer driver, and is set via a dialog shown in FIG. As shown in FIG. 13, a dialog 1301 includes a combo box 1302 for specifying a document size, a check box 1303 for specifying enlargement / reduction printing, radio buttons 1304 to 1306 for specifying an enlargement / reduction method, and a combo box 1307 for specifying a roll paper width. have. A combo box 1302 sets the paper size of the application. When the check box 1303 is designated, one of the three enlargement / reduction methods can be designated. When the output paper size designation radio button 1304 is selected, the document size is enlarged or reduced in accordance with the paper size designated as the output paper size. When the roll paper width designation radio button 1305 is selected, the document size is enlarged or reduced according to the roll paper width designated in the combo box 1307. Further, when the magnification designation radio button 1306 is selected, the document size is enlarged or reduced at the designated magnification.

本例では、コンボボックス1302に、ステップS1004で決定した用紙サイズを指定し、ロール紙幅指定ラジオボタン1305を選択することにより、コンボボックス502で指定されたロール紙幅をコンボボックス1307に指定する動作をプログラムで指定する。   In this example, an operation for designating the roll paper width designated in the combo box 502 to the combo box 1307 by designating the paper size determined in step S1004 in the combo box 1302 and selecting the roll paper width designation radio button 1305. Specify by program.

次に、ステップ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 check box 1310 for designating the page rotation function. In this example, an operation for specifying the check box 1310 is specified by a program.

以上のステップ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 check box 1309 for designating a function without cut in the dialog 1301. In this example, an operation for specifying the check box 1309 is specified by a program.

この機能によって、表計算ドキュメントの縦方向を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 check box 1308 for specifying a margin deletion function in the dialog 1301 shown in FIG. In this example, an operation for specifying the check box 1308 is specified by a program of plug-in software.

以上のステップ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 RAM 102, and after the plug-in executes the processing of FIGS. 10 and 12, the settings stored in the RAM 102 may be set again in the spreadsheet software and the printer driver. .

なお、表計算ソフトウェア設定処理の中で、表計算ドキュメントのデータの周囲に枠線を付与することにより(枠線付与)、上述した表計算ソフトウェア設定の各種処理によって枠線内のドキュメントのレイアウトが変更されないようにしてもよい。   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 Host computer 2 Recording device (printer)
101 CPU
102 RAM
103 ROM
107 Display 303 Spreadsheet Software 304 Plug-in 305 Printer Driver 306 Spreadsheet Software Setting Unit 307 Print Setting Unit 1011 Enlargement / Reduction Setting Dialog 1301 Dialog

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:
前記印刷向き決定工程は、前記領域の横方向のページ数に対応した横方向の長さと前記領域の縦方向のページ数に対応した縦方向の長さのうち、小さい方が印刷に用いる用紙の小さい方の長さの方向に沿うよう前記印刷の向きを決定することを特徴とする請求項1に記載の用紙サイズ設定プログラム。   In the printing orientation determination step, the smaller one of the length in the horizontal direction corresponding to the number of pages in the horizontal direction of the area and the length in the vertical direction corresponding to the number of pages in the vertical direction of the area is used for printing. The paper size setting program according to claim 1, wherein the printing direction is determined so as to be along a direction of a smaller length. 前記用紙サイズ決定工程は、前記決定された印刷の向きが横の場合、当該印刷の向きにおける縦方向に対応した前記用紙サイズの高さを、前記領域の横方向の長さを基準として決定することを特徴とする請求項2に記載の用紙サイズ設定プログラム。   In the paper size determination step, when the determined printing direction is horizontal, the height of the paper size corresponding to the vertical direction in the printing direction is determined based on the horizontal length of the region. The paper size setting program according to claim 2, wherein: 前記決定された用紙サイズによって前記データが存在する領域を分割して得られる複数の分割領域の境界を無くすカット無し工程をさらに有したことを特徴とする請求項1ないし3のいずれかに記載の用紙サイズ設定プログラム。   4. The method according to claim 1, further comprising a no-cut process for eliminating boundaries between a plurality of divided areas obtained by dividing an area in which the data exists according to the determined sheet size. 5. Paper size setting program. 前記データが存在する領域を区画する枠線を付与する枠線付与工程をさらに有したことを特徴とする請求項1ないし4のいずれかに記載の用紙サイズ設定プログラム。   5. The sheet size setting program according to claim 1, further comprising a frame line adding step for adding a frame line for partitioning an area where the data exists. 前記用紙サイズと前記印刷に用いる用紙のサイズに基づいて、記録装置で印刷する前記データが存在する領域のサイズへ変倍する変倍工程をさらに有したことを特徴とする請求項1ないし5のいずれかに記載の用紙サイズ設定プログラム。   6. The scaling process according to claim 1, further comprising a scaling step of scaling to a size of an area where the data to be printed by a recording apparatus exists based on the paper size and the size of the paper used for the printing. The paper size setting program described in any one of the above. 前記処理は、プラグインである請求項1ないし6のいずれかに記載の用紙サイズ設定プログラムによって実行されることを特徴とする用紙サイズ設定プログラム。   The paper size setting program according to claim 1, wherein the processing is executed by a paper size setting program according to claim 1. 表計算ソフトウェアにおいて用紙サイズを設定する処理を実行するための用紙サイズ設定方法であって、
表計算ソフトウェア上で作成されるデータが存在する領域について、所定の基準用紙サイズに基づいて得られる、前記領域の横方向のページ数に対応した横方向の長さと、前記領域の縦方向のページ数に対応した縦方向の長さと、から当該データの印刷の向きを決定する印刷向き決定工程と、
前記決定された印刷の向きに応じて、前記領域の横方向および縦方向に対応した用紙サイズの高さおよび幅を定めて当該用紙サイズを決定する用紙サイズ決定工程と、
前記決定された印刷の向きに応じて、前記用紙サイズの前記高さおよび幅を拡大または縮小し、前記用紙サイズの高さおよび幅うち少なくとも一方の内に前記データが存在する領域が含まれるようにする拡大縮小工程と、
を有したことを特徴とする用紙サイズ設定方法。
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:
JP2013267242A 2013-12-25 2013-12-25 Sheet size setting program and sheet size setting method Pending JP2015125465A (en)

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)

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

Cited By (3)

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