CN103279454A - Document automatic generation method, device and system - Google Patents

Document automatic generation method, device and system Download PDF

Info

Publication number
CN103279454A
CN103279454A CN2013102314403A CN201310231440A CN103279454A CN 103279454 A CN103279454 A CN 103279454A CN 2013102314403 A CN2013102314403 A CN 2013102314403A CN 201310231440 A CN201310231440 A CN 201310231440A CN 103279454 A CN103279454 A CN 103279454A
Authority
CN
China
Prior art keywords
document
report
label
report file
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013102314403A
Other languages
Chinese (zh)
Inventor
徐立新
颜小林
李军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Electric Power Research Institute of Guangdong Power Grid Co Ltd
Original Assignee
Electric Power Research Institute of Guangdong Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Electric Power Research Institute of Guangdong Power Grid Co Ltd filed Critical Electric Power Research Institute of Guangdong Power Grid Co Ltd
Priority to CN2013102314403A priority Critical patent/CN103279454A/en
Publication of CN103279454A publication Critical patent/CN103279454A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention provides a document automatic generation method, device and system. A task report document is abstracted into five different material elements comprising static images, constant data, document fragments, statistic analysis graphics and two-dimensional tables. The specific implementation scheme is divided into three modules, wherein a material element module is mainly used for maintaining the material elements such as performing inputting, modifying, deleting and previewing operation on the material elements; a template tag module is mainly used for maintaining report templates and referenced tags in the templates and the content of the tags is the content of the material elements; and a report module is mainly used for maintaining specific task reports such as performing specifying, editing, modifying, deleting, export and leading-out on the report templates. According to the document automatic generation method, device and system, the writing efficiency and the data entry accuracy are greatly improved and the report writing applicability is wide.

Description

