Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for converting a word document into a document capable of automatically calculating html

A technology for automatic calculation and document conversion, applied in the field of html, it can solve the problems of paper consumption, low efficiency, and inability to edit, and achieve the effect of preventing modification, saving paper, and high efficiency

Pending Publication Date: 2019-03-26
吴昌议
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The paper report method has the disadvantages of low efficiency and paper consumption, so there is a demand for paperless reports
[0003] If word is used directly for reporting, there are two problems: problem 1, because word cannot set which areas can be edited and which areas cannot be edited, it cannot meet the requirements of template modification control; problem 2, word cannot link data do calculations automatically
Therefore, word is not suitable for paperless reporting

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 converting a word document into a document capable of automatically calculating html
  • Method for converting a word document into a document capable of automatically calculating html
  • Method for converting a word document into a document capable of automatically calculating html

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The present invention uses the configuration point as a link to convert word into html. Describe the present invention in detail below in conjunction with example, comprise the steps:

[0023] (1) Add an underline "______" where data entry is allowed in the word template of the report

[0024] (2) Automatically add the configuration point label to the underline "______" of the word:

[0025] ① Parse word in xml format and find all nodes whose style is _____:

[0026] ② Replace the value of the node whose style is ______ with "configuration point N" (N is an increasing integer)

[0027] attached figure 1 The rendering of adding configuration points to the word template.

[0028] (3) Convert word with configuration point tags into html: You can use the "save as web page" function that comes with word to save word as html.

[0029] (4) Add the input tag and ID field to the html containing the configuration point tag:

[0030] ①Search the html source code with "config...

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 converting a word document into a document capable of automatically calculating html. The method is characterized in that the method is characterized by comprising, the underline _ _ of the word template is automatically identified; a configuration point label is added on the underline '_ _'; converting the word added with the configuration point label into html; breaking off a configuration point label contained in the html; adding an input label and an ID field; therefore, an editable area is set for the html; all the editable positions are numbered; Themethod comprises the steps of obtaining html configuration points, configuring a calculation method for the html configuration points, injecting java script codes for calling the calculation method into the html, and finally emptying value fields of the configuration points contained in the html to obtain html documents with settable editing areas and automatic data calculation. The method can beused for realizing paperless reports in the inspection industries of drug inspection, chemical product inspection, food inspection and the like.

Description

technical field [0001] The invention belongs to the field of word document conversion, and in particular relates to an html method for converting word into an editing area, which can be set and automatically calculated. The method is a self-created method. Background technique [0002] Drug inspection, chemical product inspection, and food inspection reports usually have two characteristics: characteristic 1, data can be recorded in the blank or space reserved for the report template, and the modification of the template is controlled; characteristic 2, there are calculations between some data relation. Currently, report templates are usually printed on paper, and then the data is written on paper by hand. The paper report method has the disadvantages of low efficiency and paper consumption, so there is a demand for paperless reports. [0003] If word is used directly for reporting, there are two problems: problem 1, because word cannot set which areas can be edited and wh...

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): G06F17/22G06F17/24
CPCG06F40/154G06F40/186
Inventor 吴昌议
Owner 吴昌议
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products