Word document generation method based on configuration

A document generation and configuration file technology, applied in word processing, instrumentation, electronic digital data processing, etc., can solve the problems of impure word template, unusable data filling function, and lack of operation support, so as to reduce the time-consuming and efficient operation of documents. The effect of improving generation efficiency and reducing error rate

Pending Publication Date: 2020-11-17
BEIJING MININGLAMP SOFTWARE SYST CO LTD
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the prior art, word documents are often manipulated through technical means such as POI, jacob, java2word, etc., and the document modification is realized by directly adding explicit parameters in the format of ${name} to the word document, but in this way, the entire word template It will be impure, and if the explicit parameter is tampered with, the function of filling data will be unavailable; at the same time, such an operation mode has less support for operations with loop and conditional requirements

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
  • Word document generation method based on configuration
  • Word document generation method based on configuration
  • Word document generation method based on configuration

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them.

[0032] figure 1 For the schematic flow chart of the Word document generation method of the embodiment of the present invention, refer to figure 1 As shown, the embodiment of the present invention discloses a configuration-based Word document generation method, including:

[0033] Establishing a Word template document step S1, establishing a Word template document according to the required format document;

[0034] Locate the target object step S2, decompress the Word template document, and extract the XML file of the Word template document to locate the target object and locate the XML target object to be operated;

[0035] Establish configuration file ...

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 provides a Word document generation method based on configuration. The Word document generation method comprises the following steps: establishing a Word template document; positioning atarget object positioning: decompressing the Word template document, and extracting an XML file of the Word template document to position a to-be-operated XML target object; establishing a configuration file, wherein the configuration file is used for marking the target object, the replacement type and the replacement content; and generating a Word document generation: performing replacement operation on the target object in the document according to the configuration file to generate a configured Word document, the replacement operation further comprising cyclic replacement operation and conditional replacement operation. According to the Word document generation method adopting the scheme, replacement, cyclic replacement and condition replacement of content and picture files in the Worddocument are achieved, it is guaranteed that the document structure and style are not tampered, and the format document generation efficiency is improved.

Description

technical field [0001] The invention belongs to the technical field of document processing, and in particular relates to a configuration-based Word document generation method. Background technique [0002] Word documents are some existing office systems. After Word2007, everyone uses *.docx. *.docx is based on the new XML compressed file format. content. [0003] In government or enterprise systems, due to legal inspection requirements, documents often need to be printed out, signed and stamped by the relevant person in charge, and sometimes need to be re-scanned and retained. [0004] In the prior art, word documents are often manipulated through technical means such as POI, jacob, java2word, etc., and the document modification is realized by directly adding explicit parameters in the format of ${name} to the word document, but in this way, the entire word template It will be impure, and if the explicit parameter is tampered with, the function of filling data will be unav...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F40/186G06F40/18
CPCG06F40/18G06F40/186
Inventor 王海滨王启孟何龙
Owner BEIJING MININGLAMP SOFTWARE SYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products