CN108241605A - A kind of technical report standardization write method based on VC - Google Patents

A kind of technical report standardization write method based on VC Download PDF

Info

Publication number
CN108241605A
CN108241605A CN201711329488.2A CN201711329488A CN108241605A CN 108241605 A CN108241605 A CN 108241605A CN 201711329488 A CN201711329488 A CN 201711329488A CN 108241605 A CN108241605 A CN 108241605A
Authority
CN
China
Prior art keywords
technical report
file
word
msword
class
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
CN201711329488.2A
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 Guangxi Power Grid Co Ltd
Original Assignee
Electric Power Research Institute of Guangxi 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 Guangxi Power Grid Co Ltd filed Critical Electric Power Research Institute of Guangxi Power Grid Co Ltd
Priority to CN201711329488.2A priority Critical patent/CN108241605A/en
Publication of CN108241605A publication Critical patent/CN108241605A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to power system technology reports to write field, write method is standardized more particularly to a kind of technical report based on VC, specific steps include VC platform buildings, create OLB objects, template data replacement, word document generation, the present invention is based on supports of the Microsoft word to xml, i.e. word document can be stored in the form of xml.In C# development processes, description information is parsed from data processing document using reflection technology, classification is encapsulated as bookmark, so as to generate required template.Technology structure template file based on MSWORD.OLD, dynamic data is exported in software client, you can realizes that technical report standardization is write, and the technical report needed for export.Word document Auto is realized using OLE technologies and word object models, can be further simplified the workload that word is automatically generated.

Description

A kind of technical report standardization write method based on VC
Technical field
The present invention relates to power system technology reports to write field, and in particular to a kind of technical report standardization based on VC Write method.
Background technology
With the continuous improvement of the level of informatization, the office automation system is widely used in enterprise.It is passing In the office system of system, in most cases need to manually generate word document, this traditional office according to fixed form Mode there is repeatedly input, take, fallibility the problems such as.In word Auto methods, existing implementation method has IText and POI etc..But in the office automation system, all kinds of template files of static generation, picture and dynamic generation packet are needed Word document containing all kinds of list datas if going to operate using IText and POI at this time, can undoubtedly greatly increase programming process In workload.Existing word Autos approach application to development language have LabView, Delphi, Visual Basic, but in above-mentioned exploitation, it is necessary to call a large amount of automation control(Such as Active)With bottom function, the mapping of file Mechanism is complicated, can not promote easily.
Invention content
To solve the above-mentioned problems, the present invention provides a kind of technical reports based on VC to standardize write method, specifically Technical solution is as follows:
A kind of technical report standardization write method based on VC includes the following steps:
(1)VC platform buildings:The platform for parameter typing is built in VC development platforms;
(2)Create OLB objects:A new word document is created, in new word document, inputs the content shape of set form Into required technical documentation template file;Bookmark is inserted into, and bookmark is numbered in the place of demand dynamic logging data, created Build bookmark template;
(3)Template data is replaced:It is interchangeable by platform typing parameter and with the parameter of technical documentation template file;
(4)Word document generates:Standardization word document technical report needed for generation.
Further, the step(1)Specially:VC platforms are opened, " file " in the upper left corner are clicked, in drop-down menu It selects " newly-built ";" the win32 console application " of " engineering " tabs is selected, and inputs " engineering name ";Choosing It selects " fileview ", clicks engineering name, choose " source files ", " newly-built " in " file " is clicked, in pair of pop-up It talks about " C++ source file " below selection File Options card in frame, and import file name, clicks and determine, that is, built VC platforms.
Further, the step(2)In further include:It needs to realize to 9.0 object of Microsoft word The reference of library, concrete methods of realizing are as follows:At engineering project, by class wizard MFC ClassWizade, from View Open ClassWizade windows on menu bar, the From a type library in selection addition class Add class options are clear The msword.olb files look under Microsoft office installation paths, select required class, and generate msword.h and Msword.cpp files are imported in engineering.
Further, required class has _ Application, Documents in the class needed for the selection, _ Document, Select。
Further, the step(2)In further include by msword.h and msword.cpp carry out secondary encapsulation it is into corresponding Class wordword.h and wordword.cpp, and be added in engineering.
Beneficial effects of the present invention are:
The present invention proposes a kind of technical report standardization write method based on VC, based on Microsoft word to xml's It supports, i.e., word document can be stored in the form of xml.In C# development processes, using reflection technology from data processing document Middle parsing description information, classification is encapsulated as bookmark, so as to generate required template.Technology structure template text based on MSWORD.OLD Part exports dynamic data in software client, you can realizes that technical report standardization is write, and exports required technical report. Word document Auto is realized using OLE technologies and word object models, can be further simplified word and be given birth to automatically Into workload.
Description of the drawings
Fig. 1 is the step flow chart of the present invention.
Specific embodiment
In order to better understand the present invention, the invention will be further described in the following with reference to the drawings and specific embodiments:
As shown in Figure 1, a kind of technical report standardization write method based on VC includes the following steps:
(1)VC platform buildings:The platform for parameter typing is built in VC development platforms;VC platforms are opened, click upper left " file " at angle selects " newly-built " in drop-down menu;Select " the win32 console of " engineering " tabs Application ", and input " engineering name ";It selects " fileview ", clicks engineering name, choose " source files ", " newly-built " in " file " is clicked, " C++ source file " below File Options card is selected in the dialog box of pop-up, And import file name, it clicks and determines, that is, built VC platforms.
(2)Create OLB objects:
1)A new word document is created, in new word document, the content for inputting set form forms required technology Document template file;
2)Bookmark is inserted into, and bookmark is numbered in the place of demand dynamic logging data, creates bookmark template;For example, In technical documentation template file, include project title, power transformation station name, device name, working range, planned time, appointment The dynamic datas such as responsible person, member, person in charge of the technology aspect.Bookmarked is carried out to dynamic data all in template, respectively: titleName、substationName1、equipmentName1、workRange、planTimeBegin、planTimeEnd Leader, memebers etc.;
3)It during using bookmark mould plate technique, needs to realize the reference to 9.0 object library of Microsoft word, have Body implementation method is as follows:At engineering project, by class wizard MFC ClassWizade, opened from View menu bars The From a type library in class Add class options are added in ClassWizade windows, selection, browse Microsoft Msword.olb files under office installation paths, select required class, and generate msword.h and msword.cpp files, It imports in engineering;Required class has _ Application, Documents, _ Document, Select, in order to make exploitation It is convenient, msword.h and msword.cpp is subjected to secondary encapsulation into corresponding class wordword.h and wordword.cpp, and It is added in engineering.
(3)Template data is replaced:It is interchangeable by platform typing parameter and with the parameter of technical documentation template file;
(4)Word document generates:Standardization word document technical report needed for generation.
The present invention is not limited to above-described specific embodiment, and the foregoing is merely the preferable case study on implementation of the present invention , it is not intended to limit the invention, any modification for being made all within the spirits and principles of the present invention, equivalent replacement and changes Into etc., it should all be included in the protection scope of the present invention.

