CN112130733A - Thumbnail-based document display method and equipment - Google Patents

Thumbnail-based document display method and equipment Download PDF

Info

Publication number
CN112130733A
CN112130733A CN202010880180.2A CN202010880180A CN112130733A CN 112130733 A CN112130733 A CN 112130733A CN 202010880180 A CN202010880180 A CN 202010880180A CN 112130733 A CN112130733 A CN 112130733A
Authority
CN
China
Prior art keywords
document
file
thumbnail
picture
ppt
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
CN202010880180.2A
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.)
Beijing Yundong Intelligent Network Technology Co ltd
Original Assignee
Beijing Yundong Intelligent Network Technology 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 Beijing Yundong Intelligent Network Technology Co ltd filed Critical Beijing Yundong Intelligent Network Technology Co ltd
Priority to CN202010880180.2A priority Critical patent/CN112130733A/en
Publication of CN112130733A publication Critical patent/CN112130733A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Abstract

The invention provides a document display method and device based on thumbnails. The document display method based on the thumbnail comprises the following steps: acquiring the file type of a current active document, wherein the file type comprises Word, Excel and PPT; generating a thumbnail of the document file according to the file type of the document, wherein the size of the thumbnail is a preset size; and displaying the generated thumbnail of the document file and the detailed information of the document file in an application device window. The thumbnail-based document display equipment is used for executing the document display method provided by the invention. According to the technical scheme provided by the invention, a plurality of documents are displayed in the same window in the form of file thumbnails, file names, file paths, storage time and file sizes, and a user can quickly find a file to be opened from a plurality of files of the same type by using the file thumbnails, so that the efficient management of the documents is realized, and the working efficiency is improved.

Description

