CN113468858B - Method for online editing of office file independent of client environment - Google Patents
Method for online editing of office file independent of client environment Download PDFInfo
- Publication number
- CN113468858B CN113468858B CN202110822948.5A CN202110822948A CN113468858B CN 113468858 B CN113468858 B CN 113468858B CN 202110822948 A CN202110822948 A CN 202110822948A CN 113468858 B CN113468858 B CN 113468858B
- Authority
- CN
- China
- Prior art keywords
- application program
- document
- client
- editor page
- editing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method for online editing of office files independent of client environments, which comprises the following steps: the application program B sends a request to the interface provided by the A and marks a document path to be opened; a, redirecting the request of B to an editor page of A according to a document path required to be opened, loading and displaying the transferred document, and simultaneously starting a webSocket connection; a monitors the state of an editor page on a client through webSocket connection, and transmits the modification of the editor page to a server side of A in real time, but does not update document content at the moment; if the client connected with the webSocket is not responded, the editor page is considered to complete the editing work, and then the document is updated by the temporarily stored modification content of the server side A in a file coverage mode, and the modification history of the document is recorded; after the update, the webSocket connection is closed. The invention can look over and edit the file online independently of the client.
Description
Technical Field
The invention belongs to the technical field of file processing, and particularly relates to an office file online editing method independent of a client environment.
Background
At present, in the stage of high-speed development of informatization, informatization construction promotes information exchange and knowledge sharing, and meanwhile, the efficiency of daily work can be obviously improved, in daily work, a great number of office files in a format of word, excel, ppt and the like are used, but when business software is developed, especially office software is developed, the files are often required to be opened in an online mode, the files can be operated online like local operation, a plurality of online editing plug-ins based on a browser are available on the market at present, but the plug-ins have strict requirement specifications on the environment of a client, and the solution scheme depending on the environment of the client has the following defects:
(1) Requiring that client office software versions must be within a certain range;
(2) The office software must be full;
(3) The client needs to install the control;
(4) There is a browser restriction that can only be opened in a portion of the browser.
In actual implementation, it is found that:
(1) The environment of the client machine is completely uncontrollable, and the office software version is five-flower eight-door;
(2) It cannot be guaranteed that all client machines can successfully install the plug-ins;
(3) The number of the clients is too large, the problems need to be solved in a targeted way, and the implementation cost of software is greatly increased.
The practical situation proves that a considerable part of client machines cannot meet the requirements, even if the machines meeting the requirements can occasionally find the problem of strangeness, which brings great difficulty to the implementation, application and operation of the system, and the customer experience is greatly reduced.
Disclosure of Invention
Aiming at the problem that the existing online editing plug-in based on the browser depends on the client environment, the invention provides an online editing method of the office file which does not depend on the client environment, can open the office file at the browser end and can normally view and edit the office file as local, and provides the functions of editing by multiple persons and real-time communication.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
a method for online editing of office files independent of a client environment, comprising:
step 1: constructing an application program A, wherein the application program A comprises a web edition office editor developed based on html;
step 2: the application program B sends a request to an interface provided by the application program A and marks a document path to be opened; the application program B and the application program A keep network intercommunication;
step 3: after receiving the request, the application program A redirects the request of the application program B to an editor page of the application program A according to a document path which needs to be opened, and the application program A loads and displays the transferred document and opens a webSocket connection;
step 4: the application program A monitors the state of an editor page on the client through the webSocket connection, and transmits the modification of the editor page to a server side of the application program A in real time, but does not update the document content at the moment;
step 5: if the webSocket connected client is not responded, the editor page is considered to complete the editing work, at the moment, the document is updated by the temporarily stored modification content of the server side of the application program A in a file coverage mode, and the modification history of the document is recorded;
step 6: and after the document is updated, closing the webSocket connection.
Further, the application program A also comprises the functions of simultaneously editing multiple people online, viewing the modifications of the other people to the document in real time and communicating in real time.
Further, the webSocket connection is also used for supporting a function of online editing of multiple people at the same time and a real-time communication function on an editor page.
Further, the application program B is a client system.
Compared with the prior art, the invention has the beneficial effects that:
the web edition office editor developed based on html has no relation with office software on a client machine, and the problem that the version of the client office software is required to be in a certain range and the office software is required to be a complete edition is solved because the web edition office editor does not depend on the client environment; while the traditional online editing needs to install some plug-ins on the client, the invention provides support through the web edition office editor developed based on html, does not depend on the client environment, and does not need any plug-ins to be installed on the client; and there is no compatibility problem of the browser, the supported browser has: common browsers such as IE6 or more, google, firefox, 360 browser, dog searching and the like; the invention has the functions of simultaneously editing a plurality of people on line besides the original functions of office, can see the modification of the document by others in real time, and provides a real-time message sending function which is convenient for communication during simultaneous editing.
Drawings
FIG. 1 is a basic flow chart of a method for online editing of office files independent of client environments according to an embodiment of the present invention;
FIG. 2 is a diagram showing an example of online editing according to an embodiment of the present invention.
Detailed Description
The invention is further illustrated by the following description of specific embodiments in conjunction with the accompanying drawings:
as shown in fig. 1, a method for online editing of office files independent of a client environment includes:
step S101: constructing an application program A, wherein the application program A comprises a web edition office editor developed based on html;
step S102: the application program B sends a request to an interface provided by the application program A and marks a document path to be opened; the application program B and the application program A keep network intercommunication;
step S103: after receiving the request, the application program A redirects the request of the application program B to an editor page of the application program A according to a document path which needs to be opened, and the application program A loads and displays the transferred document and opens a webSocket connection;
step S104: the application program A monitors the state of an editor page on the client through the webSocket connection, and transmits the modification of the editor page to a server side of the application program A in real time, but does not update the document content at the moment;
step S105: if the webSocket connected client is not responded, the editor page is considered to complete the editing work, at the moment, the document is updated by the temporarily stored modification content of the server side of the application program A in a file coverage mode, and the modification history of the document is recorded;
step S106: and after the document is updated, closing the webSocket connection.
Further, the application program A also comprises the functions of simultaneously editing multiple people online, viewing the modifications of the other people to the document in real time and communicating in real time.
Further, the webSocket connection is also used for supporting a function of online editing of multiple people at the same time and a real-time communication function on an editor page.
Further, the application program B is a client system; as an embodiment, the application B may be a collaborative office system.
In summary, the web edition office editor developed based on html has nothing to do with office software on a client machine, and the problem that the version of the client office software is required to be in a certain range and the office software is required to be a complete edition is avoided because the web edition office editor does not depend on the client environment; while the traditional online editing needs to install some plug-ins on the client, the invention provides support through the web edition office editor developed based on html, does not depend on the client environment, and does not need any plug-ins to be installed on the client; and there is no compatibility problem of the browser, the supported browser has: common browsers such as IE6 or more, google, firefox, 360 browser, dog searching and the like; the invention has the functions of simultaneously editing a plurality of people on line besides the original functions of office, can see the modification of the document by others in real time, and provides a real-time message sending function which is convenient for communication during simultaneous editing.
The foregoing is merely illustrative of the preferred embodiments of this invention, and it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of this invention, and it is intended to cover such modifications and changes as fall within the true scope of the invention.
Claims (2)
1. A method for online editing of office files independent of a client environment, comprising:
step 1: constructing an application program A, wherein the application program A comprises a web edition office editor developed based on html;
step 2: the application program B sends a request to an interface provided by the application program A and marks a document path to be opened; the application program B and the application program A keep network intercommunication;
step 3: after receiving the request, the application program A redirects the request of the application program B to an editor page of the application program A according to a document path which needs to be opened, and the application program A loads and displays the transferred document and opens a webSocket connection;
step 4: the application program A monitors the state of an editor page on the client through the webSocket connection, and transmits the modification of the editor page to a server side of the application program A in real time, but does not update the document content at the moment;
step 5: if the webSocket connected client is not responded, the editor page is considered to complete the editing work, at the moment, the document is updated by the temporarily stored modification content of the server side of the application program A in a file coverage mode, and the modification history of the document is recorded;
step 6: after the document is updated, closing the webSocket connection;
the application program A also comprises the functions of simultaneously editing a plurality of persons on line, checking the modifications of the persons to the document in real time and communicating in real time;
the webSocket connection is also used for supporting the simultaneous online editing function of multiple people and the real-time communication function of the editor page.
2. The method of claim 1, wherein the application B is a client system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110822948.5A CN113468858B (en) | 2021-07-21 | 2021-07-21 | Method for online editing of office file independent of client environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110822948.5A CN113468858B (en) | 2021-07-21 | 2021-07-21 | Method for online editing of office file independent of client environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113468858A CN113468858A (en) | 2021-10-01 |
CN113468858B true CN113468858B (en) | 2023-12-19 |
Family
ID=77881515
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110822948.5A Active CN113468858B (en) | 2021-07-21 | 2021-07-21 | Method for online editing of office file independent of client environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113468858B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115840734A (en) * | 2022-12-02 | 2023-03-24 | 华道(上海)生物医药有限公司 | Pharmaceutical factory GxP file management system based on efficient compiling and control |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017035961A1 (en) * | 2015-08-28 | 2017-03-09 | 百度在线网络技术(北京)有限公司 | Document cooperation method, apparatus and device, and nonvolatile computer storage medium |
CN106844316A (en) * | 2016-12-13 | 2017-06-13 | 北京中船信息科技有限公司 | Process the method and system of office documents online on a web browser |
CN109299046A (en) * | 2018-08-30 | 2019-02-01 | 湖北工业大学 | A Collaborative Editing Method Based on TCP WebSocket Protocol |
CN109634588A (en) * | 2018-12-06 | 2019-04-16 | 安徽科大国创软件科技有限公司 | A kind of Office online file editing method and system being compatible with more browsers |
CN110324387A (en) * | 2018-03-30 | 2019-10-11 | 武汉斗鱼网络科技有限公司 | Method, storage medium, equipment and the system of document lock are realized based on WebSocket |
CN110417852A (en) * | 2019-06-12 | 2019-11-05 | 山谷网安科技股份有限公司 | Browser-cross controls the universal method of peripheral hardware, apparatus and system |
CN111858523A (en) * | 2019-12-20 | 2020-10-30 | 北京嘀嘀无限科技发展有限公司 | A document online collaborative editing method, client and server |
CN112632942A (en) * | 2020-08-19 | 2021-04-09 | 腾讯科技(深圳)有限公司 | Document processing method, device, equipment and medium |
CN112906353A (en) * | 2019-11-19 | 2021-06-04 | 北京沃东天骏信息技术有限公司 | Method and system for collaboratively editing document |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8307119B2 (en) * | 2006-03-31 | 2012-11-06 | Google Inc. | Collaborative online spreadsheet application |
US20130179773A1 (en) * | 2011-12-12 | 2013-07-11 | Yu-Tai Lee | Method for online editing and publishing and device thereof |
US20150199307A1 (en) * | 2012-08-08 | 2015-07-16 | Google Inc. | Pluggable Architecture For Optimizing Versioned Rendering of Collaborative Documents |
US9116706B2 (en) * | 2012-10-09 | 2015-08-25 | Tamer Yunten | Yunten's web application methodology and web programming language (YWAM and WPL) |
-
2021
- 2021-07-21 CN CN202110822948.5A patent/CN113468858B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017035961A1 (en) * | 2015-08-28 | 2017-03-09 | 百度在线网络技术(北京)有限公司 | Document cooperation method, apparatus and device, and nonvolatile computer storage medium |
CN106844316A (en) * | 2016-12-13 | 2017-06-13 | 北京中船信息科技有限公司 | Process the method and system of office documents online on a web browser |
CN110324387A (en) * | 2018-03-30 | 2019-10-11 | 武汉斗鱼网络科技有限公司 | Method, storage medium, equipment and the system of document lock are realized based on WebSocket |
CN109299046A (en) * | 2018-08-30 | 2019-02-01 | 湖北工业大学 | A Collaborative Editing Method Based on TCP WebSocket Protocol |
CN109634588A (en) * | 2018-12-06 | 2019-04-16 | 安徽科大国创软件科技有限公司 | A kind of Office online file editing method and system being compatible with more browsers |
CN110417852A (en) * | 2019-06-12 | 2019-11-05 | 山谷网安科技股份有限公司 | Browser-cross controls the universal method of peripheral hardware, apparatus and system |
CN112906353A (en) * | 2019-11-19 | 2021-06-04 | 北京沃东天骏信息技术有限公司 | Method and system for collaboratively editing document |
CN111858523A (en) * | 2019-12-20 | 2020-10-30 | 北京嘀嘀无限科技发展有限公司 | A document online collaborative editing method, client and server |
CN112632942A (en) * | 2020-08-19 | 2021-04-09 | 腾讯科技(深圳)有限公司 | Document processing method, device, equipment and medium |
Non-Patent Citations (1)
Title |
---|
基于Word的客户端编辑器的实现;管恩京;葛文庆;郑海峰;宋亦刚;;中国新技术新产品(第17期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113468858A (en) | 2021-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109118347B (en) | Automatic cooperation method and system | |
CN101299754B (en) | End user control configuration system with dynamic user interface | |
US5771355A (en) | Transmitting electronic mail by either reference or value at file-replication points to minimize costs | |
CA3051125C (en) | Intermediary device for data message network routing and enhancement in a contact center environment | |
US5781901A (en) | Transmitting electronic mail attachment over a network using a e-mail page | |
CN101202709B (en) | Relay server and relay communication system | |
US7149776B1 (en) | System and method for real-time co-browsing | |
CN101600076B (en) | Video editing system, video editing server and communication terminal | |
US11146517B2 (en) | Intermediary device for data message network routing | |
CN107959615B (en) | Data transmission method, user equipment and service equipment | |
CN102043832A (en) | Method for realizing cross-domain request callback on webpage | |
CN1480859A (en) | Distributed file synchronization system and method | |
CN107438084A (en) | Multi-client data synchronization method and apparatus | |
CN1976322A (en) | Method and system for realizing multimedia immediate communicating and control flow | |
CN100555285C (en) | Web page information collaborative browsing system and method | |
CN113468858B (en) | Method for online editing of office file independent of client environment | |
CN110419033A (en) | Web page translation system, web page translation device, webpage provide device and web page translation method | |
CN119150813A (en) | Document collaborative editing method, device, storage medium and terminal | |
CN113256095B (en) | Draggable configuration agile flow service construction method, system, equipment and medium | |
US20060010205A1 (en) | Systems and methods for collaboration impersonation | |
US20050262092A1 (en) | Systems and methods for collaboration dynamic pageflows | |
CN103139311A (en) | System, device and method of file sharing | |
CN114416682A (en) | Method for editing and managing document in real time in cooperation with multiple terminals | |
CN109543119A (en) | Page preview system and method | |
CN1893422A (en) | Distribution type data transmission method based on internetwork standard |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |