CN105786788B - A kind of method and apparatus using WORD Program Generating lists - Google Patents

A kind of method and apparatus using WORD Program Generating lists Download PDF

Info

Publication number
CN105786788B
CN105786788B CN201610164421.7A CN201610164421A CN105786788B CN 105786788 B CN105786788 B CN 105786788B CN 201610164421 A CN201610164421 A CN 201610164421A CN 105786788 B CN105786788 B CN 105786788B
Authority
CN
China
Prior art keywords
list
data
html file
bookmark
word
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.)
Active
Application number
CN201610164421.7A
Other languages
Chinese (zh)
Other versions
CN105786788A (en
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.)
Jiangsu Guotai Xindian Software Co ltd
Guotai Epoint Software Co Ltd
Original Assignee
Jiangsu Guotai Epoint Software 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 Jiangsu Guotai Epoint Software Co Ltd filed Critical Jiangsu Guotai Epoint Software Co Ltd
Priority to CN201610164421.7A priority Critical patent/CN105786788B/en
Publication of CN105786788A publication Critical patent/CN105786788A/en
Application granted granted Critical
Publication of CN105786788B publication Critical patent/CN105786788B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • 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/174Form filling; Merging

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 Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of method and apparatus using WORD Program Generating lists.Wherein the method includes:To one or more of WORD document list, it is inserted into beginning label respectively on the head of each list and tail portion and terminates to mark;It is inserted into one or more controls in the WORD documents, and while being inserted into each control, bookmark corresponding with the control is inserted into same position and records the attribute information of the control;The WORD documents are saved as into a html file;According to the data of beginning label and the one or more lists of end label extraction from the html file, the data of each list are stored in respectively in independent html file;To each independent html file, position the bookmark in the html file, control property information corresponding with the bookmark is obtained from the data of XML format, the bookmark is replaced with into corresponding ASP.net controls according to the attribute information, after the stem addition page elements of the html file, which is saved as to the list of preset format.

Description

