CN109343899A - A kind of method, apparatus and computer equipment loading document - Google Patents
A kind of method, apparatus and computer equipment loading document Download PDFInfo
- Publication number
- CN109343899A CN109343899A CN201810987291.6A CN201810987291A CN109343899A CN 109343899 A CN109343899 A CN 109343899A CN 201810987291 A CN201810987291 A CN 201810987291A CN 109343899 A CN109343899 A CN 109343899A
- Authority
- CN
- China
- Prior art keywords
- document
- viewed
- viewer
- application program
- format
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present application provides a kind of method, apparatus and computer equipment for loading document, and method includes: detecting whether that there are the corresponding first document viewing application programs of document to be viewed;The corresponding first document viewing application program if it does not exist, it then calls document viewer to load and opens the document to be viewed, comprising there are many corresponding second document viewing application program of document format, the second document viewing application program includes the corresponding document viewing subapplication of document format of document to be viewed in the document viewer;So, when the first document viewing application program corresponding there is no document to be viewed in terminal, without separately searching, download, install corresponding first document viewing application program, it calls directly document viewer and can load and open document to be viewed and checked for user, user more convenient in this way checks document, improves the efficiency that user checks document.
Description
Technical field
The present invention relates to document viewing technical fields more particularly to a kind of method, apparatus for loading document and computer to set
It is standby.
Background technique
With the continuous development of science and technology, electronic technology has also obtained development at full speed, and user often utilizes terminal
Browsing document information.
But there are many due to document format including, if be fitted without in user terminal wait need to check document format pair
It when the document viewing application program answered, also needs in addition to search, download, corresponding document viewing application program is installed could opening text
Shelves are checked for user, are caused user to check that document is extremely inconvenient, are reduced the efficiency that user checks document.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State the method, apparatus and computer equipment of the load document of problem.
The first aspect of the present invention provides a kind of method for loading document, which comprises
Detect whether that there are the corresponding first document viewing application programs of document to be viewed;
The corresponding first document viewing application program if it does not exist is then called document viewer to load and is opened described
Document to be viewed, it is described comprising there are many corresponding second document viewing application programs of document format in the document viewer
Second document viewing application program includes document viewing subapplication corresponding with the document format of the document to be viewed.
It is optionally, described to detect whether that there are the corresponding first document viewing application programs of document to be viewed, comprising:
The document format of the registration table of acquisition system and the document to be viewed;
Determine extension name corresponding with the document format of the document to be viewed;
Judge to whether there is key assignments associated with the extension name in the registration table, if it does not exist the key assignments, then
It determines and the corresponding first document viewing application program of the document to be viewed is not present, the key assignments is used to provide the described the first text
Shelves check the load path of application program.
Optionally, before the calling document viewer loads and opens the document to be viewed, comprising:
It downloads and the document viewer is installed.
Optionally, the calling document viewer loads and opens the document to be viewed, comprising:
The corresponding load path of the document viewer is obtained according to the mount message of the document viewer;
The document viewer is loaded according to the load path;
Call document viewing application journey corresponding with the document format of the document to be viewed in the document viewer
Sequence;
It is loaded and is opened described using document viewing subapplication corresponding with the document format of the document to be viewed
Document to be viewed.
Optionally, the document format include: Word file, PPt file, Excel file, Pdf file, RTF file,
It is a variety of in mp3 file, MOV file and ZIP file.
Optionally, after the calling document viewer loads and opens the document to be viewed, comprising:
It is pushed to user and shows to have whether set the document viewer to defaulting the inquiry interface for mode of checking.
The second aspect of the present invention, provides a kind of device for loading document, and described device includes:
Detection unit, for detecting whether there are the corresponding first document viewing application programs of document to be viewed;
Loading unit, for calling document viewer when the corresponding first document viewing application program is not present
The document to be viewed is loaded and opened, includes that there are many corresponding second document viewings of document format in the document viewer
Application program, the second document viewing application program include document viewing corresponding with the document format of the document to be viewed
Subapplication.
Optionally, the detection unit includes:
First obtains subelement, for obtaining the registration table of system and the document format of the document to be viewed;
Subelement is determined, for determining extension name corresponding with the document format of the document to be viewed;
Detection sub-unit, for detecting with the presence or absence of key assignments associated with the extension name in the registration table, if not
There are the key assignments, it is determined that the corresponding first document viewing application program of the document to be viewed is not present, the key assignments is used
In the load path of offer the first document viewing application program.
Optionally, described device further include: installation unit, for calling document viewer to load and open described to be checked
It sees before document, download and the document viewer is installed.
Optionally, the loading unit is specifically used for:
Second obtains subelement, corresponding for obtaining the document viewer according to the mount message of the document viewer
Load path;
First load subelement, for loading the document viewer according to the load path;
Subelement is called, for calling text corresponding with the document format of the document to be viewed in the document viewer
Shelves check subapplication;
Second load subelement, for utilizing document viewing application corresponding with the document format of the document to be viewed
Program loads and opens the document to be viewed.
Optionally, the document format include: Word file, PPt file, Excel file, Pdf file, RTF file,
It is a variety of in mp3 file, MOV file and ZIP file.
Optionally, described device further include: push unit, for calling document viewer to load and open described to be checked
After seeing document, is pushed to user and show there is the inquiry interface for whether setting the document viewer to default viewer.
The third aspect of the present invention provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
The step of any of the above-described the method is realized when sequence is executed by processor.
The third aspect of the present invention provides a kind of computer equipment for loading document, comprising:
At least one processor;And
At least one processor being connect with the processor communication, wherein the memory is stored with can be by the place
The program instruction that device executes is managed, the processor calls described program instruction to be able to carry out the step such as any of the above-described the method
Suddenly.
The technical solution provided in the embodiment of the present application, has at least the following technical effects or advantages:
The embodiment of the present application provides a kind of method, apparatus and computer equipment for loading document, and method includes: detecting whether
There are the corresponding first document viewing application programs of document to be viewed;The corresponding first document viewing application journey if it does not exist
Sequence then calls document viewer to load and opens the document to be viewed, comprising there are many document lattice in the document viewer
The corresponding second document viewing application program of formula, the second document viewing application program include that the document format of document to be viewed is corresponding
Document viewing subapplication;In this way, when the corresponding first document viewing application program of document to be viewed is not present in terminal
When, without separately searching, downloading, installing corresponding first document viewing application program, call directly document viewer
It loads and opens document to be viewed and checked for user, user more convenient in this way checks document, improves the effect that user checks document
Rate.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the method flow schematic diagram of load document according to an embodiment of the invention;
Fig. 2 shows the apparatus structure schematic diagrams of load document according to an embodiment of the invention;
Fig. 3 shows the structural schematic diagram of detection unit according to an embodiment of the invention;
Fig. 4 shows the structural schematic diagram of loading unit according to an embodiment of the invention;
Fig. 5 shows the installation interface schematic diagram of document viewer according to an embodiment of the invention;
Fig. 6 shows the basic setup interface schematic diagram of document viewer according to an embodiment of the invention;
Fig. 7 shows the deletion and unloading interface schematic diagram of document viewer according to an embodiment of the invention;
Fig. 8 show it is according to an embodiment of the invention whether by the document viewer be set as default check mode
Inquiry interface schematic diagram.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of method, apparatus and computer equipment for loading document, to solve existing skill
If being fitted without in terminal in art when needing to check document format corresponding first document viewing application program, also need in addition to look into
It looks for, download, corresponding first document viewing application program is installed could opening document and checked for user, user is caused to check document
Extremely inconvenient, user checks the technical issues of efficiency of document reduces.
Embodiment one
The present embodiment provides a kind of methods for loading document, as shown in Figure 1, method includes:
S110 detects whether that there are the corresponding document viewing application programs of document to be viewed;
In the present embodiment, as a kind of optional embodiment, detect whether that there are corresponding first documents of document to be viewed
It checks before application program, comprising: obtain document to be viewed, can specifically be obtained by following manner:
The click event for capturing user obtains document to be viewed by the click information in click event.Click information can
To include: clickthrough, title of document to be viewed etc..
After getting document to be viewed, because the document format of document to be viewed may include it is a variety of, and in terminal not necessarily
There are the corresponding document viewers of all document formats, therefore when getting document to be viewed, need to detect whether that there are to be checked
See the corresponding first document viewing application program of document.Wherein, the first document viewing application program is to be mounted directly in the terminal
Native applications program.
Here, if downloaded in terminal and be mounted with corresponding first document viewing application program, the text of the document
Shelves format and corresponding first document viewing application program can all be registered in systems, form registration table.It therefore, can as one kind
The embodiment of choosing detects whether that there are the corresponding first document viewing application programs of document to be viewed, comprising:
The document format of the registration table of acquisition system and document to be viewed;
Determine extension name corresponding with the document format of document to be viewed;
Detect and whether there is key assignments associated with extension name, if it does not exist key assignments in registration table, it is determined that there is no to
Check the corresponding first document viewing application program of document, key assignments is used to provide the described the load of the first document viewing application program
Path.
Extension name designated herein generally refers to the suffix name of document format, such as the entitled .doc of extension of Word document;
The entitled .txt of the extension of txt document.
For example, the document format of document to be viewed is word document, then can search the document format in registration table
.doc with the presence or absence of corresponding key assignments HKEY_CLASSES_ROOT .doc if present then illustrate that the document format is deposited
In corresponding first document viewing application program;If it does not exist, then illustrate that the document format is looked into there is no corresponding first document
See application program.
S111, the corresponding first document viewing application program, then call document viewer to load and beat if it does not exist
The document to be viewed is opened, includes that there are many corresponding second document viewing application journeys of document format in the document viewer
Sequence.
If document can be called when first document viewing application program corresponding there is no document to be viewed so in terminal
Reader loads and opens the document to be viewed.
As a kind of optional embodiment, before calling document viewer to load and open the document to be viewed, packet
It includes: downloading and document viewer is installed.
Here, the document viewing application journey for having sofeware management to recommend is shown in the installation interface of installation document viewer
Sequence, so that user has more selections.
As a kind of optional embodiment, during installing document viewer, if user is selected by installation interface
The document viewing application program of sofeware management recommendation is selected when checking document to be viewed, then can send to user and show to have whether move back
Cancel the peace of document viewer if information is exited in the confirmation for receiving user in the inquiry interface of the installation of document viewer out
Journey is put into, and deletes the installation file downloaded, and then the document format for downloading the document to be viewed that sofeware management is recommended is corresponding
Document viewing application program.
Here, before downloading document viewer, comprising: download and corresponding document viewing of a variety of document formats is installed
Application program, to generate document viewer.
In the present embodiment, document viewer supports that the document format checked includes: Word file, PPt file, Excel text
It is a variety of in part, Pdf file, RTF file, mp3 file, MOV file and ZIP file.
So when document format is Word file, corresponding document viewing subapplication may include: Wordview
Plug-in unit;When document format is Pdf file, corresponding document viewing subapplication may include: Pdfcore plug-in unit;Work as text
When shelves format is PPt file, corresponding document viewing subapplication may include: PPtview plug-in unit;When document format is
When Excel file, corresponding document viewing subapplication may include: Excelview plug-in unit.
Therefore these document viewing application programs can all be downloaded, installation, the document in next life cost implementation is looked into
See that device, such document viewer just include that a variety of document formats correspond to document viewing subapplication, the second document viewing is answered
It should include document viewing subapplication corresponding with the document format of document to be viewed with program.
As a kind of optional embodiment, document viewer is called to load and open the document to be viewed, comprising:
The corresponding load path of document viewer is obtained according to the mount message of document viewer;
The document viewer is loaded according to load path;
Call document viewing subapplication corresponding with the document format of the document to be viewed in document viewer;
It loads and opens described to be viewed using the corresponding document viewing subapplication of the document format of document to be viewed
Document.
Specifically, can be obtained according to the mount message of document viewer when key assignments corresponding there is no document to be viewed
The corresponding load path of document viewer.
It is the sub- item that document viewer is mounted on to HKEY_CLASSES_ROOT when here, because of installation document viewer
Mesh shell openas in command, therefore after being installed, can in the sub- entry of registration table there are a path,
This path is considered as the load path of document viewer, as HKEY_CLASSES_ROOT Unknown shell
Openas command, therefore can (mount message can be taken to refer to installation road according to the mount message of document viewer
Diameter) the corresponding load path of document viewer is obtained, be mapped with document viewer in this load path in advance checks program
360FileAssoc.exe;After getting load path, document viewer is loaded according to load path, and judge document viewer
With the presence or absence of supporting the corresponding document format of document to be viewed, and if it exists, call in document viewer with the document format pair
The document viewing subapplication answered;It is loaded using the corresponding document viewing subapplication of document format and opens text to be viewed
Shelves.
As a kind of optional embodiment, when user load and opens the document to be viewed using document viewer, pass
After closing document to be viewed, document can be quickly checked next time in order to facilitate user, comprising: whether have to user's push displaying will be described
Document viewer is set as the inquiry interface that default checks mode.Wherein, the inquiry interface in the present embodiment may include pop-up.
After receiving the confirmation setting information of user, default is set for document viewer according to confirmation setting information
It checks mode, when subsequent document format to be viewed does not have corresponding first document viewing application program, can default and utilize text
Shelves reader loads and opens document.
Based on same inventive concept, the embodiment of the present application also provides a kind of device for loading document, detailed in Example
Two.
Embodiment two
This implementation provides a kind of device for loading document, as shown in Fig. 2, device includes: detection unit 21 and loading unit
22;Wherein,
Detection unit 21 is for detecting whether there are the corresponding first document viewing application programs of document to be viewed.
Here, as a kind of optional embodiment, detection unit 21 is detecting whether that there are documents to be viewed corresponding
It before one document viewing application program, is used for: obtaining document to be viewed, can specifically be obtained by following manner:
The click event for capturing user obtains document to be viewed by the click information in click event.Click information can
To include: clickthrough, title of document to be viewed etc..
After getting document to be viewed, because the document format of document to be viewed may include it is a variety of, and in terminal not necessarily
There are the corresponding document viewers of all document formats, therefore when getting document to be viewed, detection unit 21 needs to detect
With the presence or absence of the corresponding first document viewing application program of document to be viewed.Wherein, the first document viewing application program is direct
The native applications program of installation in the terminal.
Here, if downloaded in terminal and be mounted with corresponding first document viewing application program, the text of the document
Shelves format and corresponding first document viewing application program can all be registered in systems, form registration table.It therefore, can as one kind
The embodiment of choosing, referring to fig. 2, detection unit 21 includes:
First obtains subelement 31, for obtaining the registration table of system and the document format of document to be viewed;
Subelement 32 is determined, for determining extension name corresponding with the document format of document to be viewed;
Detection sub-unit 33 whether there is key assignments associated with extension name for detecting, if it does not exist key in registration table
Value, it is determined that the corresponding first document viewing application program of document to be viewed is not present, key assignments is used to provide the described the first document
Check the load path of application program.
Extension name designated herein generally refers to the suffix name of document format, such as the entitled .doc of extension of Word document;
The entitled .txt of the extension of txt document.
For example, the document format of document to be viewed is word document, then detection sub-unit 33 can be looked into registration table
Look for the document format .doc with the presence or absence of corresponding key assignments HKEY_CLASSES_ROOT .doc if present then illustrate
There are corresponding first document viewing application programs for the document format;If it does not exist, then illustrating the document format, there is no correspond to
The first document viewing application program.
When corresponding first document viewing application program is not present in terminal, loading unit 22 can then call document to load
And opening device checks document to be viewed.
As a kind of optional embodiment, with continued reference to Fig. 1, device further include: installation unit 23, for calling document
Before reader loads and opens the document to be viewed, downloads and document viewer is installed.
Here, the document viewing application journey for having sofeware management to recommend is shown in the installation interface of installation document viewer
Sequence, so that user has more selections.
As a kind of optional embodiment, during installing document viewer, user is selected by installation interface
The document viewing application program recommended using sofeware management is come when checking document to be viewed, installation unit 23 can then be sent to user
Show the inquiry interface for having the installation for whether exiting document viewer, if information is exited in the confirmation for receiving user, load is single
Member 22 can then cancel the erection schedule of document viewer, and delete the installation file downloaded, and then download sofeware management and recommend
Document to be viewed the corresponding document viewing application program of document format.
Here, it before downloading document viewer, also needs to download and install corresponding document viewing of a variety of document formats
Application program, to generate document viewer.
In the present embodiment, document viewer supports that the document format checked includes: Word file, PPt file, Excel text
It is a variety of in part, Pdf file, RTF file, mp3 file, MOV file and ZIP file.
So when document format is Word file, corresponding document viewing subapplication may include: Wordview
Plug-in unit;When document format is Pdf file, corresponding document viewing subapplication may include: Pdfcore plug-in unit;Work as text
When shelves format is PPt file, corresponding document viewing subapplication may include: PPtview plug-in unit;When document format is
When Excel file, corresponding document viewing subapplication may include: Excelview plug-in unit.
Therefore these document viewing application programs can all be downloaded, installation, the document in next life cost implementation is looked into
See that device, such document viewer just include the corresponding document viewing subapplication of a variety of document formats, the second document viewing
Application program should include document viewing subapplication corresponding with the document format of document to be viewed.
As a kind of optional embodiment, referring to fig. 4, loading unit 22 includes:
Second obtains subelement 41, for obtaining the corresponding load of document viewer according to the mount message of document viewer
Path;
First load subelement 42, for loading the document viewer according to load path;
Subelement 43 is called, for calling document viewing corresponding with the document format of document to be viewed in document viewer
Subapplication;
Second load subelement 44, for the corresponding document viewing subapplication of document format using document to be viewed
It loads and opens the document to be viewed.
Specifically, second acquisition unit 41 can be according to document viewer when key assignments corresponding there is no document to be viewed
Mount message obtain the corresponding load path of document viewer.
It is the sub- item that document viewer is mounted on to HKEY_CLASSES_ROOT when here, because of installation document viewer
Mesh shell openas in command, therefore after being installed, can in the sub- entry of registration table there are a path,
This path is considered as the load path of document viewer, as HKEY_CLASSES_ROOT Unknown shell
Openas command, therefore can (mount message can be taken to refer to installation road according to the mount message of document viewer
Diameter), be mapped with document viewer in this load path in advance checks program 360FileAssoc.exe;Get load road
After diameter, load subelement 42 according to load path load document viewer, and judge in document viewer with the presence or absence of support to
Check the corresponding document format of document, and if it exists, call subelement 43 to call corresponding with the document format in document viewer
Document viewing subapplication;Second load subelement 44 is loaded using the corresponding document viewing subapplication of document format
And open the document to be viewed.
As a kind of optional embodiment, with continued reference to Fig. 1, device further include: push unit 24, when user utilizes document
Reader opens the document to be viewed, after closing document to be viewed, can quickly check document next time in order to facilitate user, pushes
Unit 24, which is used to push to user, shows to have whether set the document viewer to defaulting the inquiry interface for mode of checking.Its
In, the inquiry interface in the present embodiment may include pop-up.
After receiving the confirmation setting information of user, loading unit 22 is then according to confirmation setting information by document viewer
Be set as default checks mode, when subsequent document format to be viewed does not have corresponding first document viewing application program,
It can default and check document using document viewer.
Embodiment three
In practical application, when user needs to check document, and by no corresponding first document viewing application in terminal
Program, then document viewer can be downloaded and be installed, installation interface is as shown in Figure 5.
As shown in figure 5, the document viewing application program for having sofeware management to recommend is shown in installation interface, so that user has more
More selections;Installation progress item has been also showed that in installation interface.Wherein, the document viewing application program that sofeware management is recommended can be with
It is directly shown on installation interface with list mode, a displaying entrance can also be provided on installation interface, such as: it is " more
Unfolding mode " when the user clicks when this entrance, has detailed document viewing application information.
During installing document viewer, if user is looked by the document that installation interface selects sofeware management to recommend
Application program is seen when checking document to be viewed, then the inquiry for showing and having the installation for whether exiting document viewer can be sent to user
It asks interface, if information is exited in the confirmation for receiving user, cancels the erection schedule of document viewer, and delete the peace downloaded
File is filled, and then downloads the corresponding document viewing application program of document format for the document to be viewed that sofeware management is recommended.
When document viewer after the installation is completed, directly can load and open document using document viewer.
Here, document, which is opened on interface, setting central inlet, and user can enter setting center by the entrance, to document
Reader is configured, for example carries out basic setup, deletion and unloading, feedback and suggestion.Wherein, basic setup interface such as Fig. 6
It is shown, it deletes as shown in Figure 7 with unloading interface.
It is finished when user checks, when close document, can quickly check document next time in order to facilitate user, can be pushed to user
Show to have whether set the document viewer to defaulting the inquiry interface for mode of checking, inquiry interface is as shown in Figure 8.When connecing
After the confirmation setting information for receiving user, mode is checked for what document viewer was set as defaulting according to confirmation setting information, when
When subsequent document format to be viewed does not have corresponding first document viewing application program, it can default and be checked using document viewer
Document.
The technical solution provided in embodiment is originally provided, is had at least the following technical effects or advantages:
The embodiment of the present application provides a kind of method, apparatus and computer equipment for loading document, and method includes: detecting whether
There are the corresponding first document viewing application programs of document to be viewed;The corresponding first document viewing application journey if it does not exist
Sequence then calls document viewer to load and opens the document to be viewed, comprising there are many document lattice in the document viewer
The corresponding second document viewing application program of formula, the second document viewing application program include that the document format of document to be viewed is corresponding
Document viewing subapplication;In this way, when the corresponding first document viewing application program of document to be viewed is not present in terminal
When, without separately searching, downloading, installing corresponding first document viewing application program, call directly document viewer
It loads and opens document to be viewed and checked for user, user more convenient in this way checks document, improves the effect that user checks document
Rate.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments
Including certain features rather than other feature, but the combination of the feature of different embodiment means in the scope of the present invention
Within and form different embodiments.For example, in the following claims, embodiment claimed it is any it
One can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize device according to an embodiment of the present invention and computer equipment, system
In some or all components some or all functions.The present invention is also implemented as described herein for executing
Some or all device or device programs (for example, computer program and computer program product) of method.In this way
Realization program of the invention can store on a computer-readable medium, or can have the shape of one or more signal
Formula.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other shape
Formula provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
The invention discloses A1, a kind of method for loading document, which comprises
Detect whether that there are the corresponding first document viewing application programs of document to be viewed;
The corresponding first document viewing application program if it does not exist is then called document viewer to load and is opened described
Document to be viewed, it is described comprising there are many corresponding second document viewing application programs of document format in the document viewer
Second document viewing application program includes document viewing subapplication corresponding with the document format of the document to be viewed.
A2, method as described in a1, it is described to detect whether that there are the corresponding first document viewing application journeys of document to be viewed
Sequence, comprising:
The document format of the registration table of acquisition system and the document to be viewed;
Determine extension name corresponding with the document format of the document to be viewed;
Judge to whether there is key assignments associated with the extension name in the registration table, if it does not exist the key assignments, then
It determines and the corresponding first document viewing application program of the document to be viewed is not present, the key assignments is used to provide the described the first text
Shelves check the load path of application program.
A3, method as described in a1, before the calling document viewer loads and opens the document to be viewed, packet
It includes:
It downloads and the document viewer is installed.
The described in any item methods of A4, such as A1~A3, the calling document viewer load and open the text to be viewed
Shelves, comprising:
The corresponding load path of the document viewer is obtained according to the mount message of the document viewer;
The document viewer is loaded according to the load path;
Call document viewing application journey corresponding with the document format of the document to be viewed in the document viewer
Sequence;
It is loaded and is opened described using document viewing subapplication corresponding with the document format of the document to be viewed
Document to be viewed.
A5, method as described in a1, the document format include: Word file, PPt file, Excel file, Pdf text
It is a variety of in part, RTF file, mp3 file, MOV file and ZIP file.
A6, method as described in a1, after the calling document viewer loads and opens the document to be viewed, comprising:
It is pushed to user and shows to have whether set the document viewer to defaulting the inquiry interface for mode of checking.
B7, a kind of device for loading document, described device include:
Detection unit, for detecting whether there are the corresponding first document viewing application programs of document to be viewed;
Loading unit, for calling document viewer when the corresponding first document viewing application program is not present
The document to be viewed is loaded and opened, includes that there are many corresponding second document viewings of document format in the document viewer
Application program, the second document viewing application program include document viewing corresponding with the document format of the document to be viewed
Subapplication.
Detection unit described in B8, device as described in b7 includes:
First obtains subelement, for obtaining the registration table of system and the document format of the document to be viewed;
Subelement is determined, for determining extension name corresponding with the document format of the document to be viewed;
Detection sub-unit, for detecting with the presence or absence of key assignments associated with the extension name in the registration table, if not
There are the key assignments, it is determined that the corresponding first document viewing application program of the document to be viewed is not present, the key assignments is used
In the load path of offer the first document viewing application program.
B9, device as described in b7, described device further include: installation unit, for calling document viewer load simultaneously
Before opening the document to be viewed, downloads and the document viewer is installed.
The described in any item devices of B10, such as B7~B9, the loading unit are specifically used for:
Second obtains subelement, corresponding for obtaining the document viewer according to the mount message of the document viewer
Load path;
First load subelement, for loading the document viewer according to the load path;
Subelement is called, for calling text corresponding with the document format of the document to be viewed in the document viewer
Shelves check subapplication;
Second load subelement, for utilizing document viewing application corresponding with the document format of the document to be viewed
Program loads and opens the document to be viewed.
B11, device as described in b7, the document format include: Word file, PPt file, Excel file, Pdf text
It is a variety of in part, RTF file, mp3 file, MOV file and ZIP file.
B12, device as described in b7, described device further include: push unit, for calling document viewer load simultaneously
After opening the document to be viewed, is pushed to user and show there is the inquiry for whether setting the document viewer to default viewer
Ask interface.
C13, a kind of computer readable storage medium, are stored thereon with computer program, when which is executed by processor
The step of realizing any one of A1 to A6 the method.
D14, a kind of computer equipment for loading document, comprising:
At least one processor;And
At least one processor being connect with the processor communication, wherein the memory is stored with can be by the place
The program instruction that device executes is managed, the processor calls described program instruction to be able to carry out such as any one of claim A1 to A6 institute
The step of stating method.
Claims (10)
1. a kind of method for loading document, which is characterized in that the described method includes:
Detect whether that there are the corresponding first document viewing application programs of document to be viewed;
The corresponding first document viewing application program if it does not exist is then called document viewer to load and is opened described to be checked
See document, comprising there are many corresponding second document viewing application program of document format in the document viewer, described second
Document viewing application program includes document viewing subapplication corresponding with the document format of the document to be viewed.
2. the method as described in claim 1, which is characterized in that described to detect whether that there are corresponding first texts of document to be viewed
Shelves check application program, comprising:
The document format of the registration table of acquisition system and the document to be viewed;
Determine extension name corresponding with the document format of the document to be viewed;
Judge to whether there is key assignments associated with the extension name in the registration table, if it does not exist the key assignments, it is determined that
There is no the corresponding first document viewing application program of the document to be viewed, the key assignments is used to provide the described the first document and looks into
See the load path of application program.
3. the method as described in claim 1, which is characterized in that the calling document viewer is loaded and opened described to be viewed
Before document, comprising:
It downloads and the document viewer is installed.
4. method as claimed in any one of claims 1 to 3, which is characterized in that the calling document viewer is loaded and opened
The document to be viewed, comprising:
The corresponding load path of the document viewer is obtained according to the mount message of the document viewer;
The document viewer is loaded according to the load path;
Call document viewing subapplication corresponding with the document format of the document to be viewed in the document viewer;
It loads and opens described to be checked using document viewing subapplication corresponding with the document format of the document to be viewed
See document.
5. a kind of device for loading document, which is characterized in that described device includes:
Detection unit, for detecting whether there are the corresponding first document viewing application programs of document to be viewed;
Loading unit, for when the corresponding first document viewing application program is not present, calling document viewer load
And the document to be viewed is opened, comprising there are many corresponding second document viewing applications of document format in the document viewer
Program, the second document viewing application program include that document viewing corresponding with the document format of the document to be viewed is answered
Use program.
6. device as claimed in claim 5, which is characterized in that the detection unit includes:
First obtains subelement, for obtaining the registration table of system and the document format of the document to be viewed;
Subelement is determined, for determining extension name corresponding with the document format of the document to be viewed;
Detection sub-unit, for detecting with the presence or absence of key assignments associated with the extension name in the registration table, if it does not exist
The key assignments, it is determined that the corresponding first document viewing application program of the document to be viewed is not present, the key assignments is for mentioning
For the load path of the first document viewing application program.
7. device as claimed in claim 5, which is characterized in that described device further include: installation unit, for calling document
Before reader loads and opens the document to be viewed, downloads and the document viewer is installed.
8. such as the described in any item devices of claim 5~7, which is characterized in that the loading unit is specifically used for:
Second obtains subelement, and for being obtained according to the mount message of the document viewer, the document viewer is corresponding to be added
Carry path;
First load subelement, for loading the document viewer according to the load path;
Subelement is called, for calling document corresponding with the document format of the document to be viewed in the document viewer to look into
See subapplication;
Second load subelement, for utilizing document viewing subapplication corresponding with the document format of the document to be viewed
It loads and opens the document to be viewed.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The step of any one of Claims 1-4 the method is realized when row.
10. a kind of computer equipment for loading document characterized by comprising
At least one processor;And
At least one processor being connect with the processor communication, wherein the memory is stored with can be by the processor
The program instruction of execution, the processor call described program instruction to be able to carry out such as any one of Claims 1-4 the method
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810987291.6A CN109343899A (en) | 2018-08-28 | 2018-08-28 | A kind of method, apparatus and computer equipment loading document |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810987291.6A CN109343899A (en) | 2018-08-28 | 2018-08-28 | A kind of method, apparatus and computer equipment loading document |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109343899A true CN109343899A (en) | 2019-02-15 |
Family
ID=65291787
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810987291.6A Pending CN109343899A (en) | 2018-08-28 | 2018-08-28 | A kind of method, apparatus and computer equipment loading document |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109343899A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060161862A1 (en) * | 2005-01-20 | 2006-07-20 | Microsoft Corporation | Enabling users to create and use a directory of document links from within a file menu of an application |
CN102622439A (en) * | 2012-03-06 | 2012-08-01 | 奇智软件(北京)有限公司 | Method and device for displaying document in browser |
CN103116586A (en) * | 2011-11-17 | 2013-05-22 | 中国电信股份有限公司 | Document reading achieving method, terminal, document conversion server and processing system |
CN104239045A (en) * | 2014-09-05 | 2014-12-24 | 珠海市君天电子科技有限公司 | Method and device for opening unknown file |
CN105320760A (en) * | 2015-10-20 | 2016-02-10 | 金蝶软件(中国)有限公司 | Document processing method and server |
-
2018
- 2018-08-28 CN CN201810987291.6A patent/CN109343899A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060161862A1 (en) * | 2005-01-20 | 2006-07-20 | Microsoft Corporation | Enabling users to create and use a directory of document links from within a file menu of an application |
CN103116586A (en) * | 2011-11-17 | 2013-05-22 | 中国电信股份有限公司 | Document reading achieving method, terminal, document conversion server and processing system |
CN102622439A (en) * | 2012-03-06 | 2012-08-01 | 奇智软件(北京)有限公司 | Method and device for displaying document in browser |
CN104239045A (en) * | 2014-09-05 | 2014-12-24 | 珠海市君天电子科技有限公司 | Method and device for opening unknown file |
CN105320760A (en) * | 2015-10-20 | 2016-02-10 | 金蝶软件(中国)有限公司 | Document processing method and server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106357738B (en) | A kind of automatically dispose methods, devices and systems of server cluster | |
CN103365644B (en) | A kind of method and device of expanding software function | |
CN104750528B (en) | A kind of assembly management method and apparatus in Android program | |
CN105893085A (en) | Method and device for loading kernel module | |
US10476959B2 (en) | Cloud resource provisioning using blueprint chaining | |
CN109062617A (en) | A kind of application method, the mobile terminal of platform that supporting polymorphic type equipment | |
CN103617057A (en) | Application program installation method and device | |
US20160125194A1 (en) | Dynamic service discovery | |
CN104021016B (en) | Method and browser for loading browser plug-in icons | |
CN103034546B (en) | The method and device of inter-application communication in iOS system | |
CN110147281A (en) | Optimize method, apparatus, the electronic equipment that snowflake algorithm is applied in financial business | |
CN104050417A (en) | Method and device for detecting software states at mobile terminal | |
CN104036019A (en) | Method and device for opening webpage links | |
CN104463642A (en) | Advertisement filtering processing method and device and browser client side | |
CN105095388A (en) | Method and device for recommending App to mobile terminal during search | |
CN106708571A (en) | Resource file loading method and device and source file reinforcing method and device | |
CN105183890A (en) | Webpage loading method based on browser and browser device | |
CN104951556A (en) | Method and device for generating prompt message in search result page | |
EP2823411A1 (en) | A method and system of application development for multiple device client platforms | |
CN105260421A (en) | Webpage loading method and apparatus | |
CN103714002A (en) | Project testing method and device based on configuration system | |
CN105630927B (en) | Link generation method and device | |
CN103514021B (en) | The method and apparatus of browser is provided | |
CN106302712B (en) | Handle the method and device of web data | |
CN106528206A (en) | Application starting control method and apparatus, and application installation package reinforcement apparatus |
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 |