Office file generation method

A file and text file technology, applied in the information field, can solve the problems of unpublished office software program source code, automatic generation of Windows office files, etc.

CN103593475AInactive Publication Date: 2014-02-19CHINESE ACAD OF METEOROLOGICAL SCI
1 Cites 2 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2014-02-19
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
Patent Text Reader

Abstract

The invention relates to the technical field of information, in particular to an office file generation method. The office file generation method comprises the steps of storing an element file, a general template and an element parameter template corresponding to the element file in a preset operating system in advance; calling the element file, the general template and the element parameter template corresponding to the element file by using a Shell script according to preset rules; generating a Microsoft office file by using the called element file, the called general template and the called element parameter template according to an Open XML protocol, wherein the Microsoft office file can be opened, edited and stored in the Windows operating system. According to the office file generation method, the office file which can be used in the Windows system can be generated in a non-Windows system by using file elements such as existing words, existing pictures and existing tables.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of information technology, in particular to a method for generating office documents. Background technique

[0002] Office documents mainly refer to documents commonly used in office such as Word, PowerPoint, and Excel.

[0003] In related technologies, office files are mostly generated and run under the Windows system, that is, file elements such as text, pictures, and tables are added to the running files of the corresponding office software under the Windows system, and office files are automatically generated after editing and saving.

[0004] However, since Microsoft has not disclosed the source code of the office software program, it is impossible to directly use existing text, pictures, tables and other file elements to generate office files that can be used under Windows systems under non-Windows systems, such as under Linux systems. There is no way to automatically generate Windows office files yet. Conten...

Examples

Embodiment Construction

[0012] The present invention will be described in further detail below through specific implementation examples and in conjunction with the accompanying drawings.

[0013] Embodiments of the present invention provide a method for generating office documents, such as figure 1 As shown, it mainly includes:

[0014] Step S11: Under the default operating system, pre-store element files, common templates and element parameter templates corresponding to the element files;

[0015] Step S12: using the Shell script to call the element file, the general template and the element parameter template corresponding to the element file according to preset rules;

[0016] Step S13: According to the Open XML protocol, use the retrieved element file, general template and element parameter template to generate a Microsoft Office file for opening, editing and saving under the Windows operating system.

[0017] The method for generating office documents in the embodiment of the present invention...