Method and device for printing report by utilizing browser printing function

By using the browser printing function, the problems of cumbersome and incompatibility of traditional printing methods are solved, efficient reporting and printing on different devices are achieved, development costs and processing time are reduced, and rapid decision-making response is supported.

CN119127099APending Publication Date: 2024-12-13SUZHOU LANGDONG NET TEC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411318381.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2024-12-13

Smart Images

  • Figure CN119127099A_ABST
    Figure CN119127099A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, in particular to a method and a device for printing a report by utilizing a browser printing function. The method for printing the report by utilizing the browser printing function comprises the following steps: receiving a report downloading request of a target object; creating a browser, and obtaining the report template and associated data of the target object; the report template is filled with the associated data, and report information of the target object is generated; rendering a page of the browser by using the report information of the target object; and calling a printing function of the browser, and printing the report information of the target object. The browser is created, and the page of the browser is rendered by using the report information of the target object, so that the report information is generated more flexibly, efficiently and modernized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and device for printing a report using a browser printing function. Background Art

[0002] In the modern information-based office environment, reports are being produced and shared more and more frequently. With the rise of remote and mobile office, the need to access and print reports from different locations and devices is increasing.

[0003] In traditional technology, users export files to local devices and then use specific printing software or drivers to print them. This method is not only cumbersome, but may also cause printing failures due to incompatible file formats or printing driver problems. Therefore, at present, there is an urgent need for a method and device for efficiently printing reports. Summary of the invention

[0004] Based on this, it is necessary to provide a method and device for printing reports using a browser printing function that can efficiently print reports in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for printing a report using a browser printing function, comprising:

[0006] Receive a report download request from a target object;

[0007] Creating a browser and obtaining a report template and associated data of the target object;

[0008] Fill the report template with the associated data to generate report information for the target object;

[0009] Rendering a page of the browser using the report information of the target object;

[0010] The print function of the browser is called to print the report information of the target object.

[0011] In one embodiment, after rendering the page of the browser using the report information of the target object, the method further comprises:

[0012] storing report information of the target object;

[0013] Generate an access link to the report information of the target object;

[0014] Send an access link to the report information of the target object.

[0015] In one embodiment, calling the print function of the browser to print the report information of the target object includes:

[0016] Receiving an access request for an access link of the report information of the target object;

[0017] Based on the access request of the access link of the report information of the target object, the print function of the browser is called to print the report information of the target object.

[0018] In one embodiment, the using the associated data to fill the report template and generate report information of the target object includes:

[0019] determining a first field in the report template;

[0020] Determining, in the associated data of the target object, a field value of a second field corresponding to the first field;

[0021] Generate report information of the target object using the field value of the second field.

[0022] In one embodiment, the generating report information of the target object using the field value of the second field includes:

[0023] Obtaining format information of the field value of the second field;

[0024] In a case where format information of the field value of the second field conforms to preset format information, report information of the target object is generated using the field value of the second field.

[0025] In one of the embodiments, when the format information of the field value of the second field does not conform to the preset format information, the preset format information is used to correct the format information of the field value of the second field.

[0026] In a second aspect, the present application further provides a device for printing a report using a browser printing function, the device comprising:

[0027] A receiving module, used for receiving a report download request from a target object;

[0028] A creation module is used to create a browser and obtain a report template and associated data of the target object;

[0029] A filling module, used to fill the report template with the associated data to generate report information of the target object;

[0030] A rendering module, used for rendering a page of the browser using the report information of the target object;

[0031] The printing module is used to call the printing function of the browser to print the report information of the target object.

[0032] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0033] Receive a report download request from a target object;

[0034] Creating a browser and obtaining a report template and associated data of the target object;

[0035] Fill the report template with the associated data to generate report information for the target object;

[0036] Rendering a page of the browser using the report information of the target object;

[0037] The print function of the browser is called to print the report information of the target object.

[0038] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0039] Receive a report download request from a target object;

[0040] Creating a browser and obtaining a report template and associated data of the target object;

[0041] Fill the report template with the associated data to generate report information for the target object;

[0042] Rendering a page of the browser using the report information of the target object;

[0043] The print function of the browser is called to print the report information of the target object.

[0044] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0045] Receive a report download request from a target object;

[0046] Creating a browser and obtaining a report template and associated data of the target object;

