Document sending method, device and equipment

By detecting and updating the saved content of the document, ensuring that the document content sent by the user's device through the communication application is consistent with the content edited by the user, solving the problem of content inconsistency caused by unsaved content and improving the accuracy of information sharing.

CN119603291AInactive Publication Date: 2025-03-11HANDAN PENGYU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411668464.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-03-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When sending documents through email or other communication methods, the user may forget to save them or the document is not saved automatically, resulting in the content of the sent document being inconsistent with the content edited by the user, affecting information sharing.

Method used

A document sending method is provided. By detecting the user's operation on the target document, when receiving the sending operation, it is determined whether the saved content of the document is consistent with the user's operation. If it is inconsistent, the saved content will be updated, and after completing the update, the document will be sent through a communication application.

Benefits of technology

Ensure that the content of the document sent is consistent with the content edited by the user, avoid incomplete or errors caused by unsaved content, and improve the accuracy of information sharing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603291A_ABST
    Figure CN119603291A_ABST
Patent Text Reader

Abstract

The invention provides a document sending method, device and equipment. The method comprises the steps that under the condition that a target document of the document application is in an open state, operation of a user for content in the target document is detected and recorded; under the condition that the target document is in the open state, receiving a sending operation for the target document; judging whether the stored content of the target document is consistent with the operation of the user on the content in the target document or not; if the stored content of the target document is inconsistent with the operation of the user on the content in the target document, updating the stored content of the target document based on the operation of the user on the content in the target document; and after the updating is completed, responding to the sending operation, and sending the target document from the user equipment through the communication application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a document sending method, device and equipment. Background Art

[0002] Currently, users often use electronic documents such as word documents, text documents (txt), and excel documents to record and share information. For example, at work, a user enters content in a document and sends the document to other users through communication methods such as email.

[0003] When a user edits content (e.g., inputs content, deletes content, or modifies content) in an electronic document opened on a user device, the user needs to save the content before the content can be recorded in the electronic document. If the content is not saved, when the document is sent to the user device, the sent document does not contain the content edited by the user.

[0004] There are two ways to save electronic documents: manual saving and automatic saving. Manual saving refers to manually triggering the save function option of the electronic document to save the content edited in the electronic document. Automatic saving is that the document application automatically saves the content edited in the electronic document at a set time interval. Manual saving is triggered by the user, and the user may forget to trigger the save. If the time interval for automatic saving is set too short, it will lead to frequent automatic saving, affecting the performance of the user's device. Usually the time interval is set to several minutes, such as 10 minutes.

[0005] When sending documents via email, you may need to send multiple documents. Some documents have not been saved yet (for example, the user forgets to trigger the save function, or the document is sent between two automatic saves), but the document is added to the email attachment and sent via email. This results in inconsistency between the content of the sent document and the content edited by the user, which affects information sharing. Summary of the invention

[0006] The present invention provides a document sending method, device and equipment, which can make the content in the document sent by the user equipment through the communication application consistent with the content edited by the user.

[0007] A first aspect of the present invention provides a document sending method, which is applied to a sending device in a user device, wherein the user device also runs a document application; the method comprises: when a target document of the document application is in an open state, detecting and recording a user's operation on the content in the target document; when the target document is in an open state, receiving a sending operation on the target document, wherein the sending operation is used to send the target document from the user device via a communication application; determining whether the saved content of the target document and the user's operation on the content in the target document are consistent; if the saved content of the target document and the user's operation on the content in the target document are inconsistent, updating the saved content of the target document based on the user's operation on the content in the target document; after completing the update, responding to the sending operation, sending the target document from the user device via the communication application; wherein the saved content of the target document sent from the user device and the user's operation on the content in the target document are consistent.

[0008] In some embodiments, the operation on the content in the target document includes any one or more combinations of inputting new content in the target document, deleting original content in the target document, and modifying the content in the target document; wherein the input operation includes inputting new content and inputting a position, the deletion operation includes deleting original content, and the modification operation includes modifying content.

