CN102662985A - A method for previewing OFFICE files on a remote server - Google Patents

A method for previewing OFFICE files on a remote server Download PDF

Info

Publication number
CN102662985A
CN102662985A CN2012100656469A CN201210065646A CN102662985A CN 102662985 A CN102662985 A CN 102662985A CN 2012100656469 A CN2012100656469 A CN 2012100656469A CN 201210065646 A CN201210065646 A CN 201210065646A CN 102662985 A CN102662985 A CN 102662985A
Authority
CN
China
Prior art keywords
file
office
remote server
preview
html
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.)
Pending
Application number
CN2012100656469A
Other languages
Chinese (zh)
Inventor
梁超
沈旦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NANJING XINYULI CULTURE SPREAD CO Ltd
Original Assignee
NANJING XINYULI CULTURE SPREAD CO Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NANJING XINYULI CULTURE SPREAD CO Ltd filed Critical NANJING XINYULI CULTURE SPREAD CO Ltd
Priority to CN2012100656469A priority Critical patent/CN102662985A/en
Publication of CN102662985A publication Critical patent/CN102662985A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention discloses a method for previewing OFFICE files on a remote server includes the following steps: a) the remote server transforms an OFFICE file uploaded by a user to an html file and saves the html file as a preview file; b) the remote server sets up access right for the preview file according to the right control when the OFFICE file is uploaded; c) when a client side asks for accessing to the OFFICE file, then the access to the OFFICE file is transformed to the access to the preview file. By using the method for previewing the OFFICE files on the remote server, the remote server transforms the OFFICE file to the html file so that the content of the OFFICE file can be directly previewed from the remote server. The local client side does not need the OFFICE software, thus the local client side is convenient to use and the cost is greatly reduced.

Description

