JP5299386B2 - Print data generation program, terminal device, and control method of terminal device - Google Patents

Print data generation program, terminal device, and control method of terminal device Download PDF

Info

Publication number
JP5299386B2
JP5299386B2 JP2010192342A JP2010192342A JP5299386B2 JP 5299386 B2 JP5299386 B2 JP 5299386B2 JP 2010192342 A JP2010192342 A JP 2010192342A JP 2010192342 A JP2010192342 A JP 2010192342A JP 5299386 B2 JP5299386 B2 JP 5299386B2
Authority
JP
Japan
Prior art keywords
text file
data
text
print data
specific information
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.)
Active
Application number
JP2010192342A
Other languages
Japanese (ja)
Other versions
JP2012048633A (en
Inventor
優治 宮田
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2010192342A priority Critical patent/JP5299386B2/en
Publication of JP2012048633A publication Critical patent/JP2012048633A/en
Application granted granted Critical
Publication of JP5299386B2 publication Critical patent/JP5299386B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Description

本願は、ウェブページを適切に印刷することができる印刷データ生成プログラム、端末装置および端末装置の制御方法に関する。   The present application relates to a print data generation program, a terminal device, and a control method for a terminal device that can appropriately print a web page.

特許文献1には、ウェブページを閲覧するためのWEB制御のプログラムや、携帯電話上で動作する各種の通常アプリケーションのプログラムなどの、複数のプログラムが搭載可能な携帯電話が開示されている。
また、特許文献1の携帯電話では、WEB制御のプログラムと通常アプリケーションのプログラムとを連携させ、WEB制御のプログラム側と通常アプリケーションのプログラム側の画像データ同士、音声データ同士を合成することで、合成画像や合成音声による表現を行うことが可能とされている。
Patent Document 1 discloses a mobile phone on which a plurality of programs such as a WEB control program for browsing a web page and various normal application programs operating on the mobile phone can be mounted.
In addition, in the mobile phone of Patent Document 1, a WEB control program and a normal application program are linked together to synthesize image data and audio data between the WEB control program side and the normal application program side. It is possible to express with images and synthesized speech.

特開2008−83974号公報JP 2008-83974 A

WEB制御のプログラムから、印刷データを生成するための通常アプリケーションのプログラムへ、ウェブページを特定するためのURL(Uniform Resource Locator)等の情報を受け渡すことにより、両プログラムを連携させ、ウェブページの印刷を可能にすることができる。URL等の受け渡しには、テキストファイルを用いることができる。また、メモ帳などの、テキストファイルを作成するための通常アプリケーションのプログラムから、印刷データを生成するための通常アプリケーションのプログラムへ、文章データのテキストファイルを受け渡すことにより、両プログラムを連携させ、文章データの印刷を可能にすることができる。   By passing information such as a URL (Uniform Resource Locator) for specifying a web page from a web control program to a normal application program for generating print data, both programs are linked to each other. Printing can be enabled. A text file can be used for delivery of a URL or the like. In addition, by transferring the text data text file from the normal application program for creating a text file, such as Notepad, to the normal application program for generating print data, both programs are linked. Text data can be printed.

しかし、印刷データを生成するための通常アプリケーションのプログラムにとっては、テキストファイルを作成するための通常アプリケーションのプログラムおよびWEB制御のプログラムの両方から、テキストファイルが受け渡されることになる。すると、印刷データを生成するための通常アプリケーションのプログラムが、URL等を含まない文章データのテキストファイルに基づいてウェブページへアクセスしてしまう事態が発生し、この場合にはアクセスエラーが発生することになる。本明細書では、このような不便性を解消することができる技術を提供する。   However, for a normal application program for generating print data, the text file is transferred from both the normal application program for creating the text file and the WEB control program. Then, a normal application program for generating print data may access a web page based on a text data text file that does not include a URL. In this case, an access error occurs. become. In this specification, the technique which can eliminate such inconvenience is provided.

本目的を達成するための、本願の端末装置は、プログラムを読み取ることで各手段として機能するコンピュータと、通信手段と、表示手段と、を備える。また、本願の端末装置は、コンピュータを、通信手段を介してウェブサーバにアクセスしてウェブページを表示手段に表示し、コンピュータが他のプログラムを読み取り機能する手段とデータを共有する旨の入力を受け付けることに応じて、アクセスしているウェブページを特定する特定情報を含んだ第1データを生成してテキストファイルとして出力する表示制御手段として機能させるブラウザプログラムを備える。また、本願の端末装置は、コンピュータを、任意の文字列を含む第2データを生成し、コンピュータが他のプログラムを読み取り機能する手段とデータを共有する旨の入力を受け付けることに応じて、生成した第2データをテキストファイルとして出力するテキストデータ生成手段として機能させるテキスト編集プログラムを備える。また、本願の印刷データ生成プログラムは、コンピュータを、表示制御手段から出力されたテキストファイル、および、テキストデータ生成手段から出力されたテキストファイルを受け取り、受け取ったテキストファイルに特定情報が含まれているか否かを判断し、特定情報がテキストファイルに含まれていると判断される場合に、当該特定情報に対応するウェブページに通信手段を介してアクセスして、ウェブページに対応する印刷データを生成する第1処理を実行する一方で、特定情報がテキストファイルに含まれていないと判断される場合に、第1処理とは異なる第2処理を実行する、印刷データ生成手段として機能させる。   In order to achieve this object, a terminal device of the present application includes a computer that functions as each unit by reading a program, a communication unit, and a display unit. In addition, the terminal device of the present application accesses the web server via the communication means, displays the web page on the display means, and inputs that the computer shares data with the means for reading other programs. A browser program is provided that functions as display control means for generating first data including specific information for specifying a web page being accessed and outputting the first data as a text file in response to reception. Further, the terminal device of the present application generates a second data including an arbitrary character string, and generates a computer in response to receiving an input indicating that the computer shares data with a means for reading another program. A text editing program that functions as text data generation means for outputting the second data as a text file. In the print data generation program of the present application, the computer receives the text file output from the display control unit and the text file output from the text data generation unit, and whether the received text file includes specific information. If it is determined that the specific information is included in the text file, the web page corresponding to the specific information is accessed via the communication means to generate print data corresponding to the web page. In the meantime, when it is determined that the specific information is not included in the text file, the first process is executed, and the second process different from the first process is executed.

端末装置の一例としては、携帯電話やノートパソコンなどが挙げられる。端末装置に備えられるコンピュータの一例としては、CPU(Central Processing Unit)が挙げられる。コンピュータは、プログラムを読み取ることで、表示制御手段、テキストデータ生成手段、印刷データ生成手段などの各手段として機能する。表示手段の一例としては、液晶パネルが挙げられる。他の手段とデータを共有する旨の入力は、例えば、ユーザによって行われるとしてもよい。ウェブページを特定する特定情報の一例としては、URL(Uniform Resource Locator)が挙げられる。第1データは、特定情報とその他の情報の両方を含んでいても良いし、特定情報のみを含んでいても良い。テキストファイルは、文字など文字コードによって表されるデータだけが含まれるファイルである。第2データに含まれる任意の文字列の一例としては、文章データが挙げられる。   Examples of terminal devices include mobile phones and notebook computers. An example of a computer provided in the terminal device is a CPU (Central Processing Unit). The computer functions as each unit such as a display control unit, a text data generation unit, and a print data generation unit by reading the program. An example of the display means is a liquid crystal panel. The input to share data with other means may be performed by the user, for example. An example of identification information for identifying a web page is a URL (Uniform Resource Locator). The first data may include both specific information and other information, or may include only specific information. A text file is a file containing only data represented by character codes such as characters. An example of an arbitrary character string included in the second data is sentence data.

印刷データ生成手段は、受け取ったテキストファイルに、特定情報が含まれているか否かを判断する。そして、特定情報がテキストファイルに含まれていると判断される場合に、当該特定情報に対応するウェブページにアクセスする。これにより、URL等を含まない文章データのテキストファイルに基づいてウェブページへアクセスしてしまう事態を防止できる。よって、確実にウェブページにアクセスし、ウェブページに対応する印刷データを生成することが可能となる。   The print data generation unit determines whether or not the specific information is included in the received text file. When it is determined that the specific information is included in the text file, the web page corresponding to the specific information is accessed. Thereby, the situation which accesses a web page based on the text file of the text data which does not contain URL etc. can be prevented. Therefore, it is possible to reliably access the web page and generate print data corresponding to the web page.

また、本願に記載のプログラムにおいて、データ管理手段の一例としては、OS(Operating System)が挙げられる。また、印刷データ生成手段が、受取可能なデータの種類がテキストファイルである旨をデータ管理手段へ入力する方法の一例としては、コンピュータを印刷データ生成手段として機能させるプログラム中に、テキストファイルを受け取り可能である旨を記述したマークアップ言語を埋め込んでおく方法が挙げられる。また、マークアップ言語の一例としては、XML(Extensible Markup Language)が挙げられる。これにより、データ管理手段は、印刷データ生成手段がテキストファイルを受け取り可能であることを認識することができる。よって、データ管理手段が、表示制御手段およびテキストデータ生成手段から出力されたテキストファイルを、印刷データ生成手段へ入力することができる。以上より、表示制御手段と印刷データ生成手段とを連携させることや、テキストデータ生成手段と印刷データ生成手段とを連携させることが可能となる。   In the program described in the present application, an example of data management means is an OS (Operating System). As an example of a method for the print data generation means to input to the data management means that the type of data that can be received is a text file, a text file is received in a program that causes a computer to function as the print data generation means. There is a method of embedding a markup language describing that it is possible. An example of the markup language is XML (Extensible Markup Language). As a result, the data management unit can recognize that the print data generation unit can receive the text file. Therefore, the data management unit can input the text file output from the display control unit and the text data generation unit to the print data generation unit. As described above, it is possible to link the display control unit and the print data generation unit, and link the text data generation unit and the print data generation unit.

また、本願に記載のプログラムにおいて、テキストファイルが特定情報を含んでいると判断される場合に、判断手段によってテキストファイルの出力元が表示制御手段であると判断される場合には、当該テキストファイルは、表示制御手段がアクセスしているウェブページを特定する特定情報を印刷データ生成手段へ受け渡すためのテキストファイルであると判断できる。よって、第1処理を実行することで、ウェブページに対応する印刷データを生成することが可能となる。一方、テキストファイルが特定情報を含んでいると判断される場合に、判断手段によってテキストファイルの出力元が表示制御手段ではないと判断される場合には、当該テキストファイルは、任意の文字列を含む第2データであり、文章データ中にウェブページを特定する特定情報が記載されているに過ぎないと判断できる。よって、テキストファイルに基づいて印刷データを生成することで、第2データを印刷することができる。これにより、意図しないウェブページにアクセスしてしまう事態を防止できる。   Further, in the program described in the present application, when it is determined that the text file includes specific information, when the determination unit determines that the output source of the text file is the display control unit, the text file Can be determined to be a text file for transferring specific information for specifying the web page accessed by the display control means to the print data generation means. Therefore, by executing the first process, it is possible to generate print data corresponding to the web page. On the other hand, when it is determined that the text file contains specific information, and the determination means determines that the output source of the text file is not the display control means, the text file contains an arbitrary character string. It can be determined that the second data includes only specific information for specifying the web page in the text data. Therefore, the second data can be printed by generating the print data based on the text file. Thereby, it is possible to prevent a situation where an unintended web page is accessed.

また、本願に記載のプログラムにおいて、改行コードは、テキストファイル中で改行を意味する文字コードである。特定情報は改行する必要がないため、特定情報のテキストファイルには改行コードが含まれない。一方、特定情報以外のデータでは改行する場合があるため、特定情報以外のデータのテキストファイルには改行コードが含まれている場合がある。これにより、改行コードの有無によって、テキストファイルの出力元が表示制御手段であるか否かを判断することができる。よって、ウェブページにアクセスする必要がある場合を判断できるため、意図しないウェブページにアクセスしてしまう事態や、ウェブページのアクセスを失敗してしまう事態を防止できる。   In the program described in the present application, the line feed code is a character code meaning a line feed in the text file. Since the specific information does not need to have a line break, the text file of the specific information does not include a line feed code. On the other hand, since data other than the specific information may have a line break, the text file of the data other than the specific information may include a line feed code. Thereby, it is possible to determine whether or not the output source of the text file is the display control means based on the presence or absence of the line feed code. Therefore, since it is possible to determine when it is necessary to access the web page, it is possible to prevent a situation in which an unintended web page is accessed or a situation in which access to the web page fails.

また、本願に記載のプログラムにおいて、印刷データ生成手段がテキストファイルを受け取った処理の直前の処理が表示制御手段で行われている場合には、表示制御手段で行われた処理は、特定情報を含んだ第1データを生成してテキストファイルとして出力する処理であると推定できる。よって、テキストファイルの出力元が表示制御手段であると判断することが可能となる。これにより、ウェブページにアクセスする必要の有無を判断することができる。   In the program described in the present application, when the process immediately before the process in which the print data generating unit receives the text file is performed by the display control unit, the process performed by the display control unit It can be estimated that it is the process which produces | generates the 1st data containing and outputs it as a text file. Therefore, it is possible to determine that the output source of the text file is the display control means. Thereby, it is possible to determine whether or not it is necessary to access the web page.

また、本願に記載のプログラムにおいて、特定情報がテキストファイルに含まれていない場合には、ウェブページにアクセスすることができない。よって、印刷データ生成手段は、ウェブページに対応する印刷データを生成することが出来ない旨を表示手段に表示することで、ユーザに報知する。そして、印刷データ生成手段は、ウェブページへのアクセス動作を行わない。これにより、ウェブページへの無駄なアクセス動作が行われてしまう事態を防止することができる。   Further, in the program described in the present application, when the specific information is not included in the text file, the web page cannot be accessed. Therefore, the print data generation means notifies the user by displaying on the display means that the print data corresponding to the web page cannot be generated. The print data generation unit does not perform an access operation to the web page. Thereby, the situation where the useless access operation to a web page is performed can be prevented.

通信システム1のブロック図である。1 is a block diagram of a communication system 1. FIG. ブラウザアプリケーションの動作フローチャートを示す図である。It is a figure which shows the operation | movement flowchart of a browser application. テキスト編集アプリケーションの動作フローチャートを示す図である。It is a figure which shows the operation | movement flowchart of a text editing application. 印刷アプリケーションの動作フローチャートを示す図である。It is a figure which shows the operation | movement flowchart of a printing application. パネルの表示例を示す図である。It is a figure which shows the example of a display of a panel.

図1に、本願に係る実施形態として例示される通信システム1のブロック図を示す。通信システム1は、携帯電話10、MFP(Multifunction Peripheral)51、アクセスポイント62、ウェブサーバ71、基地局61を備える。MFP51は、プリンタ機能、スキャナ機能、コピー機能、ファクシミリ機能などを備える多機能周辺装置である。アクセスポイント62は、既知の中継装置である。ウェブサーバ71は、インターネット70を介して基地局61に接続される。   FIG. 1 shows a block diagram of a communication system 1 exemplified as an embodiment according to the present application. The communication system 1 includes a mobile phone 10, an MFP (Multifunction Peripheral) 51, an access point 62, a web server 71, and a base station 61. The MFP 51 is a multifunction peripheral device having a printer function, a scanner function, a copy function, a facsimile function, and the like. The access point 62 is a known relay device. The web server 71 is connected to the base station 61 via the Internet 70.

携帯電話10とアクセスポイント62とは、インフラストラクチャーモードの無線LAN接続方式により、無線通信200を行うことが可能とされている。また、MFP51とアクセスポイント62とは、インフラストラクチャーモードの無線LAN接続方式により、無線通信201を行うことが可能とされている。なお、無線通信200および201の方式の例としては、例えばIEEE802.11a/b/gの規格で定められる通信方式が挙げられる。また、携帯電話10とウェブサーバ71とは、基地局61およびインターネット70を介して通信可能に接続されている。   The mobile phone 10 and the access point 62 can perform the wireless communication 200 by the infrastructure mode wireless LAN connection method. In addition, the MFP 51 and the access point 62 can perform wireless communication 201 by an infrastructure mode wireless LAN connection method. Note that examples of the wireless communication 200 and 201 systems include communication systems defined by the IEEE 802.11a / b / g standard, for example. The mobile phone 10 and the web server 71 are communicably connected via the base station 61 and the Internet 70.

携帯電話10の構成について説明する。携帯電話10は、CPU11、記憶部12、無線LAN送受信部15、無線LANアンテナ部16、ボタン入力部17、パネル18、携帯電話送受信部22、携帯電話アンテナ部23、カメラ部27、を主に備えている。   The configuration of the mobile phone 10 will be described. The cellular phone 10 mainly includes a CPU 11, a storage unit 12, a wireless LAN transceiver unit 15, a wireless LAN antenna unit 16, a button input unit 17, a panel 18, a cellular phone transceiver unit 22, a cellular phone antenna unit 23, and a camera unit 27. I have.

CPU11は、記憶部12に記憶されるプログラムや、無線LAN送受信部15を介して送受信される各種信号などに従って、各機能の制御を行う。なお、記憶部12は、RAM(Random Access Memory)、ROM(Read Only Memory)、フラッシュメモリ、HDD(ハードディスク)などが組み合わされて構成されているとしてもよい。   The CPU 11 controls each function according to a program stored in the storage unit 12 and various signals transmitted / received via the wireless LAN transmission / reception unit 15. The storage unit 12 may be configured by combining a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, an HDD (hard disk), and the like.

無線LAN送受信部15は、無線LANアンテナ部16を介して、インフラストラクチャーモードの無線通信200を行う。そして、無線LAN送受信部15により、各種のデータを構成するデジタル信号が送受信される。また、携帯電話送受信部22は、携帯電話アンテナ部23を介して、基地局61との間で無線通信210を行う。ボタン入力部17は、携帯電話10の各機能を実行するためのキーである。ボタン入力部17は、タッチパネルとして、パネル18と一体に構成されていてもよい。パネル18は、携帯電話10の各種機能情報を表示する。   The wireless LAN transmission / reception unit 15 performs infrastructure mode wireless communication 200 via the wireless LAN antenna unit 16. The wireless LAN transmission / reception unit 15 transmits / receives digital signals constituting various data. In addition, the mobile phone transmission / reception unit 22 performs wireless communication 210 with the base station 61 via the mobile phone antenna unit 23. The button input unit 17 is a key for executing each function of the mobile phone 10. The button input unit 17 may be configured integrally with the panel 18 as a touch panel. The panel 18 displays various function information of the mobile phone 10.

記憶部12は、プログラム21を記憶する。CPU11は、記憶部12内のプログラム21に従って処理を実行する。プログラム21は、印刷アプリケーション21a、ブラウザアプリケーション21b、テキスト編集アプリケーション21c、メールアプリケーション21d、オペレーティングシステム21eを含む。   The storage unit 12 stores a program 21. The CPU 11 executes processing according to the program 21 in the storage unit 12. The program 21 includes a print application 21a, a browser application 21b, a text editing application 21c, a mail application 21d, and an operating system 21e.

印刷アプリケーション21aは、携帯電話10からMFP51に印刷処理などを実行させるためのアプリケーションである。ブラウザアプリケーション21bは、ウェブデータをパネル18に表示させるためのアプリケーションである。CPU11は、ブラウザアプリケーション21bに従って処理を実行することによって、ウェブサーバ71からウェブデータを取得すること、ウェブデータを記憶部12に記憶させること、及び、記憶部12内のウェブデータによって表される画像をパネル18に表示させること、を実行可能である。テキスト編集アプリケーション21cは、文字情報(テキスト)のみのファイル、すなわちテキストファイルを作成、編集、保存するためのアプリケーションである。メールアプリケーション21dは、無線通信210を介してメールを送信するためのアプリケーションである。   The print application 21a is an application for causing the MFP 51 to execute print processing from the mobile phone 10. The browser application 21 b is an application for displaying web data on the panel 18. The CPU 11 executes processing according to the browser application 21b, thereby acquiring web data from the web server 71, storing the web data in the storage unit 12, and an image represented by the web data in the storage unit 12. Can be displayed on the panel 18. The text editing application 21c is an application for creating, editing, and saving a file containing only character information (text), that is, a text file. The mail application 21 d is an application for transmitting mail via the wireless communication 210.

オペレーティングシステム21eは、印刷アプリケーション21aないしメールアプリケーション21dに共通して利用される基本的な機能を提供するプログラムである。またオペレーティングシステム21eは、印刷アプリケーション21aないしメールアプリケーション21dの各々の間での、データの受け渡しを管理する。例として、印刷アプリケーション21aへのデータ受け渡しの管理方法を説明する。印刷アプリケーション21aは、印刷アプリケーション21a自身が受取可能なデータの種類がテキストファイルである旨を、オペレーティングシステム21eへ入力する。この入力は、印刷アプリケーション21aのプログラム中に、テキストファイルを受け取り可能である旨を記述したマークアップ言語を埋め込んでおくことで行われる。また、マークアップ言語の一例としては、XML(Extensible Markup Language)が挙げられる。オペレーティングシステム21eは、印刷アプリケーション21aのマークアップ言語を解釈し、印刷アプリケーション21aがテキストファイルを受け取り可能であることを認識する。これにより、オペレーティングシステム21eは、ブラウザアプリケーション21bおよびテキスト編集アプリケーション21cから出力されたテキストファイルを、印刷アプリケーション21aへ入力することができる。以上より、ブラウザアプリケーション21bと印刷アプリケーション21aとを連携させることや、テキスト編集アプリケーション21cと印刷アプリケーション21aとを連携させることが可能となる。   The operating system 21e is a program that provides basic functions that are commonly used by the print application 21a or the mail application 21d. The operating system 21e manages data exchange between the print application 21a and the mail application 21d. As an example, a method for managing data transfer to the print application 21a will be described. The print application 21a inputs to the operating system 21e that the type of data that can be received by the print application 21a itself is a text file. This input is performed by embedding a markup language describing that the text file can be received in the program of the printing application 21a. An example of the markup language is XML (Extensible Markup Language). The operating system 21e interprets the markup language of the print application 21a and recognizes that the print application 21a can receive the text file. Accordingly, the operating system 21e can input the text file output from the browser application 21b and the text editing application 21c to the printing application 21a. As described above, the browser application 21b and the print application 21a can be linked, and the text editing application 21c and the print application 21a can be linked.

ウェブサーバ71の構成について説明する。ウェブサーバ71は、CPU72、記憶部73、通信部74、を主に備えている。ウェブサーバ71は、ネットワークにおいて、クライアント装置に対し、自身の保持しているウェブデータや各種機能を提供する装置である。CPU72は、各機能の制御を行う。記憶部73は、各種のウェブデータを記憶する。通信部74は、様々な情報を携帯電話10との間で通信する。   The configuration of the web server 71 will be described. The web server 71 mainly includes a CPU 72, a storage unit 73, and a communication unit 74. The web server 71 is a device that provides web data and various functions held by itself to a client device in a network. The CPU 72 controls each function. The storage unit 73 stores various web data. The communication unit 74 communicates various information with the mobile phone 10.

本実施形態に係る通信システム1の動作を、図2ないし図5を用いて説明する。図2を用いて、ブラウザアプリケーション21bから印刷アプリケーション21aへデータ共有を行わせる操作を説明する。ユーザが、ボタン入力部17を介してウェブブラウザ32bを起動させる操作を入力すると、CPU11は、ウェブブラウザ32bを起動する。S11において、CPU11は、ユーザによって指定されたURL(Uniform Resource Locator)で特定されるウェブデータを、ウェブサーバ71から取得する。CPU11は、取得されたウェブデータを、記憶部12に記憶させる。次に、CPU11は、ウェブデータによって表される画像を、パネル18に表示させる。この結果、図5に示すように、ウェブブラウザ画像501がパネル18に表示される。また、パネル18には、データ共有ボタン502が表示される。データ共有ボタン502は、ブラウザアプリケーション21bと他のアプリケーションとの間で、データを共有する旨のデータ共有命令を入力するボタンである。   The operation of the communication system 1 according to the present embodiment will be described with reference to FIGS. An operation for sharing data from the browser application 21b to the print application 21a will be described with reference to FIG. When the user inputs an operation for starting the web browser 32b via the button input unit 17, the CPU 11 starts the web browser 32b. In S <b> 11, the CPU 11 acquires web data specified by a URL (Uniform Resource Locator) designated by the user from the web server 71. The CPU 11 stores the acquired web data in the storage unit 12. Next, the CPU 11 causes the panel 18 to display an image represented by the web data. As a result, the web browser image 501 is displayed on the panel 18 as shown in FIG. In addition, a data sharing button 502 is displayed on the panel 18. The data sharing button 502 is a button for inputting a data sharing command for sharing data between the browser application 21b and another application.

S13において、CPU11は、ユーザによってデータ共有命令が入力されたか否かを判断する。具体的には、データ共有ボタン502がユーザによってタッチされたか否かを判断する。入力されていない場合(S13:NO)にはS11へ戻る。一方、入力された場合(S13:YES)には、CPU11は、データ共有先のアプリケーションの候補一覧をパネル18に表示する。本実施形態では、図5に示すように、印刷アプリケーション21aを選択するボタン511、テキスト編集アプリケーション21cを選択するボタン512、メールアプリケーション21dを選択するボタン513が、データ共有ボタン502に代えて表示される。   In S13, the CPU 11 determines whether or not a data sharing command is input by the user. Specifically, it is determined whether or not the data sharing button 502 has been touched by the user. If it is not input (S13: NO), the process returns to S11. On the other hand, if it is input (S13: YES), the CPU 11 displays a candidate list of data sharing destination applications on the panel 18. In this embodiment, as shown in FIG. 5, a button 511 for selecting the print application 21a, a button 512 for selecting the text editing application 21c, and a button 513 for selecting the mail application 21d are displayed instead of the data sharing button 502. The

S15において、CPU11は、URLデータを共有するアプリケーションとして、何れかのアプリケーションが選択されたか否かを判断する。具体的には、ボタン511がユーザによってタッチされたか否かを判断する。何れのアプリケーションも選択されない場合(S15:NO)には、S15へ戻り待機する。一方、何れかのアプリケーションが選択された場合(S15:YES)には、S17へ進む。S17において、CPU11は、ウェブブラウザ画像501として表示されているウェブページにアクセスするためのURLを、テキストファイルで出力する。そしてフローを終了する。テキストファイルは、URL(例えば、http://www.○○.com)のみを含んでいても良い。またテキストファイルは、URLに加えて、その他の情報(例えば、タイトル情報など)を含んでいても良い。   In S15, the CPU 11 determines whether any application is selected as an application that shares URL data. Specifically, it is determined whether or not the button 511 is touched by the user. If no application is selected (S15: NO), the process returns to S15 and waits. On the other hand, if any application is selected (S15: YES), the process proceeds to S17. In S <b> 17, the CPU 11 outputs the URL for accessing the web page displayed as the web browser image 501 as a text file. Then, the flow ends. The text file may include only a URL (for example, http://www.OO.com). In addition to the URL, the text file may include other information (for example, title information).

次に、図3を用いて、テキスト編集アプリケーション21cから印刷アプリケーション21aへデータ共有を行わせる操作を説明する。ユーザが、ボタン入力部17を介してテキスト編集アプリケーション21cを起動させる操作を入力すると、CPU11は、テキスト編集アプリケーション21cを起動する。S51において、CPU11は、ユーザによるボタン入力部17の操作を受け付け、文章データを編集する。   Next, an operation for sharing data from the text editing application 21c to the printing application 21a will be described with reference to FIG. When the user inputs an operation for starting the text editing application 21c via the button input unit 17, the CPU 11 starts the text editing application 21c. In S51, the CPU 11 accepts an operation of the button input unit 17 by the user and edits the text data.

S53において、CPU11は、ユーザによってデータ共有命令が入力されたか否かを判断する。入力されていない場合(S53:NO)にはS51へ戻る。一方、入力された場合(S53:YES)には、CPU11は、データ共有先のアプリケーションの候補一覧をパネル18に表示する。   In S53, the CPU 11 determines whether or not a data sharing command is input by the user. If it is not input (S53: NO), the process returns to S51. On the other hand, if it is input (S53: YES), the CPU 11 displays a candidate list of data sharing destination applications on the panel 18.

S55において、CPU11は、文章データを共有するアプリケーションとして、何れかのアプリケーションが選択されたか否かを判断する。何れのアプリケーションも選択されない場合(S55:NO)には、S55へ戻り待機する。一方、何れかのアプリケーションが選択された場合(S55:YES)には、S57へ進む。S57において、CPU11は、文章データをテキストファイルで出力する。そしてフローを終了する。なお、文章データのテキストファイルは、URLを含んでいても良い。   In S55, the CPU 11 determines whether any application is selected as an application for sharing text data. If no application is selected (S55: NO), the process returns to S55 and waits. On the other hand, if any application is selected (S55: YES), the process proceeds to S57. In S57, the CPU 11 outputs the sentence data as a text file. Then, the flow ends. Note that the text data text file may include a URL.

図4を用いて、他のアプリケーションからテキストファイルが受け渡される場合における、印刷アプリケーション21aの動作を説明する。S101において、CPU11は、他のアプリケーションからデータが受け渡されたか否かを判断する。例えば、携帯電話10がアンドロイド(登録商標)と呼ばれる携帯電話向けのプラットフォームを使用している場合には、Intentと呼ばれる、アプリケーション間でデータの受け渡しをするオブジェクトが受け渡されたか否かを判断する。データが受け渡されていない場合(S101:NO)には、フローを終了する。一方、データが受け渡された場合(S101:YES)にはS103へ進む。   The operation of the print application 21a when a text file is transferred from another application will be described with reference to FIG. In S101, the CPU 11 determines whether data is transferred from another application. For example, when the mobile phone 10 uses a platform for mobile phones called Android (registered trademark), it is determined whether or not an object called Intent that passes data between applications is passed. . If no data has been transferred (S101: NO), the flow ends. On the other hand, if the data has been delivered (S101: YES), the process proceeds to S103.

S103において、CPU11は、他のアプリケーションから受け渡されたデータが、テキストファイルであるか否かを判断する。受け渡されたデータがテキストファイルでない場合(S103:NO)にはS105へ進み、CPU11は、受け渡されたデータの形式に応じた処理を実行する。例えば、JPEG(Joint Photographic Experts Group)形式の画像データが受け渡された場合には、当該画像データをパネル18に表示する処理や、画像データをMFP51に印刷させる処理などを実行する。一方、受け渡されたデータがテキストファイルである場合(S103:YES)には、S107へ進む。   In S103, the CPU 11 determines whether or not the data transferred from another application is a text file. If the transferred data is not a text file (S103: NO), the process proceeds to S105, and the CPU 11 executes processing according to the format of the transferred data. For example, when image data in JPEG (Joint Photographic Experts Group) format is delivered, a process for displaying the image data on the panel 18 or a process for causing the MFP 51 to print the image data is executed. On the other hand, when the transferred data is a text file (S103: YES), the process proceeds to S107.

S107において、CPU11は、受け渡されたテキストファイルに、URLの文字列が含まれているか否かを判断する。URLの文字列が含まれている場合(S107:YES)には、S111へ進む。   In S107, the CPU 11 determines whether or not the passed text file includes a URL character string. When the URL character string is included (S107: YES), the process proceeds to S111.

S111において、CPU11は、テキストファイルがブラウザアプリケーション21bから出力されたか否かを判断する。当該判断は、テキストファイルに改行コードが含まれているか否かを検索することで行うことができる。改行コードは、テキストファイル中での改行を意味する文字コードである。また、ブラウザアプリケーション21bは、URLをテキストファイルで出力する。URLは改行する必要がないため、ブラウザアプリケーション21bから出力されるテキストファイルには改行コードが含まれない。一方、文章データなどのURL以外のデータでは、改行する場合があるため、ブラウザアプリケーション21b以外のアプリケーションから出力されるテキストファイルには、改行コードが含まれている場合がある。よって、テキストファイルに改行コードが含まれていない場合には、テキストファイルの出力元がブラウザアプリケーション21bであると判断することができる。一方、テキストファイルに改行コードが含まれている場合には、テキストファイルの出力元は、ブラウザアプリケーション21bではないと判断することができる。   In S111, the CPU 11 determines whether or not a text file has been output from the browser application 21b. This determination can be made by searching whether or not a line feed code is included in the text file. The line feed code is a character code that means a line feed in the text file. The browser application 21b outputs the URL as a text file. Since the URL need not be broken, the text file output from the browser application 21b does not include a line feed code. On the other hand, since data other than URL, such as text data, may break a line, a text file output from an application other than the browser application 21b may include a line feed code. Therefore, when the line feed code is not included in the text file, it can be determined that the output source of the text file is the browser application 21b. On the other hand, when the line feed code is included in the text file, it can be determined that the output source of the text file is not the browser application 21b.

テキストファイルがブラウザアプリケーション21bから出力されていないと判断された場合(S111:NO)には、S112へ進み、CPU11は、テキストファイルから印刷データを生成する。一方、テキストファイルがブラウザアプリケーション21bから出力されたと判断された場合(S111:YES)には、当該テキストファイルは、印刷対象のウェブページを特定するURLであると判断される。よって、S113へ進む。   If it is determined that the text file has not been output from the browser application 21b (S111: NO), the process proceeds to S112, and the CPU 11 generates print data from the text file. On the other hand, when it is determined that the text file is output from the browser application 21b (S111: YES), it is determined that the text file is a URL that identifies the web page to be printed. Therefore, it progresses to S113.

S113において、CPU11は、テキストファイル中のURLで特定されるウェブデータを、ウェブサーバ71から取得する。CPU11は、取得されたウェブデータを、記憶部12に記憶させる。   In S <b> 113, the CPU 11 acquires the web data specified by the URL in the text file from the web server 71. The CPU 11 stores the acquired web data in the storage unit 12.

S115において、CPU11は、ウェブデータから印刷データを生成する。印刷データを生成する処理の一例としては、印刷用紙のサイズに合わせてウェブデータを分割する処理や、解像度を変更する処理や、ポストスクリプト等のページ記述言語をヘッダ情報として付与する処理が挙げられる。   In S115, the CPU 11 generates print data from the web data. Examples of processing for generating print data include processing for dividing web data according to the size of the printing paper, processing for changing resolution, and processing for adding a page description language such as postscript as header information. .

S117においてCPU11は、生成した印刷データを、無線通信200および201を介してMFP51に送信する。MFP51は、携帯電話10から受信した印刷データを、印刷用紙に印刷する。   In S <b> 117, the CPU 11 transmits the generated print data to the MFP 51 via the wireless communication 200 and 201. The MFP 51 prints the print data received from the mobile phone 10 on a print sheet.

一方、S107において、受け渡されたテキストファイルにURLの文字列が含まれていない場合(S107:NO)には、S109へ進む。S109において、CPU11は、テキストファイルの内容が画像ファイルに関する情報であるか否かを判断する。画像ファイルに関する情報の一例としては、記憶部12に記憶されている画像ファイルの所在を表すパス情報や、画像ファイル名などが挙げられる。また、テキストファイルの内容が画像ファイルに関する情報であるか否かの判断方法の一例としては、テキストデータの最終文字列が、画像ファイルであることを示す拡張子(「.jpg」「.png」など)であるか否かを調べる方法が挙げられる。   On the other hand, when the URL text string is not included in the delivered text file in S107 (S107: NO), the process proceeds to S109. In S109, the CPU 11 determines whether or not the content of the text file is information regarding the image file. Examples of the information related to the image file include path information indicating the location of the image file stored in the storage unit 12 and the image file name. As an example of a method for determining whether or not the content of the text file is information on the image file, an extension (“.jpg” or “.png” indicating that the last character string of the text data is an image file). Or the like).

テキストファイルの内容が、画像ファイルに関する情報ではない場合(S109:NO)には、当該テキストファイルは文章ファイルであり、文章データ中にウェブページを特定するURLが記載されているに過ぎないと判断される。よってS112へ進み、CPU11は、文章データから印刷データを生成する。そしてS117に進み、CPU11は、印刷データを、無線通信200および201を介してMFP51に送信する。そしてMFP51は、URLを含んだ文章を印刷用紙に印刷する。   If the content of the text file is not information related to the image file (S109: NO), it is determined that the text file is a text file and the URL specifying the web page is only described in the text data. Is done. Accordingly, the process proceeds to S112, and the CPU 11 generates print data from the text data. In step S117, the CPU 11 transmits the print data to the MFP 51 via the wireless communication 200 and 201. Then, the MFP 51 prints the text including the URL on the printing paper.

一方、S109において、テキストファイルの内容が画像ファイルに関する情報である場合(S109:YES)には、S114へ進む。S114において、CPU11は、テキストファイルがパス情報である場合には、当該パス情報に基づいて、記憶部12内の画像ファイルを読み出す。また、テキストファイルが画像ファイル名である場合には、当該画像ファイル名を有するファイルを、記憶部12内から検索して読み出す。そして、読み出した画像ファイルから印刷データを形成する。なお、印刷データを生成する処理は、S115と同様であるため、ここでは詳細な説明を省略する。そしてS117に進み、CPU11は、印刷データを、無線通信200および201を介してMFP51に送信する。そしてMFP51は、画像ファイルを印刷用紙に印刷する。   On the other hand, when the content of the text file is information about the image file in S109 (S109: YES), the process proceeds to S114. In S <b> 114, when the text file is path information, the CPU 11 reads an image file in the storage unit 12 based on the path information. If the text file has an image file name, a file having the image file name is retrieved from the storage unit 12 and read out. Then, print data is formed from the read image file. Note that the process of generating print data is the same as that in S115, and thus detailed description thereof is omitted here. In step S117, the CPU 11 transmits the print data to the MFP 51 via the wireless communication 200 and 201. Then, the MFP 51 prints the image file on the printing paper.

本実施形態に係る印刷アプリケーション21aの効果を説明する。印刷アプリケーション21aは、受け取ったテキストファイルに、URL書式の文字列が含まれているか否かを判断する。そして、含まれていると判断される場合には、当該URLに対応するウェブページにアクセスする。これにより、URL等を含まない文章データのテキストファイルに基づいてウェブページへアクセスしてしまう事態を防止できる。よって、確実にウェブページにアクセスし、ウェブページに対応する印刷データを生成することが可能となる。   The effect of the print application 21a according to the present embodiment will be described. The print application 21a determines whether or not the received text file includes a character string in the URL format. And when it is judged that it is contained, the web page corresponding to the said URL is accessed. Thereby, the situation which accesses a web page based on the text file of the text data which does not contain URL etc. can be prevented. Therefore, it is possible to reliably access the web page and generate print data corresponding to the web page.

また、本願の印刷アプリケーション21aでは、テキストファイルの出力元がブラウザアプリケーション21bであるか否かを判断する。そして、ブラウザアプリケーション21bがテキストファイルを出力したと判断される場合に、当該テキストファイルに含まれるURLに基づいて、ウェブページにアクセスする。これにより、文章データのテキストファイルに基づいてウェブページへアクセスしてしまう事態を防止できる。   Further, the print application 21a of the present application determines whether or not the text file output source is the browser application 21b. When it is determined that the browser application 21b has output a text file, the web page is accessed based on the URL included in the text file. Thereby, the situation which accesses a web page based on the text file of sentence data can be prevented.

また、本願の印刷アプリケーション21aでは、テキストファイルがURLを含んでいると判断される場合に、テキストファイルの出力元がブラウザアプリケーション21bではないと判断される場合には、当該URLに基づいてウェブページにアクセスを実行しない。そして、テキストファイルに基づいて印刷データを生成する。これにより、文章データ中にウェブページを特定するURLが記載されているに過ぎない場合においても、当該URLに基づいてウェブページへアクセスしてしまう事態を防止できる。これにより、意図しないウェブページにアクセスしてしまう事態を防止できる。   In the printing application 21a of the present application, when it is determined that the text file includes a URL, when it is determined that the output source of the text file is not the browser application 21b, the web page is based on the URL. Do not access. Then, print data is generated based on the text file. Thereby, even when the URL specifying the web page is only described in the text data, it is possible to prevent the web page from being accessed based on the URL. Thereby, it is possible to prevent a situation where an unintended web page is accessed.

以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には、以上に例示した具体例を様々に変形、変更したものが含まれる。   Specific examples of the present invention have been described in detail above, but these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and changes of the specific examples illustrated above.

本実施形態では、S111において、テキストファイルがブラウザアプリケーション21bから出力されたか否かを判断する方法として、テキストファイル中の改行コードの有無を検索する方法を説明したが、この形態に限られない。オペレーティングシステム21eによって、当該判断が行われるとしてもよい。オペレーティングシステム21eは、印刷アプリケーション21aないしメールアプリケーション21dで行われるプロセスの実行履歴を管理している。そしてオペレーティングシステム21eは、印刷アプリケーション21aがテキストファイルを受け取る処理の直前に実行された処理が、何れのアプリケーションで行われたかを調査する。そして、直前の処理がブラウザアプリケーション21bで行われている場合には、当該処理によってテキストファイルが印刷アプリケーション21aに受け渡されたため、テキストファイルの出力元がブラウザアプリケーション21bであると判断することができる。   In the present embodiment, the method of searching for the presence / absence of a line feed code in the text file has been described as a method of determining whether or not the text file has been output from the browser application 21b in S111. The determination may be made by the operating system 21e. The operating system 21e manages an execution history of processes performed by the print application 21a or the mail application 21d. Then, the operating system 21e investigates in which application the process executed immediately before the print application 21a receives the text file is performed. When the immediately preceding process is performed by the browser application 21b, the text file is transferred to the print application 21a by the process, so that it can be determined that the output source of the text file is the browser application 21b. .

また、オペレーティングシステム21eは、印刷アプリケーション21aがテキストファイルを受け取った際に、他に起動中のアプリケーションが存在するか否かを調査するとしてもよい。調査の結果、ブラウザアプリケーション21bのみが起動中であった場合には、テキストファイルの出力元がブラウザアプリケーション21bであると判断することができる。   Further, the operating system 21e may investigate whether or not there are other active applications when the print application 21a receives the text file. If only the browser application 21b is activated as a result of the investigation, it can be determined that the output source of the text file is the browser application 21b.

また、本実施形態では、受け渡されたテキストファイルにURLの文字列が含まれていない場合には、S109において、テキストファイルの内容が画像ファイルに関する情報であるか否かを判断するとしたが、この形態に限られない。S109の処理に代えて、ウェブページに対応する印刷データを生成することが出来ない旨をパネル18に表示する、としてもよい。そして、印刷アプリケーション21aは、ウェブページへのアクセス動作を行わないとしてもよい。これにより、ウェブページにアクセスすることができないことを、ユーザに報知することができる。またこれにより、ウェブページへの無駄なアクセス動作が行われてしまう事態を防止することができる。   In the present embodiment, if the URL text string is not included in the delivered text file, it is determined in S109 whether or not the content of the text file is information related to the image file. It is not restricted to this form. Instead of the process of S109, it may be displayed on the panel 18 that the print data corresponding to the web page cannot be generated. The print application 21a may not perform an access operation to the web page. As a result, the user can be notified that the web page cannot be accessed. This can also prevent a situation in which a useless access operation to the web page is performed.

また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。   The technical elements described in this specification or the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technology illustrated in the present specification or the drawings achieves a plurality of objects at the same time, and has technical utility by achieving one of the objects.

なお、携帯電話10は端末装置の一例である。CPU11はコンピュータの一例である。携帯電話送受信部22および携帯電話アンテナ部23は通信手段の一例である。パネル18は表示手段の一例である。URLは特定情報の一例である。印刷アプリケーション21aは印刷データ生成プログラムの一例である。ブラウザアプリケーション21bはブラウザプログラムの一例である。テキスト編集アプリケーション21cはテキスト編集プログラムの一例である。オペレーティングシステム21eはデータ管理手段の一例である。   The mobile phone 10 is an example of a terminal device. The CPU 11 is an example of a computer. The mobile phone transmission / reception unit 22 and the mobile phone antenna unit 23 are examples of communication means. The panel 18 is an example of display means. The URL is an example of specific information. The print application 21a is an example of a print data generation program. The browser application 21b is an example of a browser program. The text editing application 21c is an example of a text editing program. The operating system 21e is an example of data management means.

また、S17を実行する制御部は表示制御手段の一例である。S57を実行する制御部はテキストデータ生成手段の一例である。S115、S112、S114を実行する制御部は印刷データ生成手段の一例である。S111を実行する制御部は判断手段の一例である。   Moreover, the control part which performs S17 is an example of a display control means. The control unit that executes S57 is an example of text data generation means. The control unit that executes S115, S112, and S114 is an example of a print data generation unit. The control unit that executes S111 is an example of a determination unit.

1:通信システム、10:携帯電話、11:CPU、12:記憶部、18:パネル、21a:印刷アプリケーション、21b:ブラウザアプリケーション、21c:テキスト編集アプリケーション、21d:メールアプリケーション、51:MFP、71:ウェブサーバ   1: communication system, 10: mobile phone, 11: CPU, 12: storage unit, 18: panel, 21a: printing application, 21b: browser application, 21c: text editing application, 21d: mail application, 51: MFP, 71: Web server

Claims (8)

プログラムを読み取ることで各手段として機能するコンピュータと、
通信手段と、
表示手段と、
前記コンピュータを、
前記通信手段を介してウェブサーバにアクセスしてウェブページを前記表示手段に表示し、前記コンピュータが他のプログラムを読み取り機能する手段とデータを共有する旨の入力を受け付けることに応じて、アクセスしている前記ウェブページを特定する特定情報を含んだ第1データを生成してテキストファイルとして出力する表示制御手段として機能させるブラウザプログラムと、
任意の文字列を含む第2データを生成し、前記コンピュータが他のプログラムを読み取り機能する手段とデータを共有する旨の入力を受け付けることに応じて、生成した前記第2データを前記テキストファイルとして出力するテキストデータ生成手段として機能させるテキスト編集プログラムと、
を備えた端末装置の前記コンピュータが読み取り可能なプログラムであって、
前記コンピュータを、前記表示制御手段から出力された前記テキストファイル、および、前記テキストデータ生成手段から出力された前記テキストファイルを受け取り、受け取った前記テキストファイルに前記特定情報が含まれているか否かを判断し、前記特定情報が前記テキストファイルに含まれていると判断される場合に、当該特定情報に対応する前記ウェブページに前記通信手段を介してアクセスして、前記ウェブページに対応する印刷データを生成する第1処理を実行する一方で、前記特定情報が前記テキストファイルに含まれていないと判断される場合に、前記第1処理とは異なる第2処理を実行する、印刷データ生成手段として機能させることを特徴とする印刷データ生成プログラム。
A computer that functions as each means by reading a program;
Communication means;
Display means;
The computer,
The web server is accessed via the communication means, the web page is displayed on the display means, and the computer is accessed in response to receiving an input indicating that the computer shares data with other means for reading and functioning. A browser program that functions as a display control unit that generates first data including specific information for specifying the web page and outputs the first data as a text file;
The second data including an arbitrary character string is generated, and the generated second data is used as the text file in response to receiving an input indicating that the computer shares data with a unit that reads and functions as another program. A text editing program that functions as a means for generating text data to be output;
A computer-readable program of a terminal device comprising:
The computer receives the text file output from the display control means and the text file output from the text data generation means, and determines whether the specific information is included in the received text file. When it is determined that the specific information is included in the text file, the web page corresponding to the specific information is accessed via the communication unit, and the print data corresponding to the web page is accessed. Print data generating means for executing a second process different from the first process when it is determined that the specific information is not included in the text file A print data generation program characterized by functioning.
前記コンピュータを、前記コンピュータがプログラムを読み取り機能する手段から、該手段が受け取り可能なデータの種類の入力を受け該種類を示す情報を管理するデータ管理手段としてさらに機能させ、
前記印刷データ生成手段は、前記受取可能なデータの種類はテキストファイルである旨を前記データ管理手段へ入力し、
前記データ管理手段は、前記表示制御手段および前記テキストデータ生成手段から出力された前記テキストファイルを、前記印刷データ生成手段へ入力することを特徴とする請求項1に記載の印刷データ生成プログラム。
The computer is further caused to function as data management means for receiving information indicating the type of data that can be received by the computer from means for reading the program of the computer,
The print data generation means inputs to the data management means that the type of receivable data is a text file,
The print data generation program according to claim 1, wherein the data management unit inputs the text file output from the display control unit and the text data generation unit to the print data generation unit.
前記コンピュータを、前記テキストファイルの出力元が前記表示制御手段であるか否かを判断する判断手段としてさらに機能させ、
前記印刷データ生成手段は、
前記テキストファイルが前記特定情報を含んでいると判断される場合に、前記判断手段によって前記テキストファイルの出力元が前記表示制御手段であると判断される場合には、前記第1処理を実行し、
前記テキストファイルが前記特定情報を含んでいると判断される場合に、前記判断手段によって前記テキストファイルの出力元が前記表示制御手段ではないと判断される場合には、前記テキストファイルに基づいて前記印刷データを生成することを特徴とする請求項1または2に記載の印刷データ生成プログラム。
Causing the computer to further function as a determination unit that determines whether the output source of the text file is the display control unit;
The print data generation means includes
When it is determined that the text file includes the specific information, the first process is executed when the determination unit determines that the output source of the text file is the display control unit. ,
When it is determined that the text file includes the specific information, when the output unit of the text file is determined not to be the display control unit by the determination unit, the text file is used to determine the text file. The print data generation program according to claim 1 or 2, wherein the print data is generated.
前記判断手段は、
前記テキストファイルに改行コードが含まれているか否かを検索し、
前記改行コードが含まれていない場合には前記テキストファイルの出力元が前記表示制御手段であると判断し、
前記改行コードが含まれている場合には前記テキストファイルの出力元が前記表示制御手段ではないと判断することを特徴とする請求項3に記載の印刷データ生成プログラム。
The determination means includes
Search whether the line feed code is included in the text file,
If the line feed code is not included, it is determined that the output source of the text file is the display control means,
4. The print data generation program according to claim 3, wherein if the line feed code is included, it is determined that the output source of the text file is not the display control means.
前記判断手段は、
前記表示制御手段、前記テキストデータ生成手段および前記印刷データ生成手段で行われる処理の順番を認識し、
前記印刷データ生成手段が前記テキストファイルを受け取った処理の直前の処理が、前記表示制御手段で行われている場合には、前記テキストファイルの出力元が前記表示制御手段であると判断することを特徴とする請求項3に記載の印刷データ生成プログラム。
The determination means includes
Recognizing the order of processing performed by the display control means, the text data generation means and the print data generation means;
Determining that the output source of the text file is the display control means when the process immediately before the process in which the print data generation means receives the text file is being performed by the display control means; The print data generation program according to claim 3, wherein:
前記印刷データ生成手段は、
前記特定情報が前記テキストファイルに含まれていないと判断される場合には、前記ウェブページに対応する印刷データを生成することが出来ない旨を前記表示手段に表示することを特徴とする請求項1ないし5の何れか1項に記載の印刷データ生成プログラム。
The print data generation means includes
The display means displays that the print data corresponding to the web page cannot be generated when it is determined that the specific information is not included in the text file. The print data generation program according to any one of 1 to 5.
通信手段と、
表示手段と、
前記通信手段を介してウェブサーバにアクセスしてウェブページを前記表示手段に表示し、他の手段とデータを共有する旨の入力を受け付けることに応じて、アクセスしている前記ウェブページを特定する特定情報を含んだ第1データを生成してテキストファイルとして出力する表示制御手段と、
任意の文字列を含む第2データを生成し、他の手段とデータを共有する旨の入力を受け付けることに応じて、生成した前記第2データを前記テキストファイルとして出力するテキストデータ生成手段と、
を備えた端末装置の制御方法であって、
前記表示制御手段から出力された前記テキストファイル、および、前記テキストデータ生成手段から出力された前記テキストファイルを受け取り、受け取った前記テキストファイルに前記特定情報が含まれているか否かを判断し、前記特定情報が前記テキストファイルに含まれていると判断される場合に、当該特定情報に対応する前記ウェブページに前記通信手段を介してアクセスして、前記ウェブページに対応する印刷データを生成する第1処理を実行する一方で、前記特定情報が前記テキストファイルに含まれていないと判断される場合に、前記第1処理とは異なる第2処理を実行する、印刷データ生成手段を備えることを特徴とする端末装置の制御方法。
Communication means;
Display means;
A web server is accessed via the communication means, a web page is displayed on the display means, and the web page being accessed is specified in response to receiving an input to share data with other means Display control means for generating first data including specific information and outputting it as a text file;
Text data generating means for generating second data including an arbitrary character string and outputting the generated second data as the text file in response to receiving an input to share data with other means;
A terminal device control method comprising:
Receiving the text file output from the display control means and the text file output from the text data generating means, determining whether the specific information is included in the received text file; When it is determined that the specific information is included in the text file, the web page corresponding to the specific information is accessed via the communication unit to generate print data corresponding to the web page. A print data generation unit is provided that executes a second process different from the first process when it is determined that the specific information is not included in the text file while executing one process. A method for controlling the terminal device.
通信手段と、
表示手段と、
前記通信手段を介してウェブサーバにアクセスしてウェブページを前記表示手段に表示し、他の手段とデータを共有する旨の入力を受け付けることに応じて、アクセスしている前記ウェブページを特定する特定情報を含んだ第1データを生成してテキストファイルとして出力する表示制御手段と、
任意の文字列を含む第2データを生成し、他の手段とデータを共有する旨の入力を受け付けることに応じて、生成した前記第2データを前記テキストファイルとして出力するテキストデータ生成手段と、
前記表示制御手段から出力された前記テキストファイル、および、前記テキストデータ生成手段から出力された前記テキストファイルを受け取り、受け取った前記テキストファイルに前記特定情報が含まれているか否かを判断し、前記特定情報が前記テキストファイルに含まれていると判断される場合に、当該特定情報に対応する前記ウェブページに前記通信手段を介してアクセスして、前記ウェブページに対応する印刷データを生成する第1処理を実行する一方で、前記特定情報が前記テキストファイルに含まれていないと判断される場合に、前記第1処理とは異なる第2処理を実行する、印刷データ生成手段と、
を備えることを特徴とする端末装置。
Communication means;
Display means;
A web server is accessed via the communication means, a web page is displayed on the display means, and the web page being accessed is specified in response to receiving an input to share data with other means Display control means for generating first data including specific information and outputting it as a text file;
Text data generating means for generating second data including an arbitrary character string and outputting the generated second data as the text file in response to receiving an input to share data with other means;
Receiving the text file output from the display control means and the text file output from the text data generating means, determining whether the specific information is included in the received text file; When it is determined that the specific information is included in the text file, the web page corresponding to the specific information is accessed via the communication unit to generate print data corresponding to the web page. Print data generating means for executing a second process different from the first process when it is determined that the specific information is not included in the text file while executing one process;
A terminal device comprising:
JP2010192342A 2010-08-30 2010-08-30 Print data generation program, terminal device, and control method of terminal device Active JP5299386B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010192342A JP5299386B2 (en) 2010-08-30 2010-08-30 Print data generation program, terminal device, and control method of terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010192342A JP5299386B2 (en) 2010-08-30 2010-08-30 Print data generation program, terminal device, and control method of terminal device

Publications (2)

Publication Number Publication Date
JP2012048633A JP2012048633A (en) 2012-03-08
JP5299386B2 true JP5299386B2 (en) 2013-09-25

Family

ID=45903387

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010192342A Active JP5299386B2 (en) 2010-08-30 2010-08-30 Print data generation program, terminal device, and control method of terminal device

Country Status (1)

Country Link
JP (1) JP5299386B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6296813B2 (en) 2014-01-30 2018-03-20 キヤノン株式会社 Information processing terminal, information processing terminal control method, and program
US9258318B2 (en) * 2014-02-12 2016-02-09 Symantec Corporation Systems and methods for informing users about applications available for download
JP6628654B2 (en) 2016-03-18 2020-01-15 キヤノン株式会社 Information processing apparatus, print plug-in, print system, and control method
JP2019101884A (en) * 2017-12-05 2019-06-24 ソフトバンク株式会社 Portable terminal, communication device, control method of portable terminal, control program of portable terminal
JP7209204B2 (en) * 2018-03-30 2023-01-20 ブラザー工業株式会社 Program and information processing device
JP6786656B2 (en) * 2019-04-02 2020-11-18 キヤノン株式会社 Information processing terminal, control method and program of information processing terminal
JP6950066B2 (en) * 2019-12-03 2021-10-13 キヤノン株式会社 Programs, information processing devices and control methods
JP6776435B2 (en) * 2019-12-03 2020-10-28 キヤノン株式会社 Programs, information processing devices and control methods
JP7163348B2 (en) 2020-10-14 2022-10-31 キヤノン株式会社 System, information processing terminal, its control method and program, operating system.

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4532666B2 (en) * 2000-04-28 2010-08-25 キヤノン株式会社 Printing method, printing system, and storage medium
JP2003150523A (en) * 2001-07-23 2003-05-23 Canon Inc Communication device, its control method, and e-mail system

Also Published As

Publication number Publication date
JP2012048633A (en) 2012-03-08

Similar Documents

Publication Publication Date Title
JP5299386B2 (en) Print data generation program, terminal device, and control method of terminal device
US9699332B2 (en) Information providing apparatus, terminal device, information providing system, and computer readable medium
JP2017097751A (en) program
US9671983B2 (en) Technique for information processing device and printer which are capable of changing status information in server
US20120250081A1 (en) Terminal Device and Method for Controlling the Same
US10848629B2 (en) Image processing apparatus, image processing system, image processing method, and web browser program
JP6451053B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
JP5838795B2 (en) Print data generation program, terminal device, and control method of terminal device
JP2023053961A (en) System and control method
US11747955B2 (en) Information processing device and recording system
US20140055813A1 (en) Apparatus and method of forming an image, terminal and method of controlling printing, and computer-readable recording medium
JP2014006926A (en) Service processing system
US9591092B2 (en) Relaying device, image processing device, and system comprising image processing device, relaying device and service server
US11226779B2 (en) Printing system and control method
WO2010128339A2 (en) Method and apparatus for printing from a mobile device
JP6476685B2 (en) INFORMATION PROCESSING DEVICE, INFORMATION PROCESSING SYSTEM, DISPLAY DEVICE, AND PROGRAM
JP5900013B2 (en) Information processing apparatus, file processing method, and program
JP2013045185A (en) Print system, print device, portable terminal device, print method, and print program
JP5939336B2 (en) Information processing apparatus, information processing system, information processing method, and program
JP7305385B2 (en) Terminal device, control method and program
JP2007088755A (en) Network print system
JP7171256B2 (en) Communication system, control method and program
JP6544163B2 (en) Mobile terminal and program
US11422761B2 (en) Image forming apparatus changing printing orders according to strength of a wireless communication signal
JP7423278B2 (en) Terminal device, control method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120827

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130410

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130521

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130603

R150 Certificate of patent or registration of utility model

Ref document number: 5299386

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150