CN109558099A - A kind of file printing method, mobile terminal and storage medium - Google Patents

A kind of file printing method, mobile terminal and storage medium Download PDF

Info

Publication number
CN109558099A
CN109558099A CN201811455947.6A CN201811455947A CN109558099A CN 109558099 A CN109558099 A CN 109558099A CN 201811455947 A CN201811455947 A CN 201811455947A CN 109558099 A CN109558099 A CN 109558099A
Authority
CN
China
Prior art keywords
file
print option
printing
path
print
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
CN201811455947.6A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811455947.6A priority Critical patent/CN109558099A/en
Publication of CN109558099A publication Critical patent/CN109558099A/en
Pending legal-status Critical Current

Links

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/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • 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/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1292Mobile client, e.g. wireless printing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of file printing methods, are applied to mobile terminal, which comprises receive user to the operational order of file;Judge whether the operational order is printing triggering command;If so, judging whether the file belongs to target file type;If so, the path for issuing the print option for the file, obtaining the file;User is received based on print option information transmitted by the print option;According to the path of the file, the print option information, the file is printed.In addition, the present invention also provides a kind of terminal device and a kind of storage medium, using the embodiment of the present invention, solving mimeograph documents in the prior art can not be automatically brought into operation on mobile terminals, caused by printing type is not convenient and the problem of print procedure complexity.

Description

