JP2009146277A - Information processing device, print control method and program - Google Patents

Information processing device, print control method and program Download PDF

Info

Publication number
JP2009146277A
JP2009146277A JP2007324739A JP2007324739A JP2009146277A JP 2009146277 A JP2009146277 A JP 2009146277A JP 2007324739 A JP2007324739 A JP 2007324739A JP 2007324739 A JP2007324739 A JP 2007324739A JP 2009146277 A JP2009146277 A JP 2009146277A
Authority
JP
Japan
Prior art keywords
print setting
print
information
devmode
printer driver
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
JP2007324739A
Other languages
Japanese (ja)
Inventor
Yuji Izawa
勇二 井沢
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 IT Solutions Inc
Original Assignee
Canon IT Solutions 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 IT Solutions Inc filed Critical Canon IT Solutions Inc
Priority to JP2007324739A priority Critical patent/JP2009146277A/en
Publication of JP2009146277A publication Critical patent/JP2009146277A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an information processing device which can carry out printing that a user desires by preventing a printing setting failure occurring due to the print setting that is set beforehand at the document data which received a printing instruction when making a printing instruction via an application that operates on an OS. <P>SOLUTION: The information processing device retains the setting date and time (time stamp) of the time when the printing setting is conducted as a document property for document data at DEVMODE information 501, and obtains the DEVMODE information 501 which has the printing setting conducted as a document property or the DEVMODE information 501 which has the setting date and time retained when a printing instruction is given from an application 201. Then, it obtains the setting time and date from the obtained printing setting information, obtains a start date and time of an application which gave the printing instruction and changes the printing setting based on the result of comparing the start date and time with the setting date and time. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、情報処理装置及び印刷制御方法、並びにプログラムに関し、特に、ユーザにより情報処理装置で設定された印刷設定に基づき印刷装置が印刷処理を実行する印刷システムの情報処理装置及び印刷制御方法、並びにプログラムに関する。   The present invention relates to an information processing apparatus, a print control method, and a program, and in particular, an information processing apparatus and a print control method for a printing system in which a printing apparatus executes print processing based on print settings set by the user on the information processing apparatus And the program.

Microsoft Windows(登録商標)環境における印刷では、一般的にプリンタドライバという印刷処理モジュールを介して印刷処理が為される。プリンタドライバは、アプリケーションがGDI(Graphics Device Interface)経由で指定してきたDEVMODEと呼ばれる印刷設定に基づき印刷処理を行う。DEVMODEは、印刷設定を定義するためのデータ構造体であり、Windows(登録商標)環境下で印刷を行う場合に使用される。DEVMODE構造体はバイナリデータ構造であり、拡張領域(PrivateDEVMODEメンバ)にはプリンタドライバが比較的自由にデータを配置することができる。   In printing in the Microsoft Windows (registered trademark) environment, printing processing is generally performed via a printing processing module called a printer driver. The printer driver performs a printing process based on a print setting called DEVMODE designated by an application via GDI (Graphics Device Interface). DEVMODE is a data structure for defining print settings, and is used when printing is performed in a Windows (registered trademark) environment. The DEVMODE structure is a binary data structure, and the printer driver can place data relatively freely in the extended area (PrivateDEVMODE member).

印刷時に使用されるDEVMODEには、プリンタドライバに初期値として保持されているものやアプリケーションにより作成された文書データファイルに保持されているものなど様々な形態があり、印刷実行時にどのDEVMODEを使用して印刷するかはアプリケーションの動作仕様に依存する。例えば、Microsoft社製のExcel(登録商標)(以下、「MS−Excel」と呼ぶ。)というアプリケーションでは、拡張子xlsのデータファイルにDEVMODEが保持されており、当該アプリケーションによる複数の印刷メニューからDEVMODEの変更が可能となっている。また、MS−Excelのデータファイルにおける各シートにDEVMODEが保持されており、シート単位に印刷設定が適用される仕様となっている。   There are various forms of DEVMODE used at the time of printing, such as those held in the printer driver as initial values and those held in the document data file created by the application. Which DEVMODE is used when printing is executed. Whether or not to print depends on the operation specifications of the application. For example, in an application called Microsoft (registered trademark) (hereinafter referred to as “MS-Excel”) manufactured by Microsoft Corporation, DEVMODE is held in a data file with an extension “xls”, and DEVMODE is selected from a plurality of print menus by the application. Can be changed. Further, DEVMODE is held in each sheet in the MS-Excel data file, and the print setting is applied to each sheet.

このため、ユーザがMS−ExcelのようなDEVMODEを保持するアプリケーションを介して印刷指示を行う場合、ユーザ以外の他のユーザがMS−Excelのデータファイルに対して過去に設定した印刷設定(DEVMODE)が当該ユーザによる印刷実行時に反映されてしまうことがあり、ユーザが所望する出力結果が得られない場合がある。   For this reason, when a user issues a print instruction via an application that holds DEVMODE such as MS-Excel, a print setting (DEVMODE) set by a user other than the user in the past with respect to the data file of MS-Excel May be reflected when the user performs printing, and an output result desired by the user may not be obtained.

上記問題を回避する手段の1つとして、印刷ダイアログを表示したか否かのフラグを持ち、当該フラグがOFFの場合は印刷実行時に簡易印刷確認ダイアログを表示する印刷設定簡易表示システムが開示されている(例えば、特許文献1参照)。また、この印刷設定簡易表示システムでは、ユーザが所望する印刷設定と異なる場合、印刷設定変更ボタンを押下することで印刷設定画面を表示することが可能となっている。
特開2006−79246号公報
As one means for avoiding the above problem, there is disclosed a print setting simple display system having a flag indicating whether or not a print dialog is displayed and displaying a simple print confirmation dialog when the flag is OFF. (For example, refer to Patent Document 1). Further, in this print setting simple display system, if the print setting is different from that desired by the user, a print setting screen can be displayed by pressing a print setting change button.
JP 2006-79246 A

しかしながら、上記特許文献1に記載された印刷設定簡易表示システムは、ユーザが予め入力した印刷設定が記憶と異なっていた場合にユーザの期待した出力と異なる結果となる問題を未然に防ぐことは可能であるが、印刷処理を行う度に、ユーザが印刷設定の内容を確認しなければならない。また、印刷設定の内容がユーザが意図したものと異なる場合、印刷設定画面から再設定し直す必要があり、ユーザに煩雑な作業が要求されるという課題がある。   However, the print setting simple display system described in Patent Document 1 can prevent a problem that results different from the output expected by the user when the print setting input in advance by the user is different from the memory. However, every time printing processing is performed, the user must confirm the contents of the print settings. Further, when the contents of the print settings are different from those intended by the user, it is necessary to reset the print settings from the print setting screen, and there is a problem that complicated work is required for the user.

本発明は、OS上で動作するアプリケーションを介して印刷指示を行う際に、印刷指示のあった文書データに予め設定された印刷設定によっておこる印刷設定ミスを防止して、ユーザの所望する印刷を行うことができる情報処理装置及び印刷制御方法、並びにプログラムを提供することを目的とする。   According to the present invention, when a print instruction is issued via an application operating on the OS, a print setting error caused by a print setting preset in the document data for which the print instruction has been issued is prevented, and a print desired by the user is performed. An object is to provide an information processing apparatus, a print control method, and a program that can be performed.

上記目的を達成するために、請求項1記載の情報処理装置は、ページ単位またはシート単位で構成される文書データに対して印刷設定するためのプリンタドライバを備える情報処理装置であって、前記文書データのページ単位またはシート単位で保持する印刷設定を行う第1の印刷設定手段と、前記第1の印刷設定手段で設定された印刷設定の印刷設定情報とともに、当該印刷設定された設定日時を記憶する印刷設定情報記憶手段と、前記プリンタドライバが保持する印刷設定を行う第2の印刷設定手段と、前記文書データの印刷指示に従って、オペレーティングシステムから前記印刷設定情報記憶手段で記憶された印刷設定情報を取得する印刷設定情報取得手段と、前記印刷設定情報取得手段で取得された印刷設定情報とともに記憶される設定日時と前記文書データの印刷指示がなされたアプリケーションの起動日時に従って、前記第1の印刷設定手段で設定された印刷設定から前記第2の印刷設定手段で設定された印刷設定に変更する印刷設定変更手段とを備えることを特徴とする。   In order to achieve the above object, an information processing apparatus according to claim 1 is an information processing apparatus including a printer driver for performing print setting for document data configured in units of pages or sheets. A first print setting unit that performs print settings to be held in page units or sheet units of data, and print setting information of the print settings set by the first print setting unit, and the setting date and time of the print settings are stored Print setting information storage means to perform, second print setting means for performing print settings held by the printer driver, and print setting information stored in the print setting information storage means from the operating system in accordance with a print instruction for the document data Is stored together with the print setting information acquisition means for acquiring the print setting information acquired by the print setting information acquisition means. Print setting for changing from the print setting set by the first print setting means to the print setting set by the second print setting means according to a fixed date and time and an application start date and time when the document data print instruction is given And a changing unit.

上記目的を達成するために、請求項9記載の印刷制御方法は、ページ単位またはシート単位で構成される文書データに対して印刷設定するためのプリンタドライバを備える情報処理装置の印刷制御方法であって、前記文書データのページ単位またはシート単位で保持する印刷設定を行う第1の印刷設定工程と、前記第1の印刷設定工程で設定された印刷設定の印刷設定情報とともに、当該印刷設定された設定日時を記憶する印刷設定情報記憶工程と、前記プリンタドライバが保持する印刷設定を行う第2の印刷設定工程と、前記文書データの印刷指示に従って、オペレーティングシステムから前記印刷設定情報記憶工程で記憶された印刷設定情報を取得する印刷設定情報取得工程と、前記印刷設定情報取得工程で取得された印刷設定情報とともに記憶される設定日時と前記文書データの印刷指示がなされたアプリケーションの起動日時に従って、前記第1の印刷設定工程で設定された印刷設定から前記第2の印刷設定工程で設定された印刷設定に変更する印刷設定変更工程とを備えることを特徴とする。   In order to achieve the above object, a print control method according to claim 9 is a print control method of an information processing apparatus including a printer driver for performing print setting for document data configured in units of pages or sheets. The first print setting step for performing print settings to be held in units of pages or sheets of the document data, and the print setting information of the print settings set in the first print setting step In accordance with the print setting information storing step for storing the setting date and time, the second print setting step for performing the print setting held by the printer driver, and the print setting information storing step from the operating system according to the print instruction for the document data. A print setting information acquisition step for acquiring the print setting information; and the print setting information acquired in the print setting information acquisition step; The print setting set in the first print setting step is changed from the print setting set in the first print setting step in accordance with the setting date and time stored in the memory and the start date and time of the application instructed to print the document data. And a print setting changing step for changing.

上記目的を達成するために、請求項10記載のプログラムは、ページ単位またはシート単位で構成される文書データに対して印刷設定するためのプリンタドライバを備える情報処理装置の印刷制御方法をコンピュータに実行させるためのプログラムであって、前記文書データのページ単位またはシート単位で保持する印刷設定を行う第1の印刷設定ステップと、前記第1の印刷設定ステップで設定された印刷設定の印刷設定情報とともに、当該印刷設定された設定日時を記憶する印刷設定情報記憶ステップと、前記プリンタドライバが保持する印刷設定を行う第2の印刷設定ステップと、前記文書データの印刷指示に従って、オペレーティングシステムから前記印刷設定情報記憶ステップで記憶された印刷設定情報を取得する印刷設定情報取得ステップと、前記印刷設定情報取得ステップで取得された印刷設定情報とともに記憶される設定日時と前記文書データの印刷指示がなされたアプリケーションの起動日時に従って、前記第1の印刷設定ステップで設定された印刷設定から前記第2の印刷設定ステップで設定された印刷設定に変更する印刷設定変更ステップとを備えることを特徴とする。   In order to achieve the above object, a program according to claim 10 executes, in a computer, a print control method of an information processing apparatus including a printer driver for performing print setting for document data configured in units of pages or sheets. A first print setting step for performing print settings to be held in units of pages or sheets of the document data, and print setting information of the print settings set in the first print setting step A print setting information storing step for storing the set date and time of the print setting, a second print setting step for performing the print setting held by the printer driver, and the print setting from the operating system in accordance with a print instruction for the document data. Print setting information acquisition for acquiring the print setting information stored in the information storage step. Printing set in the first print setting step in accordance with the setting date and time stored together with the print setting information acquired in the print setting information acquisition step and the start date and time of the application instructed to print the document data And a print setting changing step for changing the setting to the print setting set in the second print setting step.

本発明によれば、OS上で動作するアプリケーションを介して印刷指示を行う際に、印刷指示のあった文書データに予め設定された印刷設定によっておこる印刷設定ミスを防止して、ユーザの所望する印刷を行うことができる。   According to the present invention, when a print instruction is issued via an application running on the OS, a print setting error caused by a print setting preset in document data for which a print instruction has been issued can be prevented, and a user's request can be made. Printing can be performed.

以下、本発明の実施の形態を図面を参照して詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

[第1の実施形態]
図1は、本発明の第1の実施形態に係る情報処理装置を含む印刷システムの構成例を示すブロック図である。
[First Embodiment]
FIG. 1 is a block diagram illustrating a configuration example of a printing system including an information processing apparatus according to the first embodiment of the present invention.

図1において、本発明の実施形態における印刷システムは、情報処理装置としてのコンピュータ3000と、印刷装置としてのプリンタ1500とを備え、これらはデータ転送経路121を介して互い接続されている。   1, the printing system according to the embodiment of the present invention includes a computer 3000 as an information processing apparatus and a printer 1500 as a printing apparatus, which are connected to each other via a data transfer path 121.

コンピュータ3000は、CPU101と、RAM102と、ROM103と、入力コントローラ(入力C)105と、ビデオコントローラ(VC)106と、メモリコントローラ(MC)107と、通信I/Fコントローラ(通信I/F C)108と、操作装置109と、表示装置110と、外部メモリ111とを備える。CPU101、RAM102、ROM103、入力コントローラ105、ビデオコントローラ106、メモリコントローラ107、及び通信I/Fコントローラ108は、システムバス104を介して互いに接続されている。   The computer 3000 includes a CPU 101, a RAM 102, a ROM 103, an input controller (input C) 105, a video controller (VC) 106, a memory controller (MC) 107, and a communication I / F controller (communication I / FC). 108, an operation device 109, a display device 110, and an external memory 111. The CPU 101, RAM 102, ROM 103, input controller 105, video controller 106, memory controller 107, and communication I / F controller 108 are connected to each other via a system bus 104.