[0009] In some embodiments, after completing the update, in response to the sending operation, the target document is sent from the user device through the communication application, including: while the target document in the user device is still open, the target document is sent from the user device through the communication application.

[0010] In an example of this embodiment, the target document in the user device is still in an open state, and the target document is sent from the user device through the communication application, including: performing a storage copy operation on the target document to obtain a copy of the target document, the saved content of the copy is consistent with the operation of the user on the content in the target document; and sending the copy from the user device through the communication application.

[0011] In some embodiments, if the saved content of the target document and the user's operation on the content in the target document are inconsistent, updating the saved content of the target document based on the user's operation on the content in the target document includes: performing a save operation on the target document to update the content of the target document under the influence of the user's operation on the content in the target document to the saved content of the target document.

[0012] In some embodiments, the determining whether the saved content of the target document and the user's operation on the content in the target document are consistent includes: when the target document has unsaved content, confirming that the saved content of the target document and the user's operation on the content in the target document are inconsistent.

[0013] In some embodiments, the method further includes: when the document application is stuck, persistently storing the user's operations on the content in the target document; wherein the persistently stored user's operations on the content in the target document are used to restore the content in the target document after the document application is restarted.

[0014] In some embodiments, the method further includes: receiving a close operation for the target document, the close operation being used to close the target document; determining whether the saved content of the target document and the user's operation on the content in the target document are consistent; if the saved content of the target document and the user's operation on the content in the target document are inconsistent, updating the saved content of the target document based on the user's operation on the content in the target document; and closing the target document in response to the close operation.

[0015] The second aspect of the present invention provides a document sending device, wherein the user device where the sending device is located also runs a document application; the device includes: a recording unit, which is used to detect and record the user's operation on the content in the target document when the target document of the document application is in an open state; a receiving unit, which is used to receive a sending operation on the target document when the target document is in an open state, and the sending operation is used to send the target document from the user device through a communication application; a judgment unit, which is used to judge whether the saved content of the target document and the user's operation on the content in the target document are consistent; an updating unit, which is used to update the saved content of the target document based on the user's operation on the content in the target document if the saved content of the target document and the user's operation on the content in the target document are inconsistent; a sending unit, which is used to respond to the sending operation after completing the update and send the target document from the user device through the communication application; wherein the saved content of the target document sent from the user device is consistent with the user's operation on the content in the target document.

[0016] A third aspect of the present invention provides a user equipment, comprising: a memory for storing an executable program; and a processor for executing the method as described in the first aspect by running the executable program.

[0017] A fourth aspect of the present invention provides a computer-readable storage medium, comprising computer program instructions. When the computer program instructions are executed by a computer device, the computer device executes the method described in the first aspect.

[0018] A fifth aspect of the present invention provides a computer program product comprising instructions, which, when executed by a computer device, causes the computer device to perform the method as described in the first aspect.

[0019] The solution provided by the embodiment of the present invention can ensure that the content of the document sent by the user device through the communication application is consistent with the content edited by the user when the user does not trigger the saving of the electronic document or the electronic document is not automatically saved. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A schematic diagram of a user equipment provided by an embodiment of the present invention; Figure 2 A flowchart of a document processing method provided by an embodiment of the present invention; Figure 3 A schematic diagram of a document sending device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The following examples are used to illustrate the present invention but are not intended to limit the scope of the present invention.

[0022] In order to facilitate the understanding of the solution proposed by the present invention, some technical terms involved in the present invention are introduced below.

[0023] Document application: refers to software that can create and open documents, such as Microsoft's office software.

[0024] Document: Also called electronic document, in which users can edit content, and the document can record the content edited by the user. The content can be text, numbers, symbols, etc. Common documents include word documents, excel spreadsheet documents, etc.

[0025] Saved content: refers to the content that has been saved in the document. The saved content will not be lost whether the document leaves the current user's device or is closed.