Thumbnail-based document display method and equipment
Technical Field
The invention relates to the technical field of document management, in particular to a document display method and device based on thumbnails.
Background
With the rapid development of internet technology and the increasing popularization of computer applications, the application of multiple types and numbers of office documents is more and more extensive. Before a user opens or uses a certain document file, the user often needs to know attribute information such as a file name, a file type and the like of the document, and the document management method is involved.
At present, the presentation of a document in an application device window is usually in the form of file type + file name + file information. When the file name of the document is too long or the number of the document files of the same type is large, it takes a long time for the user to check the attribute information of the document files, and the user is easy to open wrong document files because the document files are not easy to distinguish. In addition, if a user wants to find a document file that has been opened or has been opened recently, it is also troublesome to find a path, and the user experience is not good.
Disclosure of Invention
In view of the foregoing defects in the prior art, embodiments of the present invention provide a method and an apparatus for displaying a document based on a thumbnail.
In a first aspect, an embodiment of the present invention provides a document display method based on thumbnails, including:
s1, acquiring the file type of the current active document, wherein the file type comprises Word, Excel and PPT;
s2, generating a thumbnail of the document file according to the file type of the document, wherein the size of the thumbnail is a preset size;
and S3, displaying the generated thumbnail of the document file and the detailed information of the document file in the application device window.
The document display method described above, wherein the generating a thumbnail of the document file according to the file type of the document in S2 specifically includes:
if the file type is Word, acquiring a home page document of the Word document, and copying the home page document of the Word document in a picture form; creating a picture file path, and acquiring and storing a first page document picture file of a Word document from a clipboard; reducing the first page document picture of the Word document to a preset size and then taking the picture as a thumbnail of the Word document file;
if the file type is Excel, acquiring a workbook table of the Excel document, and copying the workbook table of the Excel document in a picture form; creating a picture file path, and acquiring and storing a workbook table picture file of the Excel document from a clipboard; reducing the workbook table picture of the Excel document to a preset size and then using the reduced workbook table picture as a thumbnail of the Excel document file;
if the file type is PPT, acquiring a first page slide of the PPT document, and copying the first page slide of the PPT document in a picture form; establishing a picture file path, and acquiring and storing a first page slide picture file of the PPT document from a shear plate; and reducing the first page slide picture of the PPT document to a preset size to be used as a thumbnail of the PPT document file.
The document display method as described above, further, the detailed information of the document file includes a file name, a file path, a saving time, and a file size; the size of the thumbnail is a preset size, and is preset according to the size of the application equipment window, the number of documents and the requirement habit of a user.
In a second aspect, the embodiment of the present invention provides a thumbnail-based document presentation apparatus, which is configured to execute the document presentation method described above.
Compared with the prior art, the technical scheme provided by the embodiment of the invention has the advantages that:
a plurality of documents are displayed in the same window in the form of file thumbnails, file names, file paths, storage time and file sizes, and a user can quickly find files needing to be opened in a plurality of files of the same type by using the file thumbnails, so that efficient management of the documents is realized, and the working efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart of a thumbnail-based document presentation method provided by the present invention;
FIG. 2 is a schematic diagram of an embodiment of a document display method and device based on thumbnail provided by the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a flowchart of a thumbnail-based document presentation method according to the present invention. Referring to fig. 1, the method of the present embodiment includes the following.
S1, acquiring the file types of the current active document, wherein the file types comprise Word, Excel and PPT.
And S2, generating a thumbnail of the document file according to the file type of the document, wherein the size of the thumbnail is a preset size.
In a specific application, the generating a thumbnail of a document file according to a file type of a document in this step may specifically be:
if the file type is Word, acquiring a home page document of the Word document, and copying the home page document of the Word document in a picture form; creating a picture file path, and acquiring and storing a first page document picture file of a Word document from a clipboard; and reducing the first page document picture of the Word document to a preset size to be used as a thumbnail of the Word document file.
If the file type is Excel, acquiring a workbook table of the Excel document, and copying the workbook table of the Excel document in a picture form; creating a picture file path, and acquiring and storing a workbook table picture file of the Excel document from a clipboard; and reducing the workbook table picture of the Excel document to a preset size to be used as a thumbnail of the Excel document file.
If the file type is PPT, acquiring a first page slide of the PPT document, and copying the first page slide of the PPT document in a picture form; establishing a picture file path, and acquiring and storing a first page slide picture file of the PPT document from a shear plate; and reducing the first page slide picture of the PPT document to a preset size to be used as a thumbnail of the PPT document file.
And S3, displaying the generated thumbnail of the document file and the detailed information of the document file in the application device window.
The detailed information of the document file in this step may include a file name, a file path, a saving time, a file size; the size of the thumbnail is a preset size, and is generally the size of the thumbnail preset according to the size of the application device window, the number of documents and the requirement habit of the user.
In summary, according to the technical scheme provided by the embodiment of the present invention, a plurality of documents are displayed in the same window in the form of a file thumbnail, a file name, a file path, a storage time, and a file size, and a file thumbnail is used to enable a user to quickly find a file to be opened from a plurality of files of the same type, so that efficient management of the documents is realized, and the work efficiency is improved.
On the other hand, the embodiment of the present invention provides a document display device based on thumbnails, where the device (for example, a user terminal device such as a PC) is configured to execute the document display method, capture and store a document in a process that a user uses the document, and display all documents in the same window in a manner of thumbnails plus detailed information, so as to help the user to search for a file faster and more accurately, and provide better user experience.
FIG. 2 is a schematic diagram of an embodiment of a document display method and device based on thumbnail provided by the invention. Referring to fig. 2, the technical implementation manner of the application embodiment is as follows: generating an Office thumbnail, generating the thumbnail by Word, Excel and PPT, copying the thumbnail into a picture form, operating a clipboard through a window API, carrying out disk persistence on the copied picture, and finally sending the picture physical address to a C + + interface to be displayed in a window by a file thumbnail. The specific implementation steps are as follows:
step A: the C + + main program is opened.
And B: opening the PPT or building a PPT to execute a PPT picture generation method, acquiring a current active PPT home page slide, creating a picture file path, and executing a PPT copy method.
And C: the method comprises the steps of opening a clipboard through a window API OpenClipboard, checking whether the clipboard has contents, obtaining a memory block head address of the clipboard through a window API GetClipboarddata, generating an emf temporary file path, generating a primitive file copy again, opening the primitive file copy, generating a picture from the primitive file copy, emptying the clipboard, closing the clipboard, releasing a content address, deleting a temporary primitive file, saving a picture file, returning the picture file address, and sending the picture file address to a C + + interface.
Step D: and opening the Word or newly building the Word to execute the Word picture generation method, acquiring the current active Word home page document, and copying in the form of the picture. And C, creating a picture file path and executing the step C.
Step E: opening the Excel or building an Excel to execute the Excel picture generation method, obtaining a currently active workbook, traversing table rows of the workbook to generate the height of a specified picture according to the picture size, traversing columns of a workbook table to generate a specified width according to the picture size, obtaining an area object of the workbook table through the width and the height, copying the area object in the form of a picture to generate a picture path, and executing the step C.
Step F: and displaying the generated picture to a window in the form of the thumbnail of the current file plus the file name.
In the embodiment, Word, Excel and PPT thumbnails are generated mainly by a Window API method, the detailed information of the files is obtained, and finally the thumbnails and the detailed information of the files are displayed in a Window, so that a user can conveniently, quickly and accurately manage the files.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (5)

