Document generation method and device, electronic equipment and storage medium
By displaying the subcontrol and system data of the third-party system in the document generation system and allowing users to configure parameters, the problem of low document generation efficiency in the prior art is solved, and efficient document automatic generation is achieved.
Patent Information
- Application Number
- CN202411658278.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-11-19
AI Technical Summary
The prior art cannot efficiently generate documents automatically, resulting in low efficiency in generating documents.
By responding to the user's operation on the target control, displaying the subcontrol corresponding to each subsystem in the third-party system, and in response to the user's selection of a certain subcontrol, displaying multiple system data in the subsystem. The user can select the required data and configure the parameters to automatically generate the target document.
It improves the efficiency of users to filter data and automatically generates documents, which significantly improves the efficiency of document generation.
Smart Images

Figure CN119514489A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a document generation method, device, electronic device and storage medium. Background Art
[0002] As one of the core components of office software, the document editor has the capabilities of text editing, formatting and document management. However, as document processing needs become increasingly complex and diverse, the functions of traditional document editors can no longer meet users' requirements for efficiency and flexibility.
[0003] In the related art, in order to meet the user's requirements for efficiency and flexibility, a variety of tool plug-ins are integrated into the document toolbox to expand the original functions of the document editor. Specifically, by writing code that complies with the document plug-in interface specification, the document toolbox is loaded and run as an extension component of the traditional document editor to operate the document content (such as sending emails, text format optimization, table processing and unformatted links in the document), thereby improving the document processing efficiency.
[0004] However, the above method operates on existing documents and cannot automatically generate documents based on external system data. Documents still need to be generated through manual editing, resulting in low efficiency in document generation. Summary of the invention
[0005] The present application provides a document generation method, device, electronic device and storage medium, which can solve the problem of low efficiency in generating documents.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] In a first aspect, the present application provides a document generation method, the method comprising: in response to an operation on a target control, displaying at least one sub-control, the target control being used to indicate a third-party system, and a sub-control being used to indicate a subsystem in the third-party system; in response to the operation on the target sub-control, displaying a system window of the target subsystem, the system window including at least one system data, the target sub-control being any one of the at least one sub-controls; generating a target document based on a parameter configuration operation on at least one system data, the target document being a document corresponding to the target subsystem.
[0008] The document generation method provided in the embodiment of the present application displays the sub-controls corresponding to each subsystem in the third-party system in response to the user's operation on the target control, and displays multiple system data in the subsystem in response to the user's selection operation on a certain sub-control, so as to facilitate the user to select the required data and improve the user's efficiency in filtering data. Furthermore, the selected data can also be parameterized to automatically generate the target document corresponding to the subsystem according to the parameter configuration, without the need for manual integration of the data in the system into the document, thereby improving the document generation efficiency.
[0009] In combination with the first aspect above, in a possible implementation, the method also includes: generating a target control based on the system function of the third-party system, generating a sub-control for each subsystem in the third-party system based on the link information of the subsystem, and establishing a binding relationship between the link information of the subsystem and the sub-control.
[0010] In combination with the first aspect above, in a possible implementation method, the above-mentioned displaying the system window of the target subsystem in response to the operation of the target subcontrol includes: determining the link information of the target subsystem bound to the target subcontrol in response to the operation of the target subcontrol, and jumping to the system window of the target subsystem according to the link information of the target subsystem.
[0011] In combination with the above-mentioned first aspect, in a possible implementation method, the above-mentioned generation of the target document based on the parameter configuration operation of at least one system data includes: in response to a selection operation of the target system data in the at least one system data, displaying a document configuration page of the target system data, the document configuration page including at least one display parameter of the target system data, and generating the target document based on the configuration operation of at least one display parameter in the document configuration page.
[0012] In combination with the above-mentioned first aspect, in a possible implementation method, the above-mentioned generation of the target document based on the configuration operation of at least one display parameter in the document configuration page includes: determining the display mode of the target system data in response to the configuration operation of at least one display parameter in the document configuration page, and generating the target document based on the display mode of the target system data and the target system data.
[0013] In combination with the above-mentioned first aspect, in a possible implementation method, the above-mentioned generation of the target document based on the display method of the target system data and the target system data includes: receiving the display method of the target system data and the target system data sent by the target subsystem, and displaying the target system data according to the display method of the target system data to obtain the target document.
[0014] In combination with the above first aspect, in a possible implementation manner, the method further includes: during the generation of the target document, displaying the generation progress of the target document.
[0015] In a second aspect, the present application provides a document generation device, which includes: a display unit and a generation unit, wherein: the display unit is used to display at least one sub-control in response to an operation on a target control, the target control is used to indicate a third-party system, and a sub-control is used to indicate a subsystem in the third-party system; the display unit is also used to display a system window of the target subsystem in response to an operation on the target sub-control, the system window includes at least one system data, and the target sub-control is any one of the at least one sub-control; the generation unit is used to generate a target document based on a parameter configuration operation on at least one system data, and the target document is a document corresponding to the target subsystem.
[0016] In combination with the above-mentioned second aspect, in a possible implementation method, the generation unit is also used to: generate a target control based on the system function of the third-party system; for each subsystem in the third-party system, generate a sub-control based on the link information of the subsystem, and establish a binding relationship between the link information of the subsystem and the sub-control.
[0017] In combination with the above second aspect, in a possible implementation method, the display unit is specifically used to: determine the link information of the target subsystem bound to the target subsystem in response to the operation of the target subsystem; and jump to the system window of the target subsystem according to the link information of the target subsystem.
[0018] In combination with the above-mentioned second aspect, in a possible implementation method, the generation unit is specifically used to: in response to a selection operation of target system data in at least one system data, display a document configuration page of the target system data, the document configuration page including at least one display parameter of the target system data; based on the configuration operation of at least one display parameter in the document configuration page, generate a target document.
[0019] In combination with the above-mentioned second aspect, in a possible implementation method, the generation unit is specifically used to: determine the display mode of the target system data in response to the configuration operation of at least one display parameter in the document configuration page; and generate the target document based on the display mode of the target system data and the target system data.
[0020] In combination with the above second aspect, in a possible implementation method, the generation unit is specifically used to: receive the display method of the target system data and the target system data sent by the target subsystem; display the target system data according to the display method of the target system data to obtain the target document.
[0021] In combination with the above second aspect, in a possible implementation manner, the display unit is further configured to display the generation progress of the target document during the generation of the target document.
[0022] In a third aspect, the present application provides an electronic device comprising: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement a document generation method as described in the first aspect and any possible implementation method of the first aspect.
[0023] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program or instructions. When the computer program or instructions are run on an electronic device, the electronic device executes the document generation method described in the first aspect and any possible implementation of the first aspect.
[0024] In a fifth aspect, the present application provides a computer program product comprising a computer program or instructions, which, when executed on an electronic device, enables the electronic device to execute a document generation method as described in the first aspect and any possible implementation of the first aspect.
[0025] In a sixth aspect, the present application provides a chip, the chip comprising a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the document generation method described in the first aspect and any possible implementation of the first aspect.
[0026] Specifically, the chip provided in the present application also includes a memory for storing computer programs or instructions.
[0027] It should be noted that the above-mentioned computer program or instruction may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the device, or may be packaged separately from the processor of the device, which is not limited in this application.
[0028] In a seventh aspect, the present application provides a document generation system, comprising: a document generation device and a data server, wherein the document generation device is used to execute the document generation method as described in the first aspect and any possible implementation of the first aspect.
[0029] The descriptions of the second to seventh aspects of the present application can refer to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second to seventh aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.
[0030] In this application, the name of the document generation device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalent technologies.
[0031] These and other aspects of the present application will become more apparent from the following description.
[0032] The above scheme brings at least the following beneficial effects: Based on the above technical scheme, the document generation method provided by the present application displays the sub-controls corresponding to each subsystem in the third-party system in response to the user's operation on the target control, and displays multiple system data in the subsystem in response to the user's selection operation on a sub-control, so as to facilitate the user to select the required data and improve the efficiency of the user in screening data. Furthermore, the selected data can also be parameterized to automatically generate the target document corresponding to the subsystem according to the parameter configuration, without the need to manually integrate the data in the system into the document, thereby improving the efficiency of document generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of the architecture of a document generation system provided in an embodiment of the present application;
[0034] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0035] Figure 3 A flowchart of a document generation method provided in an embodiment of the present application;
[0036] Figure 4 One of the interface schematic diagrams used in a document generation method provided in an embodiment of the present application;
[0037] Figure 5 A second schematic diagram of an interface used in a document generation method provided in an embodiment of the present application;
[0038] Figure 6 A third schematic diagram of an interface used in a document generation method provided in an embodiment of the present application;
[0039] Figure 7 A fourth schematic diagram of an interface used in a document generation method provided in an embodiment of the present application;
[0040] Figure 8 A flowchart of another document generation method provided in an embodiment of the present application;
[0041] Fig. 9A fifth interface diagram of a document generation method provided in an embodiment of the present application;
[0042] Fig.10 A sixth schematic diagram of an interface used in a document generation method provided in an embodiment of the present application;
[0043] Fig.11 A seventh schematic diagram of an interface used in a document generation method provided in an embodiment of the present application;
[0044] Fig.12 An eighth schematic diagram of an interface used in a document generation method provided in an embodiment of the present application;
[0045] Fig.13 A flowchart of another document generation method provided in an embodiment of the present application;
[0046] Fig.14 A ninth interface diagram of a document generation method provided in an embodiment of the present application;
[0047] Fig.15 A flowchart of another document generation method provided in an embodiment of the present application;
[0048] Fig.16 A schematic diagram of the structure of a document generation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0051] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0052] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0053] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0054] In the description of the present application, unless otherwise specified, “plurality” means two or more.
[0055] In office software, Word document is one of the important functions. The current Word document supports online document editing (such as input, editing, formatting text, etc.), typesetting (such as paragraph indentation, alignment, line spacing, first line indentation, page breaks, section breaks, etc.), inserting elements (such as inserting pictures, tables, icons, shapes, etc.), review and collaboration, printing and exporting, etc.
[0056] In the related art, a Word plug-in (such as a Word toolbox) is used to expand the original function set of Word to improve the efficiency of editing and processing Word documents. The Word toolbox supports both Word documents of Office software and Word documents of WPS software, and includes the following functions:
[0057] 1) Support sending emails directly in Word documents;
[0058] 2) Supports conversion of Chinese and English punctuation, standardizes brackets in file numbers and years, splits documents, and merges documents;
[0059] 3) Support deleting zero values in the table and optimizing the table display effect;
[0060] 4) Support adding and removing thousands separators, and adding uppercase amounts;
[0061] 5) Supports unformatted links, online help, etc.
[0062] Specifically, the implementation principle of the Word toolbox is: by writing codes that comply with the Word document plug-in interface specification (such as using the component object model (COM) add-in technology), the Word toolbox is loaded and run as an extension component of the Word document. In addition, since the Word document is described and organized by the document object model (DOM), and the DOM contains various parts of the document (such as paragraphs, tables, pictures, etc.), each part can be accessed and operated through the DOM.
[0063] Therefore, the Word Toolbox can obtain DOM through a third-party plug-in to obtain a Word document object, and then obtain different texts and other elements through the syntax exposed by the Word document object, perform formatting, style settings (such as setting fonts, sizes, paragraph formats, etc.), and insert various elements (such as text, tables, pictures, etc.).
[0064] However, the Word plug-in in the related art operates on the existing document to enhance the function of the Word document. When the document needs to be generated, the Word plug-in will not be applicable and the document still needs to be generated through manual editing, resulting in low efficiency in generating documents.
[0065] In view of this, the embodiment of the present application provides a document generation method, which can be applied to the scenario of automatically generating documents. Among them, the method displays the sub-controls corresponding to each subsystem in the third-party system in response to the user's operation on the target control, and displays multiple system data in the subsystem in response to the user's selection operation on a certain sub-control, so as to facilitate the user to select the required data and improve the efficiency of the user's data screening. Furthermore, the selected data can also be parameterized to automatically generate the target document corresponding to the subsystem according to the parameter configuration, without the need to manually integrate the data in the system into the document, thereby improving the efficiency of document generation.
[0066] The implementation of the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.
[0067] Figure 1 This is a schematic diagram of the architecture of a document generation system provided in an embodiment of the present application. Figure 1 As shown, the document generation system 10 includes: a document generation device 101 and a data server 102 .
[0068] The document generation device 101 and the data server 102 may be one or more. For ease of understanding, Figure 1 Only one document generation device and one data server are shown.
[0069] The document generation device 101 and the data server 102 are connected via a communication link. The communication link may be a wired communication link or a wireless communication link, which is not limited in the present application.
[0070] In some embodiments, the document generation device 101 can display at least one sub-control in response to an operation on the target control, and then display a system window of the target subsystem in response to an operation on the target sub-control, the system window including at least one system data, and finally, based on the parameter configuration operation on the at least one system data, generate a target document corresponding to the target subsystem.
[0071] In some embodiments, the data server 102 is used to send at least one system data and at least one display mode of the system data to the document generation device 101. Accordingly, the document generation device 101 receives the at least one system data and at least one display mode of the system data sent by the data server 102.
[0072] When implemented by hardware, each module in the document generation device 101 can be integrated into Figure 2 The hardware structure of the electronic device shown is implemented. Specifically, Figure 2 As shown, the basic hardware structure of electronic equipment is introduced.
[0073] Figure 2 The hardware structure diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the electronic device includes at least one processor 201, a communication line 202, and at least one communication interface 204, and may also include a memory 203. The processor 201, the memory 203 and the communication interface 204 may be connected via the communication line 202.
[0074] The processor 201 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA).
[0075] The communication link 202 may include a pathway for transmitting information between the above-mentioned components.
[0076] The communication interface 204 is used to communicate with other devices or communication networks, and can use any transceiver-like device, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.
[0077] The memory 203 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to include or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0078] In one possible design, the memory 203 can exist independently of the processor 201, that is, the memory 203 can be a memory outside the processor 201. In this case, the memory 203 can be connected to the processor 201 through the communication line 202, and is used to store execution instructions or application code, and the processor 201 controls the execution to implement the document generation method provided in the following embodiment of the present application. In another possible design, the memory 203 can also be integrated with the processor 201, that is, the memory 203 can be the internal memory of the processor 201, for example, the memory 203 is a high-speed cache, which can be used to temporarily store some data and instruction information, etc.
[0079] As a possible implementation, the processor 201 may include one or more CPUs, for example Figure 2 As another possible implementation, the electronic device may include multiple processors, such as Figure 2 As another possible implementation, the electronic device may further include an output device 205 and an input device 206.
[0080] It should be pointed out that the various embodiments of the present application can learn from or refer to each other. For example, the same or similar steps, method embodiments, system embodiments and device embodiments can all refer to each other without limitation.
[0081] Figure 3 A flowchart of a document generation method provided in an embodiment of the present application, the subject executing the method may be as follows Figure 1 The document generating device 101 shown may also be various units / modules in the document generating device 101, such as an integrated circuit or a chip, which is not specifically limited in the embodiment of the present application.
[0082] The following takes a Word document as an example to describe in detail the implementation of the document generation method provided in the embodiment of the present application.
[0083] It should be noted that the Word document mentioned in the embodiments of the present application can be various types of existing Word documents, for example, it can be a Word document in a word processing system (WPS) or a Word document in Microsoft Office, and the present application does not limit this.
[0084] For example, Figure 3 As shown, the document generation method provided in the embodiment of the present application includes the following steps:
[0085] S301: In response to an operation on a target control, display at least one sub-control.
[0086] The target control is used to indicate a third-party system, and a sub-control is used to indicate a sub-system in the third-party system.
[0087] In some embodiments, the target control may be a control that is pre-configured separately for a third-party system.
[0088] Exemplarily, the target control may be a Word plug-in.
[0089] In some embodiments, the third-party system refers to a system other than the above Figure 1 A system other than the system used by the document generation device 101 in the document generation device 101, that is, a system used by the data server.
[0090] Exemplarily, the third-party system may be a World Wide Web (WWW) system or a website (web) system.
[0091] In an embodiment of the present application, the above-mentioned operation on the target control can be a user's click operation on the target control (such as a single operation, a double-click operation, a three-level operation), a long press operation, a drag operation, and other achievable operation methods, and the present application does not limit this.
[0092] In some embodiments, the sub-controls may be controls pre-configured separately for each sub-system in the third-party system, and each sub-control establishes a binding relationship with the link information of a sub-system to achieve one-to-one indication.
[0093] Exemplarily, the child control may be a control in a functional area of a Word document.
[0094] In some embodiments, after the user clicks on a target control in a document, a sub-control corresponding to each sub-system of the third-party system will be displayed in the function area of the document.
[0095] Example 1, such as Figure 4 As shown in FIG. 1 , the third-party system is a web system of a certain enterprise. After the user clicks the target control (such as 'Bidding Digitalization') corresponding to the web system in the Word document, Figure 5 As shown, the sub-controls corresponding to each subsystem in the web system (such as 'personnel information', 'company qualifications', 'performance information', 'award information', 'bidding template', 'scientific research results', 'financial information', 'service capabilities', 'registration information', and 'personal center') will be displayed in the functional area of the Word document.
[0096] S302: In response to the operation on the target sub-control, display the system window of the target sub-system.
[0097] The system window includes at least one system data, and the target sub-control is any sub-control in the at least one sub-control.
[0098] In some embodiments, the system window can be a floating pop-up window evoked above the page of a Word document, and a subsystem is contained in the floating pop-up window; it can also be a full-screen window displayed after directly switching the page of the Word document, and a subsystem is contained in the window.
[0099] In some embodiments, system data refers to all data contained in the target subsystem.
[0100] In an optional implementation, after the user clicks on the target sub-control in the document, a floating window of the target sub-system corresponding to the target sub-control will be displayed above the document.
[0101] Example 2, combined with Example 1, such as Figure 6As described above, after the user clicks the target sub-control (such as 'performance information') corresponding to the web system in the Word document function area, Figure 7 As shown, a system window (such as 'Quote Performance Information') will be displayed floating above the Word document, and the system window includes multiple contracts (such as Contract 1, Contract 2, Contract 3, Contract 4).
[0102] In another optional implementation, after the user clicks the target sub-control in the document, the document interface will be directly switched to a full-screen display window of the target subsystem corresponding to the target sub-control.
[0103] Optionally, in response to an operation on a target subcontrol, link information of a target subsystem bound to the target subcontrol may be determined first, and then the system window of the target subsystem may be jumped to according to the link information of the target subsystem.
[0104] The link information of the target subsystem may include an Internet protocol (IP) address, a port number, a protocol type, etc. of the target subsystem.
[0105] Exemplarily, after the user interacts with the target sub-control in the Word document ribbon (such as clicking, touching, selecting), the link information bound to the target sub-control can be retrieved from the internal database or configuration file based on the identification information of the target sub-control. After obtaining the link information of the target subsystem, an access request can be generated based on the link information to request access to the target subsystem in the third-party system, and then the system window of the target subsystem will be displayed above the Word document.
[0106] Further optionally, after requesting access to the target subsystem of the third-party system, an identity authentication window may be displayed above the Word document first, and after the user performs security verification, a system window of the target subsystem may be displayed above the Word document.
[0107] Exemplarily, security verification may include fingerprint verification, password verification, face verification, iris verification, etc.
[0108] S303: Generate a target document based on a parameter configuration operation on at least one system data.
[0109] Among them, the target document is the document corresponding to the target subsystem.
[0110] In some embodiments, after displaying the system window corresponding to the target subsystem, one or several data in at least one system data in the system window can be checked, and then the display layout and display quality of the inserted data can be set for the checked data, and then the checked data can be displayed in the document according to the set display layout and display layout to obtain the target document.
[0111] Example 3, combined with Example 2, the user can select Contract 1 and Contract 2 in the floating window above the Word document, and then set the display layout of Contract 1 and Contract 2, as well as the display quality of Contract 1 and Contract 2 in the Word document, and then display Contract 1 and Contract 2 in the body of the Word document according to the set parameter configuration to obtain the target Word document.
[0112] In the document generation method provided in the embodiment of the present application, by responding to the user's operation on the target control, the sub-control corresponding to each subsystem in the third-party system is displayed, and in response to the user's selection operation on a certain sub-control, multiple system data in the subsystem are displayed, so that the user can select the required data and improve the efficiency of the user in filtering data. Furthermore, the selected data can also be parameterized to automatically generate the target document corresponding to the subsystem according to the parameter configuration, without the need for manual integration of the data in the system into the document, thereby improving the efficiency of document generation.
[0113] Alternatively, if Figure 8 As shown, the above S303 can also be implemented by the following steps:
[0114] S303a: In response to a selection operation on target system data in at least one system data, display a document configuration page of the target system data.
[0115] The document configuration page includes at least one display parameter of the target system data.
[0116] In some embodiments, after the system window corresponding to the target subsystem is displayed, one or more data in at least one system data in the system window can be checked to further display a document configuration page for parameter configuration of the selected data.
[0117] Example 4, combined with Example 2, such as Fig. 9 As shown in the figure, if the user needs to process Contract 1 and Contract 2 to generate a Word document, he can check Contract 1 and Contract 2 in the floating window above the Word document, and then click the 'Check Insert' control. Fig.10 As shown, the floating window will jump to the document configuration page for Contract 1 and Contract 2 (such as selecting the performance information field).
[0118] Among them, the display parameters in the 'Select Performance Information Field' page include: display template (horizontal version, vertical version), insert title serial number (yes, no), image quality (high, medium, low), and contract fields (contract name, contract amount, signing date, contract number, etc.), attachment type (contract attachment, invoice, contract change attachment, etc.).
[0119] S303b: In response to a configuration operation on at least one display parameter in the document configuration page, determine a display mode of the target system data.
[0120] In some embodiments, after the document configuration page corresponding to the target system data is displayed, at least one display parameter in the document configuration page may be selected and set to determine the final display method of the target system data in the document page.
[0121] Example 5, combined with Example 4, such as Fig.11 As shown, the user can select 'Horizontal' for the display template in the 'Select Performance Information Fields' page, select 'Yes' for inserting title numbers, select 'High' for picture quality, select 'Contract Name', 'Contract Amount', 'Signature Date', Contract Number, etc. for contract fields), select 'Contract Attachment', 'Invoice' for attachment type, and then click the 'OK' control to determine how Contract 1 and Contract 2 are displayed in the Word document.
[0122] Specifically, when configuring the 'Select Performance Information Fields' page, you can split, combine, and sort the data of Contract 1 and Contract 2, and insert them in a specific order (such as the main title, subtitle, serial number, subtitle after the serial number, and table after the subtitle). The encapsulated methods include: setting the horizontal / vertical version of the page, inserting the Chinese serial number, inserting the chapter serial number, inserting the paragraph header (such as the name of the paragraph header, the size of the paragraph header text, and the paragraph alignment), controlling the movement of the cursor, inserting pictures, and inserting tables.
[0123] Exemplarily, the specific process of inserting a table can be: first create a table instance, further set the border, set the alignment, set the font size, set the header text, set the first row style, do not split the table when paging, set the table cell text, set the starting character position of the selected content, insert page breaks, column breaks or section breaks, generate merged cell information, set cell merging, set the table to automatically expand the width, and move the cursor to the end of the table.
[0124] Exemplarily, the process of generating information of merged cells includes: defining the column where the merged elements exist, looping the column data, determining the column number, looping the original array data to be merged, determining the first target data, putting the row and column information of the target data into an array, and then looping the second row of data, putting the row and column information of the target data into an array. If the second row of data is the same as the first column of data, the row and column data will be placed in the same array.
[0125] In other words, the process of generating merged cell information can be described as follows: if there are multiple coordinate information for a field value, the field is merged from the first coordinate of the coordinate value to the next adjacent coordinate in a loop, thereby merging cells. Also, when setting cell values, if it is a merged coordinate, only set the value in the first cell, and do not set the value for subsequent merged cells, so as to achieve the purpose of displaying only one value after merging multiple cells.
[0126] S303c: Generate a target document based on the display mode of the target system data and the target system data.
[0127] In some embodiments, after determining the display mode of the target system data, the display mode of the target system data and the target system data sent by the target subsystem may be received, and then the target system data may be displayed according to the display mode of the target system data to obtain the target document.
[0128] Example 6, combined with Example 5, such as Fig.12 As shown, the user clicks 'OK' (reference Fig.11 ) button, the target subsystem can send the determined display mode and the relevant data of Contract 1 and Contract 2 to the document generating device, and then the document generating device can display the relevant data of Contract 1 and Contract 2 in the Word document according to the received display mode to obtain the target Word document.
[0129] Among them, Contract 1 and Contract 2 in the target Word document are both displayed in horizontal format. The Word document includes the title number, contract name, contract amount, signing date, and contract number.
[0130] In this way, by directly configuring various parameters in the system pop-up window displayed in the Word document, the document generation device can automatically display the system data in the Word document based on the configured parameters without manual insertion, thereby improving the document generation efficiency.
[0131] Alternatively, if Fig.13 As shown, the document generation method provided in the embodiment of the present application may also include:
[0132] S401. Generate a target control based on the system function of the third-party system.
[0133] Among them, system functions refer to functions implemented by third-party systems.
[0134] For example, combined with Figure 4 , when the third-party system is a web system of a certain enterprise and the function of the web system is a bidding function, the target control can be a 'bidding digitization' control.
[0135] As described in S301 above, the target control may be a control pre-configured separately for a third-party system.
[0136] In some embodiments, the third-party system can be edited through specific syntax codes, and a plug-in packaging tool supported by the document can be used to package and generate a target control, which is then inserted into the document through a link.
[0137] For example, in combination Figure 4 , taking the third-party system as a web system with bidding function in a certain enterprise and the Word document as a Word document in WPS as an example. The web system can be edited using syntax codes that conform to WPS, and the plug-in packaging tool provided by WPS can be used to package and generate a 'Bidding Digitalization' control, which can then be inserted into the Word document and displayed in the Word document.
[0138] S402: For each subsystem in the third-party system, a subcontrol is generated based on the link information of the subsystem, and a binding relationship between the link information of the subsystem and the subcontrol is established.
[0139] As described in S301 above, the sub-control may be a control pre-configured separately for each sub-system in the third-party system, and each sub-control establishes a binding relationship with the link information of a sub-system to achieve a one-to-one indication.
[0140] In some embodiments, the name of each subsystem in the third-party system can be determined as the name of each subcontrol under the target control, and the link information of each subsystem can be bound to its corresponding subcontrol.
[0141] For example, in combination Figure 5, take the third-party system as a web system with bidding function in a certain enterprise, and the Word document as a Word document in WPS as an example. After generating the 'Bidding Digitalization' control, the names of the various subsystems in the web system (such as 'Personnel Information', 'Company Qualifications', 'Performance Information', 'Award Information', 'Bidding Template', 'Scientific Research Results', 'Financial Information', 'Service Capabilities', 'Record Information', 'Personal Center') can be determined as the names of the various sub-controls under the 'Bidding Digitalization' control, and then bind each sub-control to the corresponding sub-system's IP address, port number, protocol type and other information, so that when the user clicks a sub-control, the window of the sub-system corresponding to the sub-control can be displayed.
[0142] In this way, by pre-editing various information of the third-party system, target controls and sub-controls for indicating various information of the third-party system are obtained, which makes it convenient for users to directly access the third-party system in the Word document, and further set the display parameters of various data in the third-party system in the Word document to automatically generate Word documents and improve document generation efficiency.
[0143] Optionally, after the above S303, the document generation method provided in the embodiment of the present application may further include: during the generation process of the target document, displaying the generation progress of the target document.
[0144] For example, in combination Fig.11 , after the user clicks the 'OK' control, the target Word document will be automatically generated. Fig.14 As shown, the progress window of the target Word document can be displayed in real time according to the generation progress of the target Word document to show the real-time generation status. After the generation progress reaches 100%, the following is displayed: Fig.12 The page shown.
[0145] In this way, by displaying the real-time generation progress of the Word document, the user can be informed of the generation status at any time, thereby improving the transparency of generating the Word document.
[0146] The following is an introduction to the complete process of Word document generation by the document generation device.
[0147] As a possible embodiment of the present application, Figure 1 ,like Fig.15 As shown, it is a flowchart of another document generation method provided in an embodiment of the present application, including the following S501 to S508:
[0148] S501: The document generating device opens a document.
[0149] S502: The document generating apparatus displays at least one sub-control in response to a user's operation on a target control.
[0150] S503: The document generation apparatus responds to the user's operation on a target sub-control in at least one sub-control by displaying a system window of a target sub-system corresponding to the target sub-control.
[0151] S504: The document generation device responds to the user's selection operation on the target system data in the system window of the target subsystem and displays a document configuration page for the target system data.
[0152] S505: The document generating apparatus determines a display mode of the target system data in the document configuration page in response to a configuration operation on at least one display parameter in the document configuration page.
[0153] S506: The document generation device sends an access request to the data server.
[0154] The data server is a server where the third-party system stores data.
[0155] S507: The document generation device receives the target system data sent by the data server, and the display mode of the target system data.
[0156] S508. The document generating device displays the target system data in the document according to the display mode of the target system data to generate a target document.
[0157] In this way, the present application configures a specific document plug-in, which is divided into a document built-in plug-in and a third-party system external plug-in. After clicking the document built-in plug-in (i.e., the target control), the newly added operation item (i.e., at least one sub-control) will be directly reflected above the document operation bar. Clicking the operation item will pop up a window (such as a system window), in which a third-party system is embedded. The user can select certain data in the third-party system, check some insertion configuration items, and click one-click insert. Then the target document will be automatically generated without the user having to manually classify the contents of multiple documents in the third-party system and insert them into one document, thereby improving the user's work efficiency and thus improving the document generation efficiency.
[0158] The embodiment of the present application can divide the document generation device into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division. There may be other division methods in actual implementation.
[0159] like Fig.16 , which is a schematic diagram of the structure of a document generating device 600 provided in an embodiment of the present application, wherein the document generating device 600 includes: a display unit 601 and a generating unit 602 .
[0160] Among them, the display unit 601 is used to display at least one sub-control in response to an operation on a target control, the target control is used to indicate a third-party system, and a sub-control is used to indicate a subsystem in the third-party system; the display unit 601 is also used to display a system window of the target subsystem in response to an operation on a target sub-control, the system window includes at least one system data, and the target sub-control is any sub-control of the at least one sub-control; the generation unit 602 is used to generate a target document based on a parameter configuration operation on at least one system data, and the target document is a document corresponding to the target subsystem.
[0161] In one possible implementation, the generation unit 602 is also used to: generate a target control based on the system function of the third-party system; for each subsystem in the third-party system, generate a subcontrol based on the link information of the subsystem, and establish a binding relationship between the link information of the subsystem and the subcontrol.
[0162] In a possible implementation, the display unit 601 is specifically configured to: determine link information of a target subsystem bound to the target subsystem in response to an operation on the target subsystem; and jump to a system window of the target subsystem according to the link information of the target subsystem.
[0163] In one possible implementation, the generation unit 602 is specifically used to: in response to a selection operation on target system data in at least one system data, display a document configuration page of the target system data, the document configuration page including at least one display parameter of the target system data; and generate a target document based on a configuration operation on at least one display parameter in the document configuration page.
[0164] In a possible implementation, the generation unit 602 is specifically used to: determine the display mode of the target system data in response to a configuration operation on at least one display parameter in the document configuration page; and generate a target document based on the display mode of the target system data and the target system data.
[0165] In a possible implementation, the generating unit 602 is specifically configured to: receive a display mode of target system data and target system data sent by a target subsystem; and display the target system data according to the display mode of the target system data to obtain a target document.
[0166] In a possible implementation, the display unit 601 is further configured to display the generation progress of the target document during the generation process of the target document.
[0167] In the document generation device provided in the embodiment of the present application, by responding to the user's operation on the target control, the sub-control corresponding to each subsystem in the third-party system is displayed, and in response to the user's selection operation on a certain sub-control, multiple system data in the subsystem are displayed, so that the user can select the required data and improve the efficiency of the user in filtering data. Furthermore, the selected data can also be parameterized to automatically generate the target document corresponding to the subsystem according to the parameter configuration, without the need for manual integration of the data in the system into the document, thereby improving the efficiency of document generation.
[0168] In a possible implementation, the document generation device 600 may further include a storage unit 603 ( Fig.16 The storage unit 603 stores a program or instruction. When the display unit 601 and the generation unit 602 execute the program or instruction, the document generation device 600 can execute the document generation method described in the above method embodiment.
[0169] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0170] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the document generation method in the above method embodiment.
[0171] The embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the document generation method in the method flow shown in the above method embodiment.
[0172] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0173] Since the document generation device, computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be repeated here.
[0174] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0175] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of this disclosure can be achieved, and this application is not limited here.
[0176] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
[0177] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0178] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0179] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A document generation method, characterized in that: The method comprises: In response to an operation on a target control, displaying at least one sub-control, wherein the target control is used to indicate a third-party system, and one sub-control is used to indicate a subsystem in the third-party system; In response to an operation on a target sub-control, a system window of a target sub-system is displayed, wherein the system window includes at least one system data, and the target sub-control is any one of the at least one sub-control; Based on the parameter configuration operation on the at least one system data, a target document is generated, where the target document is a document corresponding to the target subsystem.
2. The method according to claim 1, characterized in that The method further comprises: Based on the system function of the third-party system, generating the target control; For each subsystem in the third-party system, the subcontrol is generated based on the link information of the subsystem, and a binding relationship between the link information of the subsystem and the subcontrol is established.
3. The method according to claim 2, characterized in that The method of displaying the system window of the target subsystem in response to the operation on the target subcontrol comprises: In response to an operation on the target sub-control, determining link information of a target sub-system bound to the target sub-control; Jump to the system window of the target subsystem according to the link information of the target subsystem.
4. The method according to any one of claims 1 to 3, characterized in that: The generating of the target document based on the parameter configuration operation on the at least one system data comprises: In response to a selection operation of target system data among the at least one system data, displaying a document configuration page of the target system data, wherein the document configuration page includes at least one display parameter of the target system data; The target document is generated based on a configuration operation on at least one display parameter in the document configuration page.
5. The method according to claim 4, characterized in that The generating the target document based on the configuration operation of at least one display parameter in the document configuration page includes: In response to a configuration operation on at least one display parameter in the document configuration page, determining a display mode of the target system data; The target document is generated based on the display mode of the target system data and the target system data.
6. The method according to claim 5, characterized in that The generating the target document based on the display mode of the target system data and the target system data includes: receiving a display mode of the target system data and the target system data sent by the target subsystem; The target system data is displayed according to the display mode of the target system data to obtain the target document.
7. The method according to claim 1, characterized in that The method comprises: During the generation process of the target document, the generation progress of the target document is displayed.
8. A document generation device, characterized in that: The device comprises: A display unit, configured to display at least one sub-control in response to an operation on a target control, wherein the target control is used to indicate a third-party system, and a sub-control is used to indicate a subsystem in the third-party system; The display unit is further used to display a system window of the target subsystem in response to an operation on the target subcontrol, wherein the system window includes at least one system data, and the target subcontrol is any one of the at least one subcontrol; A generating unit is used to generate a target document based on a parameter configuration operation on the at least one system data, wherein the target document is a document corresponding to the target subsystem.
9. An electronic device, characterized in that: include: A processor and a communication interface; the communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement the document generation method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or instruction. When the electronic device executes the computer program or instruction, the electronic device executes the document generation method according to any one of claims 1 to 7.
11. A computer program product, characterized in that The computer program product comprises a computer program or instructions, and when the computer program or instructions are executed on an electronic device, the electronic device executes the document generation method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Extensible Word report automatically-generating method based on dynamic web page
CN101976235A
Techniques to create structured document templates using enhanced content controls
CN102722519A
A document editing method and device
CN109597976A
Automatic generation method of document, data processing device and storage medium
CN110705237A
Document generation method and device for auxiliary technology state file
CN113435167A