Document generation method and apparatus, electronic device, and storage medium

By displaying sub-controls and system windows of a third-party system in the document editor, allowing users to select and configure data, and automatically generating documents, the problem of low document generation efficiency in existing technologies is solved, and efficient automated document generation is achieved.

CN119514489BActive Publication Date: 2025-12-16CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411658278.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-12-16
Estimated Expiration
2044-11-19

AI Technical Summary

Technical Problem

Existing document editors are inefficient at generating documents and cannot automatically generate documents based on external system data, requiring manual editing.

Method used

By responding to user actions, it displays sub-controls and system windows of the third-party system, allowing users to select and configure system data and automatically generate target documents.

Benefits of technology

It improves the efficiency of user data filtering and document generation, reduces manual operations, and enhances the automation of document generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119514489B_ABST
    Figure CN119514489B_ABST
Patent Text Reader

Abstract

The application provides a document generation method and device, electronic equipment and storage medium, relates to the technical field of data processing, and can solve the problem of low efficiency of generating a document. The method comprises the following steps: 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, one sub-control being used to indicate one subsystem in the third-party system, in response to an operation on a target sub-control, displaying a system window of the target subsystem, the system window comprising at least one system data, the target sub-control being any one of the at least one sub-control, generating a target document based on a parameter configuration operation on the at least one system data, and the target document being a document corresponding to the target subsystem. The application can improve the generation efficiency of the document.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, and particularly relates to a document generation method and device, electronic equipment and storage medium. BACKGROUND

[0002] As one of the core components of office software, the document editor has the ability of text editing, format layout and document management. With the increasing complexity and diversification of document processing requirements, the functions of the traditional document editor cannot meet the requirements of efficiency and flexibility of users.

[0003] In the related art, in order to meet the requirements of efficiency and flexibility of users, a plurality of tool plug-ins are integrated in the document toolbox to extend the original functions of the document editor. Specifically, by writing codes conforming to the document plug-in interface specification, the document toolbox is loaded and run as an extended component of the traditional document editor to operate the document content (such as sending an email in the document, text format optimization, table processing and format-free link), thereby improving the document processing efficiency.

[0004] However, the above method is to operate on the existing document, and cannot automatically generate a document according to external system data, and still needs to generate a document by manual editing, resulting in low efficiency of generating a document. SUMMARY

[0005] The present application provides a document generation method and device, electronic equipment and storage medium, which can solve the problem of low efficiency of generating a document.

[0006] To achieve the above object, the present application adopts the following technical solutions:

[0007] In a first aspect, the present application provides a document generation method, which comprises: 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, one sub-control being used to indicate one subsystem in the third-party system, in response to an operation on a target sub-control, displaying a system window of the target subsystem, the system window comprising at least one system data, the target sub-control being any one of the at least one sub-control, and generating a target document based on a parameter configuration operation on the at least one system data, the target document being a document corresponding to the target subsystem.

[0008] The document generation method provided by the embodiments of the present application displays the sub-controls corresponding to each subsystem in the third-party system in response to the operation of the user on the target control, and displays the system data in the subsystem in response to the selection operation of the user on a certain sub-control, so as to facilitate the user to select the required data, improve the efficiency of the user in screening the data, and further, the selected data can be configured with parameters, so as to automatically generate the target document corresponding to the subsystem according to the parameter configuration, without manually integrating the data in the system into the document, thereby improving the generation efficiency of the document.

[0009] With reference to the first aspect, in a possible implementation, the method further includes: generating the target control based on the system function of the third-party system, generating the sub-control based on the link information of the subsystem for each subsystem in the third-party system, and establishing the binding relationship between the link information of the subsystem and the sub-control.

[0010] With reference to the first aspect, in a possible implementation, the displaying of the system window of the target subsystem in response to the operation on the target sub-control includes: determining the link information of the target subsystem to which the target sub-control is bound in response to the operation on the target sub-control, and jumping to the system window of the target subsystem according to the link information of the target subsystem.

[0011] With reference to the first aspect, in a possible implementation, the generating of the target document based on the parameter configuration operation on the at least one system data includes: displaying a document configuration page of the target system data in response to the selection operation on the target system data in the at least one 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 on the at least one display parameter in the document configuration page.

[0012] With reference to the first aspect, in a possible implementation, the generating of the target document based on the configuration operation on the 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 on the 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] With reference to the first aspect, in a possible implementation, the generating of the target document based on the display mode of the target system data and the target system data includes: receiving the display mode of the target system data and the target system data sent by the target subsystem, displaying the target system data according to the display mode of the target system data to obtain the target document.

[0014] With reference to the first aspect, in a possible implementation manner, the method further includes: displaying a generation progress of the target document in a generation process of the target document.

