Background technology
As the various single amounts in warehouse increase in the swift and violent of geometry multiple, the printing of every kind of document big data quantity label becomes storehouse
A kind of urgent demand of storehouse operation.The present invention is exactly to provide a kind of efficient solution for this background demand.
The document label printing solution that warehouse uses at present, is mainly set by browser or word document or third party's report
The template that meter instrument provides, to realize the printing of document label.
In the scheme using browser print label, user needs to set label layout in a browser, without
Layout with label is likely to be different.In this way, when user once prints the label of big quantity, it is necessary to according to each
The form of label to be printed needs, and sets corresponding layout parameter in a browser.In addition, current browser is usually not
There is provided the printing type without preview, that is to say, that be required for the participation of user to confirm during printing every time, in this way, needing to print
Under the scene of a large amount of labels, printing effect will be seriously affected.
In the scheme using word document print label, system can preserve label with word document mode, Yong Huxu
Need first to download from system when wanting print label printing in need label file, then, then print these files.The party
Due to needing download label files in case, in this way, printing effect will be influenced by network transmission speed, especially once need
When printing a large amount of labels, network speed of download is slow, will seriously reduce printing effect.
In the scheme using third-party report form tool print label, for user's each label to be printed,
Need that first the corresponding bills data of the label is filled into the tag template using report form tool design, then recall
Printer is printed.That is, in this scenario, a printer will be called by often printing a label, in this way, working as needs
, it is necessary to call printer in large quantities when printing substantial amounts of label, so that the problem of causing printing effect low.In addition, third party
Report form tool may also can exist and cannot support the layout needs of all labels, so as to can not meet the mark of user
Label printing needs.
It can be seen from the above that existing label printing solution, can be low not even there are printing effect when printing big amount tag
The problem of meeting all label layout needs.Therefore, traditional label printing solution is not suitable for extensive quantity mark
The printing of label.
The content of the invention
In view of this, it is a primary object of the present invention to provide a kind of label printing method and system, big rule can be improved
The printing effect of mould amount tag, suitable for the printing of extensive amount tag.
In order to achieve the above object, technical solution proposed by the present invention is:
A kind of label printing method, including:
The list for the label to be printed that label printing server is currently submitted according to user, obtains the label pair to be printed
The label substance data answered, and by the label substance data sending give the user terminal device;
The terminal device is according to tag types, to the label substance packet;For each group of label substance number
According to obtaining default tag template corresponding with affiliated tag types in this terminal, this group of label substance data filled respectively
Into the tag template, the corresponding all labels of this group of label substance data are obtained, and the label is stored in a mark
Sign in document, obtain the corresponding lagged document of this group of label substance data;
All lagged documents are sent to printer printing by the terminal device.
A kind of label printing system, including label printing server, terminal device and printer, wherein,
Label printing server, for the list for the label to be printed currently submitted according to user, obtains described to be printed
The corresponding label substance data of label, and by the label substance data sending give the user terminal device;
Terminal device, for according to tag types, to the label substance packet;For each group of label substance number
According to obtaining default tag template corresponding with affiliated tag types in this terminal, this group of label substance data filled respectively
Into the tag template, the corresponding all labels of this group of label substance data are obtained, and the label is stored in a mark
Sign in document, obtain the corresponding lagged document of this group of label substance data;All lagged documents are sent to printer to beat
Print.
In conclusion label printing method proposed by the present invention and system, label printing server only needs to treat user
The corresponding label substance data of print label issue terminal device, and the label mould of default all kinds of labels is utilized by terminal device
Plate, generates corresponding lagged document, so, it is possible to reduce the volume of transmitted data in network, avoids network from passing based on these data
Larger printing time delay caused by defeated.In addition, after the list that user have submitted label to be printed, the participation of user will be not required,
Avoid dependence of the conventional printing methods to user's operation.Therefore, the present invention can improve the printing effect of extensive amount tag
Rate, suitable for the printing speed of extensive amount tag.
Embodiment
It is right below in conjunction with the accompanying drawings and the specific embodiments to make the object, technical solutions and advantages of the present invention clearer
The present invention is described in further detail.
The present invention core concept be:The business datum that label to be printed is included only is issued user terminal and set by system
It is standby, it is unified to generate corresponding document and print by user terminal according to the data and corresponding tag template received.In this way,
User only needs to select the label for needing to print from system, afterwards, just need not participate in follow-up print procedure again,
And system only needs the data (i.e. label data) in transmission label to include label without transmitting to user terminal
The whole file of typesetting format, therefore, can greatly reduce the data volume of network transmission, entirely be beaten so as to increase substantially
The time overhead of print process, effectively improves the printing effect of extensive amount tag.
Fig. 1 is the method flow schematic diagram of the embodiment of the present invention, as shown in Figure 1, the label printing side that the embodiment is realized
Method mainly includes:
The list for the label to be printed that step 101, label printing server are currently submitted according to user, waits described in acquisition to beat
The corresponding label substance data of marking label, and by the label substance data sending give the user terminal device.
In this step, user is when needing print label, it is only necessary to the list of label to be printed is submitted by terminal device
To printing server, printing server obtains corresponding label substance data according to the list from database, is then issued to use
Family terminal device.In this way, printing server need not transmit the whole file comprising label typesetting format to terminal device,
And relevant content-data is simply transmitted to terminal device, it can thus be avoided influence of the network transfer speeds to print procedure,
The time overhead of whole printing process is substantially reduced, effectively improves the printing effect of extensive amount tag.
In practical applications, label printing server can obtain (such as hair message or the mode of webpage) in several ways
The list of the label to be printed of user, for example, label printing server can be when receiving the label print request of user, ought
The tag name single-shot that preceding application system can print gives subscriber terminal equipment, and terminal device is by user according to selected by the label list
The label that the needs selected print is sent to server by way of message.It is preferred that in order to facilitate user's operation, can use
Following methods submit the list of label to be printed:
The user accesses the print label choosing of the label printing server by the browser on the terminal device
Webpage is selected, and the label to be printed is selected on print label selection webpage, is shown on the print label selection webpage
The label list that current application system can print;Selected label is sent to the label printing clothes by the terminal device
Business device.
It is preferred that in order to improve printing effect, special server (the data loading clothes i.e. in following methods can be used
Business device) the corresponding label substance data of print label are obtained from database, it can specifically be obtained using following methods and wait to beat
The corresponding label substance data of marking label:
The document number of the label to be printed is sent to data load services device by the label printing server;The number
The label substance data of the document corresponding label are obtained from database according to load server, and is sent to the label and beats
Print server.
In practical applications, the communication modes of http request monitor can be used between browser and terminal device,
The communication modes of socket can be used.
In specific implementation, the label substance data can use Json forms.
Step 102, the terminal device are according to tag types, to the label substance packet;For each group of mark
Content-data is signed, default tag template corresponding with affiliated tag types in this terminal is obtained, by this group of label substance data
It is filled into respectively in the tag template, obtains the corresponding all labels of this group of label substance data, and the label is preserved
In a lagged document, the corresponding lagged document of this group of label substance data is obtained.
In this step, terminal device receives the corresponding label substance data of label to be printed of label printing server feedback
Afterwards, it is necessary to be grouped according to tag types to label substance data so that the corresponding label substance data of same class label exist
In same group, then recycle in advance as the tag template of each class label configuration, each group label substance data are filled respectively
Into corresponding tag template, corresponding lagged document is generated.In this way, when being printed into row label, for of a sort all
Label to be printed, it is only necessary to which the printing of all labels to be printed in such can be completed by printing a lagged document.Therefore, may be used
To effectively improve the printing effect of extensive amount tag so that the present invention is suitable for the printing of extensive amount tag.
In addition, the tag template by the print settings comprising respective document, therefore, tag template is based in printing
During the lagged document given birth to, it is not necessary to the setting of print parameters is individually carried out again, so as to realize batch of multiple lagged documents
Amount printing, and then the printing effect of extensive amount tag can be improved.
It is preferred that the tag template and the lagged document are PDF format or html format, it is specific per class label mould
The those skilled in the art that are configured to of plate are grasped, and details are not described herein.
Due to PDF or HTML, these edit tools can set the corresponding tag template of all kinds of labels, it can overcome
The problem of traditional prints scheme can not meet user's needs due to being limited to third-party report form tool.
All lagged documents are sent to printer printing by step 103, the terminal device.
Fig. 2 be with the corresponding label printing system structure diagram of the above method, as shown in Fig. 2, the system include mark
Printing server, terminal device and printer are signed, wherein,
Label printing server, for the list for the label to be printed currently submitted according to user, obtains described to be printed
The corresponding label substance data of label, and by the label substance data sending give the user terminal device;
Terminal device, for according to tag types, to the label substance packet;For each group of label substance number
According to obtaining default tag template corresponding with affiliated tag types in this terminal, this group of label substance data filled respectively
Into the tag template, the corresponding all labels of this group of label substance data are obtained, and the label is stored in a mark
Sign in document, obtain the corresponding lagged document of this group of label substance data;All lagged documents are sent to printer to beat
Print.
It is preferred that the terminal device is used to the label of user's selection being sent to the label printing server;It is described
Selection includes:The user accesses the print label of the label printing server by the browser on the terminal device
Webpage is selected, and the label to be printed is selected on print label selection webpage, is shown on the print label selection webpage
Show the label list that current application system can print.
It is preferred that the system further comprises data load services device;
The label printing server, for the document number of the label to be printed to be sent to data load services device;
The data load services device, for obtaining the label substance number of the document corresponding label from database
According to, and it is sent to the label printing server.
It is preferred that the tag template and the lagged document are PDF format or html format.
In conclusion the foregoing is merely a prefered embodiment of the invention, it is not intended to limit the scope of the present invention.
Within the spirit and principles of the invention, any modification, equivalent replacement, improvement and so on, should be included in the present invention's
Within protection domain.