The present invention relates to a data processing system, a data embedding device and a data embedding program, and more particularly, is suitably used in a system for performing a data processing to embed, into a document created by a specific application, data created by another application.
Conventionally, there is known the technique for embedding, into a document created by a specific application, data created by another application. For example, it is possible to embed a chart or a graph created in spreadsheet software into a document created in document creating software, presentation software or the like. An add-in method is generally used for such data embedding.
There is published the technique for embedding a line graph of a measured value to create a report file for presentation software (for example, see Patent Document 1). Referring to the automatic report system described in the Patent Document 1, after measured value to be output by a measuring apparatus is stored in a database, a table tilled out with a measured value in time order or a line graph indicative of a time change in a measured value is embedded in a document file to be opened in spreadsheet software or the like so that a report file is created.
As described above, the operation for embedding, into a document created by a specific application, data created by another application is generally implemented by an add-in function. For this reason, there is a problem in that it is necessary to previously incorporate a small program for add-in into an application of a document which should be subjected to embedding.
The present invention has been made to solve the problem and has an object to enable data created by another application to be embedded without incorporating a small program for add-in into a specific application.
order to solve the problem described above, in the present invention, a save file of a document created by a specific application is read from a file storing unit and is opened, and it is decided whether an embedding tag is present in the document or not. If it is decided that the embedding tag is present, data for embedding stored in a file storing unit in association with the embedding tag is embedded in a position where the embedding tag is present and the document subjected to the data embedding is re-saved as a file in the file storing unit.
According to the present invention having the structure described above, if a file is saved in a state in which an embedding tag inserted in a document created by a specific application, the saved file is then opened automatically and data for embedding created by another application is embedded into the position of the embedding tag so that the file of the document is updated and saved. Consequently, it is possible to embed the data created by the another application without incorporating a small program for add-in into the specific application.
An embodiment according to the present invention will be described below with reference to the drawings.
User terminals 300 to be used by a user are also connected to the LAN 500. The user operates the user terminal 300 to give access to the data generating server 100 through the INTERNET 400, thereby enabling a desirable document to be created by a desirable application and the desirable document to be saved in the data generating server 100. The desirable application is optional, for example, may be document creating software, spreadsheet software, drawing software, presentation software or the like.
The data generating server 100 and the relay server 200 performs a data processing in cooperation with each other. The relay server 200 performs a data processing for embedding data created by another application into a document created by a specific application and saved in the data generating server 100. Herein, the specific application and another application are formed by a combination of two of the document creating software, the spreadsheet software, the drawing software, the presentation software and the like.
For example, the specific application can be set to be the presentation software and another application can be set to be the spreadsheet software. Specifically, the relay server 200 performs a processing for embedding data such as a chart or a graph created by the spreadsheet software into the document created by the presentation software and saved in the data generating server 100.
The arrangement and structure of the server is not restricted to the example of
The respective functional blocks 21 to 23 of the relay server 200 can be configured from any of hardware, a DSP (Digital Signal Processor) and software. For example, in the case in which they are configured from the software, the respective functional blocks 21 to 23 actually include a CPU, an RAM, an ROM and the like of a computer and are implemented by an operation of a program stored in a recording medium such as an RAM, an ROM, a hard disk or a semiconductor memory.
The file storing unit 11 stores a save file of a document created by a specification application and a save file of data for embedding which is created by another application. For example, the file storing unit 11 stores a save file of a document created by the presentation software and a save file of data for embedding such as a chart, a graph or the like which is created by the spreadsheet software. These files are generated by the data generating unit 13 based on a user operation to be performed by giving access to the data generating server 100 through the user terminal 300.
The association storing unit 12 stores association information of an embedding tag in a predetermined format and data for embedding. The format of the embedding tag can be determined optionally. For example, the format can be set to be ${- - - }. “- - - ” portion in { } can be set to be optional information such as a save file name of data for embedding or predetermined identification information.
The association information is also generated by the data generating unit 13 based on the user operation to be performed by giving access to the data generating server 100 from the user terminal 300. For example, a user can generate association information and store the association information in the association storing unit 12 by performing an operation for optionally describing an embedding tag through the user terminal 300 and designating and saving a save file of data for embedding associated therewith through a well-known file system.
The tag presence deciding unit 21 reads the save file of the document stored in the file storing unit 11 from the file storing unit 11 and opens the save file, and decides whether the embedding tag is present in the document or not. For example, the tag presence deciding unit 21 periodically gives access to the file storing unit 11 and opens one or more save files of documents stored in the file storing unit 1 one by one, thereby confirming whether embedding tags are present in the documents or not, respectively.
A timing for opening a save file to decide the presence of an embedding tag is not restricted to the example described above. For example, when the data generating unit 13 saves a document file in the file storing unit 11, the data generating unit 13 gives the tag presence deciding unit 21 a notice of the save. The tag presence deciding unit 21 may open the save files of the document related to each notice and decide the presence of an embedding tag every receipt of the notice.
If it is decided by the tag presence deciding unit 21 that the embedding tag is present, the data acquiring unit 22 acquires data for embedding related to the embedding tag present in the document from the file storing unit 11 by referring to the association information stored in the association storing unit 12.
The data embedding unit 23 embeds the data for embedding acquired by the data acquiring unit 22 into a position where the embedding tag is present and resaves, as a file, a document subjected to data embedding in the file storing unit 11.
After this document file is saved in the file storing unit 11, the tag presence deciding unit 21 opens the save file of the document and confirms all of pages, and decides whether an embedding tag is present in the document or not. In an example of
Then, the data embedding unit 23 embeds the data for embedding acquired by the data acquiring unit 22 into a position where the embedding tag 41 is present.
When the user saves a document created by description of the embedding tag 41 as shown in
A size of the chart to be embedded can be set to be a predetermined size. In the case in which the chart is embedded in the predetermined size into a document, a layout in a page is not always proper (as is desired by the user). In this case, the user preferably regulates the layout optionally when operating the user terminal 300 and subsequently opening the document. Although the explanation has been given to the example in which the chart is embedded as the data for embedding, the case in which data in another format such as an image or a graphic are to be embedded is the same, and the data is embedded to have a predetermined size into the document.
In the case in which the data for embedding is embedded in the document, the embedding tag may be deleted from the document or be left in a state in which it is invisible. In the case in which the embedding tag is left in the document, the data for embedding to be embedded can be maintained in the newest condition with a structure in which the tag presence deciding unit 21 periodically decides the presence of the embedding tag in the document if any.
In other words, if the user operates the user terminal 300 to update the data for embedding in the file storing unit 11 and saves the updated data for embedding as a file in the file storing unit 11, the updated data for embedding is embedded into the position of the embedding tag in a next periodic timing to the decision of the presence of the embedding tag which is made by the tag presence deciding unit 21. When the user opens the document, consequently, there is brought a state in which the newest data for embedding is always embedded.
When the tag presence deciding unit 21 opens the save file of the document to confirm the presence of the embedding tag, the data embedding unit 23 deletes the data for embedding which has already been embedded and re-embeds, into the position of the embedding tag, the data for embedding which are acquired from the file storing unit 11 by the data acquiring unit 22 at that time and saves the data for embedding if the data for embedding has already been embedded in the position of the embedding tag.
On the other hand, if the periodic timing arrives, the tag presence deciding unit 21 reads a save file of a document stored in the file storing unit 11 from the file storing unit 11 and opens the read file (Step S2) and confirms whether an embedding tag is present in the document or not (Step S3). If the embedding tag is not present in the document, the processing returns to Step S1.
On the other hand, if the embedding tag is present in the document, the data acquiring unit 22 acquires, from the file storing unit 11, data for embedding which is associated with the embedding tag present in the document by referring to the association information stored in the association information stored in the association storing unit 12 (Step S4).
Next, the data embedding unit 23 decides whether the data for embedding has already been embedded in the position of the embedding tag or not (Step S5). If the data for embedding has not been embedded yet, the processing makes a transition to Step S7. On the other hand, if the data for embedding have already been embedded, the data embedding unit 23 deletes the data for embedding (Step S6).
Then, the data embedding unit 23 embeds the data for embedding which is acquired by the data acquiring unit 22 in Step S4 into the position where the embedding tag is present (Step S7) and re-saves, as a file, a document subjected to the data embedding in the file storing unit 11 (Step S8). Consequently, the processing of the flowchart shown in
As described above in detail, in the present embodiment, a save file of a document created by a specific application is read from the file storing unit 11 and is then opened and it is decided whether an embedding tag is present in the document or not. If it is decided that the embedding tag is present, the data for embedding stored in the file storing unit 11 in association with the embedding tag is embedded into the position where the embedding tag is present and the document subjected to the data embedding is re-saved as a file in the file storing unit 11.
According to the present embodiment having the structure described above, if file saving is performed in a state in which an embedding tag is inserted in a document created by a specific application, data for embedding which is created by another application is embedded into the position of the embedding tag so that the file of the document is updated and saved. Consequently, it is possible to embed the data created by the another application without incorporating a small program for add-in into the specific application.
Although the explanation has been given to the example in which the table information illustrated in
Although the explanation has been given to the example in which the size of the data for embedding (a chart, an image, a graphic or the like) to be embedded into a document are set to have a predetermined size in the embodiment, moreover, the present invention is not restricted thereto. For example, it is also possible to designate the size of the data for embedding by describing size information in { } of the embedding tag ${- - - } Furthermore, it is also possible to designate the embedding position of the data for embedding by describing the position information in { }. The embedding position in this case can be set to be information for designating any part of the data for embedding (a center, any of four corners or the like) which is to be adjusted to the position of the embedding tag.
Although the explanation has been given to the structure in which two servers, that is, the data generating server 100 and the relay server 200 are provided in the embodiment, furthermore, the present invention is not restricted thereto. For example, it is also possible to employ a structure including a single server by causing the data generating server 100 to have the function of the relay server 200. Alternatively, it is also possible to employ a structure of a stand-alone type in place of a system structure of a client-server type. In this case, it is possible to mount the functions of the data generating server 100 and the relay server 200 on a personal computer, for example.
Although the explanation has been given to the example in which the file of the document and that of the data for embedding are stored in the same file storing unit 11 in the embodiment, moreover, these files may be stored in separate storing units. In this case, the file of the document and that of the data for embedding may be managed by separate servers.
In addition, the embodiment is only illustrative for concreteness to carry out the present invention and the technical scope of the present invention should not be thereby construed to be restrictive. In other words, the present invention can be carried out in various configurations without departing from the gist or main features thereof.
Number | Date | Country | Kind |
---|---|---|---|
2016-015194 | Jan 2016 | JP | national |