Document automatic creation method, Apparatus and system
Technical field
The present invention relates to field of power, particularly relate to a kind of document automatic creation method, a kind of document automatically generating device and a kind of document automatic creation system.
Background technology
Popular along with electronization in common office automation process and the writing in the process of report, needs establishment to generate a large amount of document reports.For the great majority report, the form of report is all fixed, and is some concrete data element differences, and perhaps some dynamic data have few variation.
In at present traditional report-generating method, the main definition template by hand that adopts is then to the manual mode that copies into of dynamic content in the template.Yet the establishment of a report is manually handled iff relying on, and that is inquired about in a large number, copy and paste work loaded down with trivial details, consuming time, inefficiency not only, and makes mistakes easily, and the accuracy of report is lower.The problems referred to above are especially outstanding in the writing of power industry report.
Summary of the invention
Based on this, the invention provides a kind of document automatic creation method, Apparatus and system, can improve efficient and the accuracy of writing report.
For achieving the above object, the present invention adopts following technical scheme:
A kind of document automatic creation method may further comprise the steps:
When receiving the request that generates report file, this request is resolved, and access corresponding document template according to analysis result; Several masterplate labels have been preestablished in the described document template;
From the data source that imports, extract following element respectively: static images, constant data, document fragment, statistical study figure and two-dimentional form;
According to the corresponding relation of predefined each element and masterplate label, static images, constant data, document fragment, statistical study figure and the two-dimentional form that extracts is filled into respectively in the corresponding masterplate label, obtain report file.
A kind of document automatically generating device comprises:
Resolve and calling module, be used for when receiving the request that generates report file, this request being resolved, and access corresponding document template according to analysis result; Several masterplate labels have been preestablished in the described document template;
The element extraction module is used for extracting following element respectively from the data source that imports: static images, constant data, document fragment, statistical study figure and two-dimentional form;
The element packing module, be used for the corresponding relation according to predefined each element and masterplate label, static images, constant data, document fragment, statistical study figure and the two-dimentional form that extracts is filled into respectively in the corresponding masterplate label, obtains report file.
A kind of document automatic creation system comprises:
Material element module is used for the maintenance to the material element, comprises typing, modification, deletion and preview to the material element; Described material element comprises: static images, constant data, document fragment, statistical study figure and two-dimentional form;
The template label model is used for the maintenance of quoting label in the maintenance of document template and the document template, and wherein the content of label is the content of material element;
Reporting modules is used for the maintenance of specific tasks report, comprises appointment, editor, modification, deletion and the derivation of document template.
By above scheme as can be seen, a kind of document automatic creation method of the present invention, Apparatus and system, by the in-depth analysis to the report demand, report is separated into these several different abstract elements of static images, constant data, document fragment, statistical study figure and two-dimentional form, so no matter can both find corresponding method definition to go to generate automatically report for any document, improved efficient and the accuracy of writing report greatly, used very extensive; And among the present invention the content of masterplate label and the definition of template are separated, can be defined template flexibly, reduced the coupling of particular content and label substance simultaneously; At last, system of the present invention passes through three little modules of coupling: material element module, masterplate label model and report template, the collaborative solution that has realized the automatic generation of report file flexibly.
Description of drawings
Fig. 1 is the schematic flow sheet of a kind of document automatic creation method in the embodiment of the invention;
The report file preview synoptic diagram of Fig. 2 for obtaining in the embodiment of the invention;
Fig. 3 is the structural representation of a kind of document automatically generating device in the embodiment of the invention;
Fig. 4 is the structural representation of a kind of document automatic creation system in the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment, technical scheme of the present invention is further described.
Referring to shown in Figure 1, a kind of document automatic creation method may further comprise the steps:
Step S101 when receiving the request that generates report file, resolves this request, and accesses corresponding document template according to analysis result, enters step S102 then.Need to prove: the above-mentioned request that generates report file is resolved can be adopted existing mode, will not give unnecessary details herein; In addition, several masterplate labels have been preestablished in the described document template, and these document templates all are to leave in advance in the template base, concrete report product can be selected concrete document template, report just is based on the basis generation of template like this, edits on this basis then.
Step S102, after importing the data source that needs the generation report, extract following element respectively from the data source that imports: static images, constant data, document fragment, statistical study figure and two-dimentional form etc. enter step S103 then.
In the embodiment of the invention report is separated into following five kinds of different abstract elements:
(1), static images; Picture materials mainly is some static pictures in the report, such as the LOGO of company;
(2), constant data; The constant data owner will be divided into three kinds, is respectively short text, numeric type data and dynamic value data, and wherein the dynamic value data are the data of current time of picture, month etc. form;
(3), document fragment; Can be referred to as static text again, be primarily aimed at the relatively many situations of literal quantity, such as summary of reporting etc.;
(4), statistical study figure; The statistical study diagram data is some dynamic statistical study demonstrations in the report, such as pie chart etc.;
(5), two-dimentional form; The display mode of two dimension form is the dynamic list data in the report.
By the portion report being separated into above-mentioned five kinds of different elements (a document report at ordinary times all is made up of these several different abstract elements usually), just can a kind of mechanism of Dynamic Definition remove to generate automatically the report file that the user needs then.
Step S103 according to the corresponding relation of predefined each element and masterplate label, is filled into static images, constant data, document fragment, statistical study figure and the two-dimentional form that extracts respectively in the corresponding masterplate label, obtains report file.Among embodiment, the report file preview that generates as shown in Figure 2 therein.
Maintenance to specific tasks report product can be provided in the embodiment of the invention, such as the definition of report, deletion and modification, preview then, derivation etc.Therefore, as an embodiment preferably, described obtain report file after, can also comprise step: described report file is exported.And concrete, can when exporting, with the word form described report file be exported.
In addition, corresponding with above-mentioned a kind of document automatic creation method, the present invention also provides a kind of document automatically generating device, as shown in Figure 3, comprising:
Resolve and calling module 101, be used for when receiving the request that generates report file, this request being resolved, and access corresponding document template according to analysis result; Several masterplate labels have been preestablished in the described document template;
Element extraction module 102 is used for extracting following element respectively from the data source that imports: static images, constant data, document fragment, statistical study figure and two-dimentional form;
Element packing module 103, be used for the corresponding relation according to predefined each element and masterplate label, static images, constant data, document fragment, statistical study figure and the two-dimentional form that extracts is filled into respectively in the corresponding masterplate label, obtains report file.
As an embodiment preferably, described document automatically generating device can also comprise: output module is used for the report file that obtains is exported.
As an embodiment preferably, described output module is exported described report file with the word form.
Other technical characterictic of above-mentioned a kind of document automatically generating device is identical with a kind of document automatic creation method of the present invention, will not give unnecessary details herein.
In addition, the present invention also provides a kind of document automatic creation system, as shown in Figure 4, comprising:
Material element module 201 is used for the maintenance to the material element, comprises typing, modification, deletion and preview etc. to the material element; Described material element comprises: static images, constant data, document fragment, statistical study figure and two-dimentional form etc.
Picture materials comprises picture header, the Operation and Maintenance commonly used of information such as uploads; The constant data comprise the constant title, value, and the maintenance of type, to safeguarding as dynamic value, we are by self-defined; { the similar functional expression of YYYY} is expressed the variation of dynamic value; Document fragment material comprises the maintenance to title and the value of document fragment; Statistical study map analysis material is mainly by the Data Source set of rear end definition, can generate automatically various two or three-dimensional figure show, comprise to the making by oneself of some graphic attributes, such as title, dimension name and dimension tolerance etc.; Two dimension form material mainly is that the two-dimentional form in reporting by the two-dimentional data set support of rear end shows.
In addition, the generation method of material content can be managed by the mode of database, and extensibility is strong, such as statistics drawing generating method, the implementation that can replace flexibly.
Template label model 202 is used for the maintenance of quoting label in the maintenance of document template and the document template, and wherein the content of label is the content of material element.
The template tag control mainly is to be divided into label definition management and template tag control two parts.The tag control module is mainly by from a labels class complicated variant of safeguarding being, can support the operation commonly used of label at each classification a plurality of labels of giving a definition, comprise increases, edit, delete and browse etc., wherein the content of label is from five kinds of element materials that come from above-mentioned definition.The template label segment is a core, we are by providing a manipulable WORD operation-interface, define a template document then, our direct typing of static content wherein, our some labels of in label, defining of dynamic content, directly be inserted on the particular location of template, we directly fill the place that label is arranged the label substance of our definition when browsing like this, the safeguarding the aspect we provide increase, deletion and modification to it of template provides the association of template label and preview etc. then.
Reporting modules 203 is used for the maintenance of specific tasks report, comprises appointment, editor, modification, deletion and the derivation etc. of document template.
Other technical characterictic of above-mentioned a kind of document automatic creation system and a kind of document automatic creation method of the present invention, device are identical, will not give unnecessary details herein.
By above scheme as can be seen, a kind of document automatic creation method of the present invention, Apparatus and system, by the in-depth analysis to the report demand, report is separated into these several different abstract elements of static images, constant data, document fragment, statistical study figure and two-dimentional form, so no matter can both find corresponding method definition to go to generate automatically report for any document, improved efficient and the accuracy of writing report greatly, used very extensive; And among the present invention the content of masterplate label and the definition of template are separated, can be defined template flexibly, reduced the coupling of particular content and label substance simultaneously; At last, system of the present invention passes through three little modules of coupling: material element module, masterplate label model and report template, the collaborative solution that has realized the automatic generation of report file flexibly.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (7)