CPU101は、後述する処理の実行に際して必要なプログラム等をRAM102にロードして、プログラムを実行することで各種動作を実現する。また、CPU101は、例えば、RAM102内の表示情報用領域へアウトラインフォントの展開(ラスタライズ)処理を実行することにより、表示装置110上に表示情報を表示する。また、CPU101は、表示装置110に不図示のマウスカーソル等を表示することにより、ユーザによる指示を可能にする。   The CPU 101 implements various operations by loading a program necessary for execution of processing to be described later into the RAM 102 and executing the program. Further, the CPU 101 displays display information on the display device 110 by, for example, executing outline font rasterization processing on a display information area in the RAM 102. Further, the CPU 101 displays a mouse cursor (not shown) or the like on the display device 110, thereby enabling an instruction from the user.

RAM102は、CPU101の主メモリ、ワークエリア等として機能する。ROM103または外部メモリ111には、CPU101の制御プログラムであるBIOS(Basic Input/Output System)、オペレーティングシステムプログラム(以下、「OS」という。)、及び後述する各処理を実行するために必要な各種プログラム等が記憶されている。本実施の形態で使用するOSは、例えば、マイクロソフト社製のウィンドウズ(登録商標)XPを想定しているが、これに限られるものではない。   The RAM 102 functions as a main memory, work area, and the like for the CPU 101. The ROM 103 or the external memory 111 includes a BIOS (Basic Input / Output System) that is a control program of the CPU 101, an operating system program (hereinafter referred to as “OS”), and various programs necessary for executing each process described later. Etc. are stored. The OS used in the present embodiment is assumed to be, for example, Windows (registered trademark) XP manufactured by Microsoft Corporation, but is not limited thereto.

入力コントローラ105は、マウス等のポインティングデバイスやキーボードで構成される操作装置109からの入力を制御する。ビデオコントローラ106は、CRTディスプレイ等の表示装置110への表示を制御する。なお、表示装置110は、CRTに限られるものではなく、液晶ディスプレイでも構わない。   The input controller 105 controls input from the operation device 109 configured by a pointing device such as a mouse or a keyboard. The video controller 106 controls display on the display device 110 such as a CRT display. The display device 110 is not limited to the CRT, and may be a liquid crystal display.

メモリコントローラ107は、外部メモリ111へのアクセスを制御する。外部メモリ111は、ブートプログラム、ブラウザソフトウエア、各種のアプリケーション、フォントデータ、ユーザファイル、編集ファイル、及び各種データ等を記憶し、ハードディスク(HD)、フロッピー(登録商標)ディスク(FD)、またはPCMCIAカードスロットにアダプタを介して接続されるコンパクトフラッシュ(登録商標)メモリ等から構成される。通信I/Fコントローラ108は、ネットワーク等を介した外部機器との接続・通信を制御する。例えば、TCP/IPを用いたインターネット通信などにより、データ転送経路121を介してプリンタ1500との間でデータ送受信等が可能である。なお、データ転送経路121はLAN(Local Area Network)であっても、インターネットであってもよく、またケーブル等で接続されたローカルなものであってもよい。   The memory controller 107 controls access to the external memory 111. The external memory 111 stores a boot program, browser software, various applications, font data, user files, editing files, various data, and the like, and includes a hard disk (HD), floppy (registered trademark) disk (FD), or PCMCIA. It consists of a CompactFlash (registered trademark) memory connected to the card slot via an adapter. The communication I / F controller 108 controls connection / communication with an external device via a network or the like. For example, data can be transmitted / received to / from the printer 1500 via the data transfer path 121 by Internet communication using TCP / IP. The data transfer path 121 may be a LAN (Local Area Network), the Internet, or a local network connected by a cable or the like.

プリンタ1500は、CPU112と、RAM119と、フォントROM113aと、プログラムROM113bと、データROM113cと、入力部118と、印刷部インターフェース(印刷部I/F)116と、印刷部(プリンタエンジン)117と、操作部122と、メモリコントローラ(MC)120と、外部メモリ114とを備える。CPU112、RAM119、ROM113、入力部118、印刷部I/F116、操作部122と、MC120は、システムバス115を介して互いに接続されている。   The printer 1500 includes a CPU 112, a RAM 119, a font ROM 113a, a program ROM 113b, a data ROM 113c, an input unit 118, a printing unit interface (printing unit I / F) 116, a printing unit (printer engine) 117, and an operation. Unit 122, memory controller (MC) 120, and external memory 114. The CPU 112, the RAM 119, the ROM 113, the input unit 118, the printing unit I / F 116, the operation unit 122, and the MC 120 are connected to each other via a system bus 115.

CPU112は、プログラムROM113bまたは外部メモリ114に記憶された制御プログラム等に基づいて、印刷部I/F116を介して印刷部117に出力情報としての画像信号を出力する。プログラムROM113bには、CPU112により実行される制御プログラム等が記憶される。フォントROM113aには、上記出力情報を生成する際に使用するフォントデータ等が記憶される。データROM113cには、プリンタ1500がハードディスク等の外部メモリ114を有していない場合には、コンピュータ3000上で利用される情報等が記憶される。   The CPU 112 outputs an image signal as output information to the printing unit 117 via the printing unit I / F 116 based on a control program or the like stored in the program ROM 113b or the external memory 114. The program ROM 113b stores a control program executed by the CPU 112 and the like. The font ROM 113a stores font data used when generating the output information. The data ROM 113c stores information used on the computer 3000 when the printer 1500 does not have an external memory 114 such as a hard disk.

CPU112は、入力部118を介してコンピュータ3000との通信処理を行い、プリンタ1500内の情報等をコンピュータ3000に通知することができる。RAM119は、CPU112の主メモリであり、ワークエリア等として機能する。また、RAM119は、不図示の増設ポートに接続されるオプションRAMによりメモリ容量を拡張することができるように構成されている。なお、RAM119は、出力情報展開領域、環境データ格納領域、NVRAM等にも用いられる。   The CPU 112 can perform communication processing with the computer 3000 via the input unit 118 to notify the computer 3000 of information in the printer 1500 and the like. A RAM 119 is a main memory of the CPU 112 and functions as a work area. The RAM 119 is configured so that the memory capacity can be expanded by an optional RAM connected to an expansion port (not shown). The RAM 119 is also used for an output information expansion area, an environment data storage area, NVRAM, and the like.

メモリコントローラ120は、外部メモリ114へのアクセスを制御する。外部メモリ114は、オプションとして接続され、フォントデータ、エミュレーションプログラム、フォームデータ等を記憶し、ハードディスク(HD)、ICカード等で構成される。   The memory controller 120 controls access to the external memory 114. The external memory 114 is connected as an option, stores font data, an emulation program, form data, and the like, and includes a hard disk (HD), an IC card, and the like.

操作部122は、操作のためのスイッチやLED等が配されている操作パネルである。なお、プリンタ1500が備える外部メモリ114は、1個に限られるものではなく、複数であってもよい。また、プリンタ1500は、内蔵フォントに加えてオプションフォントカード、言語系の異なるプリンタ制御言語を解釈するプログラムを格納した外部メモリを複数接続できるように構成されてもよい。さらに、プリンタ1500は、操作部122により設定されたプリンタモード設定情報を記憶するNVRAM(不図示)を有していてもよい。   The operation unit 122 is an operation panel on which switches and LEDs for operation are arranged. Note that the external memory 114 included in the printer 1500 is not limited to one, and may be plural. In addition to the built-in font, the printer 1500 may be configured so that an optional font card and a plurality of external memories storing programs for interpreting printer control languages with different language systems can be connected. Further, the printer 1500 may have an NVRAM (not shown) that stores printer mode setting information set by the operation unit 122.

本実施の形態では、プリンタ1500がサポートするページ記述言語(以下、「PDL」という。)は、LBP Image Processing System(以下、「LIPS」という。)等の比較的に高度なPDLを想定しているが、これに限られるものではない。   In this embodiment, the page description language (hereinafter referred to as “PDL”) supported by the printer 1500 is assumed to be a relatively advanced PDL such as an LBP Image Processing System (hereinafter referred to as “LIPS”). However, it is not limited to this.

本発明を実現するための印刷制御プログラム(以下、「プリンタドライバ」という。)は外部メモリ111に記録されており、必要に応じてRAM102にロードされることによりCPU101によって実行される。プリンタドライバが用いる定義ファイル及び各種情報テーブルは外部メモリ111に格納されている。   A print control program (hereinafter referred to as “printer driver”) for realizing the present invention is recorded in the external memory 111 and is executed by the CPU 101 by being loaded into the RAM 102 as necessary. Definition files and various information tables used by the printer driver are stored in the external memory 111.

なお、上記印刷システムの構成は一例であり、用途や目的に応じて様々な構成例があることは云うまでもない。例えば、本発明の機能が実現されるのであれば、単体の機器に適用されてもよく、LAN、WAN(Wide Area Network)等のネットワークを介して接続された複数の機器からなるシステムに適用されてもよい。   The configuration of the printing system is an example, and it goes without saying that there are various configuration examples depending on the application and purpose. For example, as long as the function of the present invention is realized, the present invention may be applied to a single device, or may be applied to a system including a plurality of devices connected via a network such as a LAN or a WAN (Wide Area Network). May be.

図2は、図1のコンピュータ3000での印刷制御処理時に機能するソフトウェアの構成を示すブロック図である。   FIG. 2 is a block diagram showing the configuration of software that functions during print control processing in the computer 3000 of FIG.

図2において、コンピュータ3000は、アプリケーションプログラム(以下、「アプリケーション」という。)201と、グラフィックスエンジン202と、プリンタドライバ203と、プリントサブシステム204とを備える。これらは、それぞれ外部メモリ111にファイルとして保存されたプログラムモジュールである。これらのモジュールは、OSやそのモジュールを利用するモジュールによってRAM102にロードされて実行される。   In FIG. 2, the computer 3000 includes an application program (hereinafter referred to as “application”) 201, a graphics engine 202, a printer driver 203, and a print subsystem 204. Each of these is a program module stored as a file in the external memory 111. These modules are loaded into the RAM 102 and executed by the OS and modules that use the modules.

アプリケーション201及びプリンタドライバ203は、外部メモリ111から、または後述する図3のネットワーク301を介して接続された外部機器から、ハードディスク(HD)等の外部メモリ111に追加可能になっている。外部メモリ111に保存されているアプリケーション201は、CPU101によってRAM102にロードされて実行される。このアプリケーション201からプリンタ1500に対して印刷を行わせる際には、同様にCPU101によってRAM102にロードされて実行されるグラフィックスエンジン202を利用して出力(描画)が行われる。   The application 201 and the printer driver 203 can be added to the external memory 111 such as a hard disk (HD) from the external memory 111 or from an external device connected via the network 301 shown in FIG. The application 201 stored in the external memory 111 is loaded into the RAM 102 and executed by the CPU 101. When printing is performed from the application 201 to the printer 1500, output (rendering) is performed using the graphics engine 202 that is similarly loaded into the RAM 102 and executed by the CPU 101.

グラフィックスエンジン202は、プリンタ毎に用意されたプリンタドライバ203を起動する。これにより、プリンタドライバ203は、CPU101によって外部メモリ111からRAM102にロードさせて実行される。グラフィックスエンジン202は、このプリンタドライバ203を用いて、アプリケーション201から出力された印字命令や描画命令をPDLによるプリンタ制御命令に変換する。   The graphics engine 202 activates a printer driver 203 prepared for each printer. As a result, the printer driver 203 is executed by the CPU 101 loaded from the external memory 111 to the RAM 102. The graphics engine 202 uses the printer driver 203 to convert a print command or drawing command output from the application 201 into a printer control command using PDL.

プリンタドライバ203により変換されたプリンタ制御コマンドは、プリントサブシステム204を経由して、データ転送経路121を介してプリンタ1500に出力される。プリントサブシステム204は、OSによって起動されて、CPU101によって外部メモリ111からRAM102にロードされて実行されるものであり、印刷ジョブのスケジューリング、コンピュータ3000とプリンタ1500との接続制御、及びプリンタ1500のステータスの管理を行う。   The printer control command converted by the printer driver 203 is output to the printer 1500 via the print subsystem 204 and the data transfer path 121. The print subsystem 204 is activated by the OS, loaded from the external memory 111 to the RAM 102 and executed by the CPU 101, scheduling of print jobs, connection control between the computer 3000 and the printer 1500, and status of the printer 1500. Manage.

なお、プリンタドライバ203は、前述した、アプリケーション201から出力された印字命令や描画命令をプリンタ制御コマンドに変換し、プリント出力に反映されるようプリンタ1500に指示する機能に加えて、プリンタドライバ203やプリンタ1500が有する機能を制御するための設定を行う機能(以下、「ユーザインターフェース(UI)」という。)、その設定を記憶する機能、プリンタドライバ203やプリンタ1500が有する機能の情報をアプリケーション201やOSに提供する機能、UIで設定された機能がプリンタ1500の有する機能である場合にプリンタ制御命令を生成する機能、及び、UIで設定された機能がプリンタドライバ203独自で行う機能である場合にその機能を実現する機能等を有する。   The printer driver 203 converts the print command or drawing command output from the application 201 into a printer control command and instructs the printer 1500 to reflect the print command in the print output. A function for performing settings for controlling the functions of the printer 1500 (hereinafter referred to as “user interface (UI)”), a function for storing the settings, and information on functions of the printer driver 203 and the printer 1500 are stored in the application 201 and When the function provided to the OS, the function set by the UI is a function of the printer 1500, the function for generating a printer control command, and the function set by the UI are functions performed by the printer driver 203 It has a function for realizing the function.

図3は、図1におけるコンピュータ3000及びプリンタ1500が適用された他の印刷システムの構成例を示すブロック図である。   FIG. 3 is a block diagram illustrating a configuration example of another printing system to which the computer 3000 and the printer 1500 in FIG. 1 are applied.

図3において、印刷システムは、複数のコンピュータ3000と、プリンタ1500と、プリントサーバコンピュータ4000とを有し、これらがネットワーク301を介して互いに接続されている。コンピュータ3000内の通信I/Fコントローラ108は、ネットワークインタフェースカード(NIC)の機能を有するものとする。   In FIG. 3, the printing system includes a plurality of computers 3000, a printer 1500, and a print server computer 4000, which are connected to each other via a network 301. The communication I / F controller 108 in the computer 3000 has a function of a network interface card (NIC).

