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.
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
Abstract
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...