[0026] Unsaved content: refers to the content in the document that has not been saved, as opposed to saved content. Unsaved content is lost when the document is closed or leaves the current user's device.

[0027] Communication application: refers to software used for communication between two computing devices, such as email applications, instant messaging applications, etc.

[0028] In work and study, we often encounter the situation of using communication applications to transmit documents, for example, employees send weekly reports or weekly summaries to their superiors. In addition, in many cases, it is necessary to send multiple documents at the same time, for example, sending last week's summary and this week's plan via email.

[0029] When using a communication application to transfer a document, you generally drag the document icon to the corresponding position of the communication application, or open a related window in the communication application and select the document icon in the window to add the document to the sending interface of the communication application. Taking the communication application as an email as an example, when sending a document via email, you need to add the document as an attachment to the email. There are two ways to add a document as an attachment to an email. One is to directly drag the icon of the document in the folder to the attachment function area of ​​the email. The other is to click the attachment add button of the email to open the attachment add window and select the document icon in the nearby add window.

[0030] When adding a document to the sending interface of a communication application, the document only carries the saved content, but loses the unsaved content. After editing the relevant content in the document, the user may forget to trigger the document save (especially when sending multiple documents at the same time, the user may forget to save and close one or some of the multiple documents, the document with the minimized window or the document whose window is not at the front of the display screen), or, when adding the document to the sending interface of the communication application, there is no time to automatically save it. In this way, the content of the sent document is inconsistent with the content that the user wants, which may lead to adverse consequences, such as incomplete or wrong weekly summaries or weekly plans sent to superiors.

[0031] In view of this, the embodiments of the present invention provide a user device 100 and a document sending method, which can prevent the content of the document from being incomplete or erroneous due to not being saved in time or not being saved.

[0032] The user device 100 may be a mobile phone, a tablet computer, a laptop computer, a personal computer, a smart TV, etc. Figure 1 As shown, the user device 100 includes a sending device 110, a document application 120 and a communication application 130. The sending device 110 may be software or hardware in the user device 100. The document application 120 may be Microsoft's office software, Kingsoft's WPS office software, etc. The communication application 130 may be an email client (such as Outlook), or an instant messaging application (such as WeChat), etc.

[0033] The document sending method provided by the embodiment of the present invention includes: step 201, when the target document of the document application 120 running on the user device 100 is in an open state, the sending device 110 running on the user device 100 can detect and record the user's operation on the content in the target document; step 202, when the target document is in an open state, the sending device 110 receives a sending operation on the target document, and the sending operation is used to send the target document from the user device 100 through the communication application 130; step 203, the sending device 110 can determine the saved content of the target document and the saved content of the target document. Whether the user's operation on the content in the target document is consistent; step 204, if the saved content of the target document and the user's operation on the content in the target document are inconsistent, the sending device 110 updates the saved content of the target document based on the user's operation on the content in the target document; step 205, after completing the update, the sending device 110 responds to the sending operation and sends the target document from the user device 100 through the communication application 130; wherein the saved content of the target document sent from the user device 100 is consistent with the user's operation on the content in the target document.

[0034] In this way, it can be ensured that the content of the sent target document is consistent with the user's operation on the target content, avoiding the incompleteness or errors of the document content due to lack of time to save or no saving.

[0035] Next, each of the above steps is introduced.

[0036] First, in step 201, when a target document of a document application 120 running on a user device 100 is in an open state, a sending device 110 running on the user device 100 may detect and record a user's operation on the content in the target document.

[0037] The sending device 110 is independent of the document application 120, that is, the sending device independently records the user's operations on the target document, so that even if the document application 120 fails, freezes or crashes, it can ensure that the user's operations on the content in the target document are not lost.

[0038] In some embodiments, the operation on the content in the target document includes inputting new content in the target document. The input operation includes the input new content and the input position. In some embodiments, the operation on the content in the target document includes an operation of deleting the original content in the target document, wherein the deletion operation includes deleting the original content.