プリンタ1500は、セントロニクスやUSB(Universal Serial Bus)等のローカルインタフェース302を介してプリントサーバコンピュータ4000と接続され、該プリントサーバコンピュータ4000を介してネットワーク301に接続される形態であってもよく、ネットワーク301に直接接続される形態であってもよい。なお、ネットワーク301に直接接続されたプリンタ1500内の入力部118は、ネットワークインタフェースカード(NIC)の機能を有するものとする。   The printer 1500 may be connected to the print server computer 4000 via a local interface 302 such as Centronics or USB (Universal Serial Bus), and may be connected to the network 301 via the print server computer 4000. It may be configured to be directly connected to 301. Note that the input unit 118 in the printer 1500 directly connected to the network 301 has a function of a network interface card (NIC).

コンピュータ3000は、プリントサーバコンピュータ4000を介してネットワーク301に接続されたプリンタ1500に印刷ジョブを送信する場合、まず、プリントサブシステム204を介して、プリントサーバコンピュータ4000へ印刷ジョブを送信する。プリントサーバコンピュータ4000は、コンピュータ3000から送信されてきた印刷ジョブを、プリントサーバコンピュータ4000上の不図示のプリントサブシステムを介して、プリンタ1500に送信する。   When the computer 3000 transmits a print job to the printer 1500 connected to the network 301 via the print server computer 4000, first, the computer 3000 transmits the print job to the print server computer 4000 via the print subsystem 204. The print server computer 4000 transmits the print job transmitted from the computer 3000 to the printer 1500 via a print subsystem (not shown) on the print server computer 4000.

また、コンピュータ3000は、ネットワーク301に直接接続されたプリンタ1500に印刷ジョブを送信する場合、プリントサブシステム204を介して、プリンタ1500に直接印刷ジョブを送信する。   Further, when transmitting a print job to the printer 1500 directly connected to the network 301, the computer 3000 transmits the print job directly to the printer 1500 via the print subsystem 204.

図4は、図2のコンピュータ3000によって実行される印刷制御処理の基本的な流れを示す図である。   FIG. 4 is a diagram showing a basic flow of print control processing executed by the computer 3000 of FIG.

図4において、アプリケーション201は、直接プリンタドライバ203と情報の送受信を行うのではなく、OSが有するグラフィックスエンジン202を介してプリンタドライバ203と情報の送受信を行う。グラフィックスエンジン202は、アプリケーション201から指示を受け、プリンタドライバ203に対して指示を行う。   In FIG. 4, the application 201 does not directly transmit / receive information to / from the printer driver 203 but transmits / receives information to / from the printer driver 203 via the graphics engine 202 included in the OS. The graphics engine 202 receives an instruction from the application 201 and instructs the printer driver 203.

まず、アプリケーション201は、文書データを出力するに際してアプリケーション201やプリンタドライバ203で設定された片面/両面印刷設定や部数設定等の印刷設定の情報をRAM102に確保されたメモリ領域を介してグラフィックスエンジン202に通知する。   First, when outputting document data, the application 201 uses a graphics engine to store print setting information such as single-sided / double-sided printing settings and the number of copies set by the application 201 or the printer driver 203 via a memory area secured in the RAM 102. 202 is notified.

プリンタドライバ203は、グラフィックスエンジン202より、その印刷設定情報と、印刷設定情報に基づいてプリンタドライバ203が印刷制御処理を行う上で必要な情報(プリンタドライバ情報)を格納するためにRAM102上に確保されたメモリ領域の初期化要求とを受信する(S401)。これにより、プリンタドライバ203は、プリンタドライバ情報を保持するメモリ領域を確保し、印刷設定情報に従ってそのメモリ領域を初期化する。   The printer driver 203 stores the print setting information from the graphics engine 202 on the RAM 102 in order to store information (printer driver information) necessary for the printer driver 203 to perform print control processing based on the print setting information. An initialization request for the secured memory area is received (S401). As a result, the printer driver 203 secures a memory area for holding the printer driver information, and initializes the memory area in accordance with the print setting information.

プリンタドライバ203は、当該プリンタドライバ203が参照するプリンタドライバ情報を保持するメモリ領域の初期化要求の受信により必要な処理を完了すると、S401で受信した印刷設定情報に応じたプリンタドライバ203の印刷能力情報をグラフィックスエンジン202に通知する。   When the printer driver 203 completes the necessary processing by receiving the initialization request for the memory area holding the printer driver information referred to by the printer driver 203, the printing capability of the printer driver 203 according to the print setting information received in S401. Information is notified to the graphics engine 202.

アプリケーション201は、グラフィックスエンジン202より、最終的にプリンタ1500に送信される印刷ジョブとその印刷ジョブに反映させる印刷設定情報とを関連付けるために必要なハンドル値を取得する(S402)。   The application 201 acquires a handle value necessary for associating the print job that is finally transmitted to the printer 1500 with the print setting information to be reflected in the print job from the graphics engine 202 (S402).

次に、アプリケーション201が、印刷の開始要求をグラフィックスエンジン202に行うと、プリンタドライバ203は、グラフィックスエンジン202より印刷開始要求を受信する(S403)。これにより、プリンタドライバ203は、プリンタ1500が印刷を開始するために必要なPDLによるプリンタ制御命令を生成する。なお、プリンタ制御命令を生成する処理は、最初のページ(1ページ目)またはシート(シート1)の印刷処理が開始された時点、即ち、アプリケーション201からの最初のページまたはシートの描画指示を受信した時点で行ってもよい。   Next, when the application 201 makes a print start request to the graphics engine 202, the printer driver 203 receives the print start request from the graphics engine 202 (S403). As a result, the printer driver 203 generates a printer control command by PDL necessary for the printer 1500 to start printing. The process for generating the printer control command is the time when the printing process for the first page (first page) or sheet (sheet 1) is started, that is, the first page or sheet drawing instruction from the application 201 is received. It may be done at the time.

アプリケーション201は、文字、図形やイメージ等の描画オブジェクトの描画を実現するための描画指示をグラフィックスエンジン202に対して行うと、プリンタドライバ203は、その描画指示をグラフィックスエンジン202より受信する(S404)。これにより、プリンタドライバ203は、指定された描画オブジェクトや改ページを含む描画指示を反映したプリンタ制御命令を適時生成し、生成したプリンタ制御命令をプリンタ1500に出力する。なお、印刷するページ数またはシート数はアプリケーション201からの指定に因る。   When the application 201 issues a drawing instruction for realizing drawing of a drawing object such as a character, figure, or image to the graphics engine 202, the printer driver 203 receives the drawing instruction from the graphics engine 202 ( S404). As a result, the printer driver 203 generates a printer control command reflecting the drawing instruction including the designated drawing object or page break as appropriate, and outputs the generated printer control command to the printer 1500. Note that the number of pages or sheets to be printed depends on the designation from the application 201.

次に、アプリケーション201は、印刷設定情報をページ単位またはシート単位に変更するため、印刷設定の切り替え(変更)要求をグラフィックスエンジン202に対して行うと、プリンタドライバ203は、印刷設定の切り替え(変更)要求をグラフィックスエンジン202より受信する(S405)。具体的には、プリンタドライバ203は、グラフィックスエンジン202より、切り替え(変更)後の印刷設定情報と、その印刷設定情報に基づいてプリンタドライバ203が印刷処理を行う上で必要な情報(プリンタドライバ情報)を格納するためにRAM102上に確保されたメモリ領域の初期化要求とを受信する。これにより、プリンタドライバ203は、プリンタドライバ情報を保持するメモリ領域を確保し、印刷設定情報に従ってそのメモリ領域を初期化する。   Next, when the application 201 makes a print setting switching (change) request to the graphics engine 202 in order to change the print setting information in units of pages or sheets, the printer driver 203 switches the print settings ( A change request is received from the graphics engine 202 (S405). Specifically, the printer driver 203 receives print setting information after switching (change) from the graphics engine 202 and information necessary for the printer driver 203 to perform print processing based on the print setting information (printer driver). And an initialization request for the memory area secured on the RAM 102 for storing the information. As a result, the printer driver 203 secures a memory area for holding the printer driver information, and initializes the memory area in accordance with the print setting information.

次に、プリンタドライバ203は、受信した切り替え(変更)後の印刷設定情報に応じたプリンタドライバ203の印刷能力情報をグラフィックスエンジン202に通知する。そして、プリンタドライバ203は、印刷設定の切り替え(変更)要求として、切り替え(変更)前と切り替え(変更)後のプリンタドライバ情報をグラフィックスエンジン202より受信し、印刷設定の切り替え(変更)に必要な処理を行う。次に、プリンタドライバ203は、グラフィックスエンジン202より、S401においてメモリ領域に格納されたプリンタドライバ情報の破棄要求を受信する。これにより、プリンタドライバ203は、切り替え(変更)前のプリンタドライバ情報の破棄処理を行う。プリンタドライバ203は、指定された切り替え(変更)後の印刷設定情報を反映したプリンタ制御命令を適時生成し、生成したプリンタ制御命令をプリンタ1500に出力する。なお、ページ単位(またはシート単位)に印刷設定を切り替え(変更)るか否かは、アプリケーション201からの指示に因る。   Next, the printer driver 203 notifies the graphics engine 202 of the print capability information of the printer driver 203 corresponding to the received print setting information after switching (change). The printer driver 203 receives the printer driver information before and after switching (change) from the graphics engine 202 as a print setting switching (change) request, and is necessary for switching (changing) print settings. Perform proper processing. Next, the printer driver 203 receives from the graphics engine 202 a request to discard the printer driver information stored in the memory area in S401. As a result, the printer driver 203 discards the printer driver information before switching (changing). The printer driver 203 generates a printer control command that reflects the print setting information after the designated switching (change) as appropriate, and outputs the generated printer control command to the printer 1500. Whether or not the print setting is switched (changed) in units of pages (or sheets) depends on an instruction from the application 201.

次に、アプリケーション201が、印刷終了要求をグラフィックスエンジン202に行うと、プリンタドライバ203は、グラフィックスエンジン202より印刷終了要求を受信する(S406)。これにより、プリンタドライバ203は、プリンタ1500が印刷終了に必要なプリンタ制御命令を生成し、プリンタ制御命令の生成処理を終了する。   Next, when the application 201 makes a print end request to the graphics engine 202, the printer driver 203 receives the print end request from the graphics engine 202 (S406). As a result, the printer driver 203 generates a printer control command necessary for the printer 1500 to end printing, and ends the printer control command generation processing.

次に、アプリケーション201は、S402で取得したハンドル値の破棄要求をグラフィックスエンジン202に通知する。プリンタドライバ203は、グラフィックスエンジン202より、メモリ領域に格納されたプリンタドライバ情報の破棄要求を受信する。これにより、プリンタドライバ203は、上記プリンタドライバ情報の破棄処理を行う(S407)。上記S403〜S406の処理により、プリンタ1500に送信される1つの印刷ジョブが生成される。   Next, the application 201 notifies the graphics engine 202 of a request for discarding the handle value acquired in S402. The printer driver 203 receives a request for discarding the printer driver information stored in the memory area from the graphics engine 202. As a result, the printer driver 203 discards the printer driver information (S407). One print job to be transmitted to the printer 1500 is generated by the processes of S403 to S406.

本実施の形態では、主にプリンタドライバ203が有する不図示の印刷設定情報を保存(保持)するユーザインターフェース処理とステップS401、S403及びS405において、プリンタドライバ203がグラフィックスエンジン202から要求を受けた際の処理に機能を追加する。   In this embodiment, the printer driver 203 receives a request from the graphics engine 202 mainly in user interface processing for storing (holding) print setting information (not shown) of the printer driver 203 and in steps S401, S403, and S405. Function is added to the process.

次に、図4のS401でグラフィックスエンジン202とプリンタドライバ203との間でやり取りされる印刷設定情報とプリンタドライバ情報について説明する。   Next, print setting information and printer driver information exchanged between the graphics engine 202 and the printer driver 203 in S401 of FIG. 4 will be described.

図5は、本発明の第1の実施形態における印刷設定情報及びプリンタドライバ情報の保持形態を示す模式図であり、(a)は印刷設定情報を保持するDEVMODE構造体を示し、(b)はプリンタドライバ情報を保持するDEVDATA構造体を示す。このDEVMODE構造体に印刷設定情報や各種設定情報を保持(記憶)するメンバが記憶される(印刷設定情報記憶手段)。   FIGS. 5A and 5B are schematic diagrams showing a holding form of print setting information and printer driver information according to the first embodiment of the present invention. FIG. 5A shows a DEVMODE structure holding the print setting information, and FIG. 3 shows a DEVDATA structure that holds printer driver information. Members that hold (store) print setting information and various setting information are stored in this DEVMODE structure (print setting information storage unit).

図5(a)において、DEVMODE情報501は、片面/両面印刷設定や部数設定等の印刷設定情報を保持するDEVMODE構造体である。本実施の形態では、DEVMODE情報501内のPrivateDEVMODEメンバ(PrivateDEVMODE領域)に、当該DEVMODE情報(印刷設定情報)501がなされたときの設定日時(タイムスタンプ)を保持するメンバ501aを備える。この設定日時は日付及び時刻に関する日時情報である。   In FIG. 5A, DEVMODE information 501 is a DEVMODE structure that holds print setting information such as single-sided / double-sided printing setting and number of copies setting. In the present embodiment, the PrivateDEVMODE member (PrivateDEVMODE area) in the DEVMODE information 501 is provided with a member 501a that holds the setting date and time (time stamp) when the DEVMODE information (print setting information) 501 is made. This set date and time is date and time information related to the date and time.

図5(b)において、プリンタドライバ情報502は、プリンタドライバが印刷処理を行う上で必要な情報が格納されるDEVDATA構造体である。本実施の形態では、プリンタドライバ情報502内に、印刷開始時のDEVMODE情報(以下、「スタートDEVMODE」と呼ぶ。)を保持(記憶)するメンバ502bと、現在処理中のDEVMODE情報(以下、「カレントDEVMODE」と呼ぶ。)を保持(記憶)するメンバ502aと、印刷が開始されたか否かを判定する印刷開始フラグを保持(記憶)するメンバ502cとを備える。   In FIG. 5B, printer driver information 502 is a DEVDATA structure in which information necessary for the printer driver to perform print processing is stored. In this embodiment, a member 502b that holds (stores) DEVMODE information at the start of printing (hereinafter referred to as “start DEVMODE”) in the printer driver information 502, and DEVMODE information that is currently being processed (hereinafter “ Member 502a holding (storing) and a member 502c holding (storing) a print start flag for determining whether printing has started.

例えば、MS−Excelの場合、図6に示すように、[ファイル]2001−[印刷]2002−[プロパティ]2003の順で設定される印刷設定(DEVMODE)がスタートDEVMODEとしてメンバ502bに保持(記憶)される。図6のように、アプリケーション201がOSを介してプリンタドライバにより文書データに印刷設定情報を設定する方法は、一般的にいうドキュメントプロパティによる印刷設定方法(第1の印刷設定)である。   For example, in the case of MS-Excel, as shown in FIG. 6, the print settings (DEVMODE) set in the order of [File] 2001- [Print] 2002- [Property] 2003 are held (stored) as the start DEVMODE in the member 502b. ) As shown in FIG. 6, the method in which the application 201 sets the print setting information in the document data by the printer driver via the OS is a general print setting method (first print setting) based on document properties.

また、図7に示すように、[ファイル]2101−[ページ設定]2102−[オプション]2103の順で設定されて各シートに保存された印刷設定(DEVMODE)は、MS−Excelのデータファイルのシート単位に保持され、各シート印刷処理中に、カレントDEVMODEとしてメンバ502aに順番に保持される。図7のように、アプリケーション201がOSを介してプリンタドライバにより文書データに印刷設定情報を設定する方法も、一般的にいうドキュメントプロパティによる印刷設定方法(第1の印刷設定)である。   Also, as shown in FIG. 7, the print settings (DEVMODE) set in the order of [File] 2101- [Page settings] 2102- [Options] 2103 and stored in each sheet are stored in the MS-Excel data file. It is held in units of sheets, and is held in order in the member 502a as the current DEVMODE during each sheet printing process. As shown in FIG. 7, the method in which the application 201 sets print setting information in the document data by the printer driver via the OS is also a general print setting method (first print setting) based on document properties.

一方、図8に示すように、プリンタプロパティの印刷設定2201から設定される印刷設定情報は、外部メモリ111に保存されている不図示のレジストリ情報にデフォルトDEVMODEとして保持される。この印刷設定情報は、プリンタドライバ(プリンタ管理画面に生成されるプリンタオブジェクトごと)ごとに保持される。図8のように、オペレーティングシステムを介してプリンタドライバにより文書データに印刷設定情報を設定する方法は、プリンタプロパティによる印刷設定方法(第2の印刷設定)である。   On the other hand, as shown in FIG. 8, the print setting information set from the print setting 2201 of the printer property is held as default DEVMODE in registry information (not shown) stored in the external memory 111. This print setting information is held for each printer driver (for each printer object generated on the printer management screen). As shown in FIG. 8, a method for setting print setting information in document data by a printer driver via the operating system is a print setting method (second print setting) based on printer properties.

メンバ502cに保持される印刷開始フラグは、後述する図12のステップS807、図13のステップS904、及び図14のステップS1001,S1007において、参照または変更されるフラグである。   The print start flag held in the member 502c is a flag that is referred to or changed in step S807 in FIG. 12, step S904 in FIG. 13, and steps S1001 and S1007 in FIG.

なお、上述したDEVMODE情報501及びプリンタドライバ情報502を保持する領域は、プリンタドライバ203によりRAM102に確保される。   Note that an area for holding the above-described DEVMODE information 501 and printer driver information 502 is secured in the RAM 102 by the printer driver 203.

次に、3枚のシートを有するMS−Excelのデータファイルの印刷設定(DEVMODE)変更時のタイムスタンプの内容について図9を参照して説明する。   Next, the contents of the time stamp when the print setting (DEVMODE) of the MS-Excel data file having three sheets is changed will be described with reference to FIG.

図9は、3枚のシートを有するMS−Excelのデータファイルの印刷設定(DEVMODE)変更時の印刷設定及びタイムスタンプの一例を示す図であり、(a)は変更前の印刷設定情報の一例を示し、(b)は図7に示す印刷設定方法による印刷設定変更後の印刷設定情報の一例を示し、(c)は図6に示す印刷設定方法による印刷設定変更後の印刷設定情報の一例を示す。   FIG. 9 is a diagram illustrating an example of print settings and time stamps when the print setting (DEVMODE) of an MS-Excel data file having three sheets is changed, and FIG. 9A is an example of print setting information before the change. (B) shows an example of print setting information after the print setting change by the print setting method shown in FIG. 7, and (c) shows an example of the print setting information after the print setting change by the print setting method shown in FIG. Indicates.

図9(a)において、変更前の印刷設定(DEVMODE設定)2301では、シート1〜3の全てに同一の印刷設定:A4,4up,ステイプルOFF,・・・が設定されており、シート1のタイムスタンプは2007/10/31/09:00:10、シート2のタイムスタンプは2007/10/31/09:00:30、シート3のタイムスタンプは2007/10/31/09:01:00となっている。ここで、コンピュータ3000上でMS−Excelが2007/11/01の13:00:00に起動された場合、変更前の印刷設定2301のシート1〜3に保持されているタイムスタンプは、MS−Excelの起動日時よりも古い日時となる。この後、ユーザがシート2を選択し、図7に示す方法でプリンタドライバユーザインターフェース(以下、「ドライバUI」と呼ぶ。)画面2104を表示させ、2up,ステイプルONに印刷設定を変更してOKボタン2104aを押下する。このときのタイムスタンプ(2007/11/01/13:00:30)が、図9(b)に示す変更後の印刷設定2302のシート2に保持される。   9A, in the print setting before change (DEVMODE setting) 2301, the same print settings: A4, 4up, staple OFF,... The time stamp is 2007/10/31/09: 00: 00, the time stamp of sheet 2 is 2007/10/31/09: 30, and the time stamp of sheet 3 is 2007/10/31/09: 01: 00. It has become. Here, when MS-Excel is started on the computer 3000 at 13: 00: 01: 00 on 2007/11/01, the time stamp held in the sheets 1 to 3 of the print setting 2301 before the change is MS- The date and time is older than the startup date and time of Excel. Thereafter, the user selects the sheet 2, displays a printer driver user interface (hereinafter referred to as "driver UI") screen 2104 by the method shown in FIG. 7, changes the print setting to 2up, staple ON, and is OK. The button 2104a is pressed. The time stamp (2007/11/01/13: 00: 30) at this time is held on the sheet 2 of the print setting 2302 after the change shown in FIG. 9B.

その後、ユーザが図6に示す方法でドライバUI画面2004を表示させ、1up,ステイプルOFFに印刷設定を変更して印刷を実行する(タイムスタンプは2007/11/01/13:01:54とする)。このときの印刷設定(1up,ステイプルOFF)は、上述した印刷開始時のDEVMODE情報(スタートDEVMODE)としてメンバ502b保持される。そして、タイムスタンプ2007/11/01/13:01:54はメンバ501aに保持される。   After that, the user displays the driver UI screen 2004 by the method shown in FIG. 6, changes the print setting to 1 up and staples off, and executes printing (the time stamp is set to 2007/11/01/13: 01: 54). ). The print setting (1 up, staple OFF) at this time is held in the member 502b as the DEVMODE information (start DEVMODE) at the start of printing described above. The time stamp 2007/11/01/13: 01: 54 is held in the member 501a.