Claims (5)

1. a kind of technical report standardization write method based on VC, it is characterised in that:Include the following steps:
(1)VC platform buildings:The platform for parameter typing is built in VC development platforms;
(2)Create OLB objects:A new word document is created, in new word document, inputs the content shape of set form Into required technical documentation template file;Bookmark is inserted into, and bookmark is numbered in the place of demand dynamic logging data, created Build bookmark template;
(3)Template data is replaced:It is interchangeable by platform typing parameter and with the parameter of technical documentation template file;
(4)Word document generates:Standardization word document technical report needed for generation.
2. a kind of technical report standardization write method based on VC according to claim 1, it is characterised in that:The step Suddenly(1)Specially:VC platforms are opened, click " file " in the upper left corner, " newly-built " is selected in drop-down menu;It selects " engineering " " the win32 console application " of tabs, and input " engineering name ";It selects " fileview ", clicks engineering Title is chosen " source files ", clicks " newly-built " in " file ", and File Options card is selected in the dialog box of pop-up Following " C++ source file ", and import file name click and determine, that is, built VC platforms.
3. a kind of technical report standardization write method based on VC according to claim 1, it is characterised in that:The step Suddenly(2)In further include:It needs to realize the reference to 9.0 object library of Microsoft word, concrete methods of realizing It is as follows:At engineering project, by class wizard MFC ClassWizade, ClassWizade windows are opened from View menu bars Mouthful, the From a type library in selection addition class Add class options, browsing Microsoft office installations road Msword.olb files under diameter, select required class, and generate msword.h and msword.cpp files, import engineering and work as In.
4. a kind of technical report standardization write method based on VC according to claim 3, it is characterised in that:The choosing Selecting required class in required class has _ Application, Documents, _ Document, Select.
5. a kind of technical report standardization write method based on VC according to claim 1, it is characterised in that:The step Suddenly(2)In further include by msword.h and msword.cpp carry out secondary encapsulation into corresponding class wordword.h and Wordword.cpp, and be added in engineering.
CN201711329488.2A 2017-12-13 2017-12-13 A kind of technical report standardization write method based on VC Pending CN108241605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711329488.2A CN108241605A (en) 2017-12-13 2017-12-13 A kind of technical report standardization write method based on VC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711329488.2A CN108241605A (en) 2017-12-13 2017-12-13 A kind of technical report standardization write method based on VC

Publications (1)

Publication Number Publication Date
CN108241605A true CN108241605A (en) 2018-07-03

Family