[0015] With reference to the second aspect, the application provides a document generation apparatus, which includes a display unit and a generation unit, wherein: the display unit is configured to display at least one sub-control in response to an operation on a target control, the target control being configured to indicate a third-party system, and one sub-control being configured to indicate one subsystem in the third-party system; the display unit is further configured to display a system window of a target subsystem in response to an operation on a target sub-control, the system window including at least one system data, and the target sub-control being any one of the at least one sub-control; and the generation unit is configured to generate a target document based on a parameter configuration operation on the at least one system data, the target document being a document corresponding to the target subsystem.

[0016] With reference to the second aspect, in a possible implementation manner, the generation unit is further configured to: generate the target control based on system functions of the third-party system; and generate the sub-control based on link information of each subsystem in the third-party system, and establish a binding relationship between the link information of the subsystem and the sub-control.

[0017] With reference to the second aspect, in a possible implementation manner, the display unit is specifically configured to: determine link information of a target subsystem bound to the target sub-control in response to the operation on the target sub-control; and jump to the system window of the target subsystem according to the link information of the target subsystem.

[0018] With reference to the second aspect, in a possible implementation manner, the generation unit is specifically configured to: display a document configuration page of a target system data in the at least one system data in response to a selection operation on the target system data; the document configuration page including at least one display parameter of the target system data; and generate the target document based on a configuration operation on the at least one display parameter in the document configuration page.

[0019] With reference to the second aspect, in a possible implementation manner, the generation unit is specifically configured to: determine a display mode of the target system data in response to the configuration operation on the 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] With reference to the second aspect, in a possible implementation manner, the generation unit is specifically configured to: receive the display mode of the target system data and the target system data sent by the target subsystem; and display the target system data according to the display mode of the target system data to obtain the target document.

[0021] With the second aspect above, in a possible implementation, the display unit is further configured to display a progress of the generation 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 is coupled with the processor, and the processor is configured to run computer programs or instructions to implement the document generation method as described in the first aspect and any possible implementation of the first aspect.

[0023] In a fourth aspect, the present application provides a computer readable storage medium, which stores computer programs or instructions, and when the computer programs or instructions are run on an electronic device, the electronic device executes the document generation method as 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 computer programs or instructions, and when the computer program product is run on an electronic device, the electronic device executes the 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, comprising a processor and a communication interface; the communication interface is coupled with the processor, and the processor is configured to run computer programs or instructions to implement the document generation method as described in the first aspect and any possible implementation of the first aspect.

[0026] Specifically, the chip provided in the present application further comprises a memory for storing computer programs or instructions.

[0027] It should be noted that the computer programs or instructions can be stored in the computer readable storage medium in whole or in part. The computer readable storage medium can be packaged together with the processor of the device or packaged separately from the processor of the device, and the present application does not limit the same.

[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 configured to execute the document generation method as described in the first aspect and any possible implementation of the first aspect.

[0029] The description of the second aspect to the seventh aspect in the present application can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second aspect to the seventh aspect can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.

[0030] In the present application, the names of the above-mentioned document generation apparatus do not constitute a limitation on the devices or functional modules themselves, and in actual implementation, these devices or functional modules can appear under other names. As long as the functions of the respective devices or functional modules are similar to those in the present application, they fall within the scope of the claims of the present application and equivalent technologies.

[0031] These aspects or other aspects of the present application will be more apparent in the following description.

[0032] The above-mentioned scheme at least brings the following beneficial effects: based on the above-mentioned 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 the system data in the subsystem in response to the user's selection operation on a certain sub-control, which facilitates the user to select the required data, improves the user's data screening efficiency, and further, the selected data can be configured with parameters to automatically generate the target document corresponding to the subsystem according to the parameter configuration, without manually integrating the data in the system into the document as a whole, thereby improving the generation efficiency of the document. BRIEF DESCRIPTION OF DRAWINGS

[0033] Figure 1 An architectural schematic diagram of a document generation system provided by an embodiment of the present application;

[0034] Figure 2 A hardware structural schematic diagram of an electronic device provided by an embodiment of the present application;

[0035] Figure 3 A flowchart of a document generation method provided by an embodiment of the present application;

[0036] Figure 4 One of the interface schematic diagrams applied by a document generation method provided by an embodiment of the present application;

[0037] Figure 5 Another of the interface schematic diagrams applied by a document generation method provided by an embodiment of the present application;

[0038] Figure 6 Still another of the interface schematic diagrams applied by a document generation method provided by an embodiment of the present application;

[0039] Figure 7 A fourth of the interface schematic diagrams applied by a document generation method provided by an embodiment of the present application;

[0040] Figure 8 A flowchart of another document generation method provided by an embodiment of the present application;

[0041] Figure 9The interface schematic diagram of the document generation method provided by the embodiment of the present application is applied to the fifth interface schematic diagram;

[0042] Figure 10 The interface schematic diagram of the document generation method provided by the embodiment of the present application is applied to the sixth interface schematic diagram;

[0043] Figure 11 The interface schematic diagram of the document generation method provided by the embodiment of the present application is applied to the seventh interface schematic diagram;

[0044] Figure 12 The interface schematic diagram of the document generation method provided by the embodiment of the present application is applied to the eighth interface schematic diagram;

[0045] Figure 13 The flowchart of another document generation method provided by the embodiment of the present application is provided;

[0046] Figure 14 The interface schematic diagram of the document generation method provided by the embodiment of the present application is applied to the ninth interface schematic diagram;

[0047] Figure 15 The flowchart of another document generation method provided by the embodiment of the present application is provided;

[0048] Figure 16 The structure schematic diagram of the document generation device provided by the embodiment of the present application is provided. DETAILED DESCRIPTION

[0049] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0050] The term "and / or" in the present application is only used to describe the association relationship of the associated objects, which means that there can be three kinds of relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone.