A kind of method and apparatus using WORD Program Generating lists
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and dress using WORD Program Generating lists It sets.
Background technology
With information-based development, information system is mainly by MIS (Management Information System, pipe Manage information system) support, and MIS is exactly mainly based on list.As information-based requirement is higher and higher, the list in MIS Also more and more, become increasingly complex.
In the prior art, the exploitation of MIS lists one by one is often completed by the way of technical staff's manual programming.Example Such as, the form design sketch for taking WORD formats makes list then by way of programming, places into system It is run.But it needs respectively to be programmed each list in this way, task amount is especially big, and requires ratio for some patterns Higher list, such as requirement are consistent with certain table, are such as developed with existing mode, and pattern is difficult to be tuned into unanimously.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly State the method and apparatus using WORD Program Generating lists of problem.
One side according to the present invention provides a kind of method using WORD Program Generating lists, including:
To one or more of WORD document list, it is inserted into respectively on the head of each list and tail portion and starts to mark Note and end label;
One or more controls are inserted into the WORD documents, and while being inserted into each control, in same position It is inserted into bookmark corresponding with the control and the attribute information of the control is recorded as to the data of an XML format;Wherein each book The ID of label is identical as the ID of corresponding control;
The WORD documents are saved as into a html file;
It, will be each according to the data of beginning label and the one or more lists of end label extraction from the html file The data of list are stored in respectively in independent html file;
To each independent html file, the bookmark in the html file is positioned, according to bookmark ID from the data of XML format It is middle to obtain control property information corresponding with the bookmark, which is replaced with by corresponding ASP.net according to the attribute information and is controlled The html file is saved as the list of preset format by part after the stem addition page elements of the html file.
Optionally, this method further comprises:
It monitors the opening event of WORD documents and preserves event;
When monitoring the opening event of WORD documents, the two of one or more lists are obtained from the preset table of database System stream, and it is read as the content of the WORD documents;
It is described the WORD documents are saved as into a html file to include:When the preservation event for monitoring WORD documents When, the binary stream of the WORD documents is output in the preset table;The WORD documents are loaded from the preset table Binary stream a to html file in.
Optionally, this method further comprises:
The attribute information of all controls is spliced into a final XML data;The final XML data is output to In preset table in database;
It is described control property information corresponding with the bookmark is obtained from the data of XML format according to bookmark ID to include:Root The final XML data in the preset table is inquired according to bookmark ID, obtains control property information corresponding with the bookmark.
Optionally, this method further comprises:
When monitoring the opening event of WORD documents, URL files are read, according to the URL files presetting from database The binary stream of one or more lists is obtained in table;
The binary stream of the WORD documents, which is output to the preset table, includes:
According to the URL interfaces of the URL files, the corresponding addresses webservice are calculated, it is corresponding by the address The binary stream data of WORD documents are output in the preset table by webservice interfaces.
Optionally, this method further comprises:
Webbrowser plug-in units are added in the program of list to be applied;
The list of preset format is loaded using webbrowser plug-in units.
Another aspect according to the present invention provides a kind of device using WORD Program Generating lists, including:
Label is inserted into unit, for one or more of WORD document list, on the head of each list and Tail portion is inserted into beginning label and terminates to mark respectively;
Control is inserted into unit, for being inserted into one or more controls in the WORD documents, and is being inserted into each control While, it is inserted into bookmark corresponding with the control in same position and the attribute information of the control is recorded as an XML format Data;The ID of wherein each bookmark is identical as the ID of corresponding control;
Data conversion storage unit, for the WORD documents to be saved as a html file;
List extraction unit, for one or more according to beginning label and end label extraction from the html file The data of each list are stored in independent html file by the data of list respectively;
List generation unit, for each independent html file, the bookmark in the html file being positioned, according to bookmark ID obtains control property information corresponding with the bookmark from the data of XML format, is replaced the bookmark according to the attribute information The html file is saved as into default lattice after the stem addition page elements of the html file for corresponding ASP.net controls The list of formula.
Optionally, which further comprises:
Monitoring unit and data capture unit;
The monitoring unit, the opening event for monitoring WORD documents and preservation event;
The data capture unit is further used for when monitoring the opening event of WORD documents, from the pre- of database If obtaining the binary stream of one or more lists in table, and it is read as the content of the WORD documents;
The data conversion storage unit, for when monitoring the preservation event of WORD documents, by the two of the WORD documents System stream is output in the preset table;The binary streams of the WORD documents is loaded from the preset table to a HTML text In part.
Optionally, the data conversion storage unit is further used for the attribute information of all controls being spliced into one finally XML data;The final XML data is output in the preset table in database;
The list generation unit, for inquiring the final XML data in the preset table according to bookmark ID, obtain with The corresponding control property information of the bookmark.
Optionally, the data capture unit, for when monitoring the opening event of WORD documents, reading URL files, The binary stream of one or more lists is obtained from the preset table of database according to the URL files;
The data conversion storage unit, for the URL interfaces according to the URL files, with calculating corresponding webservice The binary stream data of WORD documents are output in the preset table by location by the corresponding webservice interfaces in the address.
Optionally, which further comprises:
List loading unit, for adding webbrowser plug-in units in the program of list to be applied;It utilizes Webbrowser plug-in units load the list of preset format.
It can be seen from the above, technical scheme of the present invention, to one or more of WORD document list, in each table Single head and tail portion is inserted into beginning label and terminates to mark respectively, and according to demand, suitable position is inserted in WORD documents Enter one or more controls, and while being inserted into each control, bookmark corresponding with the control is inserted into same position and incites somebody to action The attribute information of the control is recorded as the data of an XML format, and the design to list in WORD programs has been achieved, has connect Get off and WORD documents saved as into a html file, from html file according to beginning label and terminate label extraction one or The data of each list are stored in independent html file by the data of multiple lists respectively, to each independent html file, The bookmark in the html file is positioned, control property corresponding with the bookmark is obtained from the data of XML format according to bookmark ID The bookmark is replaced with corresponding ASP.net controls by information according to the attribute information, and the page is added in the stem of the html file After element, which is saved as to the list of preset format.The technical solution utilizes easy-operating WORD programmings list sample Formula, and using the bookmark function of WORD, can be extracted in wherein useful pattern after WORD documents are saved as html file Hold and edited, ultimately generate corresponding forms pages, does not need complicated programming technique, it is easy to implement, it substantially increases List formation efficiency.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow of method using WORD Program Generating lists according to an embodiment of the invention Figure;
Fig. 2-a and Fig. 2-b respectively illustrate boundary of the WORD plug-in units according to an embodiment of the invention in WORD programs Face schematic diagram;
Fig. 2-c, which show to execute to be inserted on list head using WORD plug-in units according to an embodiment of the invention, to be started to mark Note, and the effect diagram after multiple controls is inserted into WORD documents;
Fig. 2-d show that the interface using WORD plug-in units according to an embodiment of the invention adjustment control property is illustrated Figure;
Fig. 3 shows a kind of structural schematic diagram of the device using WORD Program Generating lists.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Fig. 1 shows a kind of flow of method using WORD Program Generating lists according to an embodiment of the invention Figure, as shown in Figure 1, this method includes:
Step S110 distinguishes one or more of WORD document list on the head of each list and tail portion It is inserted into beginning label and terminates to mark.
Step S120 is inserted into one or more controls in WORD documents, and while being inserted into each control, same Position is inserted into bookmark corresponding with the control and the attribute information of the control is recorded as to the data of an XML format, wherein often The ID of a bookmark is identical as the ID of corresponding control.The attribute of each control can be adjusted according to user demand, such as height, Width etc. can also correspond to the attribute information changed in corresponding XML data when preserving the modification of user.
A WORD plug-in unit can be designed to execute above-mentioned steps S110 and step S120.For example, being developed using DotNet The plug-in unit for supporting WORD2007 and the above version, the program bag after exploitation are vsto formats, can be started simply by double-clicking The plug-in unit is installed in WORD programs.Fig. 2-a and Fig. 2-b respectively illustrate WORD plug-in units according to an embodiment of the invention Interface schematic diagram in WORD programs.As shown in Fig. 2-a and Fig. 2-b, which can be shown as toolbar in WORD programs On corresponding function menu item.Fig. 2-c, which show to execute to be inserted on list head in step S110 using the plug-in unit, to be started to mark Note, and the effect diagram after multiple controls is inserted into WORD documents.As shown, the bid inviter of grey bottom word, address, connection It is the control that people etc. is insertion.These controls can with attribute can be adjusted according to user demand, for example, Fig. 2-d show The interface schematic diagram using plug-in unit adjustment control property is gone out.
WORD documents are saved as a html file by step S130.WORD documents can not be directly as mis system etc. The list directly used, therefore also need to be further processed.
Step S140 extracts the data of one or more lists from html file according to beginning label and end label, The data of each list are stored in respectively in independent html file.
In html file at this time, there are a large amount of WORD patterns carried and the bookmarks of insertion, so html file It is handled, extracts the data of one or list.A kind of example of extraction form data is shown below:
First with regular expression:<body>[\\s\\S]*</body>Find out the body parts in html file;
It recycles beginning label and terminates the data that label extracts each list respectively.For example, the label used for:<-- Content conditions select beginning label -->With<-- content conditions selection terminates label -->, then regular expression matching is utilized:<-- Content conditions select beginning label [ s S] *-->With<-- content conditions selection terminate label [ s S] *-->.By this Content between the two is replaced and is taken out.
Step S150 positions the bookmark in the html file to each independent html file, according to bookmark ID from XML Control property information corresponding with the bookmark is obtained in the data of format, is replaced with the bookmark accordingly according to the attribute information The html file is saved as the table of preset format by ASP.net controls after the stem addition page elements of the html file It is single.
For example, bookmark is expressed with one section of span in html file, therefore can utilize regular expression, it is fixed Position bookmark.Such as:Utilize regular expression:<A name=" EB "+id+ "><span[\s\S]*</span></a>, take out book ID is signed, then obtains control property information corresponding with the bookmark from the data of XML format according to bookmark ID, is found corresponding Bookmark in HTML is substituted for corresponding ASP.net controls, as button is by control type information<asp:button id =" "/>Input frame is<asp:Input id="/>Deng.Finally, increase necessary page elements in the stem of the page, such as: <%@Page Language=" C# " MasterPageFile=" fixed page " AutoEventWireup=" true " Inherits=" commonPage " ValidateRequest=" false " %>.Finally, which is saved as into aspx The list of equal preset formats.
As it can be seen that method shown in FIG. 1, using easy-operating WORD programmings list pattern, and utilizes the bookmark of WORD Function can extract wherein useful style content after WORD documents to be saved as to html file and be edited, most throughout one's life At corresponding forms pages, complicated programming technique is not needed, it is easy to implement, substantially increase list formation efficiency.
In one embodiment of the invention, method shown in FIG. 1 further comprises:Monitor the opening event of WORD documents With the event of preservation;When monitoring the opening event of WORD documents, one or more lists are obtained from the preset table of database Binary stream, and be read as the content of WORD documents;WORD documents, which are saved as a html file, includes:When monitoring When the preservation event of WORD documents, the binary stream of WORD documents is output in preset table;WORD texts are loaded from preset table In the binary stream a to html file of shelves.
Similarly, the step that a WORD add-in comes in the present embodiment can be write.For example, utilizing One engineering of VirtualStudio too developments defines list class Rb_EpointBookmark in engineering;Entire engineering It is loaded by ThisAddIn.cs classes, specifically, the opening and preservation event of difference carry WORD documents.In the present embodiment, In view of the relevance of list and database, therefore, the binary system of one or more lists is obtained from the preset table of database Stream, and it is read as the content of WORD documents.Equally, it using the complete list pattern of the preset table design Storage, that is, is inserted into and adjusts The binary stream of WORD documents after each control, and when needing to generate list, then the two of WORD documents is loaded from preset table System flows in a html file.
In one embodiment of the invention, the above method further comprises:The attribute information of all controls is spliced into One final XML data;Final XML data is output in the preset table in database;According to bookmark ID from XML format Data in obtain corresponding with bookmark control property information and include:Preset table is inquired according to bookmark ID, is obtained and the bookmark Corresponding control property information.
Specifically, the attribute information of corresponding control can be spliced into an XML data, recorded first when being inserted into bookmark Into the tag attributes of the control, such as<Control id='XXXX'DBFiled='@fields ' sysTableName=' tables ' SysFieldName='Name'ControlType=' control types ' Prop=' control property ' Mark="/>;Finally protecting When depositing, cycle reads the tag attributes of all controls, and the attribute information of all controls is spliced into a final XML data, example Such as
<Controls>
<Control id='XXXX'DBFiled='@fields ' sysTableName=' tables ' sysFieldName=' Name'ControlType=' control types ' Prop=' control property ' Mark="/>
<Control id='XXXX'DBFiled='@fields ' sysTableName=' tables ' sysFieldName=' Name'ControlType=' control types ' Prop=' control property ' Mark="/>
<Control id='XXXX'DBFiled='@fields ' sysTableName=' tables ' sysFieldName=' Name'ControlType=' control types ' Prop=' control property ' Mark="/>
<Control id='XXXX'DBFiled='@fields ' sysTableName=' tables ' sysFieldName=' Name'ControlType=' control types ' Prop=' control property ' Mark="/>
</Controls>
Likewise it is possible to which final XML data is stored in the preset table in database.
Table 1 shows the table structure of the preset table of the WORD binary streams and final XML data that preserve list:
1 (table name of table:Frame_EpointForm)
Field name Type Explanation
FormID Varchar(50) List identifies
ReportContent Binary List WORD texts (binary stream)
DSContent Binary Final XML data (binary stream)
Name nVarchar(50) List name
In one embodiment of the invention, it using preset table, can also modify to completed list.Such as When monitoring the opening event of document, WORD binary streams and final XML data are read from preset table, are opened for WORD texts Shelves, contain multiple controls, the attribute information of each control is already recorded in tag attributes at this time in document content.At this time may be used The operation in such as previous embodiment is executed to modify according to demand to list, after modification, obtains new WORD binary streams With final XML data and be stored in preset table.
In one embodiment of the invention, the above method further comprises:When the opening event for monitoring WORD documents When, URL files are read, obtain the binary stream of one or more lists from the preset table of database according to the URL files;It will The binary stream of WORD documents is output to preset table:According to the URL interfaces of the URL files, calculate corresponding The binary stream data of WORD documents are output to pre- by the addresses webservice by the corresponding webservice interfaces in the address If in table.
The concrete mode for the binary stream that one or more lists are obtained from preset table is provided in the present embodiment, i.e., By reading URL files, list binary stream is read from database according to the related urls in URL files, is beaten for WORD programs It opens.After the completion of using WORD programs by form design, when pressing WORD save buttons, according to the URL interface meters of the URL files The corresponding addresses webservice are calculated, the binary stream of WORD documents is then pushed into webservice interfaces.In addition, Final XML data can be pushed into webservice interfaces in this way.
In one embodiment of the invention, method shown in FIG. 1 further comprises:Add in the program of list to be applied Add webbrowser plug-in units;The list of preset format is loaded using webbrowser plug-in units.
By taking Database Systems as an example, the list for the specific format that method shown in FIG. 1 generates, as the list of aspx formats exists The processing for being associated background class is also needed to before use, in data system, there can be a logical background process class added, according to The final XML data in control and configuration database in user interface, can load corresponding data from database, Lower save button is put on a user interface, it can will be in data retrography to database.In this way, one includes the dynamic for generating list Web page can use.
But in standalone version program, the list of this specific format cannot be directly applied.Therefore it present embodiments provides A kind of scheme from webbrowser plug-in units to the program of list to be applied that adding, in this way, into the system of list to be applied In such a way that inside loads, using the webclient components of .net, the static elements such as aspx format lists are captured, then HTML forms are saved as, to obtain a static page.Then it is controlled using webbrowser in the interface of standalone version program Part loads the page.By webbrower.document objects in the control, the value of some control can be obtained, it can also The value of some control is set, so as to operate the information on list, reaches the function of displaying and typing.
Fig. 3 shows a kind of structural schematic diagram of the device using WORD Program Generating lists, as shown in figure 3, utilizing The device 300 of WORD Program Generating lists includes:
Label is inserted into unit 310, is used for one or more of WORD document list, on the head of each list It is inserted into beginning label respectively with tail portion and terminates to mark.
Control is inserted into unit 320, for being inserted into one or more controls in WORD documents, and is being inserted into each control Meanwhile it being inserted into corresponding with control bookmark in same position and the attribute information of the control is recorded as XML format Data.The ID of wherein each bookmark is identical as the ID of corresponding control.
Data conversion storage unit 330, for WORD documents to be saved as a html file.
List extraction unit 340, for one or more according to beginning label and end label extraction from html file The data of each list are stored in independent html file by the data of list respectively.
List generation unit 350, for each independent html file, positioning the bookmark in the html file, according to Bookmark ID obtains control property information corresponding with the bookmark from the data of XML format, according to the attribute information by the bookmark Corresponding ASP.net controls are replaced with, after the stem addition page elements of the html file, which is saved as into default lattice The list of formula.
As it can be seen that device shown in Fig. 3 utilizes easy-operating WORD programmings list by the mutual cooperation of each unit Pattern, and using the bookmark function of WORD, wherein useful pattern can be extracted after WORD documents are saved as html file Content is simultaneously edited, and corresponding forms pages are ultimately generated, and does not need complicated programming technique, easy to implement, is greatly improved List formation efficiency.
In one embodiment of the invention, device shown in FIG. 1 further comprises:Monitoring unit and data acquisition list Member;Monitoring unit, the opening event for monitoring WORD documents and preservation event;Data capture unit is further used for when prison When measuring the opening event of WORD documents, the binary stream of one or more lists is obtained from the preset table of database, and is read It is taken as the content of WORD documents;Data conversion storage unit, for when monitoring the preservation event of WORD documents, by WORD documents Binary stream is output in preset table;From the binary stream a to html file for loading WORD documents in preset table.
In one embodiment of the invention, in above-mentioned apparatus, data conversion storage unit is further used for all controls Attribute information is spliced into a final XML data;Final XML data is output in the preset table in database;List Generation unit obtains control property information corresponding with the bookmark for inquiring preset table according to bookmark ID.
In one embodiment of the invention, in above-mentioned apparatus, data capture unit monitors WORD documents for working as When opening event, URL files are read, obtain the two of one or more lists from the preset table of database according to the URL files System stream;Data conversion storage unit calculates the corresponding addresses webservice for the URL interfaces according to the URL files, leads to It crosses the corresponding webservice interfaces in the address binary stream data of WORD documents are output in preset table.
In one embodiment of the invention, device shown in FIG. 1 further comprises:List loading unit, for waiting for Using addition webbrowser plug-in units in the program of list;The list of preset format is loaded using webbrowser plug-in units.
It should be noted that the specific implementation mode of above-mentioned each device embodiment and aforementioned corresponding method embodiment is specific Embodiment is identical, and details are not described herein.
In conclusion technical scheme of the present invention, to one or more of WORD document list, in each list Head and tail portion be inserted into beginning label respectively and terminate to mark, and according to demand, the suitable position insertion in WORD documents One or more controls, and while being inserted into each control, are inserted into bookmark corresponding with the control and should in same position The attribute information of control is recorded as the data of an XML format, and the design to list in WORD programs has been achieved, has connect down WORD documents are saved as into a html file, according to beginning label and end label extraction one or more from html file The data of each list are stored in independent html file by the data of a list respectively, fixed to each independent html file Bookmark in the html file of position obtains control property letter corresponding with the bookmark according to bookmark ID from the data of XML format Breath, corresponding ASP.net controls are replaced with according to the attribute information by the bookmark, in the stem addition page member of the html file After element, which is saved as to the list of preset format.The technical solution utilizes easy-operating WORD programmings list pattern, And using the bookmark function of WORD, wherein useful style content can be extracted simultaneously after WORD documents are saved as html file It is edited, ultimately generates corresponding forms pages, do not need complicated programming technique, it is easy to implement, substantially increase list Formation efficiency.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.
It should be noted that:
Algorithm and display be not inherently related to any certain computer, virtual bench or miscellaneous equipment provided herein. Various fexible units can also be used together with teaching based on this.As described above, it constructs required by this kind of device Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) are according to the ... of the embodiment of the present invention using WORD Program Generating lists to realize The some or all functions of some or all components in device.The present invention is also implemented as being retouched here for executing The some or all equipment or program of device (for example, computer program and computer program product) for the method stated. It is such to realize that the program of the present invention may be stored on the computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from internet website and be obtained, either provide on carrier signal or with it is any its He provides form.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of method using WORD Program Generating lists, which is characterized in that the method includes:
To one or more of WORD document list, the head of each list and tail portion be inserted into respectively beginning label and Terminate label;
It is inserted into one or more controls in the WORD documents, and while being inserted into each control, is inserted into same position Bookmark corresponding with the control and the data that the attribute information of the control is recorded as to an XML format;Wherein each bookmark ID is identical as the ID of corresponding control;
The WORD documents are saved as into a html file;
According to the data of beginning label and the one or more lists of end label extraction from the html file, by each list Data be stored in respectively in independent html file;
To each independent html file, the bookmark in the html file is positioned, is obtained from the data of XML format according to bookmark ID Control property information corresponding with the bookmark is taken, which is replaced with by corresponding ASP.net controls according to the attribute information, After the stem addition page elements of the html file, which is saved as to the list of preset format.
2. the method as described in claim 1, which is characterized in that this method further comprises:
It monitors the opening event of WORD documents and preserves event;
When monitoring the opening event of WORD documents, the binary system of one or more lists is obtained from the preset table of database Stream, and it is read as the content of the WORD documents;
It is described the WORD documents are saved as into a html file to include:It, will when monitoring the preservation event of WORD documents The binary stream of the WORD documents is output in the preset table;Loaded from the preset table the two of the WORD documents into System flows in a html file.
3. method as claimed in claim 2, which is characterized in that this method further comprises:
The attribute information of all controls is spliced into a final XML data;The final XML data is output to data In preset table in library;
It is described control property information corresponding with the bookmark is obtained from the data of XML format according to bookmark ID to include:According to book Label ID inquires the final XML data in the preset table, obtains control property information corresponding with the bookmark.
4. method as claimed in claim 2, which is characterized in that this method further comprises:
When monitoring the opening event of WORD documents, URL files are read, according to the URL files from the preset table of database Obtain the binary stream of one or more lists;
The binary stream of the WORD documents, which is output to the preset table, includes:
According to the URL interfaces of the URL files, the corresponding addresses webservice are calculated, it is corresponding by the address The binary stream data of WORD documents are output in the preset table by webservice interfaces.
5. the method as described in claim 1, which is characterized in that this method further comprises:
Webbrowser plug-in units are added in the program of list to be applied;
The list of preset format is loaded using webbrowser plug-in units.
6. a kind of device using WORD Program Generating lists, which is characterized in that described device includes:
Label is inserted into unit, is used for one or more of WORD document list, on the head and tail portion of each list It is inserted into beginning label respectively and terminates to mark;
Control is inserted into unit, for being inserted into one or more controls in the WORD documents, and is being inserted into the same of each control When, it is inserted into bookmark corresponding with the control in same position and the attribute information of the control is recorded as to the number of an XML format According to;The ID of wherein each bookmark is identical as the ID of corresponding control;
Data conversion storage unit, for the WORD documents to be saved as a html file;
List extraction unit, for extracting one or more lists according to beginning label and end label from the html file Data, the data of each list are stored in respectively in independent html file;
List generation unit positions the bookmark in the html file for each independent html file, according to bookmark ID from Control property information corresponding with the bookmark is obtained in the data of XML format, which is replaced with by phase according to the attribute information The html file is saved as preset format by the ASP.net controls answered after the stem addition page elements of the html file List.
7. device as claimed in claim 6, which is characterized in that the device further comprises:
Monitoring unit and data capture unit;
The monitoring unit, the opening event for monitoring WORD documents and preservation event;
The data capture unit is further used for when monitoring the opening event of WORD documents, from the preset table of database It is middle to obtain the binary stream of one or more lists, and it is read as the content of the WORD documents;
The data conversion storage unit, for when monitoring the preservation event of WORD documents, by the binary system of the WORD documents Stream is output in the preset table;The binary streams of the WORD documents is loaded from the preset table to a html file In.
8. device as claimed in claim 7, which is characterized in that
The data conversion storage unit is further used for the attribute information of all controls being spliced into a final XML data;It will The final XML data is output in the preset table in database;
The list generation unit obtains and the book for inquiring the final XML data in the preset table according to bookmark ID Sign corresponding control property information.
9. device as claimed in claim 7, which is characterized in that
The data capture unit, for when monitoring the opening event of WORD documents, reading URL files, according to URL texts Part obtains the binary stream of one or more lists from the preset table of database;
The data conversion storage unit calculates the corresponding addresses webservice for the URL interfaces according to the URL files, leads to It crosses the corresponding webservice interfaces in the address binary stream data of WORD documents are output in the preset table.
10. device as claimed in claim 6, which is characterized in that the device further comprises:
List loading unit, for adding webbrowser plug-in units in the program of list to be applied;It is inserted using webbrowser Part loads the list of preset format.
CN201610164421.7A 2016-03-22 2016-03-22 A kind of method and apparatus using WORD Program Generating lists Active CN105786788B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610164421.7A CN105786788B (en) 2016-03-22 2016-03-22 A kind of method and apparatus using WORD Program Generating lists

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610164421.7A CN105786788B (en) 2016-03-22 2016-03-22 A kind of method and apparatus using WORD Program Generating lists