[0047] Fill the report template with the associated data to generate report information for the target object;

[0048] Rendering a page of the browser using the report information of the target object;

[0049] The print function of the browser is called to print the report information of the target object.

[0050] The above-mentioned method and device for printing reports using the browser printing function, by creating a browser and using the report information of the target object to render the browser page, can generate report information in a more flexible, efficient and modern way. First, as a universal platform, the browser is convenient and fast to print reports across platforms using the browser, without the need to set up a separate printing program, which reduces the development requirements and costs of report generation. Secondly, the present application can make use of the responsive design of the Web to more quickly adjust the report information compatible with target objects of various sizes. Finally, the present application uses the browser to generate reports that can be updated in real time without waiting for a long processing cycle, which is beneficial for scenarios that require quick decision responses. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0052] Figures 1 to 5 A flowchart of a method for printing a report using a browser printing function in different embodiments;

[0053] Figure 6 It is a structural block diagram of a device for printing a report using a browser printing function in one embodiment;

[0054] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] The method for printing a report using the browser print function provided in the embodiment of the present application can be applied in a server environment. The server is connected to a terminal, and the terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0057] In one embodiment, Figure 1As shown, a method for printing a report using the print function of a browser is provided. This embodiment uses the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. The method for printing a report using the print function of a browser may include the following steps:

[0058] Step S100: receiving a report download request from a target object.

[0059] Step S200: Create a browser and obtain a report template and associated data of a target object.

[0060] Step S300: Fill in a report template using associated data to generate report information for a target object.

[0061] Step S400: Rendering a browser page using the report information of the target object.

[0062] Step S600: calling the print function of the browser to print the report information of the target object.

[0063] In step S100, in one possible example, the target object may include an enterprise, a company, an institution, etc. In another possible example, the target object may include the specific business of the enterprise, a company, an institution, etc. The report of the target object may include the operating report of the enterprise, a company, an institution, etc., or the report of the target object may include the specific business change results of the enterprise, a company, an institution, etc.

[0064] Correspondingly, on the client page, the report of the target object can be displayed, and a control for report downloading can also be provided. When the control for report downloading is triggered, the client can send a request for report downloading of the target object to the server.

[0065] In step S200, after receiving the report download request of the target object, the server may create a browser page. At this time, the created browser page may be displayed on the client page. This embodiment does not specifically limit the browser.

[0066] At the same time, the report template and the associated data of the target object can also be obtained. The report template can be pre-designed. As an example, a variety of report templates can be pre-designed, corresponding to enterprises, companies, institutions, etc. In another example, the multiple report templates can also correspond to multiple specific businesses. For example, the report template may include a financing report template, a personnel change report template, an equity change report template, etc. Correspondingly, the associated data of the target object can be the financing data, personnel change data, equity change data, etc. of the enterprise, company, institution, etc. It can be understood that the report template and the associated data can be associated with the report download request of the target object. The report download request of the target object may include information related to the report template.

[0067] The associated data of the target object may come from different databases. In this case, the associated data of the target object may be searched and obtained from multiple different databases. For example, the target object may have a unique identifier. Accordingly, the associated data corresponding to the unique identifier may be searched in multiple different databases.

[0068] In step S300, the report template can be filled with the associated data, and the report information of the target object can be generated. As an example, the report template has a cell filled with a unique identifier of the target object. At this time, the unique identifier of the target object should be filled in the cell. In another example, the report template has a cell filled with the current personnel data of the target object. At this time, the current personnel data of the target object should be filled in the cell.

[0069] In S400, as an example, the Node.js platform can be used in combination with the Express framework to build a Web server, and the HTML page can be directly rendered on this server. In this process, the server can dynamically generate page content according to the request, including obtaining data from a database or other data source. After the client receives the complete HTML page, it only needs to parse and display it. In the browser page of the client, the report information of the target object can be displayed in full or in part. This embodiment does not limit the specific method of rendering. For example, JavaScript can also be used to dynamically generate pages on the browser side.

[0070] Furthermore, the key data of the report information of some target objects, as well as the cover and end page of the report, can be hidden to prevent the target object's report information from being leaked. For example, data on corporate revenue in the target object's report information can be hidden. As an example, the key data of the target object's report information can be hidden in the form of asterisks, ellipsis, etc.