1. A document display method based on thumbnails is characterized by comprising the following steps:
s1, acquiring the file type of the current active document, wherein the file type comprises Word, Excel and PPT;
s2, generating a thumbnail of the document file according to the file type of the document, wherein the size of the thumbnail is a preset size;
and S3, displaying the generated thumbnail of the document file and the detailed information of the document file in the application device window.
2. The document presentation method according to claim 1, wherein the generating a thumbnail of the document file according to the file type of the document in S2 specifically comprises:
if the file type is Word, acquiring a home page document of the Word document, and copying the home page document of the Word document in a picture form; creating a picture file path, and acquiring and storing a first page document picture file of a Word document from a clipboard; reducing the first page document picture of the Word document to a preset size and then taking the picture as a thumbnail of the Word document file;
if the file type is Excel, acquiring a workbook table of the Excel document, and copying the workbook table of the Excel document in a picture form; creating a picture file path, and acquiring and storing a workbook table picture file of the Excel document from a clipboard; reducing the workbook table picture of the Excel document to a preset size and then using the reduced workbook table picture as a thumbnail of the Excel document file;
if the file type is PPT, acquiring a first page slide of the PPT document, and copying the first page slide of the PPT document in a picture form; establishing a picture file path, and acquiring and storing a first page slide picture file of the PPT document from a shear plate; and reducing the first page slide picture of the PPT document to a preset size to be used as a thumbnail of the PPT document file.
3. The document presentation method of claim 2, wherein the detailed information of the document file in S3 includes a file name, a file path, a save time, and a file size.
4. The document presentation method of claim 3, wherein the size of the thumbnail is a preset size, which is preset according to the size of the application device window, the number of documents, and the requirement habit of the user.
5. A thumbnail-based document presentation apparatus, wherein the apparatus is configured to perform the document presentation method of any one of claims 1-4.
CN202010880180.2A 2020-08-27 2020-08-27 Thumbnail-based document display method and equipment Pending CN112130733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010880180.2A CN112130733A (en) 2020-08-27 2020-08-27 Thumbnail-based document display method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010880180.2A CN112130733A (en) 2020-08-27 2020-08-27 Thumbnail-based document display method and equipment

Publications (1)

Publication Number Publication Date
CN112130733A true CN112130733A (en) 2020-12-25

Family

ID=73847536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010880180.2A Pending CN112130733A (en) 2020-08-27 2020-08-27 Thumbnail-based document display method and equipment

Country Status (1)