そして、シート1とシート3のタイムスタンプ(2007/10/31/09:00:10,2007/10/31/09:01:00)は、アプリケーションの起動日時(2007/11/01/13:00:00)よりもタイムスタンプが古いため、図9(c)に示すように、印刷開始時のDEVMODE情報(スタートDEVMODE)(2007/11/01/13:01:54)で上書きされ得る。その結果、シート1,3の印刷設定は1up,ステイプルOFFとなり、シート2の印刷設定は2up,ステイプルONという出力結果となる。   The time stamps of the sheets 1 and 3 (2007/10/31/09: 00: 00, 2007/10/31/09: 01: 00) are the application start date and time (2007/11/01/13: Since the time stamp is older than 00:00), it can be overwritten with DEVMODE information (start DEVMODE) (2007/11/01/13: 01: 54) at the start of printing, as shown in FIG. 9C. As a result, the print setting of the sheets 1 and 3 is 1 up and stapling OFF, and the printing setting of the sheet 2 is 2 up and stapling ON.

次に、第1の実施形態における印刷制御処理を説明する。なお、以下に説明する印刷制御処理は、プリンタドライバ203に基づいてCPU101により実行される処理であるが、便宜上、プリンタドライバ203を主体として説明する。   Next, the print control process in the first embodiment will be described. The print control process described below is a process executed by the CPU 101 based on the printer driver 203, but for the sake of convenience, the printer driver 203 will be mainly described.

図10は、図5(a)のDEVMODE情報501に印刷設定情報を保存(保持)するDEVMODE保存処理を示すフローチャートである。   FIG. 10 is a flowchart showing DEVMODE storage processing for storing (holding) print setting information in the DEVMODE information 501 of FIG.

図10において、ステップS601では、プリンタドライバ203は、ドライバUI画面を表示する際に、アプリケーション201からOSを介してプリンタドライバ203のUIモジュールに渡されたDEVMODE情報を取得する(印刷設定情報取得手段)。   In FIG. 10, in step S601, the printer driver 203 acquires the DEVMODE information passed from the application 201 to the UI module of the printer driver 203 via the OS when displaying the driver UI screen (print setting information acquisition unit). ).

次に、ステップS602は、プリンタドライバ203は、取得したDEVMODE情報がNULLであるか否かを判定する。例えば、MS−Excelの場合は、図7に示すドライバUI画面2104上でMS−Excelのデータファイルの各シートに設定されたDEVMODE情報が判定の対象となる。なお、印刷設定をアプリケーションで保持しない簡易な印刷アプリケーションなどでは、DEVMODE情報がNULLに設定されてデフォルトの印刷設定で印刷するものも存在する。   In step S602, the printer driver 203 determines whether the acquired DEVMODE information is NULL. For example, in the case of MS-Excel, the DEVMODE information set in each sheet of the MS-Excel data file on the driver UI screen 2104 shown in FIG. Note that there are some simple printing applications that do not hold print settings in the application, and the DEVMODE information is set to NULL and printing is performed with default print settings.

ステップS602の判定の結果、取得したDEVMODE情報がNULLの場合、プリンタドライバ203は、外部メモリ111のレジストリに保存されているデフォルトのDEVMODE情報を取得する(ステップS603)。一方、DEVMODE情報がNULLでない場合は、そのままステップS604へ進む。   If the acquired DEVMODE information is NULL as a result of the determination in step S602, the printer driver 203 acquires default DEVMODE information stored in the registry of the external memory 111 (step S603). On the other hand, if the DEVMODE information is not NULL, the process proceeds directly to step S604.

ステップS604では、プリンタドライバ203は、ドライバUI画面の表示を行い、取得したDEVMODE情報に基づいて各コントロールを初期化する。次に、ステップS605では、プリンタドライバ203は、ドライバUI画面上のOKボタンが押されたか、キャンセルボタンが押されたかを判定する。OKボタンが押された場合は、ステップS606に進む。キャンセルボタンが押された場合は、本処理を終了する。   In step S604, the printer driver 203 displays a driver UI screen and initializes each control based on the acquired DEVMODE information. In step S605, the printer driver 203 determines whether the OK button on the driver UI screen has been pressed or the cancel button has been pressed. If the OK button has been pressed, the process proceeds to step S606. If the cancel button is pressed, this process is terminated.

ステップS606では、プリンタドライバ203は、ドライバUI画面が、図8に示すプリンタプロパティから開かれたか、または図6または図7に示すドキュメントプロパティから開かれたかを判定する。プリンタプロパティから開かれた場合(ステップS606でYES)、プリンタドライバ203は、DEVMODE情報501のタイムスタンプの設定を全てゼロ(0)に設定する(ステップS607)。ここでは、プリンタドライバ203は、タイムスタンプメンバ501aに保持されているタイムスタンプを0時0分0秒にする。   In step S606, the printer driver 203 determines whether the driver UI screen has been opened from the printer properties illustrated in FIG. 8 or from the document properties illustrated in FIG. 6 or FIG. When opened from the printer properties (YES in step S606), the printer driver 203 sets all the time stamp settings of the DEVMODE information 501 to zero (0) (step S607). Here, the printer driver 203 sets the time stamp held in the time stamp member 501a to 0: 0: 0.

そして、プリンタドライバ203は、外部メモリ111のレジストリに保存されているデフォルトのDEVMODE情報を更新する(ステップS608)。   Then, the printer driver 203 updates the default DEVMODE information stored in the registry of the external memory 111 (step S608).

一方、ステップS606の判定の結果、ドライバUI画面が図6または図7に示すドキュメントプロパティから開かれた場合(ステップS606でNO)、プリンタドライバ203は、DEVMODE情報501のタイムスタンプメンバ501aにタイムスタンプとしてDEVMODE設定日時(印刷設定日時)を保存(保持)し(ステップS609)、DEVMODE情報を呼び出し元アプリケーションに返却する(ステップS610)。なお、以下に説明する呼び出し元アプリケーションは、印刷指示をしたアプリケーションを意味する。   On the other hand, as a result of the determination in step S606, when the driver UI screen is opened from the document property shown in FIG. 6 or FIG. 7 (NO in step S606), the printer driver 203 adds the time stamp to the time stamp member 501a of the DEVMODE information 501. DEVMODE setting date and time (print setting date and time) is saved (held) (step S609), and DEVMODE information is returned to the calling application (step S610). The calling application described below means an application that has issued a print instruction.

図11は、印刷ジョブが生成される印刷処理のフローチャートである。   FIG. 11 is a flowchart of print processing for generating a print job.

ステップS701では、プリンタドライバ203は、図4のS401においてグラフィックスエンジン202から指示を受けて、DEVMODE情報501に基づいてプリンタドライバ情報502を初期化する(第1のDEVMODE設定処理)。詳細については後述する。   In step S701, the printer driver 203 receives an instruction from the graphics engine 202 in step S401 of FIG. 4 and initializes the printer driver information 502 based on the DEVMODE information 501 (first DEVMODE setting process). Details will be described later.

次に、ステップS702では、プリンタドライバ203は、図4のS403においてグラフィックスエンジン202から指示を受けたタイミングで、印刷開始時の処理(印刷開始処理)を行う。詳細については後述する。   Next, in step S702, the printer driver 203 performs processing at the start of printing (print start processing) at the timing when an instruction is received from the graphics engine 202 in step S403 of FIG. Details will be described later.

次に、ステップS703では、プリンタドライバ203は、図4のS405においてグラフィックスエンジン202から指示を受けたタイミングで、印刷設定を切り替える(変更する)ためのDEVMODE情報501(切り替え(変更)後のDEVMODE情報)に基づいてプリンタドライバ情報502を初期化する(第2のDEVMODE設定処理)。   Next, in step S703, the printer driver 203 receives DEVMODE information 501 for switching (changing) print settings (DEVMODE after switching (changing)) at the timing of receiving an instruction from the graphics engine 202 in S405 of FIG. Information) is initialized (second DEVMODE setting process).