ID=62700909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711329488.2A Pending CN108241605A (en) 2017-12-13 2017-12-13 A kind of technical report standardization write method based on VC

Country Status (1)

Country Link
CN (1) CN108241605A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766536A (en) * 2018-12-27 2019-05-17 国网上海市电力公司 A kind of realization device based on model customizationization report
CN110263221A (en) * 2019-06-21 2019-09-20 福建南威软件有限公司 A kind of method and system based on xml operation word document
CN111178026A (en) * 2019-12-05 2020-05-19 北京直真科技股份有限公司 Method for realizing operation analysis report of special line for collecting passenger
CN112417835A (en) * 2020-11-18 2021-02-26 云南电网有限责任公司信息中心 Intelligent inspection method and system for purchase file based on natural language processing technology
CN112686014A (en) * 2020-12-23 2021-04-20 国家电网有限公司 Cable number plate compiling system and method
CN113869021A (en) * 2021-08-27 2021-12-31 厦门云评众联科技有限公司 Template configuration method for generating target report and report generation method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402908A (en) * 2017-04-13 2017-11-28 阿里巴巴集团控股有限公司 Document content update method, device and equipment, computer-readable recording medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402908A (en) * 2017-04-13 2017-11-28 阿里巴巴集团控股有限公司 Document content update method, device and equipment, computer-readable recording medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
DENNYTAO: ""MFC操作Word"", 《HTTPS://WWW.CNBLOGS.COM/DENNYTAO/P/5351956.HTML》 *
匿名用户: ""vc++编c语言的新建步骤是什么"", 《 HTTPS://WENWEN.SOGOU.COM/Z/Q706924031.HTM》 *
姜照林: ""用VC实现Word文档自动化"", 《嘉兴学院学报》 *
熊瑜容: ""基于VC++的Word文档自动生成技术"", 《计算机时代》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766536A (en) * 2018-12-27 2019-05-17 国网上海市电力公司 A kind of realization device based on model customizationization report
CN110263221A (en) * 2019-06-21 2019-09-20 福建南威软件有限公司 A kind of method and system based on xml operation word document
CN111178026A (en) * 2019-12-05 2020-05-19 北京直真科技股份有限公司 Method for realizing operation analysis report of special line for collecting passenger
CN112417835A (en) * 2020-11-18 2021-02-26 云南电网有限责任公司信息中心 Intelligent inspection method and system for purchase file based on natural language processing technology
CN112417835B (en) * 2020-11-18 2023-11-14 云南电网有限责任公司信息中心 Intelligent purchasing file examination method and system based on natural language processing technology
CN112686014A (en) * 2020-12-23 2021-04-20 国家电网有限公司 Cable number plate compiling system and method
CN113869021A (en) * 2021-08-27 2021-12-31 厦门云评众联科技有限公司 Template configuration method for generating target report and report generation method

Similar Documents

Publication Publication Date Title
CN108241605A (en) A kind of technical report standardization write method based on VC
Mooers Shortcuts for faster image creation in PyMOL
Rademacher et al. Differences between model-driven development of service-oriented and microservice architecture
Weiderman et al. Approaches to legacy system evolution
US8744821B2 (en) Spreadsheet-based templates for supporting the systems engineering process
CN100462970C (en) Method and system for non-intrusive portlet rendering for printing
CN101198929B (en) System and method for generating screen components
US8375402B2 (en) Mechanism for interfacing a display screen of another technology with a computing platform
US20070192363A1 (en) Document-centric application environment
US20220067271A1 (en) Orchestration of crud operations for a hierarchical web service data model in a spreadsheet
CN102707983A (en) Automated generation of client/driver communication interfaces
CN105144091B (en) It is generated for the user interface model of the order line based on program
CN116075899A (en) Generation of organic synthetic programs from simplified molecular input linear entry system reactions
US11315208B2 (en) Conceptual representation of business processes for cross-domain mapping
Ledeczi et al. Metaprogrammable toolkit for model-integrated computing
US20080189675A1 (en) Method and system for providing tooling instructions through parameterization as an aid for software application development
US8555240B2 (en) Describing formal end-user requirements in information processing systems using a faceted, tag-based model
Cimino et al. An efficient model-based methodology for developing device-independent mobile applications
Grundy et al. An environment for developing adaptive, multi-device user interfaces
Schramm et al. Rapid UI development for enterprise applications: Combining manual and model-driven techniques
US9141342B2 (en) Programmatic conversion of support documentation into executable programs
CN107844639B (en) Project standard structure automatic generation method and system
Haase et al. Application integration within an integrated design environment
Ma et al. MiW: A domain specific modeling environment for complex molecular systems
Christensen et al. A Comprehensive Python Toolkit for Accessing High‐Throughput Computing to Support Large Hydrologic Modeling Tasks

Legal Events

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

Application publication date: 20180703

RJ01 Rejection of invention patent application after publication