A kind of file printing method, mobile terminal and storage medium
Technical field
The present invention relates to field of mobile terminals more particularly to a kind of file printing methods, mobile terminal and storage medium.
Background technique
It is often referred to the text or the visual datas such as picture in computer or other electronic equipments to exist by the output such as printer Paper etc. records on object.Although the mode of Electronic saving has been applied very extensive, printing is still a kind of important letter Breath is read and disseminates mode, for example, research and development file need by print to achieved after paper document, personnel information is also required to Paper storage.Therefore, the application of paper is still what the mode for relying on and printing carried out in addition to hand-written.
Existing printing type is usually that personal computer passes through wired or wirelessly connects printer, and individual counts After file to be printed is sent print command by calculation machine, the content of file to be printed is sent to printer and is printed line by line, from And export text after printing.And with the application of mobile terminal, in many cases, file is stored in mobile terminal, when needs are beaten When print, it is then transferred on the personal computer that can connect printer from mobile terminal.
As it can be seen that in existing way, file to be printed by mobile terminal is transferred to personal computer, and (and other are connected to beat The equipment of print machine) on will cause the extension of file printout in time, cause print procedure complexity and mode of operation on not It is convenient.
Summary of the invention
It is a primary object of the present invention to propose a kind of file printing method, mobile terminal and storage medium, it is intended to solve Mimeograph documents can not be automatically brought into operation on mobile terminals in the prior art, caused by printing type is not convenient and print procedure is multiple Miscellaneous problem.
To achieve the above object, the present invention proposes a kind of file printing method, is applied to mobile terminal, the method packet It includes:
User is received to the operational order of file;
Judge whether the operational order is printing triggering command;
If so, judging whether the file belongs to target file type;
If so, the path for issuing the print option for the file, obtaining the file;
User is received based on print option information transmitted by the print option;
According to the path of the file, the print option information, the file is printed.
It is described to judge whether the operational order is the step for printing triggering command in a kind of preferred embodiment of the invention Suddenly, comprising:
Obtain the time difference corresponding to the termination triggered time and start trigger time of the operational order;
Judge whether the time difference is greater than preset time;
If so, determining that the operational order is printing triggering command.
In a kind of preferred embodiment of the invention, it is described issue be directed to the file print option the step of it Before, further includes:
Determine the mobile terminal currently whether by least one printer of bluetooth connection;
If so, the printer connected is added in print option.
In a kind of preferred embodiment of the invention, in the case where judging that the file belongs to target file type, obtain The step of obtaining the path of the file, comprising:
In the case where judging that the file belongs to target file type list, judge the file store path whether To be locally stored;
If not, obtaining the network storage path of the file, otherwise, obtain the file is locally stored path.
It is described to judge that the file belongs to the feelings of target file type list in a kind of preferred embodiment of the invention Under condition, judge whether the store path of the file is to be locally stored;If not, obtain the network storage path of the file Step, comprising:
In the case where judging that the file belongs to target file type list, judge the file store path whether To be locally stored;
If not, judging whether the source of the file belongs to target social software;
If the source of the file belongs to target social software, in the case where determining the file is off-line files, Obtain the store path of the file in the server.
In a kind of preferred embodiment of the invention, described the step of issuing the print option for being directed to the file, comprising:
Whether the number for judging the file is multiple;
If so, being identified for each file setting print option;
Judge that print option identifies whether to be selected, if so, determining that the selected file of print option mark is to need The file of printing;
Print option is issued for the file for needing to print.
In a kind of preferred embodiment of the invention, the path according to the file, the print option information are right The step of file is printed, comprising:
According to the path of the file, the content of the file is read;
According to the content of the file, the print option information, the file is printed.
In a kind of preferred embodiment of the invention, the reception user is selected based on printing transmitted by the print option The step of item information, comprising:
Receive user based on printer name transmitted by the print option, number of copies, print range, printing paper Open directional information.
In addition, the mobile terminal includes processor and passes through communication always the present invention also provides a kind of mobile terminal Line memory connected to the processor;Wherein,
The memory is used for storage file print routine;
The processor, for executing the file printout program, to realize step:
User is received to the operational order of file;
Judge whether the operational order is printing triggering command;
If so, judging whether the file belongs to target file type;
If so, the path for issuing the print option for the file, obtaining the file;
User is received based on print option information transmitted by the print option;
According to the path of the file, the print option information, the file is printed;
And the step of any one file printing method.
To achieve the above object, the invention proposes a kind of storage medium, the storage medium is stored with one or more A program, one or more of programs can be executed by one or more processor, so that one or more of places It manages device and executes following steps:
User is received to the operational order of file;
Judge whether the operational order is printing triggering command;
If so, judging whether the file belongs to target file type;
If so, the path for issuing the print option for the file, obtaining the file;
User is received based on print option information transmitted by the print option;
According to the path of the file, the print option information, the file is printed;
And the step of any one file printing method.
Therefore, compared to the prior art, file printing method proposed by the invention, mobile terminal and storage medium lead to It crosses and receives user to the operational order of file, and judge whether file belongs in the case where operational order is printing triggering command Target file type if so, issuing the print option for file, obtaining the path of the file, and is based on print option The path of information, file prints the file, and realization in the terminal prints file, solves existing skill Mimeograph documents can not be automatically brought into operation on mobile terminals in art, caused by printing type is not convenient and print procedure is complicated asks Topic.
Detailed description of the invention
Fig. 1 to realize the present invention in each embodiment an optional mobile terminal hardware structural diagram;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is an optional flow diagram of file printing method provided by the embodiment of the present invention;
Fig. 4 is the optional application scenarios schematic diagram of file printing method one provided by the embodiment of the present invention;
Fig. 5 is another optional application scenarios schematic diagram of file printing method provided by the embodiment of the present invention.
Appended drawing reference:
The object of the invention is realized, the embodiments will be further described with reference to the accompanying drawings for functional characteristics and advantage.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special For moving except purpose element, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, letter Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
To solve prior art problem, the embodiment of the present invention proposes a kind of file printing method, mobile terminal and storage Medium, the technical solution of the present invention is further elaborated in the following with reference to the drawings and specific embodiments.
The embodiment of the present invention provides a kind of file printing method, is applied to mobile terminal, Fig. 3 embodiment to realize the present invention The optional structural schematic diagram of the one of provided file printing method, as shown in figure 3, this document Method of printing includes following step It is rapid:
S301 receives user to the operational order of file.
It should be noted that mobile terminal can be the Intelligent mobile equipment of plate or mobile phone etc, take the mobile phone as an example, Many social softwares may be housed on mobile phone, such as: wechat, Tencent QQ etc., these social softwares can carry out voice, text The information carrier of word, picture, file, audio, video etc. is transmitted.For these information carriers, file printable at present It generally includes: the common file such as Word, excel, PPT in picture and file.
Illustratively, user clicks file, and mobile terminal can feed back dialog box, prompts the user whether to file It is downloaded or opens.
Therefore, for a file, user can carry out the transmission of operational order to this document, for example, the click of user, Long-pressing or document information are checked, are the operational orders issued to file.
S302 judges whether the operational order is printing triggering command, if so, executing S303.
In a specific embodiment of the present invention, the step of whether operational order is printing triggering command judged, It include: to obtain the time difference corresponding to the termination triggered time and start trigger time of the operational order;Judge the time Whether difference is greater than preset time;If so, determining that the operational order is printing triggering command.
Illustratively, when user carries out the long press operation of file, the time is 0.5 second, and preset time is 0.7 second, then Determine that this operational order of user is not printing triggering command;When user carries out the long press operation of file, time 0.8 Second, and preset time is 0.7 second, then it is determined that this operational order of user is printing triggering command;When user carries out file Long press operation, the time is 0.9 second, and preset time is 0.7 second, then it is determined that this operational order of user is printing triggering Instruction;When user carry out file long press operation, the time be 1 second, and preset time be 0.7 second, then it is determined that user this Operational order is printing triggering command.
Whether the operation, which is printing triggering command, is determined to the time that user clicks by determining, is grasped convenient for user Make, rather than as in computer, need by open file, click print button printed, can shorten printing time and The triggering convenience of printing instruction.
S303, judges whether the file belongs to target file type, if so, executing S304.
It should be noted that mobile terminal receives or the file of storage can be number of different types, and in these types, Some mobile terminals be support printing, some be do not support printing, so, for can support printing file, setting All Files type in the list is referred to as target file type by file type list, so when judging that a file is It is no to search whether that there are corresponding lists from file type list when belong to target file type, if it does, Target file type is so just determined it as, is not then target file type otherwise.
Illustratively, doc file (Word file), txt file, pdf file are provided in target file type list (Adobe file), xlsx file (Excel file), jpg file (picture file), bmp file (picture file).
The type of file is obtained first, it is assumed that is doc file, is scanned in target file type, obtains target text There are the types of doc file in part type, so, determine that current file belongs to target file type;It is assumed to be dwt file, It is scanned in target file type, obtains the type for being not present in target file type and having dwt file, so, determination is worked as Preceding document is not belonging to target file type.
When determining that file is not belonging to target file type, this document is the processing that can not be continued, it is therefore desirable to User's current file is reminded not support to continue to operate.As shown in figure 4, reminding user by dialog box are as follows: current dwt file is not It supports operation file type, please reselect.
S304, the path for issuing the print option for the file, obtaining the file.
It is understood that after personal computer and printer carry out printing connection, when user needs mimeograph documents When, a variety of options about " printing " can be jumped out, for example, the printer name of selection, are placed in the number of pages of printing, every page Number of pages etc..
Equally, it is directed to for mobile terminal, and needs to realize by print option and be handed over the type information of printer Mutually, so as to printer execution.
It in a kind of implementation of the invention, is obtained by step S303, the feelings of target file type is only belonged in file Just there is the meaning for continuing to execute printing, so executing under the premise of meeting this condition and obtaining the file under condition Path the step of, which includes: to judge the case where file belongs to target file type list in specific execute Under, judge whether the store path of the file is to be locally stored;If not, the network storage path of the file is obtained, it is no Then, obtain the file is locally stored path.
It is understood that mobile terminal can directly send the content of file when file is stored in local It is printed to printer.When file is not belonging to local file, then mobile terminal can not then directly acquire the content of file, Printing cannot be executed.And in actually using, user receives other side's transmission when chatting using chat software The message of file, when the message of transmission is the message of file transmission, ability after the file of transmission needs active user to receive File can be saved with locally, otherwise would not locally have this file.And work as the more and more of file reception, it can occupy In the case that the memory of customer mobile terminal is also more and more, then user cannot clear up file in time, it will cause mobile terminal and exist Using upper Caton or slowly, the using effect of user is influenced.
In order to solve that the file printed is needed not to be locally stored simultaneously, and will not excessively cause to move because of downloading file The excessive problem of dynamic terminal EMS memory occupation, the solution in the embodiment of the present invention are to judge that the file belongs to file destination In the case where list of types, judge whether the store path of the file is to be locally stored;If not, obtaining the net of the file Network store path, specifically, the realization of the step includes: to judge the case where file belongs to target file type list again Under, judge whether the store path of the file is to be locally stored;If not, judging whether the source of the file belongs to target Social software;If the source of the file belongs to target social software, in the case where determining the file is off-line files, Obtain the store path of the file in the server.
It should be noted that if file directly transmits, then not needed file when user A sends file to user B It is stored in server, otherwise, when user sends off-line files, this document meeting (of short duration, such as the time is 7 days) storage It is then directly to be downloaded from server when user B needs to receive file in server.
It will be appreciated by persons skilled in the art that each file can correspond to a store path in the server, This document can be found by store path, then obtaining the store path of file, just when file stores in service In the reading for carrying out file at any time.
Specifically, user can be printed with the multiple files of simultaneous selection, specifically in order to improve the efficiency of file process It can be printed one by one according to the sequence of file when printing, in order to realize this function, the specific reality of the embodiment of the present invention It now include: to judge whether the number of the file is multiple;If so, being identified for each file setting print option;Sentence Disconnected print option identifies whether to be selected, if so, determining that the selected file of print option mark is the file for needing to print; Print option is issued for the file for needing to print.
It is understood that when multiple files, when user's long-pressing wherein any one file, the icon of All Files On will appear an empty circles, which represents the choice box of printing, user selected by clicking empty circles from Oneself needs the file printed, represents this document after selection and is printed.
Illustratively, the number of file is 5, when the 1st file of user's long-pressing, the 1st file, the 2nd file, the 3rd A file, the 4th file, the 5th file icon among there are an empty circles, again tap on choose the 3rd file, The empty circles of 4th file icon, then indicating the 3rd file of selection, the 4th file namely the 3rd file, the 4th text Part is the file for needing to print.
In another example, when the 3rd file of user's long-pressing, the 1st file, the 2nd file, the 3rd file, the 4th File, the 5th file icon among there is an empty circles, the 1st file, the 2nd file, the 3rd file, the 4th The empty circles of a file, the 5th file icon, then indicating selection the 1st file, the 2nd file, the 3rd file, the 4th A file, the 5th file indicate that this 5 files are the file for needing to print.
Alternatively, when the 1st file of user's long-pressing, the 2nd file, the 3rd file, the 4th file, the 5th file Occur an empty circles among icon, and the 1st file default is that selection has been carried out, and again taps on and chooses the 3rd The empty circles of file, the 4th file icon, then indicate to have selected the 1st file, the 3rd file, the 4th file, namely 1st file, the 3rd file, the 4th file are the file for needing to print.
In a kind of implementation of the invention, it can also be selected before the step of issuing the print option for being directed to the file Selecting needs printer to be used, concrete mode comprise determining that the mobile terminal currently whether by bluetooth connection at least one Printer;If so, the printer connected is added in print option.
For mobile terminal, carrying out data transmission most quick way with printer is bluetooth, so passing through bluetooth It is connect with printer, carry out data prints to optimal mode.It can also be switched over by bluetooth from different printers, Realize that mobile terminal has the mode of multiple choices printer.
S305 receives user based on print option information transmitted by the print option.
In a kind of implementation of the invention, comprising: receive user based on printer name transmitted by the print option Title, number of copies, print range, printing paper orientation information, realize setting of the user to print parameters.
S306 prints the file according to the path of the file, the print option information.
It is understood that can read the content of file from memory according to the path of file, realize memory Transmission process of the content from mobile terminal to printer, and print option information is then to provide the parameter of print option, so, base Particular content in print option parameter and file realizes the printing to file.
Illustratively, it is illustrated in figure 5 to user and shows that printing is completed, and printing number, number of print pages.
Further, the present invention provides a kind of mobile terminals, and please continue to refer to Fig. 1, the mobile terminal includes processing Device 110 and the memory 109 being connect by communication bus with processor 110;Wherein,
The memory 109 is used for storage file print routine;
The processor 110, for executing file printout program, to perform the steps of
User is received to the operational order of file;
Judge whether the operational order is printing triggering command;
If so, judging whether the file belongs to target file type;
If so, the path for issuing the print option for the file, obtaining the file;
User is received based on print option information transmitted by the print option;
According to the path of the file, the print option information, the file is printed.
Optionally, the processor 110, for executing file printout program, to perform the steps of
Obtain the time difference corresponding to the termination triggered time and start trigger time of the operational order;
Judge whether the time difference is greater than preset time;
If so, determining that the operational order is printing triggering command.
Optionally, the processor 110, for executing file printout program, to perform the steps of
Determine the mobile terminal currently whether by least one printer of bluetooth connection;
If so, the printer connected is added in print option.
Optionally, the processor 110, for executing file printout program, to perform the steps of
In the case where judging that the file belongs to target file type list, judge the file store path whether To be locally stored;
If not, obtaining the network storage path of the file, otherwise, obtain the file is locally stored path.
Optionally, the processor 110, for executing file printout program, to perform the steps of
In the case where judging that the file belongs to target file type list, judge the file store path whether To be locally stored;
If not, judging whether the source of the file belongs to target social software;
If the source of the file belongs to target social software, in the case where determining the file is off-line files, Obtain the store path of the file in the server.
Optionally, the processor 110, for executing file printout program, to perform the steps of
Whether the number for judging the file is multiple;
If so, being identified for each file setting print option;
Judge that print option identifies whether to be selected, if so, determining that the selected file of print option mark is to need The file of printing;
Print option is issued for the file for needing to print.
Optionally, the processor 110, for executing file printout program, to perform the steps of
According to the path of the file, the content of the file is read;
According to the content of the file, the print option information, the file is printed.
Optionally, the processor 110, for executing file printout program, to perform the steps of
Receive user based on printer name transmitted by the print option, number of copies, print range, printing paper Open directional information.
It should be noted that many social softwares may be housed on mobile phone, and such as: wechat, Tencent QQ etc., these are social The information carrier that software can carry out voice, text, picture, file, audio, video etc. is transmitted.For printable text Part, comprising: the common file such as Word, excel, PPT in picture and file.
Illustratively, user clicks file, can feed back dialog box with mobile terminal, prompts the user whether pair File is downloaded or opens.
It is understood that being directed to a file, user can carry out the transmission of operational order to this document, for example, with Click, long-pressing or the document information at family are checked, are the operational orders issued to file.
In a specific embodiment of the present invention, when obtaining termination triggered time and the start trigger of the operational order Between corresponding time difference;Judge whether the time difference is greater than preset time;If so, determining that the operational order is printing Triggering command.
Whether the operation, which is printing triggering command, is determined to the time that user clicks by determining, is grasped convenient for user Make, rather than as in computer, need by open file, click print button printed, can shorten printing time and The triggering convenience of printing instruction.
It should be noted that mobile terminal receives or the file of storage can be number of different types, and in these types, Some mobile terminals be support printing, some be do not support printing, so, for can support printing file, setting All Files type in the list is referred to as target file type by file type list, so when judging that a file is It is no to search whether that there are corresponding lists from file type list when belong to target file type, if it does, Target file type is so just determined it as, is not then target file type otherwise.
Illustratively, doc file (Word file), txt file, pdf file are provided in target file type list (Adobe file), xlsx file (Excel file), jpg file (picture file), bmp file (picture file).
The type of file is obtained first, it is assumed that is doc file, is scanned in target file type, obtains target text There are the types of doc file in part type, so, determine that current file belongs to target file type;It is assumed to be dwt file, It is scanned in target file type, obtains the type for being not present in target file type and having dwt file, so, determination is worked as Preceding document is not belonging to target file type.
When determining that file is not belonging to target file type, this document is the processing that can not be continued, it is therefore desirable to User's current file is reminded not support to continue to operate.
It is understood that after personal computer and printer carry out printing connection, when user needs mimeograph documents When, a variety of options about " printing " can be jumped out, for example, the printer name of selection, are placed in the number of pages of printing, every page Number of pages etc..
Equally, it is directed to for mobile terminal, and needs to realize by print option and be handed over the type information of printer Mutually, so as to printer execution.
In a kind of implementation of the invention, only just has in the case where file belongs to target file type and continue to hold The meaning of row printing, so under the premise of meeting this condition, the step of executing the path for obtaining the file, the step It suddenly include: to judge the file in the case where judging that the file belongs to target file type list in specific execute Whether store path is to be locally stored;If not, obtaining the network storage path of the file, otherwise, the file is obtained Path is locally stored.
It is understood that mobile terminal can directly send the content of file when file is stored in local It is printed to printer.And in actually using, user receives other side's transmission when chatting using chat software The message of file, when the message of transmission is the message of file transmission, ability after the file of transmission needs active user to receive File can be saved with locally, otherwise would not locally have this file.And work as the more and more of file reception, it can occupy In the case that the memory of customer mobile terminal is also more and more, then user cannot clear up file in time, it will cause mobile terminal and exist Using upper Caton or slowly, the using effect of user is influenced.
In addition, when file is not belonging to local file, then mobile terminal can not then directly acquire the content of file, it cannot Execute printing.
In order to solve that the file printed is needed not to be locally stored simultaneously, and will not excessively cause to move because of downloading file The excessive problem of dynamic terminal EMS memory occupation, the solution in the embodiment of the present invention are to judge that the file belongs to file destination In the case where list of types, judge whether the store path of the file is to be locally stored;If not, obtaining the net of the file Network store path, specifically, the realization of the step includes: to judge the case where file belongs to target file type list again Under, judge whether the store path of the file is to be locally stored;If not, judging whether the source of the file belongs to target Social software;If the source of the file belongs to target social software, in the case where determining the file is off-line files, Obtain the store path of the file in the server.
It should be noted that if file directly transmits, then not needed file when user A sends file to user B It is stored in server, otherwise, when user sends off-line files, this document meeting (of short duration, such as the time is 7 days) storage It is then directly to be downloaded from server when user B needs to receive file in server.
It will be appreciated by persons skilled in the art that each file can correspond to a store path in the server, This document can be found by store path, then obtaining the store path of file, just when file stores in service In the reading for carrying out file at any time.
Specifically, user can be printed with the multiple files of simultaneous selection, specifically in order to improve the efficiency of file process It can be printed one by one according to the sequence of file when printing, in order to realize this function, the specific reality of the embodiment of the present invention It now include: to judge whether the number of the file is multiple;If so, being identified for each file setting print option;Sentence Disconnected print option identifies whether to be selected, if so, determining that the selected file of print option mark is the file for needing to print; Print option is issued for the file for needing to print.
It is understood that when multiple files, when user's long-pressing wherein any one file, the icon of All Files On will appear an empty circles, which represents the choice box of printing, user selected by clicking empty circles from Oneself needs the file printed, represents this document after selection and is printed.
In a kind of implementation of the invention, determine the mobile terminal currently whether by bluetooth connection at least one beat Print machine;If so, the printer connected is added in print option.
For mobile terminal, carrying out data transmission most quick way with printer is bluetooth, so passing through bluetooth It is connect with printer, carry out data prints to optimal mode.It can also be switched over by bluetooth from different printers, Realize that mobile terminal has the mode of multiple choices printer.
In a kind of implementation of the invention, comprising: receive user based on printer name transmitted by the print option Title, number of copies, print range, printing paper orientation information, realize setting of the user to print parameters.
It is understood that can read the content of file from memory according to the path of file, realize memory Transmission process of the content from mobile terminal to printer, and print option information is then to provide the parameter of print option, so, base Particular content in print option parameter and file realizes the printing to file.
Compared to the prior art, the mobile terminal that the embodiment of the present invention is proposed, by receiving operation of the user to file Instruction, and judge whether file belongs to target file type in the case where operational order is printing triggering command, if so, hair It is directed to the print option of file out, obtains the path of the file, and the path based on print option information, file, to described File is printed, and realization in the terminal prints file, and solving mimeograph documents in the prior art can not move Be automatically brought into operation in dynamic terminal, caused by printing type is not convenient and the problem of print procedure complexity.
Further, the present invention also provides a kind of storage medium, the storage medium is stored with one or more journey Sequence, one or more of programs can be executed by one or more processor, to perform the steps of
User is received to the operational order of file;
Judge whether the operational order is printing triggering command;
If so, judging whether the file belongs to target file type;
If so, the path for issuing the print option for the file, obtaining the file;
User is received based on print option information transmitted by the print option;
According to the path of the file, the print option information, the file is printed.
Optionally, one or more of programs are also executed by one or more of processors, following to realize Step:
Obtain the time difference corresponding to the termination triggered time and start trigger time of the operational order;
Judge whether the time difference is greater than preset time;
If so, determining that the operational order is printing triggering command.
Optionally, one or more of programs are also executed by one or more of processors, as follows to realize Step:
Determine the mobile terminal currently whether by least one printer of bluetooth connection;
If so, the printer connected is added in print option.
Optionally, one or more of programs are also executed by one or more of processors, as follows to realize Step:
In the case where judging that the file belongs to target file type list, judge the file store path whether To be locally stored;
If not, obtaining the network storage path of the file, otherwise, obtain the file is locally stored path.
Optionally, one or more of programs are also executed by one or more of processors, as follows to realize Step:
In the case where judging that the file belongs to target file type list, judge the file store path whether To be locally stored;
If not, judging whether the source of the file belongs to target social software;
If the source of the file belongs to target social software, in the case where determining the file is off-line files, Obtain the store path of the file in the server.
Optionally, one or more of programs are also executed by one or more of processors, as follows to realize Step:
Whether the number for judging the file is multiple;
If so, being identified for each file setting print option;
Judge that print option identifies whether to be selected, if so, determining that the selected file of print option mark is to need The file of printing;
Print option is issued for the file for needing to print.
Optionally, one or more of programs are also executed by one or more of processors, as follows to realize Step:
According to the path of the file, the content of the file is read;
According to the content of the file, the print option information, the file is printed.
Optionally, one or more of programs are also executed by one or more of processors, as follows to realize Step:
Receive user based on printer name transmitted by the print option, number of copies, print range, printing paper Open directional information.
Compared to the prior art, the storage medium that the embodiment of the present invention is proposed, by receiving operation of the user to file Instruction, and judge whether file belongs to target file type in the case where operational order is printing triggering command, if so, hair It is directed to the print option of file out, obtains the path of the file, and the path based on print option information, file, to described File is printed, and realization in the terminal prints file, and solving mimeograph documents in the prior art can not move Be automatically brought into operation in dynamic terminal, caused by printing type is not convenient and the problem of print procedure complexity.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a mobile terminal (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment, robot etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of file printing method is applied to mobile terminal, which is characterized in that the described method includes:
User is received to the operational order of file;
Judge whether the operational order is printing triggering command;
If so, judging whether the file belongs to target file type;
If so, the path for issuing the print option for the file, obtaining the file;
User is received based on print option information transmitted by the print option;
According to the path of the file, the print option information, the file is printed.
2. file printing method according to claim 1, which is characterized in that described to judge whether the operational order is to beat The step of printing triggering command, comprising:
Obtain the time difference corresponding to the termination triggered time and start trigger time of the operational order;
Judge whether the time difference is greater than preset time;
If so, determining that the operational order is printing triggering command.
3. file printing method according to claim 1 or 2, which is characterized in that issue described for the file Before the step of print option, further includes:
Determine the mobile terminal currently whether by least one printer of bluetooth connection;
If so, the printer connected is added in print option.
4. file printing method according to claim 3, which is characterized in that judging that the file belongs to file destination class In the case where type, the step of obtaining the path of the file, comprising:
In the case where judging that the file belongs to target file type list, judge whether the store path of the file is this Ground storage;
If not, obtaining the network storage path of the file, otherwise, obtain the file is locally stored path.
5. file printing method according to claim 4, which is characterized in that described to judge that it is literary that the file belongs to target In the case where part list of types, judge whether the store path of the file is to be locally stored;If not, obtaining the file The step of network storage path, comprising:
In the case where judging that the file belongs to target file type list, judge whether the store path of the file is this Ground storage;
If not, judging whether the source of the file belongs to target social software;
If the source of the file belongs to target social software, in the case where determining the file is off-line files, obtain The store path of the file in the server.
6. file printing method according to claim 1, which is characterized in that the printing choosing issued for the file The step of item, comprising:
Whether the number for judging the file is multiple;
If so, being identified for each file setting print option;
Judge that print option identifies whether to be selected, if so, determining that the selected file of print option mark is to need to print File;
Print option is issued for the file for needing to print.
7. file printing method according to claim 1, which is characterized in that the path according to the file, described Print option information, the step of printing to the file, comprising:
According to the path of the file, the content of the file is read;
According to the content of the file, the print option information, the file is printed.
8. file printing method according to claim 1, which is characterized in that the reception user is based on the print option The step of transmitted print option information, comprising:
Receive user based on printer name transmitted by the print option, number of copies, print range, printing paper side To information.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes processor and by communication bus and processor The memory of connection;Wherein,
The memory is used for storage file print routine;
The processor, for executing the file printout program, to perform the steps of
User is received to the operational order of file;
Judge whether the operational order is printing triggering command;
If so, judging whether the file belongs to target file type;
If so, the path for issuing the print option for the file, obtaining the file;
User is received based on print option information transmitted by the print option;
According to the path of the file, the print option information, the file is printed.
10. a kind of storage medium, which is characterized in that the storage medium is stored with one or more program, it is one or The multiple programs of person can be executed by one or more processor, so that one or more of processors execute such as claim The step of 1-8 described in any item file printing methods.
CN201811455947.6A 2018-11-30 2018-11-30 A kind of file printing method, mobile terminal and storage medium Pending CN109558099A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811455947.6A CN109558099A (en) 2018-11-30 2018-11-30 A kind of file printing method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811455947.6A CN109558099A (en) 2018-11-30 2018-11-30 A kind of file printing method, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN109558099A true CN109558099A (en) 2019-04-02

Family

ID=65868207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811455947.6A Pending CN109558099A (en) 2018-11-30 2018-11-30 A kind of file printing method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109558099A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908618A (en) * 2019-11-15 2020-03-24 北京小米移动软件有限公司 File printing method and device and storage medium
CN111063195A (en) * 2019-11-19 2020-04-24 珠海市德宇辉煌信息科技有限公司 License plate recognition device and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371779A (en) * 2016-08-31 2017-02-01 安徽天斯努信息技术股份有限公司 Roaming printing method, roaming printing device and roaming printing system
CN106814980A (en) * 2015-11-27 2017-06-09 北京奇虎科技有限公司 A kind of cloud Method of printing, equipment, server and terminal device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106814980A (en) * 2015-11-27 2017-06-09 北京奇虎科技有限公司 A kind of cloud Method of printing, equipment, server and terminal device
CN106371779A (en) * 2016-08-31 2017-02-01 安徽天斯努信息技术股份有限公司 Roaming printing method, roaming printing device and roaming printing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
百度: "钉钉P1智能打印云盒如何绑定、使用?", 《百度经验》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908618A (en) * 2019-11-15 2020-03-24 北京小米移动软件有限公司 File printing method and device and storage medium
CN111063195A (en) * 2019-11-19 2020-04-24 珠海市德宇辉煌信息科技有限公司 License plate recognition device and system

Similar Documents

Publication Publication Date Title
CN109462692A (en) Split screen display available operating method, mobile terminal and computer readable storage medium
CN108228053A (en) A kind of information sharing method, intelligent terminal and storage medium
CN107748645A (en) Reading method, mobile terminal and computer-readable recording medium
CN109343775A (en) Double screen terminal screen switching method, terminal and computer readable storage medium
CN109040445A (en) Information display method, dual-screen mobile terminal and computer readable storage medium
CN107659729A (en) A kind of previewing file method, apparatus and computer-readable recording medium
CN109697008A (en) A kind of content share method, terminal and computer readable storage medium
CN110177177A (en) Message back method, mobile terminal and computer readable storage medium
CN109034317A (en) A kind of two-dimensional code scanning method, terminal and computer readable storage medium
CN109584897A (en) Vedio noise reduction method, mobile terminal and computer readable storage medium
CN109241079A (en) Method, mobile terminal and the computer storage medium of problem precise search
CN109165651A (en) A kind of identification code recognition methods, terminal and computer readable storage medium
CN108776600A (en) Application program pretrigger method, mobile terminal and computer readable storage medium
CN108572777A (en) A kind of terminal object method for sorting, terminal and computer readable storage medium
CN110418004A (en) Screenshot processing method, terminal and computer readable storage medium
CN109947523A (en) Replicate method of attaching, terminal and computer readable storage medium
CN109558099A (en) A kind of file printing method, mobile terminal and storage medium
CN109408187A (en) Head portrait setting method, device, mobile terminal and readable storage medium storing program for executing
CN109729199A (en) Screen display method, terminal and computer readable storage medium
CN109522276A (en) Application icon management method, terminal and computer readable storage medium
CN108966162A (en) Data communications method, communication processing equipment, terminal and readable storage medium storing program for executing
CN107273006A (en) A kind of method for information display, equipment and computer-readable recording medium
CN110427229A (en) Using no response processing method, mobile terminal and computer readable storage medium
CN109714483A (en) Locking screen interface message treatment method, device, mobile terminal and storage medium
CN109889646A (en) A kind of call processing method, mobile terminal and storage medium

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: 20190402

RJ01 Rejection of invention patent application after publication