Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for generating word document in templated mode

A templated and document technology, applied in file systems, file system management, special data processing applications, etc., can solve problems such as time-consuming, labor-intensive, and error-prone, and achieve the effect of improving production efficiency

Pending Publication Date: 2020-05-15
江西金格科技有限公司
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The first is to manually write documents by business personnel. As the number of documents increases, it takes a lot of time and may be prone to errors.
[0009] The second is that developers use Apache POI to obtain business data and generate documents according to the API provided by POI, which can solve the problem of document generation efficiency. However, with the increase of business documents, developers need to develop and write corresponding business codes, which require business People spend a lot of time on document formatting, and there is also time for testing, version releases, etc.
Need more manpower, time and maintenance cost

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for generating word document in templated mode
  • Method for generating word document in templated mode
  • Method for generating word document in templated mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In the existing business system, word generally needs to rely on the office suite, and due to the writing of multiple business personnel, there may be a certain gap between the generated document format and the expected word format, and when a large number of documents are required to use manual labor, there is efficiency and error rate , rework, etc., in order to solve the above problems, business personnel write format documents with variable expressions, save them in the business system, obtain the dynamic data required by the template document through the business system, and call the present invention to complete the generation of the document. The specific plan is described in detail.

[0032] Firstly, the format document is written by the template manager. For the variable content in the document, the writer uses ${variable name} as a replacement syntax mark to complete the writing of the template document.

[0033] Following result accompanying drawing and imple...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for generating a word document in a templated mode, which comprises the following steps of: decompressing a docx document to extract a word / document.xml file, and analyzing document.xml to obtain an xml object; performing traversing from a root node object document.xml to obtain w: p paragraph nodes, wherein all text contents of word are in the w: p nodes; and after all w: p traversal analysis is completed, generating a new document.xml file, and covering the new document.xml file in a word / document.xml file of the template document to complete expression replacement of the document. According to the method, the docx document is realized on the basis of XML and ZIP technologies, the xml structure is analyzed, the expression is extracted, and text replacement is carried out, so that the situation that the document structure and style are disordered is avoided, the format document generation efficiency is improved, and the word document standard is met.

Description

technical field [0001] The invention relates to document processing technology, in particular to a method for templated generation of word documents. Background technique [0002] As word documents are applied to our work, in some document processing business scenarios, there are a large number of documents in the same format, and business personnel need to manually edit and review a large number of format documents, which takes a lot of time and even makes mistakes. It is hoped to provide a word template, replace the dynamic content in the format document with a variable expression (similar to ${variable name} in other template engines), and replace the variable expression with dynamic content when generating the document to complete the generation of the document , to solve the problem of time-consuming and error-prone documentation. [0003] Microsoft Office Word is the most popular word processing program and an essential productivity tool in our work. [0004] Apache ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F40/186G06F40/126G06F40/205G06F16/11
CPCG06F16/116
Inventor 不公告发明人
Owner 江西金格科技有限公司