A kind of on remote server the method for preview OFFICE file
Technical field
The present invention relates to the online method for previewing of a kind of OFFICE file, relate in particular to a kind of on remote server the method for preview OFFICE file.
Background technology
The OFFICE office software refers to carry out the software of the aspect work such as processing in word processing, form making, lantern slide manufacturing, simple data storehouse.Comprise the Office of Microsoft series, Kingsoft WPS series, the Office of Yongzhong series, red flag 2000RedOffice, endeavour collaborative OA series etc.Being of wide application of office software arrived social statistics greatly at present, and be little of the meeting record, digitized office, and the tripartite confrontation that be unable to do without office software is assisted.Office software is towards simple to operateization at present, and directions such as function refinement develop.Being particular about large and complete office series runs neck and neck with the little software of being absorbed in some function in-depth.In addition, the tax system that the E-Government that government uses, the tax are used, the synergetic office work software that enterprise uses, these all are office software, and no longer restriction is traditional typewriting, makees the software of form and so on.
The technology of at present main online preview OFFICE document mainly is based on the mode of browser plug-in; In fact also be to call local software to open these OFFICE documents; Therefore local browser must be installed OFFICE software; And well-known, OFFICE software, particularly the Office of Microsoft software is very expensive.Therefore be necessary to be provided at the method for preview OFFICE file on the remote server, direct preview OFFICE content from the server, different client side need not be installed OFFICE software one by one.
Summary of the invention
Technical matters to be solved by this invention provide a kind of on remote server the method for preview OFFICE file, can be directly from the server preview OFFICE content, local client need not be installed OFFICE software, and is easy to use and reduce cost greatly.
The present invention be solve the problems of the technologies described above the technical scheme that adopts provide a kind of on remote server the method for preview OFFICE file; Comprise the steps: that the OFFICE file conversion that a) remote server is uploaded the user is the html file, and be preview file the html file storage; Control of authority when b) remote server is uploaded according to the OFFICE file is that preview file is provided with access rights; C) when client-requested visit OFFICE file, transfer it to visit to preview file.
Above-mentioned on remote server the method for preview OFFICE file, wherein, said step a) medium-long range server is the html file through calling the openoffice interface with the OFFICE file conversion.
Above-mentioned on remote server the method for preview OFFICE file, wherein, client is given in the url address that client is returned preview file in the said step c).
The present invention contrasts prior art has following beneficial effect: provided by the invention on remote server the method for preview OFFICE file; Remote server is the html file with the OFFICE file conversion; Thereby can be directly from the server preview OFFICE content; Local client need not be installed OFFICE software, and is easy to use and reduce cost greatly.
Description of drawings
Fig. 1 is the method flow synoptic diagram of the present invention's preview OFFICE file on remote server.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is done further description.
Fig. 1 is the method flow synoptic diagram of the present invention's preview OFFICE file on remote server.
See also Fig. 1, specify the implementation process of the present invention's preview OFFICE file on remote server below:
Step S101: the OFFICE file conversion that remote server is uploaded the user is the html file, and is preview file with the html file storage, is the html file as call the openoffice interface through JODConverter with the OFFICE file conversion.
Step S102: the control of authority when remote server is uploaded according to the OFFICE file is that preview file is provided with access rights.
Step S103: when client-requested visit OFFICE file, transfer it to visit to preview file.
Specifically: 1. use a LINUX server and openoffice software is installed; 2. realize that the request that a SOCKET server reception user sends obtains fileinfo; 3. realize that the file that the JODConverter conversion is uploaded becomes HTML; 4. realize the request form of visit preview file and return the HTML content to front end.
After preview file generates, need carry out authority to preview file and judge.File as a.ppt produces is following:
a.ppt
a
|_a.html
|_a_img1.jPg
|_a_01.html
|_a_01_img.jpg
Wherein a is a file.In the net dish, the url address of source file is following:
http://***/attachment/openFile/MDffQwYWJlYWYIb1E2BmRRYwE8BjAGMQFsAT kDOwU7UWIBNVFkWmxScZFFbUDQCYl1vCT0HOQMyAnkLcgtvAmIxNzE5NGUyMA%3D%3D.ppt
The user clicks preview, initiates the request of this file of preview to the back-end. and whether checking this user in rear end has this file, and with following form return data:
{″url″:string,″height″:int,″width″:int,“type”:}
After front end receives return data,
Then the url address format of preview file is following:
http://*****/attachment/openPreview/MDQwYWJdlYWYIb1E2BmRRYwE8BjAGMQ FsdddATkDOwU7UWIBNVFkWmxSZFFbUDQCYl1vCT0HOQMyAnkLcgtvAmIxNzE5NGUyMA%3D% 3D/a.html
This URL will be rewritten as following form by the web server:
http://***/attachment/openPreview.php?permission=MDQwYWJdlYWYIb1E2BmRRYwE8BjAGMQFsdddATkDOwU7UWIBNVFkWmxSZFFbUDQCYl1vCT0HOQMyAnkLcgtvAmIxNzE5NGUyMA%3D%3D&file=a.html。
Server will obtain file id according to the url address after the deciphering, and find the physical file address, thereby find the file after the file parameter.
Wherein, in order to reduce the request of database, when back-end encryption, the parent directory address of preview file is joined in the AES; Then when front end is asked to the back-end, directly from url, absolute path is obtained out, do not need requested database once more.
In sum; Provided by the invention on remote server the method for preview OFFICE file; Remote server is the html file with the OFFICE file conversion, thus can be directly from the server preview OFFICE content, no longer rely on relevant OFFICE plug-in unit in the browser; Local client need not be installed OFFICE software one by one, and is easy to use and reduce cost greatly.
Though the present invention discloses as above with preferred embodiment; Right its is not that any those skilled in the art are not breaking away from the spirit and scope of the present invention in order to qualification the present invention; When can doing a little modification and perfect, so protection scope of the present invention is when being as the criterion with what claims defined.

Claims (3)

1. the method for a preview OFFICE file on remote server is characterized in that, comprises the steps:
A) remote server OFFICE file conversion that the user is uploaded is the html file, and is preview file with the html file storage;
Control of authority when b) remote server is uploaded according to the OFFICE file is that preview file is provided with access rights;
C) when client-requested visit OFFICE file, transfer it to visit to preview file.
2. as claimed in claim 1 on remote server the method for preview OFFICE file, it is characterized in that said step a) medium-long range server is the html file through calling the openoffice interface with the OFFICE file conversion.
3. as claimed in claim 1 on remote server the method for preview OFFICE file, it is characterized in that client is given in the url address that client is returned preview file in the said step c).
CN2012100656469A 2012-03-14 2012-03-14 A method for previewing OFFICE files on a remote server Pending CN102662985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100656469A CN102662985A (en) 2012-03-14 2012-03-14 A method for previewing OFFICE files on a remote server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100656469A CN102662985A (en) 2012-03-14 2012-03-14 A method for previewing OFFICE files on a remote server

Publications (1)

Publication Number Publication Date
CN102662985A true CN102662985A (en) 2012-09-12

Family

ID=46772476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100656469A Pending CN102662985A (en) 2012-03-14 2012-03-14 A method for previewing OFFICE files on a remote server

Country Status (1)