[0039] In some embodiments, the operation on the content in the target document includes an operation of modifying the content in the target document, wherein the modification operation includes the modified content.

[0040] In some embodiments, the operation on the content in the target document is input by the user through an input device (such as a keyboard, a mouse, a touch screen, etc.) of the user device 100, and the input device sends the operation to the document application 120 while also sending the operation to the sending device 110. For example, the input device can copy the operation to obtain a copy of the operation, and then send the copy of the operation to the sending device 110.

[0041] In some embodiments, the operations on the content in the target document recorded by the sending device 110 have a life cycle, that is, the sending device 110 does not permanently record the operations on the content in the target document. When the life cycle of the operations on the content in the target document recorded by the sending device 110 ends, the sending device 110 deletes the operations on the content in the target document recorded by the sending device 110.

[0042] Among them, the length of the life cycle of the operation on the content in the target document recorded by the sending device 110 is determined by the time interval for automatic saving of the target document. Exemplarily, the length of the life cycle of the operation on the content in the target document recorded by the sending device 110 is equal to the time interval for automatic saving of the target document. Exemplarily, the length of the life cycle of the operation on the content in the target document recorded by the sending device 110 is greater than the time interval for automatic saving of the target document. In this way, while ensuring that the sending device 110 can effectively record the life cycle of the operation on the content in the target document, the load of the sending device 110 can be reduced, thereby reducing the load of the user device 100.

[0043] Next, in step 202 , when the target document is in an open state, the sending device 110 receives a sending operation for the target document, where the sending operation is used to send the target document from the user device 100 through the communication application 130 .

[0044] The target document may not be located at the forefront of the display screen of the user device 100. Before issuing the send operation, the user may forget to close the target document, so the user issues the send operation when the target document is open. There may also be other reasons that cause the user to issue the send operation when the target document is open.

[0045] Next, in step 203, the sending device 110 may determine whether the stored content of the target document is consistent with the operation performed by the user on the content in the target document.

[0046] In some embodiments, as described above, the operation on the content in the target document includes inputting new content in the target document. The input operation includes the input new content and the input position. If the position corresponding to the input position in the saved content of the target document is inconsistent with the new content, it is confirmed whether the saved content of the target document and the operation of the user on the content in the target document are consistent.

[0047] In some embodiments, as described above, the operation on the content in the target document includes an operation of deleting the original content in the target document. Wherein, the deletion operation includes the deleted original content. If the saved content of the target document also includes the original content, it is confirmed whether the saved content of the target document and the operation of the user on the content in the target document are consistent.

[0048] In some embodiments, as described above, the operation on the content in the target document includes an operation to modify the content in the target document. Wherein, the modification operation includes the modified content. If the saved content of the target document and the modified content are inconsistent, it is confirmed whether the saved content of the target document and the operation of the user on the content in the target document are consistent.

[0049] In some embodiments, in step 203, when the target document has unsaved content, it may be confirmed that the saved content of the target document and the user's operation on the content in the target document are inconsistent.

[0050] Then, in step 204, if the stored content of the target document is inconsistent with the user's operation on the content in the target document, the sending device 110 updates the stored content of the target document based on the user's operation on the content in the target document.

[0051] In some embodiments, in step 204, a save operation is performed on the target document to update the content of the target document under the influence of the user's operation on the content in the target document to the saved content of the target document.

[0052] In an example of this embodiment, as described above, the operation on the content in the target document includes inputting new content in the target document. The input operation includes the input new content and the input position. The inconsistency between the saved content of the target document and the operation of the user on the content in the target document is specifically that the position corresponding to the input position in the saved content of the target document is inconsistent with the new content. In step 204, the new content is added to the position corresponding to the input position in the saved content of the target document to update the saved content of the target document.