[0071] In step S600, the print function of the browser may be called to print the report information of the target object. For example, the print function of the browser itself may be triggered, the print function of the browser itself may be used to connect to a printer, and the report information of the target object may be printed.

[0072] In this embodiment, by creating a browser and using the report information of the target object to render the browser page, the report information can be generated more flexibly, efficiently and modernly. First, as a universal platform, the browser is convenient and fast to print reports across platforms using the browser, without the need to set up a separate printing program, which reduces the development requirements and costs of report generation. Secondly, this embodiment can make use of the responsive design of the Web to more quickly adjust the report information compatible with target objects of various sizes. Finally, this embodiment uses the browser to generate reports that can be updated in real time without waiting for a long processing cycle, which is beneficial for scenarios that require quick decision responses.

[0073] In one embodiment, see Figure 2 , after step S400, comprising:

[0074] Step S500: storing report information of the target object.

[0075] Step S510: Generate an access link for the report information of the target object.

[0076] Step S520: Send an access link to the report information of the target object.

[0077] In step S500 to step S520, the report information of the target object can be stored locally, or the report information of the target object can be stored in a server for subsequent use. In addition, an access link to the report information of the target object can be generated and sent to the client. At this time, as an example, the access link to the report information of the target object can be displayed on the browser page by means of a pop-up box or the like.

[0078] For further information, see Figure 3 , step S600 may include:

[0079] Step S600: receiving an access request for an access link of report information of a target object.

[0080] Step S610: Based on the access request of the access link of the report information of the target object, the print function of the browser is called to print the report information of the target object.

[0081] In step S600 to step S610, when the access link of the report information of the target object is triggered, the report information of the target object can be displayed on the browser page, or the report information of the target object can be directly printed.

[0082] In this embodiment, by storing the report information of the target object, the report information of the target object can be directly called when it is needed later without having to be generated again. In addition, in this embodiment, it is also possible to choose whether to print the report information of the target object. When receiving an access request for an access link to the report information of the target object, it indicates that the report information of the target object needs to be printed. When not receiving an access request for an access link to the report information of the target object, it indicates that the report information of the target object is only displayed on the browser page.

[0083] In one embodiment, see Figure 4 , step S300 includes:

[0084] Step S310: Determine the first field in the report template.

[0085] Step S320: Determine the field value of the second field corresponding to the first field in the associated data of the target object.

[0086] Step S330: Generate report information of the target object using the field value of the second field.

[0087] In step S310 to step S330, as an example, the first field in the report template can be the company name, and the second field of the target object's associated data corresponding to the first field can also be the company name, and the field value of the second field is the specific name of the company. Afterwards, the specific name of the company can be filled in the first field of the report template to generate the report information of the target object. The above example is for illustration only, and the first field, the second field, and the field value of the second field are not limited to the example.

[0088] For further information, see Figure 5 , step S330 may further include:

[0089] Step S331: Obtain the format information of the field value of the second field.

[0090] Step S332: when the format information of the field value of the second field conforms to the preset format information, generate report information of the target object using the field value of the second field.

[0091] Step S333: when the format information of the field value of the second field does not conform to the preset format information, use the preset format information to correct the format information of the field value of the second field.

[0092] In step S331 to step S333, the field value of the second field may be sorted and cleaned. For example, the field value of the second field may be a specific date in the order of year, month, and day. When the preset format information is in the order of year, month, and day, the field value of the second field is used to generate the report information of the target object. When the preset format information is in the order of day, month, and year, the format information of the field value of the second field is corrected using the preset format information, and the field value of the second field is adjusted to a specific date in the order of day, month, and year, and the report information of the target object is generated using the adjusted field value of the second field. For another example, the field value of the second field may be an integer. When the preset format information is an integer, the field value of the second field is used to generate the report information of the target object. When the preset format information is one decimal place, the format information of the field value of the second field is corrected using the preset format information, and the field value of the second field is adjusted to one decimal place, and the report information of the target object is generated using the adjusted field value of the second field.