1. a document automatic creation method is characterized in that, may further comprise the steps:
When receiving the request that generates report file, this request is resolved, and access corresponding document template according to analysis result; Several masterplate labels have been preestablished in the described document template;
From the data source that imports, extract following element respectively: static images, constant data, document fragment, statistical study figure and two-dimentional form;
According to the corresponding relation of predefined each element and masterplate label, static images, constant data, document fragment, statistical study figure and the two-dimentional form that extracts is filled into respectively in the corresponding masterplate label, obtain report file.
2. document automatic creation method according to claim 1 is characterized in that, described obtain report file after, also comprise step: described report file is exported.
3. document automatic creation method according to claim 2 is characterized in that, the process that described report file is exported comprises: with the word form described report file is exported.
4. a document automatically generating device is characterized in that, comprising:
Resolve and calling module, be used for when receiving the request that generates report file, this request being resolved, and access corresponding document template according to analysis result; Several masterplate labels have been preestablished in the described document template;
The element extraction module is used for extracting following element respectively from the data source that imports: static images, constant data, document fragment, statistical study figure and two-dimentional form;
The element packing module, be used for the corresponding relation according to predefined each element and masterplate label, static images, constant data, document fragment, statistical study figure and the two-dimentional form that extracts is filled into respectively in the corresponding masterplate label, obtains report file.
5. document automatically generating device according to claim 4 is characterized in that, also comprises: output module is used for the report file that obtains is exported.
6. document automatically generating device according to claim 5 is characterized in that, described output module is exported described report file with the word form.
7. a document automatic creation system is characterized in that, comprising:
Material element module is used for the maintenance to the material element, comprises typing, modification, deletion and preview to the material element; Described material element comprises: static images, constant data, document fragment, statistical study figure and two-dimentional form;
The template label model is used for the maintenance of quoting label in the maintenance of document template and the document template, and wherein the content of label is the content of material element;
Reporting modules is used for the maintenance of specific tasks report, comprises appointment, editor, modification, deletion and the derivation of document template.
CN2013102314403A 2013-06-09 2013-06-09 Document automatic generation method, device and system Pending CN103279454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013102314403A CN103279454A (en) 2013-06-09 2013-06-09 Document automatic generation method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013102314403A CN103279454A (en) 2013-06-09 2013-06-09 Document automatic generation method, device and system