次に、ステップS704では、プリンタドライバ203は、S405においてグラフィックスエンジン202から印刷設定の切り替え(変更)指示を受けたタイミングで、印刷設定の切り替え(変更)前と切り替え(変更)後のプリンタドライバ情報502を基に印刷設定の切り替え(変更)処理を行う。なお、本処理は、アプリケーション201から印刷ページ単位(またはシート単位)で印刷設定(DEVMODE)の切り替え(変更)が行われた場合に実施される。また、アプリケーションによってはシート単位でDEVMODE情報を管理しており、シート単位に印刷設定の切り替え(変更)を行うものも存在する。   In step S704, the printer driver 203 receives the print setting switching (change) instruction from the graphics engine 202 in step S405, and the printer driver before and after switching (changing) the print settings. Based on the information 502, a print setting switching (changing) process is performed. This process is performed when the print setting (DEVMODE) is switched (changed) in print page units (or sheet units) from the application 201. Some applications manage DEVMODE information in units of sheets, and switch (change) print settings in units of sheets.

次に、ステップS705では、プリンタドライバ203は、アプリケーション201からグラフィックスエンジン202を経由して指定された、文字、図形やイメージ等の描画オブジェクトの描画指示に基づいてプリンタ制御命令及び描画命令を生成する(ページ描画処理)。なお、シートの場合はシート描画処理となる。   In step S <b> 705, the printer driver 203 generates a printer control command and a drawing command based on a drawing instruction of a drawing object such as a character, a graphic, or an image specified from the application 201 via the graphics engine 202. (Page drawing process). In the case of a sheet, sheet drawing processing is performed.

ステップS706では、プリンタドライバ203は、全てのページ描画が終了したかを判定する。なお、アプリケーションによってはシート単位の描画が終了したかを判定する。終了するまでステップS703〜S705の処理を繰り返す。ステップS707では、プリンタドライバ203は、ジョブ終了のためのプリンタ制御命令の生成及び送信を行う(印刷終了処理)。また、プリンタドライバ203は、プリンタドライバ情報502に保持されていたカレントDEVMODE及びスタートDEVMODEのメモリを開放する。   In step S706, the printer driver 203 determines whether all page drawing has been completed. Depending on the application, it is determined whether drawing for each sheet has been completed. The processes in steps S703 to S705 are repeated until the process is completed. In step S707, the printer driver 203 generates and transmits a printer control command for ending the job (print end process). Further, the printer driver 203 releases the current DEVMODE and start DEVMODE memories held in the printer driver information 502.

次に、図12を参照して、図11のステップS701におけるDEVMODE設定処理の詳細を説明する。   Next, details of the DEVMODE setting process in step S701 of FIG. 11 will be described with reference to FIG.

図12は、図11のステップS701における第1のDEVMODE設定処理の詳細を示すフローチャートである。なお、図11のステップS703における第2のDEVMODE設定処理は第1のDEVMODE設定処理と同じであることから、その説明を省略する。   FIG. 12 is a flowchart showing details of the first DEVMODE setting process in step S701 of FIG. Note that the second DEVMODE setting process in step S703 in FIG. 11 is the same as the first DEVMODE setting process, and thus the description thereof is omitted.

ステップS801では、プリンタドライバ203は、図4のS401においてグラフィックスエンジン202からプリンタドライバ203のグラフィックスモジュールに渡されたDEVMODE情報501を取得する。   In step S801, the printer driver 203 acquires the DEVMODE information 501 passed from the graphics engine 202 to the graphics module of the printer driver 203 in step S401 in FIG.

次に、ステップS802では、プリンタドライバ203は、ステップS801で取得したDEVMODE情報501のタイムスタンプメンバ501aに保持されているタイムスタンプ(設定日時)を取得する。次に、ステップS803では、プリンタドライバ203は、呼び出し元のアプリケーションの起動日時を取得する。具体的には、GetCurrentProcess()Win32APIにより呼び出し元アプリケーションのプロセスハンドルを取得し、GetProcessTime()Win32APIにより呼び出し元アプリケーションの起動日時を取得する。   Next, in step S802, the printer driver 203 acquires the time stamp (set date and time) held in the time stamp member 501a of the DEVMODE information 501 acquired in step S801. In step S <b> 803, the printer driver 203 acquires the activation date and time of the calling application. Specifically, the process handle of the calling application is acquired by GetCurrentProcess () Win32API, and the start date and time of the calling application is acquired by GetProcessTime () Win32API.

ステップS804では、プリンタドライバ203は、ステップS803で取得したアプリケーションの起動日時とステップS802で取得したタイムスタンプ、すなわちDEVMODE(印刷設定)の設定日時とを比較する。この比較結果により、起動日時よりもDEVMODEの設定日時の方が新しい場合は、ステップS806へ進む一方、起動日時よりもDEVMODEの設定日時の方が古い場合は、プリンタドライバ203は、外部メモリ111のレジストリに保存されているデフォルトのDEVMODE情報を取得し、ステップS802で取得したDEVMODE情報501をデフォルトDEVMODEで上書きする(ステップS805)。なお、デフォルトDEVMODEで上書きする際は、DEVMODE情報501の全体ではなく、一部分(例えば、Public DEVMODEの用紙サイズ・向きメンバ以外など)のみでもよい。   In step S804, the printer driver 203 compares the application start date and time acquired in step S803 with the time stamp acquired in step S802, that is, the DEVMODE (print setting) setting date and time. If the DEVMODE setting date / time is newer than the activation date / time as a result of the comparison, the process proceeds to step S806. If the DEVMODE setting date / time is older than the activation date / time, the printer driver 203 stores the DEVMODE setting date / time in the external memory 111. The default DEVMODE information stored in the registry is acquired, and the DEVMODE information 501 acquired in step S802 is overwritten with the default DEVMODE (step S805). When overwriting with the default DEVMODE, only a part of the DEVMODE information 501 (for example, other than the paper size / orientation member of the public DEVMODE) may be used.

ステップS806では、プリンタドライバ203は、前ステップで取得してRAM102に保存されているDEVMODE情報501を、同じくRAM102に保存されているプリンタドライバ情報502のカレントDEVMODEを保持するメンバ502aにコピーする(ステップS806)。ステップS807では、プリンタドライバ203は、印刷が開始されたか否かを判定するためにプリンタドライバ情報502に保持されている印刷開始フラグをFALSEに設定する。   In step S806, the printer driver 203 copies the DEVMODE information 501 acquired in the previous step and stored in the RAM 102 to the member 502a that holds the current DEVMODE of the printer driver information 502 that is also stored in the RAM 102 (step S806). S806). In step S807, the printer driver 203 sets the print start flag held in the printer driver information 502 to FALSE in order to determine whether printing has started.

次に、図13を参照して、図11のステップS702における印刷開始処理の詳細を説明する。   Next, with reference to FIG. 13, the details of the print start process in step S702 of FIG. 11 will be described.

図13は、図11のステップS702における印刷開始処理の詳細を示すフローチャートである。   FIG. 13 is a flowchart showing details of the print start process in step S702 of FIG.

ステップS901では、プリンタドライバ203は、図4のS403においてグラフィックスエンジン202からプリンタドライバ203のグラフィックスモジュールに指定されたプリンタドライバ情報502から印刷開始フラグを取得し、FALSEかを判定する。なお、印刷開始処理は、印刷開始時以外も実行されるケースがあるため、印刷開始フラグにより印刷開始時であるかが判定される。   In step S901, the printer driver 203 acquires a print start flag from the printer driver information 502 specified in the graphics module of the printer driver 203 from the graphics engine 202 in step S403 in FIG. 4, and determines whether it is FALSE. Since the print start process may be executed at times other than when printing is started, it is determined by the print start flag whether printing is starting.

ステップS901の判定の結果、印刷開始フラグがFALSEの場合は、プリンタドライバ203は、プリンタドライバ情報502からカレントのDEVMODEを取得する(ステップS902)。一方、TRUEの場合は、本処理を終了する。   If the result of determination in step S901 is that the print start flag is FALSE, the printer driver 203 acquires the current DEVMODE from the printer driver information 502 (step S902). On the other hand, in the case of TRUE, this process ends.

ステップS903では、プリンタドライバ203は、ステップS902で取得したカレントDEVMODEを印刷開始時のスタートDEVMODEとしてプリンタドライバ情報502のスタートDEVMODEを保持するメンバ502bにコピーする。ステップS904では、プリンタドライバ203は、プリンタドライバ情報502の印刷開始フラグをTRUEに設定する。   In step S903, the printer driver 203 copies the current DEVMODE acquired in step S902 to the member 502b holding the start DEVMODE of the printer driver information 502 as the start DEVMODE at the start of printing. In step S904, the printer driver 203 sets the print start flag of the printer driver information 502 to TRUE.

次に、図14を参照して、図11のステップS703におけるDEVMODE切り替え(変更)処理の詳細を説明する。   Next, the details of the DEVMODE switching (change) process in step S703 of FIG. 11 will be described with reference to FIG.

図14は、図11のステップS703におけるDEVMODE切り替え(変更)処理の詳細を示すフローチャートである。   FIG. 14 is a flowchart showing details of the DEVMODE switching (change) process in step S703 of FIG.

ステップS1001では、プリンタドライバ203は、図4のS405においてグラフィックスエンジン202からプリンタドライバ203のグラフィックスモジュールに指定された印刷設定切り替え(変更)前のプリンタドライバ情報502から印刷開始フラグを取得し、TRUEかを判定する。この結果、TRUEの場合、ステップS1002に進む一方、FALSEの場合、ステップS1007に進む。   In step S1001, the printer driver 203 acquires a print start flag from the printer driver information 502 before switching (changing) the print settings specified in the graphics module of the printer driver 203 from the graphics engine 202 in step S405 of FIG. It is determined whether it is TRUE. As a result, in the case of TRUE, the process proceeds to step S1002, while in the case of FALSE, the process proceeds to step S1007.

ステップS1002では、プリンタドライバ203は、図4のS405においてグラフィックスエンジン202からプリンタドライバ203のグラフィックスモジュールに指定された印刷設定切り替え(変更)前のプリンタドライバ情報502からスタートDEVMODEを取得する。次に、ステップS1003では、プリンタドライバ203は、S405においてグラフィックスエンジン202からプリンタドライバ203のグラフィックスモジュールに指定された印刷設定切り替え(変更)後のプリンタドライバ情報502からカレントDEVMODEを取得する。   In step S1002, the printer driver 203 acquires the start DEVMODE from the printer driver information 502 before switching (changing) the print settings specified in the graphics module of the printer driver 203 from the graphics engine 202 in step S405 of FIG. In step S1003, the printer driver 203 acquires the current DEVMODE from the printer driver information 502 after switching (changing) the print settings specified in the graphics module of the printer driver 203 from the graphics engine 202 in step S405.

次に、ステップS1004では、プリンタドライバ203は、ステップS1003で取得した印刷設定切り替え(変更)後のカレントDEVMODEのタイムスタンプを判定する。タイムスタンプの設定が全てゼロ(0)の場合、ステップS1002で取得したスタートDEVMODEで印刷設定切り替え(変更)後のプリンタドライバ情報502に保持されているカレントDEVMODEを上書きする(ステップS1005)。なお、スタートDEVMODEで上書きする際は、切り替え(変更)後のDEVDATAに保持されているカレントDEVMODEの全体ではなく、一部分(例えば、Public DEVMODEの用紙サイズ・向きメンバ以外など)のみでもよい。   In step S1004, the printer driver 203 determines the current DEVMODE time stamp after the print setting switching (change) acquired in step S1003. If the time stamp settings are all zero (0), the current DEVMODE held in the printer driver information 502 after the print setting switching (change) is overwritten with the start DEVMODE acquired in step S1002 (step S1005). When overwriting with the start DEVMODE, not only the entire current DEVMODE held in the DEVDATA after switching (change) but only a part (for example, other than the paper size / direction member of the Public DEVMODE) may be used.

ステップS1006では、プリンタドライバ203は、印刷設定切り替え(変更)前のプリンタドライバ情報502のスタートDEVMODEから印刷設定切り替え(変更)後のプリンタドライバ情報502のスタートDEVMODEの設定を引き継ぐ(コピーする)。ステップS1007では、プリンタドライバ203は、印刷設定切り替え(変更)前のプリンタドライバ情報502の印刷開始フラグから印刷設定切り替え(変更)後のプリンタドライバ情報502の印刷開始フラグの設定を引き継ぐ(コピーする)。   In step S1006, the printer driver 203 takes over (copies) the start DEVMODE setting of the printer driver information 502 after the print setting switching (change) from the start DEVMODE of the printer driver information 502 before the print setting change (change). In step S1007, the printer driver 203 takes over (copies) the print start flag setting of the printer driver information 502 after the print setting switching (change) from the print start flag of the printer driver information 502 before the print setting change (change). .

上記第1の実施形態によれば、文書データに対してドキュメントプロパティで印刷設定がなされたときの設定日時(タイムスタンプ)をDEVMODE情報501に保持し、アプリケーション201からの印刷指示がなされたときにドキュメントプロパティで印刷設定がなされたDEVMODE情報501または設定日時が保持されたDEVMODE情報501を取得する。そして、取得した印刷設定情報から設定日時を取得すると共に、印刷指示をしたアプリケーションの起動日時を取得し、当該起動日時と設定日時とを比較した結果に基づいて印刷設定情報を切り替える(変更する)。これにより、OS上で動作するアプリケーションを介して印刷指示を行う際に、予め印刷設定をしたか否かに関わらず、ユーザの印刷設定ミス等を防止して用紙やトナーの無駄を削減することができる。   According to the first embodiment, the set date and time (time stamp) when the print setting is made for the document data with the document property is held in the DEVMODE information 501, and when the print instruction is issued from the application 201. The DEVMODE information 501 in which the print setting is made in the document property or the DEVMODE information 501 in which the setting date / time is held is acquired. Then, the setting date / time is acquired from the acquired print setting information, the activation date / time of the application that has instructed printing is acquired, and the print setting information is switched (changed) based on the comparison result between the activation date / time and the setting date / time. . As a result, when a print instruction is issued via an application running on the OS, it is possible to prevent a user from making a print setting error and reduce waste of paper and toner regardless of whether print settings have been made in advance. Can do.

特に、ユーザが明示的に印刷設定をしていない場合は、デフォルトの印刷設定が適用される一方、ユーザが明示的に印刷設定をした場合はその印刷設定が全てのシート(またはページ)に反映される。なお、シート(またはページ)単位に印刷設定がなされた場合は、当該シート単位で設定された印刷設定に切り替えられる(変更される)。これにより、上記効果が得られる。   In particular, when the user does not explicitly set the print settings, the default print settings are applied. When the user explicitly sets the print settings, the print settings are reflected in all sheets (or pages). Is done. When print settings are made in units of sheets (or pages), the print settings are changed (changed) to the print settings set in units of the sheets. Thereby, the said effect is acquired.