[0093] In this embodiment, before presenting the report information of the target object to the client, the field value of the second field may be sorted and cleaned. The sorting and cleaning methods may include deduplication, completion of missing values, formatting of data, correction of errors, etc., to ensure the accuracy and consistency of the report information of the target object. In addition, after the report information of the target object is cleaned and sorted, the report information of the target object may be aggregated and analyzed according to business needs. For example, the average value, sum, maximum value, minimum value, etc. may be calculated, the data may be grouped, and complex business logic may be applied to generate new data fields. The results of these calculations and analyses may help enrich the report information of the target object.

[0094] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0095] Based on the same inventive concept, the embodiment of the present application also provides a device for printing reports using the browser printing function for implementing the method for printing reports using the browser printing function involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of one or more embodiments of the device for printing reports using the browser printing function provided below can refer to the limitations of the method for printing reports using the browser printing function above, and will not be repeated here.

[0096] In an exemplary embodiment, Figure 6 As shown, a device for printing a report using a browser printing function is provided, comprising: a receiving module, a creating module, a filling module, a rendering module and a printing module, wherein:

[0097] A receiving module, used for receiving a report download request from a target object;

[0098] Create a module to create a browser and obtain the report template and associated data of the target object;

[0099] A filling module is used to fill the report template with associated data to generate report information of the target object;

[0100] A rendering module, used for rendering a page of a browser using the report information of the target object;

[0101] The printing module is used to call the browser's printing function to print the report information of the target object.

[0102] In one embodiment, the apparatus for printing reports using the browser printing function further includes a storage module, a generation module and a sending module.

[0103] The storage module is used to store the report information of the target object.

[0104] A generation module is used to generate an access link for the report information of a target object.

[0105] The sending module is used to send the access link of the report information of the target object.

[0106] In one embodiment, the printing module includes a receiving unit and a calling unit.

[0107] The receiving unit is used to receive an access request for an access link of report information of a target object.

[0108] The calling unit is used to call the print function of the browser based on the access request of the access link of the report information of the target object to print the report information of the target object.

[0109] In one embodiment, the filling module includes a first determining unit, a second determining unit, and a using unit.

[0110] The first determining unit is used to determine a first field in the report template.

[0111] The second determining unit is used to determine a field value of a second field corresponding to the first field in the associated data of the target object.

[0112] The using unit is used to generate report information of the target object using the field value of the second field.

[0113] In one embodiment, the using unit is further used to obtain format information of the field value of the second field, and to generate report information of the target object using the field value of the second field when the format information of the field value of the second field conforms to preset format information.

[0114] In one embodiment, the using unit is further configured to use the preset format information to correct the format information of the field value of the second field when the format information of the field value of the second field does not conform to the preset format information.

[0115] Each module in the report printing device using the browser printing function can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0116] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for printing a report using a browser print function is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0117] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0118] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0119] Step S100: receiving a report download request from a target object.

[0120] Step S200: Create a browser and obtain a report template and associated data of a target object.

[0121] Step S300: Fill in a report template using associated data to generate report information for a target object.

[0122] Step S400: Rendering a browser page using the report information of the target object.

[0123] Step S600: calling the print function of the browser to print the report information of the target object.

[0124] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0125] Step S500: storing report information of the target object.

[0126] Step S510: Generate an access link for the report information of the target object.

[0127] Step S520: Send an access link to the report information of the target object.

[0128] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0129] Step S600: receiving an access request for an access link of report information of a target object.

[0130] Step S610: Based on the access request of the access link of the report information of the target object, the print function of the browser is called to print the report information of the target object.

[0131] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0132] Step S310: Determine the first field in the report template.

[0133] Step S320: Determine the field value of the second field corresponding to the first field in the associated data of the target object.

[0134] Step S330: Generate report information of the target object using the field value of the second field.

[0135] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0136] Step S331: Obtain the format information of the field value of the second field.

[0137] Step S332: when the format information of the field value of the second field conforms to the preset format information, generate report information of the target object using the field value of the second field.

[0138] Step S333: when the format information of the field value of the second field does not conform to the preset format information, use the preset format information to correct the format information of the field value of the second field.

[0139] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0140] Step S100: receiving a report download request from a target object.

[0141] Step S200: Create a browser and obtain a report template and associated data of a target object.

[0142] Step S300: Fill in a report template using associated data to generate report information for a target object.

[0143] Step S400: Rendering a browser page using the report information of the target object.

[0144] Step S600: calling the print function of the browser to print the report information of the target object.