Publications (2)

Publication Number Publication Date
CN105786788A CN105786788A (en) 2016-07-20
CN105786788B true CN105786788B (en) 2018-09-04

Family

ID=56390480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610164421.7A Active CN105786788B (en) 2016-03-22 2016-03-22 A kind of method and apparatus using WORD Program Generating lists

Country Status (1)

Country Link
CN (1) CN105786788B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783777B (en) * 2018-12-12 2023-05-16 东软集团股份有限公司 Form export method and device, readable storage medium and electronic equipment
CN110502233A (en) * 2019-02-21 2019-11-26 贵州广思信息网络有限公司 The method that continuous multiple calculation amounts are calculated in WORD
CN110502234A (en) * 2019-02-21 2019-11-26 贵州广思信息网络有限公司 The method calculated automatically is realized in a kind of WORD
CN110502728A (en) * 2019-02-21 2019-11-26 贵州广思信息网络有限公司 WORD multiselect changes the method that pattern eliminates frequent paging
CN110263221A (en) * 2019-06-21 2019-09-20 福建南威软件有限公司 A kind of method and system based on xml operation word document
CN112861482A (en) * 2021-02-07 2021-05-28 吉林省科学技术信息研究所 File online editing method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398812A (en) * 2007-09-27 2009-04-01 国际商业机器公司 Apparatus and method for generating electric table with service logic

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7155667B1 (en) * 2000-06-21 2006-12-26 Microsoft Corporation User interface for integrated spreadsheets and word processing tables
CN101149737A (en) * 2007-05-10 2008-03-26 廖义洪 Method for quickly establishing web form and automatically establishing corresponding data table in database through Microsoft Word
US20120166928A1 (en) * 2010-12-23 2012-06-28 Sap Ag Field extensibility in service interfaces and forms message types
CN103136173A (en) * 2011-11-29 2013-06-05 北京建龙重工集团有限公司 Method converting mass word or excel format form documents into webpages
CN103914438A (en) * 2012-12-30 2014-07-09 航天信息股份有限公司 Template and tag implementation based excel display and export method and system
CN103413041B (en) * 2013-08-06 2016-04-06 北京航空航天大学 A kind of collaborative perception system constituting method based on complex product development object

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398812A (en) * 2007-09-27 2009-04-01 国际商业机器公司 Apparatus and method for generating electric table with service logic