[0051] The terms "first" and "second" and the like in the specification and drawings of the present application are used to distinguish different objects or different treatments of the same object, rather than to describe the specific order of the objects.

[0052] Moreover, the terms "comprising" and "having" and any variations thereof in the present description are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or apparatus that comprises a list of steps or elements is not necessarily limited to those listed steps or elements but can include other not-listed steps or elements, or can also include other steps or elements inherent in such process, method, product, or apparatus.

[0053] It should be noted that in the embodiments of the present application, the words "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or advantageous than other embodiments or design schemes. In fact, the use of the words "exemplary" or "for example" is intended to present concepts in a concrete manner.

[0054] In the description of the present application, the meaning of "a plurality of" is two or more, unless otherwise specified.

[0055] In office software, the Word document is one of the important functions. The current Word document supports functions such as online editing (such as input, editing, and formatting text), typesetting (such as paragraph indentation, alignment, line spacing, first-line indentation, page break, section break, etc.), inserting elements (such as inserting pictures, tables, icons, shapes, etc.), reviewing and collaboration, printing and exporting, etc.

[0056] In the related art, the original function set of Word is expanded through a Word plug-in (such as a Word toolbox) to improve the efficiency of Word document editing and processing. The Word toolbox supports both Word documents of Office software and Word documents of WPS software, and contains the following functions:

[0057] 1) Support sending mail directly in the Word document;

[0058] 2) Support Chinese and English punctuation conversion, standardize the square brackets in the document number year, split the document, and merge the document;

[0059] 3) Support deleting zero values in the table to optimize the display effect of the table;

[0060] 4) Support adding and removing thousand separators and adding capital amounts;

[0061] 5) Support unformatted links, online help, etc.

[0062] Specifically, the implementation principle of the Word toolbox is that: by writing code (such as using component object model (COM) add-in technology) conforming to the interface specification of the Word document plug-in, the Word toolbox is loaded and run as an extended component of the Word document. And since the Word document is described and organized through 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 the DOM through the third-party plug-in to obtain the Word document object, and then obtain different texts and other elements through the syntax exposed by the Word document object, and perform formatting, style setting (such as setting font, size, paragraph format, etc.), and inserting various elements (such as text, table, picture, etc.).

[0064] However, the Word plug-in in the related art is used to operate on an existing document to enhance the function of the Word document, and when a document needs to be generated, the Word plug-in cannot be applied, and the document still needs to be generated manually, resulting in low efficiency of generating the document.

[0065] In view of this, the embodiments of the present application provide a document generation method which can be applied to the scenario of automatically generating a document. In the method, in response to a user's operation on a target control, sub-controls corresponding to each subsystem in a third-party system are displayed, and in response to the user's selection operation on a certain sub-control, multiple system data in the subsystem are displayed, so as to facilitate the user to select the required data and improve the user's efficiency of screening the data. Further, the selected data can be configured with parameters, so that the target document corresponding to the subsystem can be automatically generated according to the parameter configuration, without manually integrating the data in the system into the document, thereby improving the efficiency of generating the document.

[0066] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0067] Figure 1 An architecture diagram of a document generation system provided by the embodiments of the present application is shown in FIG. 1. Figure 1 As shown in the figure, 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 can be one or multiple. For the sake of understanding, Figure 1 only one document generation device and one data server are shown in the figure.

[0069] The document generation device 101 and the data server 102 are connected via a communication link. This communication link can be a wired communication link or a wireless communication link, and this application does not limit it in this way.

[0070] In some embodiments, the document generation device 101 may, in response to an operation on the target control, display at least one sub-control, and then, in response to an operation on the target sub-control, display a system window of the target subsystem, the system window including at least one system data, and finally, based on parameter configuration operations 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 a display mode of at least one system data to the document generation device 101. Correspondingly, the document generation device 101 receives at least one system data and a display mode of at least one system data sent by the data server 102.