[0053] In an example of this embodiment, as described above, the operation on the content in the target document includes an operation of deleting the original content in the target document. The deletion operation includes the deleted original content. The inconsistency between the saved content of the target document and the operation of the user on the content in the target document is specifically that the saved content of the target document also includes the original content. In step 204, the original content is deleted from the saved content of the target document to update the saved content of the target document.

[0054] In an example of this embodiment, as described above, the operation on the content in the target document includes an operation to modify the content in the target document. The modification operation includes the modified content. The inconsistency between the saved content of the target document and the operation of the user on the content in the target document specifically means that the saved content of the target document is inconsistent with the modified content. In step 204, the saved content of the target document is modified and deleted according to the modified content to update the saved content of the target document.

[0055] Finally, in step 205, after completing the update, the sending device 110 responds to the sending operation and sends the target document from the user device 100 through the communication application 130; wherein the saved content of the target document sent from the user device 100 is consistent with the user's operation on the content in the target document.

[0056] In some embodiments, in step 205, the target document in the user device 100 is still in an open state, and the target document is sent from the user device through the communication application 130. The saved content of the target document and the user's operation on the content in the target document are consistent. When the target document is in an open state, sending the target document to the user device 100 can also ensure that the content in the sent target document is consistent with the user's operation and is the content that the user wants the target document to carry.

[0057] In an example of this embodiment, the target document in the user device is still in an open state, and the target document is sent from the user device through the communication application, including: performing a storage copy operation on the target document to obtain a copy of the target document, the saved content of the copy is consistent with the operation of the user on the content in the target document; sending the copy from the user device through the communication application. In this example, the copy storage of the target document can be automatically completed, so that the content carried by the sent target document can be saved locally on the user device 100. Therefore, even if the user modifies the content of the target document after the target document is sent (for example, due to a user error), the user can find the content carried by the sent target document locally.

[0058] In this way, when the user forgets to save the document or the document is not automatically saved, when sending the document, it can be ensured that the content carried by the sent document is consistent with the content edited by the user (that is, the content that the user wants the document to carry).

[0059] In some embodiments, when the document application is stuck, the sending device 110 may persistently store the user's operations on the content in the target document; wherein the persistently stored user operations on the content in the target document are used to restore the content in the target document after the document application is restarted. wherein, persistently storing the user's operations on the content in the target document may specifically be storing the user's operations on the content in the target document in a non-volatile memory such as a hard disk or a disk of the user device 100, so that when the user device 100 is restarted or powered off, the operations on the content in the target document are not lost.

[0060] In some embodiments, the sending device 110 can receive a close operation for the target document, wherein the close operation is used to close the target document; determine whether the saved content of the target document and the user's operation on the content in the target document are consistent; if the saved content of the target document and the user's operation on the content in the target document are inconsistent, update the saved content of the target document based on the user's operation on the content in the target document; and close the target document in response to the close operation.

[0061] The embodiment of the present invention provides a document sending device 300, wherein the user equipment where the sending device 300 is located also runs a document application. Figure 3 As shown, the sending device 300 includes: A recording unit 310, configured to detect and record a user's operation on the content in the target document when the target document of the document application is in an open state; The receiving unit 320 is configured to receive a sending operation for the target document when the target document is in an open state, wherein the sending operation is used to send the target document from the user device through a communication application; A determination unit 330, configured to determine whether the stored content of the target document and the operation performed by the user on the content in the target document are consistent; An updating unit 340, configured to update the stored content of the target document based on the operation of the user on the content in the target document if the stored content of the target document and the operation of the user on the content in the target document are inconsistent; The sending unit 350 is used to respond to the sending operation after completing the update and send the target document from the user device through the communication application; wherein the saved content of the target document sent from the user device is consistent with the user's operation on the content in the target document.

[0062] The functions of the various functional units of the sending device 300 can be referred to above. Figure 2 The illustrated method embodiment is described in detail.

[0063] An embodiment of the present invention provides a user equipment. The user equipment may include a processor and a memory, wherein the memory stores computer instructions. When the processor executes the computer instructions, the user equipment may implement Figure 2 The method shown.