[第2の実施形態]
次に、本発明の第2の実施形態について説明する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described.

上記第1の実施形態では、DEVMODE情報501のタイムスタンプメンバに保持されているタイムスタンプ(設定日時)と呼び出し元アプリケーションの起動日時に基づいてDEVMODE情報(印刷設定情報)の切り替え(変更)を行っているため、自分自身で設定したDEVMODE情報であってもアプリケーションの再起動後は常にデフォルトのDEVMODE情報で上書きされてしまうという問題がある。   In the first embodiment, the DEVMODE information (print setting information) is switched (changed) based on the time stamp (setting date / time) held in the time stamp member of the DEVMODE information 501 and the activation date / time of the calling application. Therefore, even if the DEVMODE information is set by itself, there is a problem that the default DEVMODE information is always overwritten after the application is restarted.

そこで本第2の実施形態では、DEVMODE情報に新たにユーザ名やコンピュータ名と言ったキーとなる名称を保持することで、自分自身で設定した印刷設定はアプリケーション再起動後も常に有効となるようにするものである。なお、本第2の実施形態と上記第1の実施形態とは、DEVMODEを切り替えるか(変更するか)否かを判定する条件の一部が異なるだけであり、上記第1の実施形態と同一の部分については、同一の符号を付することで詳細な説明を省略する。   Therefore, in the second embodiment, by newly holding a key name such as a user name or a computer name in the DEVMODE information, the print settings set by itself are always effective even after the application is restarted. It is to make. The second embodiment is different from the first embodiment only in a part of the conditions for determining whether to switch (change) DEVMODE, and is the same as the first embodiment. These parts are denoted by the same reference numerals, and detailed description thereof is omitted.

図15は、本発明の第2の実施形態における印刷設定情報を保持するDEVMODE構造体の模式図である。このDEVMODE構造体に印刷設定情報や各種設定情報を保持(記憶)するメンバが記憶される(印刷設定情報記憶手段)。   FIG. 15 is a schematic diagram of a DEVMODE structure that holds print setting information according to the second embodiment of the present invention. Members that hold (store) print setting information and various setting information are stored in this DEVMODE structure (print setting information storage unit).

印刷設定情報は、上記第1の実施形態と同様に、図4のS401でグラフィックスエンジン202とプリンタドライバ203との間でやり取りされる。   The print setting information is exchanged between the graphics engine 202 and the printer driver 203 in S401 of FIG. 4 as in the first embodiment.

図15において、DEVMODE情報1101は、片面/両面印刷設定や部数設定等の印刷設定情報を保持するDEVMODE構造体である。本実施の形態では、DEVMODE情報1101内のPrivateDEVMODEメンバに、DEVMODE情報(印刷設定情報)がなされたときの設定日時(タイムスタンプ)を保持するタイムスタンプメンバ1101aと、DEVMODE情報の設定を変更したユーザ名を保持するユーザ名メンバ1101bとを備える。なお、DEVMODE情報1101を保持する領域は、プリンタドライバ203によりRAM102に確保される。また、この設定日時は日付及び時刻に関する日時情報である。   In FIG. 15, DEVMODE information 1101 is a DEVMODE structure that holds print setting information such as single-sided / double-sided printing setting and number of copies setting. In this embodiment, the private DEVMODE member in the DEVMODE information 1101 includes the time stamp member 1101a that holds the setting date and time (time stamp) when the DEVMODE information (print setting information) is made, and the user who changed the setting of the DEVMODE information A user name member 1101b for holding a name. Note that an area for holding the DEVMODE information 1101 is secured in the RAM 102 by the printer driver 203. The set date and time is date and time information related to the date and time.

次に、第2の実施形態における印刷制御処理を説明する。   Next, print control processing in the second embodiment will be described.

図16は、図15のDEVMODE情報1101に印刷設定情報を保存(保持)する処理のフローチャートである。なお、図16のステップS601〜S610は、図10のステップS601〜S610と同じである。   FIG. 16 is a flowchart of processing for storing (holding) print setting information in the DEVMODE information 1101 of FIG. Note that steps S601 to S610 in FIG. 16 are the same as steps S601 to S610 in FIG.

ステップS1201では、プリンタドライバ203は、DEVMODE情報1101のユーザ名メンバ1101bにコンピュータ3000にログインしたユーザのユーザ名を保持する。ログインしたユーザのユーザ名は、GetUserName Win32 APIなどで取得する。   In step S1201, the printer driver 203 holds the user name of the user who has logged into the computer 3000 in the user name member 1101b of the DEVMODE information 1101. The user name of the logged-in user is acquired using GetUserName Win32 API or the like.

次に、図17を参照して、第2の実施形態におけるDEVMODE設定処理について詳細を説明する。   Next, details of the DEVMODE setting process in the second embodiment will be described with reference to FIG.

図17は、第2の実施形態におけるDEVMODE設定処理の詳細を示すフローチャートである。本処理は、図11のステップS701のDEVMODE設定処理であり、ステップS801〜S807は、図12のステップS801〜S807と同じである。   FIG. 17 is a flowchart showing details of the DEVMODE setting process in the second embodiment. This process is a DEVMODE setting process in step S701 in FIG. 11, and steps S801 to S807 are the same as steps S801 to S807 in FIG.

ステップS1301では、プリンタドライバ203は、印刷実行時のログインユーザのユーザ名を取得する。印刷実行時のログインユーザのユーザ名は、GetUserName Win32 APIなどで取得される。次に、ステップS1302は、プリンタドライバ203は、ステップS801で取得したDEVMODE情報1101に保持されているユーザ名とステップS1301で取得したユーザ名とを比較し、異なるかを判定する。この判定の結果、ユーザ名が同じ場合は、ステップS806以降の処理が行われる一方、ユーザ名が異なる場合は、ステップS804以降の処理が行われる。これにより、DEVMODE情報1101に保持されているユーザ名と印刷実行時のログインユーザのユーザ名とが同一の場合は、当該ログインユーザがアプリケーションを再起動した後であっても当該ログインユーザが設定したDEVMODE情報がデフォルトのDEVMODE情報に切り替わってしまうことがなくなり、ユーザの使い勝手を向上させることができる。   In step S1301, the printer driver 203 acquires the user name of the login user at the time of printing. The user name of the login user at the time of printing is acquired by GetUserName Win32 API or the like. In step S1302, the printer driver 203 compares the user name stored in the DEVMODE information 1101 acquired in step S801 with the user name acquired in step S1301, and determines whether they are different. As a result of the determination, if the user names are the same, the processing after step S806 is performed, whereas if the user names are different, the processing after step S804 is performed. As a result, when the user name held in the DEVMODE information 1101 is the same as the user name of the login user at the time of printing, the login user sets even after the login user restarts the application. The DEVMODE information is not switched to the default DEVMODE information, and user convenience can be improved.

なお、自分自身で設定したものを常に有効にするのであれば、ユーザ名のみの判定で十分であるが、図17のフローチャートでは、ユーザ名の判定後(ステップS1302)にタイムスタンプの判定(ステップS804)も行っている。これはアプリケーション起動後にユーザを切り替えて(変更して)印刷をかける場合(偽装)を考慮しているためである。   Note that if the user's settings are always valid, it is sufficient to determine only the user name. However, in the flowchart of FIG. 17, the time stamp determination (step S1302) is performed after the user name determination (step S1302). S804) is also performed. This is because the case where the user is switched (changed) after printing and printing is performed (impersonation) is considered.

次に、図18を参照して、第2の実施形態におけるDEVMODE切り替え(変更)処理について説明する。   Next, the DEVMODE switching (change) process in the second embodiment will be described with reference to FIG.

図18は、第2の実施形態におけるDEVMODE切り替え(変更)処理の詳細を示すフローチャートである。本処理は、図11のステップS704のDEVMODE切り替え(変更)処理であり、ステップS1001〜S1007は、図14のステップS1001〜S1007と同じである。   FIG. 18 is a flowchart showing details of the DEVMODE switching (change) processing in the second embodiment. This process is a DEVMODE switching (change) process in step S704 in FIG. 11, and steps S1001 to S1007 are the same as steps S1001 to S1007 in FIG.

ステップS1401では、プリンタドライバ203は、DEVMODE情報1101から印刷実行時のログインユーザのユーザ名を取得する。印刷実行時のログインユーザのユーザ名は、GetUserName Win32 APIなどで取得される。次に、ステップS1402は、プリンタドライバ203は、ステップS1002で取得したDEVMODE情報1101に保持されているユーザ名とステップS1401で取得したユーザ名とを比較し、異なるかを判定する。この判定の結果、ユーザ名が同じ場合は、ステップS1006以降の処理が行われる一方、ユーザ名が異なる場合は、ステップS1004以降の処理が行われる。   In step S1401, the printer driver 203 acquires the user name of the login user at the time of printing from the DEVMODE information 1101. The user name of the login user at the time of printing is acquired by GetUserName Win32 API or the like. In step S1402, the printer driver 203 compares the user name stored in the DEVMODE information 1101 acquired in step S1002 with the user name acquired in step S1401, and determines whether they are different. As a result of this determination, if the user names are the same, the processing after step S1006 is performed, whereas if the user names are different, the processing after step S1004 is performed.

なお、図18のフローチャートでは、ユーザ名の判定後(ステップS1402)にタイムスタンプの判定(ステップS1004)も行っているが、こちらもアプリケーション起動後にユーザを切り替えて(変更して)印刷をかける場合(偽装)を考慮しているためである。   In the flowchart of FIG. 18, the time stamp is determined (step S1004) after the user name is determined (step S1402), but this is also the case where the user is switched (changed) after printing and printing is performed. This is because (impersonation) is taken into consideration.

上記第2の実施形態によれば、ログインしたユーザのユーザ名をDEVMODE情報1101に保持し、アプリケーション201からの印刷指示がなされたときに、DEVMODE情報1101に保持されているユーザ名と印刷実行時のログインユーザのユーザ名とが同一の場合は、アプリケーション201の再起動後であっても印刷設定情報を切り替え(変更し)ないので、上記第1の実施形態による効果に加えて、自分自身で設定したDEVMODE情報をアプリケーション201の再起動後であっても維持させることができ、OS上で動作するアプリケーションを利用して印刷指示を行うユーザの印刷出力時の使い勝手を向上させることができる。   According to the second embodiment, the user name of the logged-in user is stored in the DEVMODE information 1101, and when a print instruction is issued from the application 201, the user name stored in the DEVMODE information 1101 and the print execution time If the user name of the logged-in user is the same, the print setting information is not switched (changed) even after the application 201 is restarted. Therefore, in addition to the effect of the first embodiment, The set DEVMODE information can be maintained even after the application 201 is restarted, and the usability at the time of print output by a user who issues a print instruction using an application operating on the OS can be improved.

なお、上記第2の実施形態では、ログインユーザのユーザ名をDEVMODE情報1101に保持する実施形態について説明したが、これに限定されず、コンピュータ名を保持する形態であってもよい。この場合、図3に示すような印刷システムにおいて、複数のコンピュータ3000とプリントサーバコンピュータ4000との間での印刷制御方法に適用することが可能である。   In the second embodiment, the embodiment in which the user name of the login user is held in the DEVMODE information 1101 has been described. However, the present invention is not limited to this, and a form in which a computer name is held may be used. In this case, the printing system as shown in FIG. 3 can be applied to a printing control method between a plurality of computers 3000 and the print server computer 4000.

[第3の実施形態]
次に、本発明の第3の実施形態について説明する。
[Third Embodiment]
Next, a third embodiment of the present invention will be described.

上記第2の実施形態では、ユーザ名をキーにDEVMODE情報の切り替え(変更)が行われることから、DEVMODE情報を設定したユーザが印刷を行った場合は、当該設定したDEVMODE情報で常に印刷されてしまい、DEVMODE情報の切り替え(変更)処理が常に適用されないという問題がある。   In the second embodiment, since the DEVMODE information is switched (changed) using the user name as a key, when the user who sets the DEVMODE information performs printing, the DEVMODE information is always printed with the set DEVMODE information. Therefore, there is a problem that the DEVMODE information switching (changing) process is not always applied.

そこで、本第3の実施形態では、ドライバUI画面上に「アプリケーション再起動後も本設定を有効にする」というチェックボックスを設けて、この設定情報を基にDEVMODE情報を切り替えるか(変更するか)否かを判断することで、例えば、DEVMODEを設定したユーザのユーザ名と印刷を実行するユーザのユーザ名とが同一であっても、必要に応じてDEVMODEの切り替え(変更)を行うことが可能となる。なお、本第3の実施形態と上記第1の実施形態とは、DEVMODEを切り替えるか(変更する)否かを判定する条件の一部が異なるだけであり、上記第1の実施形態と同一の部分については、同一の符号を付すことで詳細な説明を省略する。   Therefore, in the third embodiment, a check box “Enable this setting even after restarting the application” is provided on the driver UI screen, and DEVMODE information is switched (changed) based on this setting information. By determining whether or not, for example, even if the user name of the user who set DEVMODE is the same as the user name of the user who executes printing, DEVMODE switching (change) can be performed as necessary. It becomes possible. The third embodiment is different from the first embodiment only in part of the conditions for determining whether to switch (change) DEVMODE or not, and is the same as the first embodiment. Detailed description will be omitted by giving the same reference numerals to the portions.

図19は、本発明の第3の実施形態における印刷設定情報を保持するDEVMODE構造体の模式図である。このDEVMODE構造体に印刷設定情報や各種設定情報を保持(記憶)するメンバが記憶される(印刷設定情報記憶手段)。   FIG. 19 is a schematic diagram of a DEVMODE structure that holds print setting information according to the third embodiment of the present invention. Members that hold (store) print setting information and various setting information are stored in this DEVMODE structure (print setting information storage unit).

印刷設定情報は、上記第1の実施形態と同様に、図4のS401でグラフィックスエンジン202とプリンタドライバ203との間でやり取りされる。   The print setting information is exchanged between the graphics engine 202 and the printer driver 203 in S401 of FIG. 4 as in the first embodiment.