[0072] When implemented in hardware, the various modules in the document generation device 101 can be integrated into, for example... Figure 2 This is implemented in the hardware structure of the electronic device shown. Specifically, as... Figure 2 As shown, the basic hardware structure of electronic devices is introduced.

[0073] Figure 2 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. 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, memory 203, and communication interface 204 are 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 this application, such as one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs).

[0075] Communication line 202 may include a path for transmitting information between the aforementioned components.

[0076] The communication interface 204, which is configured to communicate with other devices or communication networks, can use any transceiver device, such as an Ethernet, a radio access network (RAN), a wireless local area network (WLAN), and the like.

[0077] The memory 203 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magnetic disk storage or other magnetic storage devices, or any other medium capable of storing desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.

[0078] In one possible design, the memory 203 can exist independently of the processor 201, i.e., the memory 203 can be an external memory of the processor 201, and the memory 203 can be connected to the processor 201 through the communication line 202, used to store execution instructions or application program codes, and controlled by the processor 201 to perform, to implement the document generation method provided in the embodiments described below. In another possible design, the memory 203 can also be integrated with the processor 201, i.e., the memory 203 can be an internal memory of the processor 201, for example, the memory 203 can be a cache, used to temporarily store some data and instruction information, and the like.

[0079] As one possible implementation, the processor 201 can include one or more CPUs, for example, the CPU0 and the CPU1 in FIG. 1. As another possible implementation, the electronic device can include multiple processors, for example, the processor 201 and the processor 207 in FIG. 1. As still another possible implementation, the electronic device can further include the output device 205 and the input device 206. Figure 2 Figure 2

[0080] ​​It should be noted that the embodiments of the present application can be mutually referred to or referenced, for example, the same or similar steps, method embodiments, system embodiments and device embodiments can be mutually referenced without limitation.

[0081] Figure 3 A flowchart of a document generation method provided by an embodiment of the present application is shown in FIG. 1. The subject performing the method can be a document generation device 101 as shown in FIG. 1, or each unit / module of the document generation device 101, such as an integrated circuit or a chip. The present application does not make specific limitations on this. Figure 1

[0082] The implementation of the document generation method provided by the embodiment of the present application is described in detail below taking a Word document as an example.

[0083] It should be noted that the Word document mentioned in the embodiment of the present application can be an existing Word document of various types, for example, a Word document in a word processing system (WPS) or a Word document of Microsoft Office. The present application does not make limitations on this.

[0084] Exemplarily, as shown in FIG. 1, the document generation method provided by the embodiment of the present application includes the following steps. Figure 3

[0085] S301, in response to an operation on a target control, displaying at least one sub-control.

[0086] The target control is used to indicate a third-party system, and one sub-control is used to indicate one subsystem in the third-party system.

[0087] In some embodiments, the target control can be a control configured separately in advance for the third-party system.

[0088] Exemplarily, the target control can be a Word plug-in.

[0089] In some embodiments, the third-party system refers to a system other than the system to which the document generation device 101 in the above Figure 1 applies, i.e., a system to which a data server applies.

[0090] Exemplarily, the third-party system can be a world wide web (WWW) system or a web system.

[0091] ​​In the embodiments of the present application, the operation on the target control can be a click operation (such as a single-click operation, a double-click operation, a triple-click operation), a long-press operation, a drag operation, or other implementable operation manners, which are not limited in the present application.

[0092] In some embodiments, the sub-controls can be controls that are pre-configured individually for respective subsystems in the third-party system, and each sub-control establishes a binding relationship through the link information of a subsystem to achieve one-to-one indication.

[0093] For example, the sub-controls can be controls in the function area of a Word document.

[0094] In some embodiments, after the user clicks the target control in the document, the respective sub-controls corresponding to each subsystem of the third-party system are displayed in the function area of the document.

[0095] Example 1, as shown in Figure 4 Taking a web system of a certain enterprise as an example, after the user clicks the target control (such as ‘bid digitization’) corresponding to the web system in the Word document, as shown in Figure 5 the respective sub-controls (such as ‘personnel information’, ‘company qualification’, ‘performance information’, ‘award information’, ‘bid template’, ‘scientific research achievement’, ‘financial information’, ‘service capability’, ‘record information’, and ‘personal center’) corresponding to each subsystem of the web system are displayed in the function area of the Word document.

[0096] S302, in response to the operation on the target sub-control, displaying a system window of the target subsystem.

[0097] The system window includes at least one system data, and the target sub-control is any one of the at least one sub-control.

[0098] In some embodiments, the system window can be a floating pop-up window that is invoked above the page of the Word document, and the floating pop-up window includes a subsystem; or the system window can be a full-screen display window that is switched directly from the page of the Word document, and the window includes a subsystem.