Publications (1)

Publication Number Publication Date
CN103279454A true CN103279454A (en) 2013-09-04

Family

ID=49061979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013102314403A Pending CN103279454A (en) 2013-06-09 2013-06-09 Document automatic generation method, device and system

Country Status (1)

Country Link
CN (1) CN103279454A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446967A (en) * 2014-06-03 2016-03-30 中国石油化工股份有限公司 Multi-modal evaluation report generation method
CN105608066A (en) * 2015-12-29 2016-05-25 厦门市美亚柏科信息股份有限公司 Method and device for generating evidence report
CN106528516A (en) * 2016-10-31 2017-03-22 上海合科科技有限公司 Method for establishing analysis report
CN106776510A (en) * 2016-11-17 2017-05-31 金蝶软件(中国)有限公司 Word embeds form generation method and device
CN106815185A (en) * 2017-03-10 2017-06-09 茂名市公安局 One kind investigates report automatic generation method and system on the spot
CN106844879A (en) * 2016-12-29 2017-06-13 上海合科科技有限公司 Automobile chassis analysis model construction method
CN106970749A (en) * 2017-02-06 2017-07-21 广东小天才科技有限公司 Writing method and device based on mobile terminal
CN107015955A (en) * 2016-09-19 2017-08-04 阿里巴巴集团控股有限公司 Document edit method and device
CN107153634A (en) * 2017-05-31 2017-09-12 隋晓明 A kind of generation method of written material
CN107728995A (en) * 2017-11-28 2018-02-23 北京洪泰同创信息技术有限公司 A kind of technical documentation auxiliary writing system and method
CN108763181A (en) * 2018-05-24 2018-11-06 山西百信信息技术有限公司 A kind of document rapid generation and system
CN109948134A (en) * 2019-03-21 2019-06-28 润电能源科学技术有限公司 A kind of report automatic generation method, system and electronic equipment and storage medium
CN110688824A (en) * 2019-06-19 2020-01-14 广东电网有限责任公司东莞供电局 Method and system for generating state evaluation report of power grid equipment
CN110956029A (en) * 2019-12-19 2020-04-03 青岛知识谷云科技有限公司 Technical document processing method and system
CN112115695A (en) * 2020-09-15 2020-12-22 平安信托有限责任公司 Template dynamic generation method, system, computer equipment and storage medium
CN112232038A (en) * 2020-09-22 2021-01-15 苏州艾特律宝智能科技有限公司 Document output method, system, computer device and storage medium
CN114023415A (en) * 2021-11-08 2022-02-08 深圳航天智慧城市系统技术研究院有限公司 Dynamic document template generation method and system based on online editable customization

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1079311A2 (en) * 1999-08-25 2001-02-28 Hewlett-Packard Company Method and system for creating web-quality online documentation from the same source file as printed documentation
US20020169803A1 (en) * 2000-12-18 2002-11-14 Sudarshan Sampath System and user interface for generating structured documents
US20060143556A1 (en) * 2004-12-23 2006-06-29 Oracle International Corporation Flexible electronic document that receives data insertion from one or more data sources
CN101499057A (en) * 2008-01-29 2009-08-05 鸿富锦精密工业(深圳)有限公司 Electronic document generating system and method
CN102663125A (en) * 2012-04-20 2012-09-12 李朋涛 Method and system for collecting microblog contents to make electronic document

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1079311A2 (en) * 1999-08-25 2001-02-28 Hewlett-Packard Company Method and system for creating web-quality online documentation from the same source file as printed documentation
US20020169803A1 (en) * 2000-12-18 2002-11-14 Sudarshan Sampath System and user interface for generating structured documents
US20060143556A1 (en) * 2004-12-23 2006-06-29 Oracle International Corporation Flexible electronic document that receives data insertion from one or more data sources
CN101499057A (en) * 2008-01-29 2009-08-05 鸿富锦精密工业(深圳)有限公司 Electronic document generating system and method
CN102663125A (en) * 2012-04-20 2012-09-12 李朋涛 Method and system for collecting microblog contents to make electronic document

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446967A (en) * 2014-06-03 2016-03-30 中国石油化工股份有限公司 Multi-modal evaluation report generation method
CN105608066A (en) * 2015-12-29 2016-05-25 厦门市美亚柏科信息股份有限公司 Method and device for generating evidence report
CN107015955B (en) * 2016-09-19 2020-07-24 阿里巴巴集团控股有限公司 Document editing method and device
CN107015955A (en) * 2016-09-19 2017-08-04 阿里巴巴集团控股有限公司 Document edit method and device
CN106528516A (en) * 2016-10-31 2017-03-22 上海合科科技有限公司 Method for establishing analysis report
CN106776510A (en) * 2016-11-17 2017-05-31 金蝶软件(中国)有限公司 Word embeds form generation method and device
CN106844879A (en) * 2016-12-29 2017-06-13 上海合科科技有限公司 Automobile chassis analysis model construction method
CN106970749A (en) * 2017-02-06 2017-07-21 广东小天才科技有限公司 Writing method and device based on mobile terminal
CN106815185B (en) * 2017-03-10 2018-09-18 茂名市公安局 One kind investigating report automatic generation method and system on the spot
CN106815185A (en) * 2017-03-10 2017-06-09 茂名市公安局 One kind investigates report automatic generation method and system on the spot
CN107153634A (en) * 2017-05-31 2017-09-12 隋晓明 A kind of generation method of written material
CN107728995B (en) * 2017-11-28 2019-03-01 北京洪泰同创信息技术有限公司 A kind of technical documentation auxiliary writing system and method
CN107728995A (en) * 2017-11-28 2018-02-23 北京洪泰同创信息技术有限公司 A kind of technical documentation auxiliary writing system and method
CN108763181A (en) * 2018-05-24 2018-11-06 山西百信信息技术有限公司 A kind of document rapid generation and system
CN109948134B (en) * 2019-03-21 2023-12-01 润电能源科学技术有限公司 Report automatic generation method, system, electronic equipment and storage medium
CN109948134A (en) * 2019-03-21 2019-06-28 润电能源科学技术有限公司 A kind of report automatic generation method, system and electronic equipment and storage medium
CN110688824A (en) * 2019-06-19 2020-01-14 广东电网有限责任公司东莞供电局 Method and system for generating state evaluation report of power grid equipment
CN110956029A (en) * 2019-12-19 2020-04-03 青岛知识谷云科技有限公司 Technical document processing method and system
CN110956029B (en) * 2019-12-19 2023-09-22 青岛知识谷云科技有限公司 Technical document processing method and system
CN112115695A (en) * 2020-09-15 2020-12-22 平安信托有限责任公司 Template dynamic generation method, system, computer equipment and storage medium
CN112232038A (en) * 2020-09-22 2021-01-15 苏州艾特律宝智能科技有限公司 Document output method, system, computer device and storage medium
CN114023415A (en) * 2021-11-08 2022-02-08 深圳航天智慧城市系统技术研究院有限公司 Dynamic document template generation method and system based on online editable customization
CN114023415B (en) * 2021-11-08 2024-07-23 深圳航天智慧城市系统技术研究院有限公司 Dynamic document template generation method and system based on online editable customization