図19において、DEVMODE情報1501は、片面/両面印刷設定や部数設定等の印刷設定情報を保持するDEVMODE構造体である。本実施の形態では、DEVMODE情報1501内のPrivateDEVMODEメンバに、DEVMODE情報(印刷設定情報)がなされたときの設定日時(タイムスタンプ)を保持するタイムスタンプメンバ1501aと、アプリケーション再起動後も本DEVMODEの設定を有効にするか否かを示すフラグ(常に印刷設定を有効に印刷設定適用フラグ)を保持するメンバ1501bと備える。なお、DEVMODE情報1501を保持する領域は、プリンタドライバ203によりRAM102に確保される。   In FIG. 19, DEVMODE information 1501 is a DEVMODE structure that holds print setting information such as single-sided / double-sided printing setting and number of copies setting. In this embodiment, the private DEVMODE member in the DEVMODE information 1501 includes a time stamp member 1501a that holds the set date and time (time stamp) when the DEVMODE information (print setting information) is made, and the DEVMODE information after the application is restarted. And a member 1501b that holds a flag (a print setting application flag that always enables print setting) indicating whether or not the setting is valid. Note that an area for holding the DEVMODE information 1501 is secured in the RAM 102 by the printer driver 203.

また、この設定日時は日付及び時刻に関する日時情報である。また、MS−Excelのデータファイルでは、図5のDEVMODE情報501、図15のDEVMODE情報1101、及び図19のDEVMODE情報1501のデータ構造がそのまま各シートに保持される。   The set date and time is date and time information related to the date and time. Further, in the MS-Excel data file, the data structures of the DEVMODE information 501 in FIG. 5, the DEVMODE information 1101 in FIG. 15, and the DEVMODE information 1501 in FIG. 19 are held as they are in each sheet.

図20は、ドライバUI画面上に表示されるダイアログの一例を示す図である。   FIG. 20 is a diagram illustrating an example of a dialog displayed on the driver UI screen.

図20に示すダイアログ1601上でチェックボックスにチェックされた場合は、DEVMODE情報1501内の「アプリ起動後も本設定を有効にするフラグ」メンバに「ON」が保持される。一方、チェックボックスにチェックされなかった場合は、DEVMODE情報1501内の「アプリ起動後も本設定を有効にするフラグ」メンバに「OFF」が保持される。ダイアログ1601は、ドライバUI画面上にポップアップ表示されてもよく、また図示の形態に限定されず、ドライバUI画面に組み込まれていてもよい。   When the check box is checked on the dialog 1601 illustrated in FIG. 20, “ON” is held in the “flag that enables this setting even after application activation” member in the DEVMODE information 1501. On the other hand, if the check box is not checked, “OFF” is held in the “flag that enables this setting even after application activation” member in the DEVMODE information 1501. The dialog 1601 may be displayed in a pop-up on the driver UI screen, and is not limited to the illustrated form, and may be incorporated in the driver UI screen.

次に、第3の実施形態における印刷制御処理を説明する。   Next, a print control process in the third embodiment will be described.

図21は、図19のDEVMODE情報1501に印刷設定情報を保存(保持)するフローチャートである。なお、図21のステップS601〜S610は、図10のステップS601〜S610と同じである。   FIG. 21 is a flowchart for storing (holding) print setting information in the DEVMODE information 1501 of FIG. Note that steps S601 to S610 in FIG. 21 are the same as steps S601 to S610 in FIG.

ステップS1701は、プリンタドライバ203は、ドライバUI画面上に表示されたダイアログ1610のチェックボックスのチェック有無に応じて、DEVMODE情報1501のアプリ起動後も本設定を有効にするフラグに「ON」または「OFF」を保持する。   In step S <b> 1701, the printer driver 203 sets the flag for enabling this setting even after the application is activated in the DEVMODE information 1501 depending on whether or not the check box of the dialog 1610 displayed on the driver UI screen is checked. “OFF” is held.

次に、図22を参照して、第3の実施形態におけるDEVMODE設定処理について説明する。   Next, a DEVMODE setting process in the third embodiment will be described with reference to FIG.

図22は、第3の実施形態におけるDEVMODE設定処理の詳細を示すフローチャートである。本処理は、図11のステップS701のDEVMODE設定処理であり、ステップS801〜S807は、図12のステップS801〜S807と同じである。   FIG. 22 is a flowchart showing details of the DEVMODE setting process in the third embodiment. This process is a DEVMODE setting process in step S701 in FIG. 11, and steps S801 to S807 are the same as steps S801 to S807 in FIG.

ステップS1801では、プリンタドライバ203は、DEVMODE情報1501からアプリ起動後も本設定を有効にするフラグを取得する。次に、ステップS1802では、プリンタドライバ203は、ステップS1801で取得したフラグがOFFかを判定する。この判定の結果、フラグがONの場合は、ステップS806以降の処理が行われる一方、OFFの場合は、ステップS804以降の処理が行われる。   In step S1801, the printer driver 203 acquires from the DEVMODE information 1501 a flag that enables this setting even after the application is activated. Next, in step S1802, the printer driver 203 determines whether the flag acquired in step S1801 is OFF. As a result of this determination, when the flag is ON, the processing after step S806 is performed, and when it is OFF, the processing after step S804 is performed.

次に、図23を参照して、第3の実施形態におけるDEVMODE切り替え(変更)処理について説明する。   Next, a DEVMODE switching (change) process according to the third embodiment will be described with reference to FIG.

図23は、第3の実施形態におけるDEVMODE切り替え(変更)処理の詳細を示すフローチャートである。本処理は、図11のステップS704のDEVMODE切り替え(変更)処理であり、ステップS1001〜S1007は、図14のステップS1001〜S1007と同じである。   FIG. 23 is a flowchart showing details of the DEVMODE switching (change) processing in the third embodiment. This process is a DEVMODE switching (change) process in step S704 in FIG. 11, and steps S1001 to S1007 are the same as steps S1001 to S1007 in FIG.

ステップS1901では、プリンタドライバ203は、DEVMODE情報1501からアプリ起動後も本設定を有効にするフラグを取得する。次に、ステップS1902は、プリンタドライバ203は、ステップS1801で取得したフラグがOFFかを判定する。この判定の結果、フラグがONの場合は、ステップS1006以降の処理が行われる一方、OFFの場合は、ステップS1004以降の処理が行われる。   In step S1901, the printer driver 203 acquires from the DEVMODE information 1501 a flag that enables this setting even after the application is activated. In step S1902, the printer driver 203 determines whether the flag acquired in step S1801 is OFF. As a result of this determination, when the flag is ON, the processing after step S1006 is performed, and when it is OFF, the processing after step S1004 is performed.

上記第3の実施形態によれば、ドライバUI画面上に、常に印刷設定を有効にするか否かを設定するためのダイアログ1601を表示し、当該ダイアログ1601上で設定された内容(ON/OFF)を印刷設定適用フラグとしてDEVMODE情報1501に保持する。そして、アプリケーション201からの印刷指示がなされたときに、印刷設定適用フラグに応じて印刷設定情報を切り替える(変更する)。これにより、ユーザの使い勝手をさらに向上させることができる。   According to the third embodiment, the dialog 1601 for setting whether or not the print setting is always enabled is displayed on the driver UI screen, and the contents (ON / OFF) set on the dialog 1601 are displayed. ) Is stored in the DEVMODE information 1501 as a print setting application flag. When a print instruction is issued from the application 201, the print setting information is switched (changed) according to the print setting application flag. Thereby, a user's usability can further be improved.

なお、上記第3の実施形態では、図19のDEVMODE情報1501に図15のユーザ名メンバ1101bが設けられていてもよい。これにより、DEVMODEを設定したユーザのユーザ名と印刷を実行するユーザのユーザ名とが同一であっても、印刷設定適用フラグの設定内容に応じてDEVMODEの切り替え(変更)が行われる。これにより、OS上で動作するアプリケーションを利用して印刷指示を行うユーザの印刷出力時の使い勝手を向上させることができる。   In the third embodiment, the user name member 1101b of FIG. 15 may be provided in the DEVMODE information 1501 of FIG. Thus, even if the user name of the user who set DEVMODE is the same as the user name of the user who executes printing, DEVMODE switching (change) is performed according to the setting contents of the print setting application flag. As a result, it is possible to improve usability at the time of print output by a user who issues a print instruction using an application operating on the OS.

本発明は、例えば、システム、装置、方法、プログラム若しくは記憶媒体等としての実施態様をとることが可能であり、具体的には、複数の機器から構成されるシステムに適用してもよいし、また、一つの機器からなる装置に適用してもよい。   The present invention can take an embodiment as, for example, a system, apparatus, method, program, or storage medium. Specifically, the present invention may be applied to a system including a plurality of devices, Moreover, you may apply to the apparatus which consists of one apparatus.

また、本発明の目的は、以下の処理を実行することによって達成される。即ち、上述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出す処理である。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施の形態の機能を実現することになり、そのプログラムコード及び該プログラムコードを記憶した記憶媒体は本発明を構成することになる。   The object of the present invention is achieved by executing the following processing. That is, a storage medium that records a program code of software that realizes the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU, MPU, etc.) of the system or apparatus is stored in the storage medium. This is the process of reading the code. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code and the storage medium storing the program code constitute the present invention.

また、プログラムコードを供給するための記憶媒体としては、次のものを用いることができる。例えば、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW、磁気テープ、不揮発性のメモリカード、ROM等である。または、プログラムコードをネットワークを介してダウンロードしてもよい。   Moreover, the following can be used as a storage medium for supplying the program code. For example, floppy (registered trademark) disk, hard disk, magneto-optical disk, CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW, magnetic tape, nonvolatile memory card, ROM or the like. Alternatively, the program code may be downloaded via a network.

また、コンピュータが読み出したプログラムコードを実行することにより、上記実施の形態の機能が実現される場合も本発明に含まれる。加えて、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。   Further, the present invention includes a case where the function of the above-described embodiment is realized by executing the program code read by the computer. In addition, an OS (operating system) running on the computer performs part or all of the actual processing based on an instruction of the program code, and the functions of the above-described embodiments are realized by the processing. Is also included.

さらに、前述した実施形態の機能が以下の処理によって実現される場合も本発明に含まれる。即ち、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行う場合である。   Furthermore, a case where the functions of the above-described embodiment are realized by the following processing is also included in the present invention. That is, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on the instruction of the program code, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing.

また、コンピュータが読み出したプログラムコードを実行することにより、前述した各実施の形態の機能が実現される場合も本発明に含まれる。加えて、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOSなどが実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能が実現する場合も含まれる。この場合、上記プログラムは、該プログラムを記憶した記憶媒体から直接、またはインターネット、商用ネットワーク、若しくはローカルエリアネットワーク等に接続された不図示の他のコンピュータやデータベース等からダウンロードすることにより供給される。   Further, the present invention includes a case where the functions of the above-described embodiments are realized by executing the program code read by the computer. In addition, there is a case where the OS running on the computer performs part or all of the actual processing based on the instruction of the program code, and the functions of the above-described embodiments are realized by the processing. In this case, the program is supplied by downloading directly from a storage medium storing the program or from another computer or database (not shown) connected to the Internet, a commercial network, a local area network, or the like.

本発明の第1の実施形態に係る情報処理装置を含めた印刷システムの構成例を示すブロック図である。1 is a block diagram illustrating a configuration example of a printing system including an information processing apparatus according to a first embodiment of the present invention. 図1におけるコンピュータのソフトウェア構成を示すブロック図である。It is a block diagram which shows the software structure of the computer in FIG. 図1におけるコンピュータ及びプリンタが適用された印刷システムの構成例を示すブロック図である。It is a block diagram which shows the structural example of the printing system to which the computer and printer in FIG. 1 were applied. コンピュータにおいて実行される印刷制御処理の基本的な流れを示す図である。It is a figure which shows the basic flow of the printing control process performed in a computer. 本発明の第1の実施形態における印刷設定情報及びプリンタドライバ情報の保持形態を示す模式図であり、(a)は印刷設定情報を保持するDEVMODE構造体を示し、(b)はプリンタドライバ情報を保持するDEVDATA構造体を示す。2A and 2B are schematic diagrams illustrating a holding form of print setting information and printer driver information according to the first embodiment of the present invention, in which FIG. 3A illustrates a DEVMODE structure that holds print setting information, and FIG. The DEVDATA structure to hold is shown. 文書データに対して印刷メニュー選択によるドキュメントプロパティで印刷設定が行われる際に表示するプリンタドライバユーザインターフェースの画面例を示す図である。FIG. 6 is a diagram illustrating an example of a printer driver user interface screen displayed when print setting is performed on document data with document properties by selecting a print menu. 文書データに対してページ設定メニュー選択によるドキュメントプロパティで印刷設定が行われる際に表示するプリンタドライバユーザインターフェースの画面例を示す図である。6 is a diagram illustrating an example of a screen of a printer driver user interface displayed when print setting is performed with document properties by selecting a page setting menu for document data. FIG. プリンタプロパティで印刷設定が行われる際に表示するプリンタドライバユーザインターフェースの画面を示す図である。FIG. 6 is a diagram illustrating a screen of a printer driver user interface displayed when print setting is performed with printer properties. 3枚のシートを有するMS−Excelのデータファイルの印刷設定変更時の印刷設定及びタイムスタンプの一例を示す図であり、(a)は変更前の印刷設定情報の一例を示し、(b)は図7に示す方法による印刷設定変更後の印刷設定情報の一例を示し、(c)は図6に示す方法による印刷設定変更後の印刷設定情報の一例を示す。FIG. 5 is a diagram illustrating an example of print settings and time stamps when changing print settings of an MS-Excel data file having three sheets, (a) showing an example of print setting information before the change, and (b). 7 shows an example of print setting information after the print setting is changed by the method shown in FIG. 7, and (c) shows an example of print setting information after the print setting is changed by the method shown in FIG. 図5(a)のDEVMODE情報に印刷設定情報を保存するDEVMODE保存処理を示すフローチャートである。6 is a flowchart showing a DEVMODE storage process for storing print setting information in the DEVMODE information of FIG. 印刷ジョブが生成される印刷処理のフローチャートである。6 is a flowchart of print processing for generating a print job. 図11のステップS701におけるDEVMODE設定処理の詳細を示すフローチャートである。12 is a flowchart showing details of DEVMODE setting processing in step S701 in FIG. 図11のステップS702における印刷開始処理の詳細を示すフローチャートである。12 is a flowchart illustrating details of a print start process in step S702 in FIG. 図11のステップS703におけるDEVMODE切り替え(変更)処理の詳細を示すフローチャートである。12 is a flowchart showing details of DEVMODE switching (change) processing in step S703 of FIG. 本発明の第2の実施形態における印刷設定情報を保持するDEVMODE構造体の模式図である。It is a schematic diagram of the DEVMODE structure which hold | maintains the print setting information in the 2nd Embodiment of this invention. 図15のDEVMODE情報に印刷設定情報を保存する処理のフローチャートである。16 is a flowchart of processing for storing print setting information in the DEVMODE information of FIG. 15. 第2の実施形態におけるDEVMODE設定処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the DEVMODE setting process in 2nd Embodiment. 第2の実施形態におけるDEVMODE切り替え(変更)処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the DEVMODE switching (change) process in 2nd Embodiment. 本発明の第3の実施形態における印刷設定情報を保持するDEVMODE構造体の模式図である。It is a schematic diagram of the DEVMODE structure which hold | maintains the print setting information in the 3rd Embodiment of this invention. ドライバUI画面上に表示されるダイアログの一例を示す図である。It is a figure which shows an example of the dialog displayed on a driver UI screen. 図19のDEVMODE情報に印刷設定情報を保存するフローチャートである。20 is a flowchart for storing print setting information in the DEVMODE information of FIG. 第3の実施形態におけるDEVMODE設定処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the DEVMODE setting process in 3rd Embodiment. 第3の実施形態におけるDEVMODE切り替え(変更)処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the DEVMODE switching (change) process in 3rd Embodiment.