[0099] In some embodiments, the system data refers to all data included in the target subsystem.

[0100] In an alternative implementation, after the user clicks the target sub-control in the document, a floating window of the target subsystem corresponding to the target sub-control is displayed above the document.

[0101] Example 2, in combination with Example 1, as shown in Figure 6After the user clicks the target sub-control (such as 'performance information') corresponding to the web system in the Word document function area, a system window (such as'reference performance information') is displayed above the Word document, as shown in FIG. 3. Figure 7

[0102] In another optional implementation, after the user clicks the target sub-control in the document, the document interface is directly switched to a full-screen display window of the target sub-system corresponding to the target sub-control.

[0103] Optionally, the link information of the target sub-system bound to the target sub-control can be determined in response to the operation on the target sub-control, and then the system window of the target sub-system can be jumped to according to the link information of the target sub-system.

[0104] The link information of the target sub-system can include the internet protocol (IP) address, port number, protocol type, and the like of the target sub-system.

[0105] For example, after the user interacts (such as clicks, touches, or selects) with the target sub-control in the Word document function area, the link information bound to the target sub-control can be retrieved from the internal database or configuration file according to the identification information of the target sub-control. After the link information of the target sub-system is obtained, an access request can be generated according to the link information to request access to the target sub-system in the third-party system, and then the system window of the target sub-system is displayed above the Word document.

[0106] Further optionally, after the target sub-system of the third-party system is requested to be accessed, a window for identity verification can be displayed above the Word document, and after the user is verified, the system window of the target sub-system is displayed above the Word document.

[0107] For example, the security verification can include fingerprint verification, password verification, face verification, iris verification, and the like.

[0108] S303, generating a target document based on the parameter configuration operation on the at least one system data.

[0109] The target document is a document corresponding to the target sub-system.

[0110] ​In some embodiments, after displaying the system window corresponding to the target subsystem, one or more of the at least one system data in the system window can be checked, and the display format of the checked data and the display quality of the inserted data can be set, and then the checked data can be displayed in the document according to the set display format and display quality, so as to obtain the target document.

[0111] In example 3, in combination 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 format of contract 1 and contract 2 and the display quality of contract 1 and contract 2 in the Word document, and then display contract 1 and contract 2 in the text part of the Word document according to the set parameters, so as to obtain the target Word document.

[0112] In the document generation method provided in the embodiments of the present application, by responding to the operation of the user on the target control, the sub-control corresponding to each subsystem in the third-party system is displayed, and by responding to the selection operation of the user on a certain sub-control, the plurality of system data in the subsystem is displayed, so as to facilitate the user to select the required data and improve the efficiency of the user to filter the data. Further, the selected data can be configured with parameters, so as to automatically generate the target document corresponding to the subsystem according to the parameter configuration, without manually integrating the data in the system into the document, so as to improve the generation efficiency of the document.

[0113] Optionally, as shown in Figure 8 S303 can also be implemented by the following steps:

[0114] S303a, in response to the selection operation of the target system data in the at least one system data, a document configuration page of the target system data is displayed.

[0115] The document configuration page includes at least one display parameter of the target system data.

[0116] In some embodiments, after displaying the system window corresponding to the target subsystem, one or more of the at least one system data in the system window can be checked, and the display format of the checked data and the display quality of the inserted data can be set, and then the checked data can be displayed in the document according to the set display format and display quality, so as to obtain the target document.

[0117] In example 4, in combination with example 2, as shown in Figure 9 If the user needs to process contract 1 and contract 2 and generate a Word document, contract 1 and contract 2 in the floating window above the Word document can be checked, and then the 'checked insertion' control is clicked. At this time, as shown in Figure 10 The floating window jumps to the document configuration page of contract 1 and contract 2 (such as selecting the performance information field).

[0118] The display parameters in the'select performance information field' page include: display template (horizontal or vertical), insert title number (yes or no), picture quality (high, medium or low), contract field (contract name, contract amount, signature date, contract number, etc.), and attachment type (contract attachment, invoice, contract change attachment, etc.).

[0119] S303b, in response to the configuration operation of at least one display parameter in the document configuration page, determining the display mode of the target system data.

[0120] In some embodiments, after displaying the document configuration page corresponding to the target system data, at least one display parameter in the document configuration page can be selected and set to determine the final display mode of the target system data in the document page.

[0121] Example 5, in combination with example 4, as Figure 11 As shown, the user can select 'horizontal' for the display template, 'yes' for the insert title number, 'high' for the picture quality, 'contract name', 'contract amount','signature date', contract number, etc. for the contract field, and 'contract attachment' and 'invoice' for the attachment type in the'select performance information field' page, and then click the 'OK' control to determine the display mode of contract 1 and contract 2 in the Word document.