Country Link
CN (1) CN102662985A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103391242A (en) * 2013-07-17 2013-11-13 湖南智源信息网络技术开发有限公司 Table data transmission method
CN103955401A (en) * 2014-04-29 2014-07-30 南京新模式软件集成有限公司 Method for optimizing on-line preview of electronic document
CN110263556A (en) * 2019-05-22 2019-09-20 广东安创信息科技开发有限公司 A kind of encryption and decryption method and system of OA system data
CN110321668A (en) * 2018-03-28 2019-10-11 郭亚茹 A kind of internet technology of sharing for the Computing logic being not based on programming
CN113420530A (en) * 2021-06-30 2021-09-21 北京优奥创思科技发展有限公司 File online preview method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549157A (en) * 2003-05-17 2004-11-24 鸿富锦精密工业(深圳)有限公司 File browsing controlling system and method
CN101872364A (en) * 2010-07-02 2010-10-27 苏州阔地网络科技有限公司 Method for converting document into picture on line
CN102156742A (en) * 2011-04-19 2011-08-17 北京神州数码思特奇信息技术股份有限公司 Method and middleware for supporting structured document display with own browser of mobile phone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549157A (en) * 2003-05-17 2004-11-24 鸿富锦精密工业(深圳)有限公司 File browsing controlling system and method
CN101872364A (en) * 2010-07-02 2010-10-27 苏州阔地网络科技有限公司 Method for converting document into picture on line
CN102156742A (en) * 2011-04-19 2011-08-17 北京神州数码思特奇信息技术股份有限公司 Method and middleware for supporting structured document display with own browser of mobile phone

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103391242A (en) * 2013-07-17 2013-11-13 湖南智源信息网络技术开发有限公司 Table data transmission method
CN103955401A (en) * 2014-04-29 2014-07-30 南京新模式软件集成有限公司 Method for optimizing on-line preview of electronic document
CN110321668A (en) * 2018-03-28 2019-10-11 郭亚茹 A kind of internet technology of sharing for the Computing logic being not based on programming
CN110263556A (en) * 2019-05-22 2019-09-20 广东安创信息科技开发有限公司 A kind of encryption and decryption method and system of OA system data
CN113420530A (en) * 2021-06-30 2021-09-21 北京优奥创思科技发展有限公司 File online preview method and system

Similar Documents

Publication Publication Date Title
CN102662985A (en) A method for previewing OFFICE files on a remote server
CN102662983A (en) A method for previewing PDF files on a remote server
NZ717731A (en) Extensible media format system and methods of use
US20110154033A1 (en) Online storage service system and its data control method
Silva et al. Lv scada-how to effectively manage lv networks with limited topology and electrical characteristics data
JP2016513298A (en) Electronic document providing method, system, parent server, and child client
Prayer et al. Why is mediation not used more often as a means of alternative dispute resolution?
Neumeier Open source in accessibility analyses: Modeling of street petrol station accessibility in Germany
Bylund Urban Innovation Zones as Instruments to support Urban Transition Pathways-Paper for
Norman Submission on an Infrastructure Strategy for New Zealand-Question 1: What are your views on the
Jüssi et al. Alternative fuels for Tallinn Bus Company buses: Feasibility and environmental impact of diesel, bioethanol, hybrid and biodiesel alternatives
Arup et al. Quick appraisal of major project application: SYZEFXIS.
Culic TasNetworks-Ring Fencing Compliance Report September 2018
Darnell POWER SYSTEM OPERATING INCIDENT REPORT-TRIP OF SOUTH MORANG No. 2 500 kV BUSBAR 1 JUNE 2013
Krishan Conclave of Champion Cities of Asia and Africa on Clean Air and Sustainable Mobility-April 09, 2015
Iratxe et al. EMHIRES dataset: Part II: Solar Power Generation: European Meteorological derived HIgh resolution RES generation time series for present and futures scenarios: Part II: PV generation uding the PVGIS model
Neklason Adopted FY 2019-FY 2028 CIP
孔繁涛 et al. Practices and reflections of agricultural informatization construction in China: A case study of the “Liaoning Model”
DeLong How Do Projected Long-Run Deficits Matter?: Daily Focus
Aiyar et al. Twenty‐​ Five Years of Indian Economic Reform: India’s Record and Prospects of Becoming a Major World Power
Van Boxem Guidelines for imports of organic products 15 12 2008 rev 1
Cities STEERING URBAN GROWTH: GOVERNANCE, POLICY AND FINANCE CONTENTS ABSTRACT
Montandon ENERGY ADEQUACY ASSESSMENT PROJECTION-FOR EASTERN AND SOUTH EASTERN AUSTRALIA
Wagner et al. EarthServer-3D Visualization on the Web
Van Ryneveld MAPS Provocateur Briefing Report Forum on Development and Mitigation-Cities

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120912