[0145] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0146] Step S500: storing report information of the target object.

[0147] Step S510: Generate an access link for the report information of the target object.

[0148] Step S520: Send an access link to the report information of the target object.

[0149] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0150] Step S600: receiving an access request for an access link of report information of a target object.

[0151] Step S610: Based on the access request of the access link of the report information of the target object, the print function of the browser is called to print the report information of the target object.

[0152] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0153] Step S310: Determine the first field in the report template.

[0154] Step S320: Determine the field value of the second field corresponding to the first field in the associated data of the target object.

[0155] Step S330: Generate report information of the target object using the field value of the second field.

[0156] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0157] Step S331: Obtain the format information of the field value of the second field.

[0158] Step S332: when the format information of the field value of the second field conforms to the preset format information, generate report information of the target object using the field value of the second field.

[0159] Step S333: when the format information of the field value of the second field does not conform to the preset format information, use the preset format information to correct the format information of the field value of the second field.

[0160] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0161] Step S100: receiving a report download request from a target object.

[0162] Step S200: Create a browser and obtain a report template and associated data of a target object.

[0163] Step S300: Fill in a report template using associated data to generate report information for a target object.

[0164] Step S400: Rendering a browser page using the report information of the target object.

[0165] Step S600: calling the print function of the browser to print the report information of the target object.

[0166] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0167] Step S500: storing report information of the target object.

[0168] Step S510: Generate an access link for the report information of the target object.

[0169] Step S520: Send an access link to the report information of the target object.

[0170] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0171] Step S600: receiving an access request for an access link of report information of a target object.

[0172] Step S610: Based on the access request of the access link of the report information of the target object, the print function of the browser is called to print the report information of the target object.

[0173] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0174] Step S310: Determine the first field in the report template.

[0175] Step S320: Determine the field value of the second field corresponding to the first field in the associated data of the target object.

[0176] Step S330: Generate report information of the target object using the field value of the second field.

[0177] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0178] Step S331: Obtain the format information of the field value of the second field.

[0179] Step S332: when the format information of the field value of the second field conforms to the preset format information, generate report information of the target object using the field value of the second field.

[0180] Step S333: when the format information of the field value of the second field does not conform to the preset format information, use the preset format information to correct the format information of the field value of the second field.

[0181] It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0182] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0183] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0184] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for printing a report using a browser print function, characterized in that: The method comprises: Receive a report download request from a target object; Creating a browser and obtaining a report template and associated data of the target object; Fill the report template with the associated data to generate report information for the target object; Rendering a page of the browser using the report information of the target object; The print function of the browser is called to print the report information of the target object.

2. The method for printing a report using a browser print function according to claim 1, characterized in that: After rendering the page of the browser using the report information of the target object, the method further comprises: storing report information of the target object; Generate an access link to the report information of the target object; Send an access link to the report information of the target object.

3. The method for printing a report using a browser print function according to claim 2, characterized in that: The calling of the print function of the browser to print the report information of the target object includes: Receiving an access request for an access link of the report information of the target object; Based on the access request of the access link of the report information of the target object, the print function of the browser is called to print the report information of the target object.

4. The method for printing a report using a browser print function according to claim 1, characterized in that: The using the associated data to fill the report template and generate report information of the target object includes: determining a first field in the report template; Determining, in the associated data of the target object, a field value of a second field corresponding to the first field; Generate report information of the target object using the field value of the second field.

5. The method for printing a report using a browser print function according to claim 4, characterized in that: The using the field value of the second field to generate report information of the target object includes: Obtaining format information of the field value of the second field; In a case where format information of the field value of the second field conforms to preset format information, report information of the target object is generated using the field value of the second field.

6. The method for printing a report using a browser print function according to claim 5, characterized in that: When the format information of the field value of the second field does not conform to the preset format information, the preset format information is used to correct the format information of the field value of the second field.

7. A device for printing reports using a browser printing function, characterized in that: The device comprises: A receiving module, used for receiving a report download request from a target object; A creation module is used to create a browser and obtain a report template and associated data of the target object; A filling module, used to fill the report template with the associated data to generate report information of the target object; A rendering module, used for rendering a page of the browser using the report information of the target object; The printing module is used to call the printing function of the browser to print the report information of the target object.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.