Country Link
CN (1) CN112130733A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113344348A (en) * 2021-05-25 2021-09-03 中国平安人寿保险股份有限公司 Generation method, device, equipment and storage medium of multi-class material approval document
US11842143B1 (en) 2022-08-30 2023-12-12 International Business Machines Corporation Techniques for thumbnail and preview generation based on document content

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646072A (en) * 2013-12-10 2014-03-19 河南博仕达通信技术有限公司 Automatic file classification method and mobile terminal
US20160098164A1 (en) * 2011-12-30 2016-04-07 Google Inc. Interactive answer boxes for user search queries
CN109213968A (en) * 2018-08-01 2019-01-15 山东浪潮通软信息科技有限公司 A kind of method of online preview network disk file
CN109766315A (en) * 2017-08-23 2019-05-17 腾讯科技(深圳)有限公司 Document presentation method and terminal, computer storage medium, computer equipment
CN110502484A (en) * 2019-08-16 2019-11-26 北京小米移动软件有限公司 The method, apparatus and medium of the file information are shown in mobile terminal
CN110968374A (en) * 2018-09-29 2020-04-07 珠海金山办公软件有限公司 Document information display method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160098164A1 (en) * 2011-12-30 2016-04-07 Google Inc. Interactive answer boxes for user search queries
CN103646072A (en) * 2013-12-10 2014-03-19 河南博仕达通信技术有限公司 Automatic file classification method and mobile terminal
CN109766315A (en) * 2017-08-23 2019-05-17 腾讯科技(深圳)有限公司 Document presentation method and terminal, computer storage medium, computer equipment
CN109213968A (en) * 2018-08-01 2019-01-15 山东浪潮通软信息科技有限公司 A kind of method of online preview network disk file
CN110968374A (en) * 2018-09-29 2020-04-07 珠海金山办公软件有限公司 Document information display method and device, electronic equipment and storage medium
CN110502484A (en) * 2019-08-16 2019-11-26 北京小米移动软件有限公司 The method, apparatus and medium of the file information are shown in mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113344348A (en) * 2021-05-25 2021-09-03 中国平安人寿保险股份有限公司 Generation method, device, equipment and storage medium of multi-class material approval document
US11842143B1 (en) 2022-08-30 2023-12-12 International Business Machines Corporation Techniques for thumbnail and preview generation based on document content

Similar Documents

Publication Publication Date Title
US11416676B2 (en) Using text messages to interact with spreadsheets
RU2417401C2 (en) Rich drag drop user interface
US6585777B1 (en) Method for managing embedded files for a document saved in HTML format
US6177939B1 (en) Method of saving sections of a document to random access memory
AU2010200518B2 (en) Information processing apparatus, information processing method and information processing program
EP2854049A1 (en) Method for managing and displaying folders based on android system and mobile terminal thereof
US20130339889A1 (en) Enhanced copy and paste between applications
JP5788911B2 (en) Data structure mapping and navigation
US7454414B2 (en) Automatic data retrieval system based on context-traversal history
KR101985558B1 (en) Techniques for dynamic layout of presentation tiles on a grid
CA3061623C (en) File sending in instant messaging applications
CN112130733A (en) Thumbnail-based document display method and equipment
US7120867B2 (en) System and method for conversion of directly-assigned format attributes to styles in a document
JP2019520625A (en) Human computer interaction method and device thereof
US8756520B2 (en) Individual information element access for unopened objects
WO2020000812A1 (en) Method and apparatus for generating ppt document, storage medium, and computer device
US20190058756A1 (en) Method, Terminal, and System for Sending Office Document
CN103440193A (en) Method for quickly recording selected information
CN111104777A (en) Document editing method and device, computer storage medium and terminal
CN114706644A (en) Method, storage medium and equipment for realizing universal note of Android terminal
JP2013057999A (en) Electronic mail template creation device, electronic mail template creation method, and electronic mail template creation program
CN112579227A (en) File browsing method and system based on artificial intelligence
CN112417832A (en) Format conversion method and device for spreadsheet document and electronic equipment
CN111897661A (en) Method and device for copying cell contents in spreadsheet and electronic equipment
JP2016099637A (en) Electronic document management device, electronic document management system, and program for electronic document management

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201225

RJ01 Rejection of invention patent application after publication