[0064] The embodiment of the present invention further provides a computer-readable storage medium, including computer program instructions. When the computer program instructions are executed by a computer device, the computer device executes Figure 2 The method shown.

[0065] The embodiment of the present invention also provides a computer program product comprising instructions, which, when executed by a computer device, causes the computer device to execute Figure 2 The method shown.

[0066] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.

Claims

1. A document sending method, characterized in that: A sending device applied to a user equipment, wherein the user equipment also runs a document application; the method comprises: When a target document of the document application is in an open state, detecting and recording a user's operation on content in the target document; When the target document is in an open state, a sending operation for the target document is received, wherein the sending operation is used to send the target document from the user device through a communication application; Determining whether the saved content of the target document and the operation of the user on the content in the target document are consistent; If the stored content of the target document is inconsistent with the operation of the user on the content in the target document, updating the stored content of the target document based on the operation of the user on the content in the target document; After completing the update, in response to the sending operation, the target document is sent from the user device through the communication application; wherein the saved content of the target document sent from the user device is consistent with the user's operation on the content in the target document.

2. The method according to claim 1, characterized in that The operation on the content in the target document includes any one or more combinations of inputting new content in the target document, deleting the original content in the target document, and modifying the content in the target document; The input operation includes the input new content and the input position, the deletion operation includes the deleted original content, and the modification operation includes the modified content.

3. The method according to claim 1, characterized in that After completing the updating, in response to the sending operation, sending the target document from the user device through the communication application comprises: While the target document in the user device is still in an open state, the target document is sent from the user device through the communication application.

4. The method according to any one of claims 1 to 3, characterized in that If the stored content of the target document is inconsistent with the operation of the user on the content in the target document, updating the stored content of the target document based on the operation of the user on the content in the target document includes: A save operation is performed on the target document to update the content of the target document under the influence of the user's operation on the content in the target document into the saved content of the target document.

5. The method according to any one of claims 1 to 3, characterized in that: The determining whether the saved content of the target document and the operation of the user on the content in the target document are consistent includes: When the target document has unsaved content, it is confirmed that the saved content of the target document and the operation of the user on the content in the target document are inconsistent.

6. The method according to any one of claims 1 to 3, characterized in that The method further includes: when the document application is stuck, persistently storing the user's operations on the content in the target document; wherein the persistently stored user's operations on the content in the target document are used to restore the content in the target document after the document application is restarted; or, The method further comprises: receiving a close operation for the target document, wherein the close operation is used to close the target document; Determining whether the saved content of the target document and the operation of the user on the content in the target document are consistent; If the stored content of the target document is inconsistent with the operation of the user on the content in the target document, updating the stored content of the target document based on the operation of the user on the content in the target document; In response to the closing operation, the target document is closed.

7. A document sending device, characterized in that: The user equipment where the sending device is located also runs a document application; the device includes: A recording unit, configured to detect and record a user's operation on the content in the target document when the target document of the document application is in an open state; a receiving unit, configured to receive a sending operation for the target document when the target document is in an open state, wherein the sending operation is used to send the target document from the user device through a communication application; A determination unit, configured to determine whether the stored content of the target document and the operation of the user on the content in the target document are consistent; an updating unit, configured to update the stored content of the target document based on the operation of the user on the content in the target document if the stored content of the target document is inconsistent with the operation of the user on the content in the target document; A sending unit is used to respond to the sending operation after completing the update and send the target document from the user device through the communication application; wherein the saved content of the target document sent from the user device is consistent with the user's operation on the content in the target document.

8. A user equipment, characterized in that: include: A memory for storing executable programs; A processor, configured to execute the method according to any one of claims 1 to 6 by running the executable program.

9. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computer device, the computer device performs the method according to any one of claims 1 to 6.

10. A computer program product comprising instructions, characterized in that When the instructions are executed by a computer device, the computer device is caused to perform the method according to any one of claims 1 to 6.