符号の説明Explanation of symbols

3000 コンピュータ
1500 プリンタ
101,112 CPU
109 操作装置
110 表示装置
111,114 外部メモリ
122 操作部
201 アプリケーション
202 グラフィックスエンジン
203 プリンタドライバ
501,1101,1501 DEVMODE情報
502 プリンタドライバ情報
3000 Computer 1500 Printer 101, 112 CPU
109 Operation Device 110 Display Device 111, 114 External Memory 122 Operation Unit 201 Application 202 Graphics Engine 203 Printer Driver 501, 1101, 1501 DEVMODE Information 502 Printer Driver Information

Claims (10)

ページ単位またはシート単位で構成される文書データに対して印刷設定するためのプリンタドライバを備える情報処理装置であって、
前記文書データのページ単位またはシート単位で保持する印刷設定を行う第1の印刷設定手段と、
前記第1の印刷設定手段で設定された印刷設定の印刷設定情報とともに、当該印刷設定された設定日時を記憶する印刷設定情報記憶手段と、
前記プリンタドライバが保持する印刷設定を行う第2の印刷設定手段と、
前記文書データの印刷指示に従って、オペレーティングシステムから前記印刷設定情報記憶手段で記憶された印刷設定情報を取得する印刷設定情報取得手段と、
前記印刷設定情報取得手段で取得された印刷設定情報とともに記憶される設定日時と前記文書データの印刷指示がなされたアプリケーションの起動日時に従って、前記第1の印刷設定手段で設定された印刷設定から前記第2の印刷設定手段で設定された印刷設定に変更する印刷設定変更手段とを備えることを特徴とする情報処理装置。
An information processing apparatus including a printer driver for performing print setting on document data configured in units of pages or sheets,
First print setting means for performing print settings to be held in units of pages or sheets of the document data;
Print setting information storage means for storing the setting date and time of the print setting together with the print setting information of the print setting set by the first print setting means;
Second print setting means for performing print settings held by the printer driver;
Print setting information acquisition means for acquiring print setting information stored in the print setting information storage means from an operating system in accordance with a print instruction for the document data;
According to the setting date and time stored together with the print setting information acquired by the print setting information acquisition unit and the start date and time of the application for which the document data print instruction is issued, the print setting set by the first print setting unit is An information processing apparatus comprising: a print setting changing unit that changes the print setting to be set by the second print setting unit.
前記印刷設定変更手段は、前記起動日時よりも前記設定日時の方が古いときは、前記第2の印刷設定手段で設定された印刷設定に変更することを特徴とする請求項1記載の情報処理装置。   2. The information processing according to claim 1, wherein the print setting changing unit changes the print setting to the print setting set by the second print setting unit when the set date is older than the start date. apparatus. 前記印刷設定変更手段は、前記印刷設定情報取得手段により設定日時を含む印刷設定情報が取得できない場合は、前記第1の印刷設定手段で設定された印刷設定に切り替えることを特徴とする請求項1記載の情報処理装置。   The print setting change unit switches to the print setting set by the first print setting unit when the print setting information acquisition unit cannot acquire print setting information including a set date and time. The information processing apparatus described. 前記印刷設定変更手段は、前記第1の印刷設定手段によりページ単位またはシート単位で設定された印刷設定の設定日時と前記起動日時との比較結果に基づいて前記印刷設定を変更することを特徴とする請求項1乃至3のいずれか1項に記載の情報処理装置。   The print setting changing unit changes the print setting based on a comparison result between the setting date and time of the print setting set by the first print setting unit for each page or sheet and the start date and time. The information processing apparatus according to any one of claims 1 to 3. 前記印刷設定情報記憶手段は、情報処理装置にログインしたユーザのユーザ名を前記印刷設定情報とともに記憶することを特徴とし、
印刷実行時のログインユーザのユーザ名を取得するユーザ名取得手段と、
前記印刷設定情報取得手段により取得した印刷設定情報とともに記憶されているユーザ名と前記ユーザ名取得手段により取得したユーザ名と比較するユーザ名比較手段とをさらに備え、
前記印刷設定変更手段は、ユーザ名が同一の場合は、前記アプリケーションの再起動後であっても印刷設定を変更しないことを特徴とする請求項1乃至4のいずれか1項に記載の情報処理装置。
The print setting information storage means stores a user name of a user who has logged into the information processing apparatus together with the print setting information,
User name acquisition means for acquiring the user name of the login user at the time of printing execution,
A user name comparing means for comparing the user name stored together with the print setting information acquired by the print setting information acquiring means and the user name acquired by the user name acquiring means;
5. The information processing according to claim 1, wherein when the user name is the same, the print setting changing unit does not change the print setting even after the application is restarted. 6. apparatus.
前記印刷設定情報記憶手段は、前記アプリケーションの再起動後も印刷設定情報を有効にするか否かを示す印刷設定適用フラグを前記印刷設定情報とともに記憶することを特徴とし、
前記印刷設定情報取得手段により取得した印刷設定情報とともに記憶されている印刷設定適用フラグを取得する印刷設定適用フラグ取得手段を備え、
前記印刷設定変更手段は、前記印刷設定適用フラグ取得手段により取得した印刷設定適用フラグに応じて前記印刷設定の変更を行うことを特徴とする請求項1乃至5のいずれか1項に記載の情報処理装置。
The print setting information storage means stores a print setting application flag indicating whether or not to enable the print setting information even after restarting the application together with the print setting information,
A print setting application flag acquisition unit that acquires a print setting application flag stored together with the print setting information acquired by the print setting information acquisition unit;
6. The information according to claim 1, wherein the print setting changing unit changes the print setting in accordance with a print setting application flag acquired by the print setting application flag acquisition unit. Processing equipment.
前記アプリケーションの再起動後も印刷設定を有効にするか否かを設定するためのダイアログを表示する表示手段をさらに備えることを特徴とする請求項6記載の情報処理装置。   The information processing apparatus according to claim 6, further comprising display means for displaying a dialog for setting whether or not to enable print settings even after the application is restarted. 前記印刷設定情報は、DEVMODE構造体であることを特徴とする請求項1乃至7のいずれか1項に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the print setting information is a DEVMODE structure. ページ単位またはシート単位で構成される文書データに対して印刷設定するためのプリンタドライバを備える情報処理装置の印刷制御方法であって、
前記文書データのページ単位またはシート単位で保持する印刷設定を行う第1の印刷設定工程と、
前記第1の印刷設定工程で設定された印刷設定の印刷設定情報とともに、当該印刷設定された設定日時を記憶する印刷設定情報記憶工程と、
前記プリンタドライバが保持する印刷設定を行う第2の印刷設定工程と、
前記文書データの印刷指示に従って、オペレーティングシステムから前記印刷設定情報記憶工程で記憶された印刷設定情報を取得する印刷設定情報取得工程と、
前記印刷設定情報取得工程で取得された印刷設定情報とともに記憶される設定日時と前記文書データの印刷指示がなされたアプリケーションの起動日時に従って、前記第1の印刷設定工程で設定された印刷設定から前記第2の印刷設定工程で設定された印刷設定に変更する印刷設定変更工程とを備えることを特徴とする印刷制御方法。
A print control method for an information processing apparatus including a printer driver for performing print setting for document data configured in units of pages or sheets,
A first print setting step for performing print settings to be held in units of pages or sheets of the document data;
A print setting information storage step for storing the setting date and time of the print setting together with the print setting information of the print setting set in the first print setting step;
A second print setting step for performing print settings held by the printer driver;
A print setting information acquisition step of acquiring print setting information stored in the print setting information storage step from an operating system in accordance with a print instruction of the document data;
According to the setting date and time stored together with the print setting information acquired in the print setting information acquisition step and the start date and time of the application instructed to print the document data, from the print setting set in the first print setting step A print control method comprising: a print setting change step for changing to the print setting set in the second print setting step.
ページ単位またはシート単位で構成される文書データに対して印刷設定するためのプリンタドライバを備える情報処理装置の印刷制御方法をコンピュータに実行させるためのプログラムであって、
前記文書データのページ単位またはシート単位で保持する印刷設定を行う第1の印刷設定ステップと、
前記第1の印刷設定ステップで設定された印刷設定の印刷設定情報とともに、当該印刷設定された設定日時を記憶する印刷設定情報記憶ステップと、
前記プリンタドライバが保持する印刷設定を行う第2の印刷設定ステップと、
前記文書データの印刷指示に従って、オペレーティングシステムから前記印刷設定情報記憶ステップで記憶された印刷設定情報を取得する印刷設定情報取得ステップと、
前記印刷設定情報取得ステップで取得された印刷設定情報とともに記憶される設定日時と前記文書データの印刷指示がなされたアプリケーションの起動日時に従って、前記第1の印刷設定ステップで設定された印刷設定から前記第2の印刷設定ステップで設定された印刷設定に変更する印刷設定変更ステップとを備えることを特徴とするプログラム。
A program for causing a computer to execute a print control method of an information processing apparatus including a printer driver for performing print setting for document data configured in units of pages or sheets,
A first print setting step for performing print settings to be held in units of pages or sheets of the document data;
A print setting information storing step for storing the print setting information of the print setting set in the first print setting step together with the setting date and time of the print setting;
A second print setting step for performing print settings held by the printer driver;
A print setting information acquisition step for acquiring the print setting information stored in the print setting information storage step from the operating system according to the print instruction of the document data;
According to the setting date and time stored together with the print setting information acquired in the print setting information acquisition step and the start date and time of the application instructed to print the document data, from the print setting set in the first print setting step A program comprising: a print setting changing step for changing to the print setting set in the second print setting step.
JP2007324739A 2007-12-17 2007-12-17 Information processing device, print control method and program Pending JP2009146277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007324739A JP2009146277A (en) 2007-12-17 2007-12-17 Information processing device, print control method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007324739A JP2009146277A (en) 2007-12-17 2007-12-17 Information processing device, print control method and program

Publications (1)

Publication Number Publication Date
JP2009146277A true JP2009146277A (en) 2009-07-02

Family

ID=40916787

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007324739A Pending JP2009146277A (en) 2007-12-17 2007-12-17 Information processing device, print control method and program

Country Status (1)

Country Link
JP (1) JP2009146277A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011043889A (en) * 2009-08-19 2011-03-03 Konica Minolta Business Technologies Inc Job editing method, job editing device, and image forming apparatus
JP2011053754A (en) * 2009-08-31 2011-03-17 Konica Minolta Business Technologies Inc Printer driver and controller
US8665462B2 (en) 2011-01-05 2014-03-04 Konica Minolta Business Technologies, Inc. Print instruction apparatus and print instruction program
US8860964B2 (en) 2011-02-01 2014-10-14 Ricoh Company, Ltd. Computer readable medium, print control apparatus, print control method, and print system monitoring the storing of job and job ticket into second folder
JP2015176381A (en) * 2014-03-14 2015-10-05 株式会社リコー Information processing program, information processing unit, and information processing system
JP2019144913A (en) * 2018-02-22 2019-08-29 コニカミノルタ株式会社 Print control program and print control method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011043889A (en) * 2009-08-19 2011-03-03 Konica Minolta Business Technologies Inc Job editing method, job editing device, and image forming apparatus
JP2011053754A (en) * 2009-08-31 2011-03-17 Konica Minolta Business Technologies Inc Printer driver and controller
US8665462B2 (en) 2011-01-05 2014-03-04 Konica Minolta Business Technologies, Inc. Print instruction apparatus and print instruction program
US8860964B2 (en) 2011-02-01 2014-10-14 Ricoh Company, Ltd. Computer readable medium, print control apparatus, print control method, and print system monitoring the storing of job and job ticket into second folder
JP2015176381A (en) * 2014-03-14 2015-10-05 株式会社リコー Information processing program, information processing unit, and information processing system
JP2019144913A (en) * 2018-02-22 2019-08-29 コニカミノルタ株式会社 Print control program and print control method

Similar Documents

Publication Publication Date Title
EP1710699B1 (en) Information processing apparatus capable of customizing device driver, information processing method, and control program
US7907313B2 (en) Management of multiple printer drivers
EP1710680B1 (en) Information processing apparatus and method, program, and storage medium
CN112352218A (en) Information processing apparatus, control method, and program
EP2388685B1 (en) Information processing apparatus and control method thereof, and storage medium
US20170060488A1 (en) Information processing apparatus, method of controlling the same, print system and storage medium
JP2013149085A (en) Printing system, printing control device and printing control program
JP2009146277A (en) Information processing device, print control method and program
JP2010165261A (en) Printing control device and control method thereof
JP5522952B2 (en) Print control apparatus, print control method, and program
US7428072B2 (en) Printing control program, printing control method, printing system and information processing apparatus
JP2005173701A (en) Information processor, information processing method, and program therefor
JP2009205694A (en) Information processing apparatus, method, and device driver
JP2009151559A (en) Information processor, printing control method, printing control program, printer and printing system
JP3884876B2 (en) Information processing apparatus, information processing method, and storage medium storing computer-readable program
JP4702948B2 (en) Information processing apparatus, method, and storage medium for customizing device driver
JP2006189920A (en) User interface apparatus, display method for user interface, and program
JP4539975B2 (en) Print setting control apparatus, control method thereof, and program
JP2008015563A (en) Printing control device, printing control method, program and recording medium
JP2006178767A (en) Printing reservation system and its control method
JP2003241915A (en) Printing control program, printing control method, printing system and information processor
JP2006185157A (en) Printing control device, printing control method, printing control program and recording medium
JP2006146364A (en) Print control device, print control method, print control system, program and storage medium
JP2010026924A (en) Information processor
JP2003241916A (en) Printing control program, printing control method, printing system and information processor