Similar Documents

Publication Publication Date Title
CN103279454A (en) Document automatic generation method, device and system
CN108550060B (en) Multi-size advertisement generation method and system
CN104077341B (en) The method and apparatus that keyword automatically replies mapping relations is generated in instant messaging
US10198407B2 (en) System and method for dynamic linking between graphic documents and comment data bases
CN105608066A (en) Method and device for generating evidence report
CN101989256A (en) Typesetting method of document file and device
CN102043762B (en) Method and device for comparing layouts
CN103051652B (en) A kind of mobile terminal cloud computing distribution platform
CN110956029B (en) Technical document processing method and system
CN109445794B (en) Page construction method and device
CN104820764A (en) Method and device for producing electronic assembly technologic document
CN105608119A (en) Rapid thematic map drawing technology
CN105550165A (en) Plug-in and method capable of importing webpage article into webpage text editor
CN111414141A (en) Method and system for generating visual intelligent layout printing template based on SaaS mode
CN104298705A (en) Converting method of relational data and unstructured data
CN110175026B (en) Webpage visual editing method, device and storage medium
CN107193549A (en) Webpage quick development method based on metadata
CN110889261A (en) Method for automating electronic official document service processing
CN114296660A (en) Label printing method based on Vue framework
CN104715029A (en) Multi-channel publishing method
CN111178026A (en) Method for realizing operation analysis report of special line for collecting passenger
CN113190189A (en) System and method for automatically generating and printing labels
CN104408550A (en) Commodity specification processing method
CN105095225A (en) Method and apparatus for obtaining file data
CN102855310A (en) Well-organized electricity utilization data conversion method and device based on extensible customer segmentation model

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130904