Summary of the invention
In order to solve the problem, the embodiment of the invention discloses a kind of document printing method and device, concrete technical scheme is as follows:
A kind of document printing method, be applied to server apparatus, the method comprises:
Receive mobile device by the destination document that scans Quick Response Code mode and upload and the print parameters corresponding with this destination document, described Quick Response Code carries and prints relevant packaging information;
According to the corresponding relation of pre-recorded Quick Response Code and printing device, determine the printing device corresponding to this Quick Response Code;
Send to the printing device corresponding to this Quick Response Code and print triggering command, destination document and the print parameters corresponding with this destination document, described printing triggering command prints described destination document according to described print parameters for triggering described printing device.
Preferably, described printing device comprises: at least one printer and the print controlling apparatus for controlling printer; Described Quick Response Code is the Quick Response Code that server apparatus is directed to the target printer generation in described printing device;
The described printing device to corresponding to this Quick Response Code sends and prints triggering command, destination document and the print parameters corresponding with this destination document, described printing triggering command prints described destination document according to described print parameters for triggering described printing device, comprising:
Send to the print controlling apparatus in the printing device corresponding to this Quick Response Code and print triggering command, destination document and the print parameters corresponding with this destination document, described printing triggering command sends print command for triggering described print controlling apparatus to described target printer, described print command, for controlling described target printer, prints described destination document according to described print parameters.
Preferably, described Quick Response Code is: the target printer identification information that server apparatus sends according to print controlling apparatus in described printing device, the Quick Response Code corresponding with this identification information of generation.
Preferably, described printing device comprises: at least one printer and the print controlling apparatus for controlling printer; Described Quick Response Code is: server apparatus is directed to the described Quick Response Code made opertaing device and generate;
The described printing device to corresponding to this Quick Response Code sends and prints triggering command, destination document and the print parameters corresponding with this destination document, described printing triggering command prints described destination document according to described print parameters for triggering described printing device, comprising:
Send to the print controlling apparatus corresponding to this Quick Response Code and print triggering command, destination document and the print parameters corresponding with this destination document, described printing triggering command calls for triggering described print controlling apparatus the printer be connected with this print controlling apparatus, prints described destination document according to described print parameters.
Preferably, described printing device is: the printer be connected with server; Described Quick Response Code is: server apparatus is directed to the Quick Response Code that described printer generates.
Preferably, the method also comprises:
Receive the prompting message returned after print controlling apparatus performs described printing triggering command, described prompting message represents whether described destination document prints successfully.
Preferably, also comprise:
When described prompting message represents that described destination document prints successfully, send to described mobile device and print successfully prompting.
Preferably, also comprise:
When described prompting message represents that described destination document prints unsuccessfully, trigger again to send to print controlling apparatus printing triggering command, destination document and the print parameters corresponding with this destination document.
Preferably, after receiving the destination document uploaded by scanning and printing Quick Response Code mode of mobile device and the print parameters corresponding with this destination document, also comprise:
The destination document that described mobile device is uploaded is stored.
Preferably, described print parameters also carries time parameter;
The described printing device to corresponding to this Quick Response Code sends and prints triggering command, destination document and the print parameters corresponding with this destination document, is specially:
According to described time parameter, timing sends to the printing device corresponding to this Quick Response Code and prints triggering command, destination document and the print parameters corresponding with this destination document.
A kind of document printing device, be applied to server apparatus, this device comprises:
First receiver module, for receiving the destination document and the print parameters corresponding with this destination document that mobile device uploaded by scanning Quick Response Code mode, described Quick Response Code carries and prints relevant packaging information;
Printing device determination module, for the corresponding relation according to pre-recorded Quick Response Code and printing device, determines the printing device corresponding to this Quick Response Code;
Sending module, print triggering command, destination document and the print parameters corresponding with this destination document for sending to the printing device corresponding to this Quick Response Code, described printing triggering command prints described destination document according to described print parameters for triggering described printing device.
Preferably, described printing device comprises: at least one printer and the print controlling apparatus for controlling printer; Described Quick Response Code is the Quick Response Code that server apparatus is directed to the target printer generation in described printing device;
Described sending module, triggering command, destination document and the print parameters corresponding with this destination document is printed specifically for sending to the print controlling apparatus in the printing device corresponding to this Quick Response Code, described printing triggering command sends print command for triggering described print controlling apparatus to described target printer, described print command, for controlling described target printer, prints described destination document according to described print parameters.
Preferably, described Quick Response Code is: the target printer identification information that server apparatus sends according to print controlling apparatus in described printing device, the Quick Response Code corresponding with this identification information of generation.
Preferably, described printing device comprises: at least one printer and the print controlling apparatus for controlling printer; Described Quick Response Code is: server apparatus is directed to the described Quick Response Code made opertaing device and generate;
Described sending module, triggering command, destination document and the print parameters corresponding with this destination document is printed specifically for sending to the print controlling apparatus corresponding to this Quick Response Code, described printing triggering command calls for triggering described print controlling apparatus the printer be connected with this print controlling apparatus, prints described destination document according to described print parameters.
Preferably, described printing device is: the printer be connected with server; Described Quick Response Code is: server apparatus is directed to the Quick Response Code that described printer generates.
Preferably, this device also comprises:
Second receiver module, for receiving the prompting message returned after print controlling apparatus performs described printing triggering command, described prompting message represents whether described destination document prints successfully.
Preferably, also comprise:
Prompting sending module, for when described prompting message represents that described destination document prints successfully, sends to described mobile device and prints successfully prompting.
Preferably, also comprise:
Trigger module, for when described prompting message represents that described destination document prints unsuccessfully, triggers described second sending module and again sends printing triggering command, destination document and the print parameters corresponding with this destination document to print controlling apparatus.
Preferably, also comprise:
Document memory module, stores for the destination document uploaded described mobile device.
Preferably, described print parameters also carries time parameter;
Described sending module, specifically for according to described time parameter, regularly sends to the printing device corresponding to this Quick Response Code and prints triggering command, destination document and the print parameters corresponding with this destination document.
Application technique scheme, mobile device is by scanning Quick Response Code mode, set up network with server apparatus, printing device to be connected, thus use server apparatus that destination document and the print parameters corresponding with the document are sent to printing device, realize the printing to destination document, wherein, this Quick Response Code carries and prints relevant packaging information; Compared with prior art, only need use specific Quick Response Code scanning tools in mobile device, scanning carries and the Quick Response Code printing relevant packaging information, just can realize the printing to document in this mobile device, simple to operate; In addition, to printer without there being any particular/special requirement, universality is stronger.
Embodiment
Technical scheme in the present invention is understood better in order to make those skilled in the art, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Developing rapidly of terminal technology, makes smart machine be tending towards miniaturization gradually, the mobile device that such as smart mobile phone, panel computer etc. occur thereupon.Nowadays some users can use the mobile device offices such as panel computer but run into some inconvenience sometimes, when such as user wishes the office data in panel computer to print, need, on this panel computer, printer driver is installed, and after configuring wireless printer, could realize the printing to office data, universality is poor; Or need, by after this office data copy to the computing machine being connected with printer, could realize, to the printing of the data of office, operating more loaded down with trivial details.In order to solve the problem, embodiments provide a kind of document printing method and device.
Below a kind of document printing method that the embodiment of the present invention provides is introduced.
It should be noted that, embodiment of the present invention method goes for the server apparatus in print system, and described print system can comprise: mobile device, server apparatus and printing device.In actual applications, this mobile device can be smart mobile phone, panel computer etc.
As shown in Figure 1, a kind of document printing method, is applied in server apparatus, can comprise:
S101, receives mobile device by the destination document that scans Quick Response Code mode and upload and the print parameters corresponding with this destination document.
Quick Response Code in the embodiment of the present invention can be understood as the Quick Response Code carried to printing relevant packaging information, in actual applications, this Quick Response Code can generate and send for server the Quick Response Code that computing machine shows in real time, or server apparatus generate in advance, with paper-based form exist Quick Response Code, the embodiment of the present invention is not construed as limiting this.
In an embodiment of the embodiment of the present invention, the packaging information that this Quick Response Code carries can comprise: special https agreement, print command, printer identifier and document memory address, such as during mobile device scanning Quick Response Code, being resolved to link corresponding to this Quick Response Code is https: //qing.wps.cn/print/abc/123, wherein, qing.wps.cn is specific protocol, now only has some specific Quick Response Code scanning tools in mobile device can be resolved to this specific protocol; Print is print command, can trigger and upload destination document and the print parameters corresponding with the document from trend server apparatus after mobile device scans this instruction; Abc is printer identifier, server apparatus according to this printer identifier to printing device transferring documents, print parameters and print triggering command; 123 is document memory addresss, and mobile device according to the document memory address, can correspond in equipment of destination document and print parameters being uploaded onto the server in the memory location of this memory address.
Destination document in the embodiment of the present invention can be understood as and is stored in mobile device, that user wishes printing data, and support that user sets its printer page scope, print parameters such as printing number and page setup parameter etc. on the mobile apparatus, such as print 5 ~ 8 pages of the document, print 2 parts, or duplex printing etc.In actual applications, this destination document can be text document, presentation file, and form document etc., the embodiment of the present invention is not construed as limiting this.
When such as user wishes to print the text document in smart mobile phone, can arrange each print parameters of the document, and " Quick Response Code printing type " is selected on this smart mobile phone, smart mobile phone is opened specific Quick Response Code scanning tools and is scanned the Quick Response Code carrying type information, just can trigger and be connected with the network of server apparatus, thus upload above-mentioned text document and print parameters to server apparatus.
S102, according to the corresponding relation of pre-recorded Quick Response Code and printing device, determines the printing device corresponding to this Quick Response Code.
In first embodiment of the embodiment of the present invention, as shown in Figure 2, described printing device comprises: at least one printer and the print controlling apparatus for controlling printer; Described Quick Response Code is the Quick Response Code that server apparatus is directed to the target printer generation in described printing device.That such as this Quick Response Code can generate for printer 2 for server apparatus, to carry printer 2 mark Quick Response Code, this server apparatus can be sent on print controlling apparatus and show after generating Quick Response Code.
Concrete, above-mentioned Quick Response Code can be: the target printer identification information that server apparatus sends according to print controlling apparatus in described printing device, the Quick Response Code corresponding with this identification information of generation.
In second embodiment of the embodiment of the present invention, as shown in Figure 2, described printing device comprises: at least one printer and the print controlling apparatus for controlling printer; Described Quick Response Code is: server apparatus is directed to the described Quick Response Code made opertaing device and generate.That such as this Quick Response Code can generate for print controlling apparatus for server apparatus, to carry print controlling apparatus mark Quick Response Code, this server apparatus can be sent on print controlling apparatus and show after generating Quick Response Code.
In the 3rd embodiment of the embodiment of the present invention, as shown in Figure 3, described printing device is: the printer be connected with server; Described Quick Response Code is: server apparatus is directed to the Quick Response Code that described printer generates.That such as this Quick Response Code can generate for printer 1 for server apparatus, to carry printer 1 mark Quick Response Code, this server apparatus can show with paper-based form after generating Quick Response Code.
It should be noted that, above embodiment is only a kind of implementation of the present invention, and the embodiment of the present invention includes but not limited to above embodiment.
S103, send to the printing device corresponding to this Quick Response Code and print triggering command, destination document and the print parameters corresponding with this destination document, described printing triggering command prints described destination document according to described print parameters for triggering described printing device.
In above-mentioned first embodiment, server apparatus can send to the print controlling apparatus in the printing device corresponding to this Quick Response Code and print triggering command, destination document and the print parameters corresponding with this destination document, described printing triggering command sends print command for triggering described print controlling apparatus to described target printer, described print command, for controlling described target printer, prints described destination document according to described print parameters.The advantage of embodiment of the present invention is, specific printer can be selected to print document according to actual demand.
In above-mentioned second embodiment, server apparatus can send to the print controlling apparatus corresponding to this Quick Response Code and print triggering command, destination document and the print parameters corresponding with this destination document, described printing triggering command calls for triggering described print controlling apparatus the printer be connected with this print controlling apparatus, prints described destination document according to described print parameters.Such as computing machine is as print controlling apparatus, after the instruction receiving server apparatus transmission, calls the printer corresponding with this instruction and prints document.The advantage of the embodiment of the present invention is, when plurality of printers is in busy condition, print controlling apparatus can call any idle printer and print document, ensure that completing in time of print out task.
In above-mentioned 3rd embodiment, server apparatus can directly call printer, and specific certain printer of control prints document.
As can be seen here, mobile device is by scanning Quick Response Code mode, set up network with server apparatus, printing device to be connected, thus use server apparatus that destination document and the print parameters corresponding with the document are sent to printing device, realize the printing to destination document, wherein, this Quick Response Code carries and prints relevant packaging information; Compared with prior art, only need use specific Quick Response Code scanning tools in mobile device, scanning carries and the Quick Response Code printing relevant packaging information, just can realize the printing to document in this mobile device, simple to operate; In addition, to printer without there being any particular/special requirement, universality is stronger.
Optionally, in another embodiment of the present invention, for the document that print frequency is very high, can also the document be stored in server apparatus; When needs print the document, directly can call from server apparatus this locality, thus avoid the document repeatedly to upload onto the server in equipment, save the time, improve printing effect; Further, based on the consideration of server apparatus storage space utilization factor, one can also be set and store duration, concrete, within the scope of this storage duration, directly can get the document in server apparatus this locality; When exceeding this storage duration, can the document in this server apparatus be cleared up.
Optionally, in one embodiment of the invention, as shown in Figure 4, after above-mentioned S103, can also comprise:
S104, receive the prompting message returned after print controlling apparatus performs described printing triggering command, described prompting message represents whether described destination document prints successfully.
Print controlling apparatus can perform this printing triggering command after receiving the printing triggering command of server apparatus transmission; After executing this printing triggering command, prompting message can be returned to server apparatus;
After server apparatus receives this prompting message, this message is resolved, thus take different processing policies according to different analysis results.
Be directed to the above-mentioned processing policy mentioned, concrete, when being resolved to prompting message and representing that destination document prints successfully, can send to mobile device and print successfully prompting, inform that this destination document of user has printed successfully, avoid the repetitive operation that user takes for printing failure and generation.
When being resolved to prompting message and representing that destination document prints unsuccessfully, can trigger again to send to print controlling apparatus printing triggering command, destination document and the print parameters corresponding with it, to improve the success ratio of document print.
Sometimes, user wishes to print the document in mobile device at certain time point scanned after Quick Response Code or certain time period, and for this reason in one embodiment of the present of invention, described print parameters can also carry time parameter; Above-mentioned S103, is specifically as follows:
According to described time parameter, timing sends printing triggering command, destination document and the print parameters corresponding with this destination document, to meet the individual demand of different user to corresponding to printing device corresponding to Quick Response Code.
Corresponding to embodiment of the method above, the embodiment of the present invention additionally provides a kind of document printing device.
As shown in Figure 5, a kind of document printing device, is applied to server apparatus, can comprise:
First receiver module 501, for receiving the destination document and the print parameters corresponding with this destination document that mobile device uploaded by scanning Quick Response Code mode, described Quick Response Code carries and prints relevant packaging information;
Printing device determination module 502, for the corresponding relation according to pre-recorded Quick Response Code and printing device, determines the printing device corresponding to this Quick Response Code;
Sending module 503, print triggering command, destination document and the print parameters corresponding with this destination document for sending to the printing device corresponding to this Quick Response Code, described printing triggering command prints described destination document according to described print parameters for triggering described printing device.
Optionally, in one embodiment of the invention, described printing device comprises: at least one printer and the print controlling apparatus for controlling printer; Described Quick Response Code is the Quick Response Code that server apparatus is directed to the target printer generation in described printing device;
Described sending module 503, triggering command, destination document and the print parameters corresponding with this destination document is printed specifically for sending to the print controlling apparatus in the printing device corresponding to this Quick Response Code, described printing triggering command sends print command for triggering described print controlling apparatus to described target printer, described print command, for controlling described target printer, prints described destination document according to described print parameters.
In an embodiment of the embodiment of the present invention, described Quick Response Code can be: the target printer identification information that server apparatus sends according to print controlling apparatus in described printing device, the Quick Response Code corresponding with this identification information of generation.
Optionally, in another embodiment of the present invention, described printing device comprises: at least one printer and the print controlling apparatus for controlling printer; Described Quick Response Code is: server apparatus is directed to the described Quick Response Code made opertaing device and generate;
Described sending module 503, triggering command, destination document and the print parameters corresponding with this destination document is printed specifically for sending to the print controlling apparatus corresponding to this Quick Response Code, described printing triggering command calls for triggering described print controlling apparatus the printer be connected with this print controlling apparatus, prints described destination document according to described print parameters.
Optionally, in one embodiment of the invention, described printing device is: the printer be connected with server; Described Quick Response Code is: server apparatus is directed to the Quick Response Code that described printer generates.
Optionally, in one embodiment of the invention, as shown in Figure 6, this device can also comprise:
Second receiver module 504, for receiving the prompting message returned after print controlling apparatus performs described printing triggering command, described prompting message represents whether described destination document prints successfully.
Optionally, in one embodiment of the invention, this device can also comprise:
Prompting sending module, for when described prompting message represents that described destination document prints successfully, sends to described mobile device and prints successfully prompting.
Optionally, in one embodiment of the invention, this device can also comprise:
Trigger module, for when described prompting message represents that described destination document prints unsuccessfully, triggers described second sending module and again sends printing triggering command, destination document and the print parameters corresponding with this destination document to print controlling apparatus.
Optionally, in one embodiment of the invention, this device can also comprise:
Document memory module, stores for the destination document uploaded described mobile device.
Optionally, in one embodiment of the invention, described print parameters also carries time parameter;
Described sending module 504, specifically for according to described time parameter, regularly sends to the printing device corresponding to this Quick Response Code and prints triggering command, destination document and the print parameters corresponding with this destination document.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
For convenience of description, various module is divided into describe respectively with function when describing above device.Certainly, the function of each module can be realized in same or multiple software and/or hardware when implementing of the present invention.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this instructions all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realized in said method embodiment is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.