[0122] Specifically, when configuring the'select performance information field' page, the data of contract 1 and contract 2 can be split, combined, sorted, and inserted in a specific order (such as a large title, a small title, a serial number, a sub-title after the serial number, and a table after the sub-title). The encapsulation methods include: setting the page horizontal / vertical, inserting Chinese serial number, inserting chapter serial number, inserting paragraph head (such as paragraph head name, paragraph head font size, paragraph alignment), controlling cursor movement, inserting picture, and inserting table.

[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 table header text, set the first row style, do not split the table when paginating, set the table cell text, set the starting character position of the selected content, insert a page break, column break or section break, generate merged cell information, set cell merging, set table automatic expansion width, and move the cursor to the end of the table.

[0124] Exemplarily, the process of generating the information of the merged cell includes: defining the column where the merged element exists, looping the column data, determining the column sequence number, looping the original array data that needs 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 data, putting the row and column information of the target data into an array, and if the second row data is the same as the first column data, the row and column data will be put into the same array.

[0125] In other words, the process of generating the information of the merged cell can be described as: if there are multiple coordinate information of a field value, the field is merged from the first coordinate of the coordinate value to the adjacent next coordinate, so as to realize the cell merging. And when setting the cell value, if it is a merged coordinate, only set the value in the first cell, and do not set the value in the subsequent merged cells, so as to realize the purpose of displaying only one value after multiple cell merging.

[0126] S303c, generating the 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 sent by the target subsystem can be received, and the target system data is displayed according to the display mode of the target system data to obtain the target document.

[0128] Example 6, in combination with example 5, as Figure 12 shown, after the user clicks the 'OK' (reference Figure 11 ) button, the target subsystem can send the determined display mode and the related data of contract 1 and contract 2 to the document generation device, and then the document generation device can display the related 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 displayed in horizontal plate, and the Word document includes title sequence number, contract name, contract amount, signature date, and contract number.

[0130] In this way, various parameters are configured in the system pop-up window displayed directly in the Word document, so that the document generation device can automatically display the system data in the Word document based on the configured parameters, without manual insertion, and the generation efficiency of the document is improved.

[0131] Optionally, as Figure 13 shown, the document generation method provided by the embodiments of the present application can further include:

[0132] S401. Generating the target control based on the system function of the third-party system.

[0133] The system function refers to a function implemented by the third-party system.

[0134] For example, in combination with Figure 4 In the case where the third-party system is a web system of an 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 can be a control that is separately configured in advance for the third-party system.

[0136] In some embodiments, the third-party system can be edited through a specific syntax code, and a plug-in packaging tool supported by a document is used to package the target control, and the target control is inserted into the document through a link.

[0137] For example, in combination with Figure 4 Taking a web system with a bidding function in an enterprise as the third-party system and a Word document in WPS as the Word document, the web system can be edited using a syntax code consistent with WPS, and a 'bidding digitization' control is packaged using a plug-in packaging tool provided by WPS. The 'bidding digitization' control is inserted into the Word document and displayed in the Word document.

[0138] S402. For each subsystem in the third-party system, generating a sub-control based on the link information of the subsystem, and establishing a binding relationship between the link information of the subsystem and the sub-control.

[0139] As described in S301 above, the sub-control can be a control that is separately configured in advance for each subsystem in the third-party system, and each sub-control establishes a binding relationship with the link information of one subsystem to achieve 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 sub-control under the target control, and the link information of each subsystem is bound to its corresponding sub-control.

[0141] For example, in combination with Figure 5Taking a web system with a bidding function in a certain enterprise as the third-party system, and taking a Word document as the Word document in WPS as an example. After generating the 'bidding digitization' control, the names of each subsystem (such as 'personnel information', 'company qualification', 'performance information', 'award information', 'bidding template','scientific research achievement', 'financial information','service capability','record information', and 'personal center') in the web system can be determined as the names of each sub-control under the 'bidding digitization' control. Then, the IP address, port number, protocol type and other information of each corresponding subsystem are bound to each sub-control, so that when a user clicks on a sub-control, the window of the subsystem corresponding to the sub-control can be displayed.

[0142] In this way, by pre-editing various information of the third-party system, the target control and the sub-control for indicating the various information of the third-party system are obtained, which facilitates the user to directly access the third-party system in the Word document, and further sets the display parameters of each data in the third-party system in the Word document, to automatically generate the Word document and improve the document generation efficiency.

[0143] Optionally, after S303, the document generation method provided by the embodiment of the present application can further include: during the generation of the target document, displaying the generation progress of the target document.

[0144] Exemplarily, in combination with Figure 11 , after the user clicks on the 'determine' control, the automatic generation of the target Word document starts. At this time, as shown in Figure 14 , 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. After the generation progress reaches 100%, the page as shown in Figure 12 is displayed.

[0145] In this way, by displaying the real-time generation progress of the Word document, the user can know the generation at any time, and the transparency of generating the Word document is improved.

[0146] Next, the complete process of the document generation apparatus generating the Word document is introduced.

[0147] As a possible embodiment of the present application, in combination with Figure 1 , as shown in Figure 15 , the flow chart of another document generation method provided by the embodiment of the present application includes the following S501 to S508:

[0148] S501, the document generation apparatus opens a document.

[0149] S502, the document generation apparatus displays at least one sub-control in response to the operation of the target control by the user.

[0150] S503, the document generation apparatus displays a system window of a target subsystem corresponding to a target sub-control in response to the operation of the target sub-control by the user.

[0151] S504, the document generation apparatus displays a document configuration page of target system data in response to the selection operation of the target system data in the system window of the target subsystem by the user.

[0152] S505, the document generation apparatus determines the display mode of the target system data in the document configuration page in response to the configuration operation of at least one display parameter in the document configuration page.

[0153] S506, the document generation apparatus sends an access request to a data server.

[0154] The data server is a server storing data of the third-party system.

[0155] S507, the document generation apparatus receives the target system data and the display mode of the target system data sent by the data server.

[0156] S508, the document generation apparatus displays the target system data in the document according to the display mode of the target system data to generate a target document.

[0157] Thus, the document generation apparatus is configured with a specific document plug-in, which is divided into a document built-in plug-in and another part of a third-party system external plug-in. After clicking the document built-in plug-in (i.e., the target control), a new operation item (i.e., at least one sub-control) is displayed above the document operation bar. Clicking the operation item will pop up a window (such as a system window) embedded with a certain third-party system. The user can select some data in the third-party system, check some insertion configuration items, and click one-key insertion. Then, the target document is automatically generated without the need for the user to manually insert the contents in multiple documents in the third-party system into one document, improving the user's work efficiency and thus the generation efficiency of the document.

[0158] The embodiments of the present application can divide the function modules or function units of the document generation apparatus according to the above method examples. For example, each function module or function unit can be divided according to each function, or two or more functions can be integrated into one processing module. The integrated module can be realized in the form of hardware or software function module or function unit. The division of modules or units in the embodiments of the present application is illustrative, and is only a logical function division. In actual implementation, another division mode can be used.

[0159] As Figure 16 shown, a structural schematic diagram of a document generation apparatus 600 provided by an embodiment of the present application is shown, and the document generation apparatus 600 includes a display unit 601 and a generation unit 602.

[0160] The display unit 601 is configured to display at least one sub-control in response to an operation on a target control, the target control being used to indicate a third-party system, and one sub-control being used to indicate one subsystem in the third-party system; the display unit 601 is further configured to display a system window of a target subsystem in response to an operation on a target sub-control, the system window including at least one system data, and the target sub-control being any one of the at least one sub-control; and the generation unit 602 is configured to generate a target document based on a parameter configuration operation on the at least one system data, the target document being a document corresponding to the target subsystem.

[0161] In a possible implementation, the generation unit 602 is further configured to generate the target control based on system functions of the third-party system, and generate the sub-control based on link information of each subsystem in the third-party system, and establish a binding relationship between the link information of the subsystem and the sub-control.

[0162] In a possible implementation, the display unit 601 is specifically configured to determine link information of a target subsystem bound to the target sub-control in response to the operation on the target sub-control, and jump to the system window of the target subsystem according to the link information of the target subsystem.

[0163] In a possible implementation, the generation unit 602 is specifically configured to display a document configuration page of a target system data in the at least one system data in response to a selection operation on the target system data, the document configuration page including at least one display parameter of the target system data; and generate the target document based on a configuration operation on the at least one display parameter in the document configuration page.

[0164] In a possible implementation, the generation unit 602 is specifically configured to determine a display mode of the target system data in response to the configuration operation on the 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.

[0165] In a possible implementation, the generation unit 602 is specifically configured to receive the display mode of the target system data and the target system data sent by the target subsystem; and display the target system data according to the display mode of the target system data to obtain the target document.

[0166] In a possible implementation, the display unit 601 is further configured to display a generation progress of the target document during generation of the target document.

[0167] In the document generation apparatus provided by the embodiments of the present application, by responding to the operation of the target control by the user, the sub control corresponding to each subsystem in the third-party system is displayed, and by responding to the selection operation of a certain sub control by the user, the plurality of system data in the subsystem is displayed, so as to facilitate the user to select the required data and improve the efficiency of the user to screen the data. Further, the selected data can be configured with parameters, so as to automatically generate the target document corresponding to the subsystem according to the parameter configuration, without manually integrating the data in the system into the document, thereby improving the generation efficiency of the document.

[0168] In a possible implementation, the document generation apparatus 600 can further include a storage unit 603 (shown in a dashed box in FIG. 6), which stores a program or instruction. When the display unit 601 and the generation unit 602 execute the program or instruction, the document generation apparatus 600 can execute the document generation method described in the method embodiments. Figure 16

[0169] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, apparatus and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be described here.

[0170] The embodiments of the present application provide a computer program product containing instructions, which, when executed on a computer, cause the computer to perform the document generation method in the method embodiments.

[0171] The embodiments of the present application further provide a computer readable storage medium, which stores instructions. When the instructions are executed on a computer, the computer performs the document generation method in the method flow shown in the method embodiments.

[0172] ​The computer readable storage medium, for example, can be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a register, a hard disk, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing, or any other medium from which a processor can read and write information. An exemplary storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. Of course, the disclosure is not limited to a particular storage medium. The processor and the storage medium can be located in an ASIC. In some embodiments, the computer readable storage medium can be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

[0173] Since the document generation apparatus, the computer readable storage medium and the computer program product in the embodiments of the present application can be applied to the above method, the technical effects that can be obtained thereby can be referred to the above method embodiments, and the embodiments of the present application will not be described here.

[0174] In several embodiments provided by the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are merely schematic, for example, the division of units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.

[0175] It should be understood that the various forms of flow shown above can be used to reorder, add, or delete steps. For example, the steps described in the present disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions of the present disclosure can be achieved, and the present application does not limit here.

[0176] The above detailed description does not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.

[0177] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the present embodiment.

[0178] In addition, the functional units in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically, or two or more units can be integrated into one unit.

[0179] The above is only a specific implementation 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 subject to the protection scope of the claims.

Claims

1. A document generation method, characterized in that, The method includes: In response to an operation on a target control, at least one child control is displayed, wherein the target control is used to indicate a third-party system, and a child control is used to indicate a subsystem within the third-party system; In response to an operation on a target sub-control, a system window of the target subsystem is displayed, the system window including at least one system data, and the target sub-control is any one of the at least one sub-controls; Based on parameter configuration operations on the at least one system data, a target document is generated, wherein the target document is the document corresponding to the target subsystem; The target control is generated based on the system functions of the third-party system; For each subsystem in the third-party system, the sub-control is generated based on the link information of the subsystem, and a binding relationship is established between the link information of the subsystem and the sub-control. The step of displaying the system window of the target subsystem in response to an operation on the target subcontrol includes: In response to an operation on the target sub-control, determine the link information of the target sub-system to which the target sub-control is bound; Based on the link information of the target subsystem, jump to the system window of the target subsystem; The step of generating a target document based on parameter configuration operations on at least one system data includes: In response to a selection operation of target system data from the at least one system data, a document configuration page for the target system data is displayed, the document configuration page including at least one display parameter for the target system data; The target document is generated based on configuration operations of at least one display parameter in the document configuration page.

2. The method according to claim 1, characterized in that, The step of generating the target document based on configuration operations 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, the display method of the target system data is determined; The target document is generated based on the display method of the target system data and the target system data itself.

3. The method according to claim 2, characterized in that, The method of generating the target document based on the display method of the target system data and the target system data includes: The display method for receiving target system data sent by the target subsystem, and the target system data itself; The target system data is displayed in the manner specified in the target system data display method to obtain the target document.

4. The method according to claim 1, characterized in that, The method includes: During the generation of the target document, the generation progress of the target document is displayed.

5. A document generation device, characterized in that, The device includes: A display unit is 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 the sub-control is used to indicate a subsystem within the third-party system; The display unit is further configured to display a system window of the target subsystem in response to an operation on the target subcontrol, the system window including at least one system data, and the target subcontrol being any one of the at least one subcontrols; A generation unit is configured to generate a target document based on parameter configuration operations on at least one system data, wherein the target document is a document corresponding to the target subsystem; The generation unit is further configured to: generate the target control based on the system functions of the third-party system; generate the sub-control based on the link information of each subsystem in the third-party system, and establish a binding relationship between the link information of the subsystem and the sub-control; The display unit is specifically configured to: in response to an operation on the target sub-control, determine the link information of the target sub-system to which the target sub-control is bound; and jump to the system window of the target sub-system according to the link information of the target sub-system. The generation unit is specifically configured to: in response to a selection operation of target system data in the 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 the target document based on a configuration operation of at least one display parameter in the document configuration page.

6. An electronic device, characterized in that, include: A processor and a communication interface; the communication interface is coupled to the processor, the processor being configured to run computer programs or instructions to implement the document generation method as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program or instructions, and when the electronic device executes the computer program or instructions, the electronic device performs the document generation method as described in any one of claims 1-4.

8. A computer program product, characterized in that, The computer program product includes a computer program or instructions that, when executed on an electronic device, cause the electronic device to perform the document generation method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • A document editing method and device

    CN109597976A

  • File generation method and device, equipment and storage medium

    CN114239528A