Also Published As

Publication number Publication date
CN105786788A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN105786788B (en) A kind of method and apparatus using WORD Program Generating lists
JP4423613B2 (en) Computerized service manual generating method, computerized service manual generating device, computerized service manual generating program, and recording medium on which the program is recorded
CN104933142B (en) Animated show method and apparatus
Campelo et al. detrendeR–a graphical user interface to process and visualize tree-ring data using R
Tallis Semantic word processing for content authors
WO2011052431A1 (en) System, method, and program for editing of electronic document
CN105528418B (en) A kind of design documentation generation method and device
WO2005076155A2 (en) Method and system for automating creation of multiple stylesheet formats using an integrated visual design environment
EP2761448A1 (en) Simulation of web applications and secondary devices in a web browser, web application development tools, and methods using the same
CN103678698A (en) Method and device for improving on-line browsing loading speed of PDF document
Nanes Slide Set: Reproducible image analysis and batch processing with ImageJ
US11314757B2 (en) Search results modulator
CN103559184A (en) Form page display method and device
JP2005004726A (en) Electronic service manual creating method, additional data generating method, program for creating electronic service manual, and program for generating additional data
KR20170071553A (en) Mathematical formula processing method, device, apparatus and computer storage medium
US20160314502A1 (en) System and method for streamlining the design and development process of multiple advertising units
US20080163102A1 (en) Object selection in web page authoring
Baxter et al. SPIRE: the SPIDER reconstruction engine
US20070185828A1 (en) Graphical portal in an information management system and process
US9892092B2 (en) Automatic generation of assent indication in a document approval function for collaborative document editing
CN103530163B (en) The method and browser of loading browser instrument
KR100261265B1 (en) Apparatus for making a web document and method of operating it
CN106648338A (en) Method and device for editing data
Namee et al. A form and API data management platform for progressive web application and serverless application architecture
CN102446199B (en) Method for integrating really simple syndication files

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Suzhou City, Jiangsu province 215600 Zhangjiagang Yang Jiang Fan Road No. 8

Patentee after: Guotai Xindian Software Co.,Ltd.

Address before: Suzhou City, Jiangsu province 215600 Zhangjiagang Yang Jiang Fan Road No. 8

Patentee before: Jiangsu Guotai Xindian Software Co.,Ltd.

Address after: Suzhou City, Jiangsu province 215600 Zhangjiagang Yang Jiang Fan Road No. 8

Patentee after: Jiangsu Guotai Xindian Software Co.,Ltd.

Address before: Suzhou City, Jiangsu province 215600 Zhangjiagang Yang Jiang Fan Road No. 8

Patentee before: JIANGSU GUOTAI XINDIAN SOFTWARE Co.,Ltd.