CN110244921B - Label printing method and device, electronic equipment and system - Google Patents

Label printing method and device, electronic equipment and system Download PDF

Info

Publication number
CN110244921B
CN110244921B CN201910546993.5A CN201910546993A CN110244921B CN 110244921 B CN110244921 B CN 110244921B CN 201910546993 A CN201910546993 A CN 201910546993A CN 110244921 B CN110244921 B CN 110244921B
Authority
CN
China
Prior art keywords
label
information
printing
printer
tag
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.)
Active
Application number
CN201910546993.5A
Other languages
Chinese (zh)
Other versions
CN110244921A (en
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.)
Wuhan Jingchen Wisdom Logo Technology Co ltd
Original Assignee
Wuhan Jingchen Wisdom Logo 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 Wuhan Jingchen Wisdom Logo Technology Co ltd filed Critical Wuhan Jingchen Wisdom Logo Technology Co ltd
Priority to CN201910546993.5A priority Critical patent/CN110244921B/en
Publication of CN110244921A publication Critical patent/CN110244921A/en
Application granted granted Critical
Publication of CN110244921B publication Critical patent/CN110244921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/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/1205Improving or facilitating administration, e.g. print management resulting in increased flexibility in print job configuration, e.g. job settings, print requirements, job tickets
    • 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/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1242Image or content composition onto a page
    • G06F3/1243Variable data printing, e.g. document forms, templates, labels, coupons, advertisements, logos, watermarks, transactional printing, fixed content versioning
    • 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/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1244Job translation or job parsing, e.g. page banding
    • G06F3/1245Job translation or job parsing, e.g. page banding by conversion to intermediate or common format
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The embodiment of the invention relates to the technical field of label printing, and provides a label printing method, a label printing device, electronic equipment and a label printing system, wherein the method comprises the following steps: acquiring display attribute information of a first tag from a tag editing page; converting the display attribute information of the first label into preset format information of the first label; and sending the preset format information of the first label to the second electronic equipment so that the second electronic equipment prints the first label according to the preset format information of the first label. According to the embodiment of the invention, the label editing function and the label printing function are separated, so that the flexibility and the usability of label printing are improved, and meanwhile, the application scenes of label printing are enriched.

Description

Label printing method and device, electronic equipment and system
Technical Field
The embodiment of the invention relates to the technical field of label printing, in particular to a label printing method, a label printing device, electronic equipment and a label printing system.
Background
The label refers to the words, graphics and symbols on the product and all the instructions. With the development of market economy and the fierce competition of commodities, labels have become an important form of fair trading and commodity competition.
In the label printing industry, label printing software usually has a function of label editing to realize self-defined editing of labels. For example, the label is edited according to the needs of the actual scene, and then the edited label is printed, and the editing and printing functions of the label are bound together, so that the label printing is not flexible enough.
Disclosure of Invention
The embodiment of the invention aims to provide a label printing method, a label printing device, electronic equipment and a label printing system, which are used for solving the problem that the existing label printing is not flexible enough.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a label printing method, where the method includes: acquiring display attribute information of a first tag from a tag editing page; converting the display attribute information of the first label into preset format information of the first label; and sending the preset format information of the first label to the second electronic equipment so that the second electronic equipment prints the first label according to the preset format information of the first label.
In a second aspect, an embodiment of the present invention further provides a label printing apparatus, where the apparatus includes a label editing module, where the label editing module is specifically configured to: acquiring display attribute information of a first tag from a tag editing page; converting the display attribute information of the first label into preset format information of the first label; and sending the preset format information of the first label to the second electronic equipment so that the second electronic equipment prints the first label according to the preset format information of the first label.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes: one or more processors; a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to perform the above-described label printing method.
In a fourth aspect, an embodiment of the present invention further provides a label printing system, where the label printing system includes a first electronic device, a second electronic device, a printer, and a cloud server, where the first electronic device is in communication connection with both the second electronic device and the cloud server, and the second electronic device is in communication connection with the printer; the first electronic equipment is used for acquiring the display attribute information of the first label from the label editing page, converting the display attribute information of the first label into preset format information of the first label and then sending the preset format information of the first label to the second electronic equipment; the second electronic equipment is used for converting the preset format information of the first label into the printing instruction information of the first label and then sending the printing instruction information to the printer; the printer is used for printing the first label according to the printing instruction information of the first label; the first electronic equipment is further used for sending the metadata format information of the first tag to a cloud server; the cloud server is used for storing the first tag according to the form of the metadata format information of the first tag.
In a fifth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the above-mentioned label printing method.
Compared with the prior art, in the label printing method, the label printing device, the electronic equipment and the label printing system provided by the embodiment of the invention, the first electronic equipment provides the label editing page to edit the label, converts the edited label into the preset format information convenient to transmit, sends the converted preset format information to the second electronic equipment, and prints the label according to the preset format information by the second electronic equipment. By separating the editing function of the label from the printing function of the label, the flexibility and the usability of label editing and printing are improved, and meanwhile, the applicable scene of label printing is enriched.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram illustrating a first scenario of a label printing system according to an embodiment of the present invention.
Fig. 2 is a schematic diagram illustrating a second scenario of a label printing system according to an embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating a third scenario of a label printing system according to an embodiment of the present invention.
Fig. 4 is a schematic diagram illustrating a fourth scenario of the label printing system according to the embodiment of the present invention.
Fig. 5 is a schematic diagram illustrating a fifth scenario of a label printing system according to an embodiment of the present invention.
Fig. 6 shows a block schematic diagram of an electronic device provided by an embodiment of the present invention.
Fig. 7 is a flowchart illustrating a label printing method according to an embodiment of the present invention.
Fig. 8 is a flow chart illustrating a process of providing data conversion into tags in third-party software according to an embodiment of the present invention.
Fig. 9 is a schematic diagram illustrating a tag generated after data parsing of third-party software according to an embodiment of the present invention.
Fig. 10 shows a printing flow chart of the first electronic device according to the embodiment of the invention.
Fig. 11 shows a block schematic diagram of a label printing apparatus provided by an embodiment of the present invention.
Icon: 10-a first electronic device; 20-a second electronic device; 30-a printer; 40-cloud server; 101-a memory; 102-a communication interface; 103-a processor; 104-a bus; 200-a label printing apparatus; 201-a label editing module; 202-label printing module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
In the label printing industry, in order to facilitate a user to edit labels according to the requirements of different scenes, a printer manufacturer can develop a set of label editing software aiming at a self-contained printer so as to support the label editing and printing of the self-contained label printer, and because the label editing function is designed according to the functions of self-contained hardware products, manufacturers of different printers only adapt to the label printing and editing software of the self-contained printer and cannot be compatible with different printer manufacturers, so that the flexibility of label printing is reduced.
In order to improve the flexibility of label printing, the embodiment of the present invention separates the editing function of the label from the printing function of the label, so as to improve the flexibility and the usability of label printing, and enrich the application scenarios of label printing, which will be described in detail below.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating a first scenario of a label printing system according to an embodiment of the present invention, in fig. 1, the label printing system includes: the electronic tag comprises a first electronic device 10, a second electronic device 20, a printer 30 and a cloud server 40, wherein the first electronic device 10 is in communication connection with the second electronic device 20 and the cloud server 40, the second electronic device 20 is in communication connection with the printer 30, a user edits a first tag in a tag editing page displayed on the first electronic device 10, the first electronic device 10 acquires display attribute information of the first tag from the tag editing page and converts the display attribute information of the first tag into preset format information of the first tag and then sends the preset format information of the first tag to the second electronic device 20, the second electronic device 20 converts the preset format information of the first tag into printing instruction information of the first tag and then sends the printing instruction information of the first tag to the printer 30, and the printer 30 prints the first tag according to the printing instruction information of the first tag. The first electronic device 10 further sends the metadata format information of the first tag to the cloud server 40, and the cloud server 40 stores the first tag according to the metadata format information of the first tag.
It should be noted that fig. 1 is only a specific scenario of the label printing system, and in fact, in the embodiment of the present invention, the label printing system may also have the following scenarios.
Referring to fig. 2 and fig. 2 show a schematic view of a second scenario of the label printing system according to an embodiment of the present invention, in which the first electronic device 10 is in communication connection with the printer 30, the second electronic device 20 is in communication connection with the cloud server 40, the second electronic device 20 obtains display attribute information of the second label from the label editing page, converts the display attribute information of the second label into preset format information of the second label and sends the preset format information of the second label to the first electronic device 10, the first electronic device 10 converts the preset format information of the second label into printing instruction information of the second label and sends the printing instruction information of the second label to the printer 30, and the printer 30 prints the second label according to the printing instruction information of the second label. The preset format information of the second tag further includes metadata format information of the second tag, the second electronic device 20 further sends the metadata format information of the second tag to the cloud server 40, and the cloud server 40 stores the second tag according to the metadata format information of the second tag.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a third scenario of a label printing system according to an embodiment of the present invention, where a first electronic device 10 is in communication connection with a printer 30 and a cloud server 40, a user edits a first label in a label editing page displayed on the first electronic device 10, the first electronic device 10 obtains display attribute information of the first label from the label editing page and converts the display attribute information of the first label into preset format information of the first label, when the printer 30 is a printer produced by a manufacturer, the preset format information of the first label may include print instruction information of the first label, at this time, the first electronic device 10 may directly send the print instruction information of the first label to the printer 30 for printing, when the printer 30 is not a printer produced by the manufacturer, the first electronic device 10 first converts the preset format information of the first label into the print instruction information of the first label and then sends the print instruction information of the first label to the printer 30, and the printer 30 prints the first label according to the print instruction information of the first label. The preset format information of the second tag further includes metadata format information of the second tag, the first electronic device 10 further sends the metadata format information of the first tag to the cloud server 40, and the cloud server 40 stores the first tag according to the metadata format information of the first tag.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a fourth scenario of a label printing system according to an embodiment of the present invention, in which a first electronic device 10, a cloud server 40, and a printer 30 are sequentially connected in a communication manner, a user edits a first label in a label editing page displayed on the first electronic device 10, the first electronic device 10 obtains display attribute information of the first label from the label editing page, converts the display attribute information of the first label into preset format information of the first label and then sends the first label to the cloud server 40, the cloud server 40 converts the preset format information of the first label into print instruction information of the first label and then sends the first label to the printer 30, and the printer 30 prints the first label according to the print instruction information of the first label. The preset format information of the second tag further includes metadata format information of the second tag, the first electronic device 10 further sends the metadata format information of the first tag to the cloud server 40, and the cloud server 40 stores the first tag according to the metadata format information of the first tag.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating a fifth scenario of a label printing system according to an embodiment of the present invention, in which a first electronic device 10 is in communication connection with a cloud server 40, the first electronic device 10 is in communication connection with a printer 30 through a network, at this time, the printer 30 is a network printer, a user edits a first label in a label editing page displayed on the first electronic device 10, the first electronic device 10 acquires display attribute information of the first label from the label editing page, converts the display attribute information of the first label into print instruction information of the first label, and sends the print instruction information of the first label to the printer 30, and the printer 30 prints the first label according to the print instruction information of the first label. The preset format information of the second tag further includes metadata format information of the second tag, the first electronic device 10 further sends the metadata format information of the first tag to the cloud server 40, and the cloud server 40 stores the first tag according to the metadata format information of the first tag.
Referring to fig. 6, fig. 6 is a block diagram illustrating an electronic device according to an embodiment of the invention. The electronic device may be the first electronic device 10 in fig. 1 to 5, and the electronic device may be a general-purpose computer or a special-purpose computer, for example, the electronic device may be a mobile phone, a tablet computer, a host computer, a server, or the like. The electronic device comprises a memory 101, a communication interface 102, a processor 103 and a bus 104, the memory 101, the communication interface 102 and the processor 103 being connected by the bus 104, the processor 103 being adapted to execute executable modules, such as computer programs, stored in the memory 101.
The Memory 101 may include a Random Access Memory (RAM) and a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the first electronic device 10 and the second electronic device 20, the cloud server 40, and the external storage device is realized through at least one communication interface 102 (which may be wired or wireless).
The bus 104 may be an ISA bus, PCI bus, EISA bus, or the like. Only one bi-directional arrow is shown in fig. 6, but this does not indicate only one bus or one type of bus.
The memory 101 is configured to store a program, and the processor 103 executes the program after receiving the execution instruction, so as to implement the above-mentioned label printing method according to the present invention.
Referring to fig. 7, fig. 7 is a schematic flow chart illustrating a method for printing a label according to an embodiment of the present invention, where the flow chart includes the following steps:
step S101, display attribute information of the first tab is acquired from the tab editing page.
In this embodiment, the tab editing page is implemented in a web page, and based on the characteristics of the web page, the display of the tab editing page does not need to depend on a specific operating system, that is, the operating system of the first electronic device 10 that displays the tab editing page is not limited, and the first electronic device 10 only needs to have a browser.
In this embodiment, the first tag is a tag edited by the user on the tag editing page of the first electronic device 10, and the display attribute information of the first tag may be some attribute information representing how the first tag is displayed, for example, attribute information such as a font, a font size, a color, and a position coordinate of text in the first tag.
Step S102, converting the display attribute information of the first label into preset format information of the first label.
In this embodiment, the preset format information may be one or more of metadata format information, print instruction information, or picture information, and the metadata format information may be formed by encapsulating display attribute information in a JSON form or an XML form, so as to: on one hand, cross-platform transmission of the display attribute information is facilitated, on the other hand, the display attribute information is stored in the form of metadata format information, so that the corresponding tags are restored and then displayed in the tag editing page according to the metadata format information, and the requirement of a user on continuous editing on the basis is met. The print instruction information is in the form of information that can be directly recognized by the printer 30, and in a case where the first electronic device 10 is communicatively connected to the printer 30 via a network, for example, in a fifth scenario shown in fig. 5, the first electronic device 10 may directly transmit the print instruction information to the printer 30 via the network. The picture information is a scene which is not required to be edited again by the user on the basis of the current label, and at the moment, the display attribute information of the label is not required to be converted into metadata format information, and only the image information needs to be converted, so that the printing requirement is met.
Step S103, sending the preset format information of the first label to the second electronic device, so that the second electronic device prints the first label according to the preset format information of the first label.
In this embodiment, the first electronic device 10 edits the first label to generate the preset format information of the first label, and sends the preset format information of the first label to the second electronic device 20, where the second electronic device 20 first converts the preset format information of the first label into the printing instruction information of the first label, and then sends the printing instruction information of the first label to the printer 30, so as to complete printing of the first label.
In this embodiment, in order to facilitate the user to edit the first tag again based on the currently edited first tag, the display attribute of the first tag needs to be stored, and in order to facilitate the storage, and also in order to restore the first tag to the tag editing page according to the stored information, the display attribute information of the first tag is converted into the metadata format information of the first tag to be stored, so that the first electronic device 10 is further in communication connection with the cloud server 40, and the embodiment of the present invention further includes step S104.
Step S104, sending the metadata format information of the first tag to the cloud server so that the cloud server stores the first tag in the form of the metadata format information of the first tag.
In this embodiment, when the user needs to edit again based on the first tag, the first electronic device 10 may read out the stored metadata format information of the first tag from the cloud server 40, and restore the first tag to the tag editing page according to the metadata format information of the first tag, so as to display the first tag for the user to edit again in the tag editing page.
In this embodiment, in order to facilitate integration with third-party software, data in the third-party software is converted into a tag and then edited, and the embodiment of the present invention further includes steps S201 to S203.
Referring to fig. 8, fig. 8 is a schematic diagram illustrating a process of providing data conversion into tags in third-party software according to an embodiment of the present invention, where the process includes the following steps:
in step S201, data to be printed is received.
In this embodiment, the data to be printed may be data in an Excel form, or may also be data written in a text file according to a preset rule, and the Excel form file or the text file in which the data to be printed is written is imported into the first electronic device 10, so as to facilitate importing multiple pieces of data at one time, and simultaneously generate multiple corresponding tags.
Step S202, analyzing the data to be printed, generating a label corresponding to the data to be printed, and displaying the label on a label editing page.
In this embodiment, first, data to be printed in an import file is read, and the data to be printed is parsed into a label format and then displayed on a label editing page. For example, the data to be printed is shown in table 1:
TABLE 1
Name (I) Sex Class of class
Zhang San For male One class in a small
Li Si Woman Middle and second class
Two labels are generated after the analysis: as shown in fig. 9, fig. 9 is a schematic diagram of a tag generated after data parsing of third-party software according to an embodiment of the present invention. In fig. 9, the data in table 1 is analyzed to generate two tags, the two tags may be set to be displayed as a paging, where "<1/2>" in fig. 9 indicates that a first tag is displayed on a first page, "<2/2>" indicates that a second tag is displayed on a second page, where "<" and ">" respectively indicate buttons for turning pages forward and backward, it should be noted that fig. 9 is only a schematic diagram, and an actual page may display other information and corresponding function buttons or icons as needed, which are conventional implementations of page design in the prior art, and are not described herein again.
In step S203, display attribute information of a label corresponding to the data to be printed is acquired from the label edit page.
In this embodiment, step S203 is similar to step S101, and is not described herein again.
In this embodiment, in the second scenario shown in fig. 2, the first electronic device 10 is communicatively connected to the printer 30, the second electronic device 20 is communicatively connected to the cloud server 40, the second electronic device 20 executes steps S101 to S104, that is, a user edits a second tag in a tag editing page on the second electronic device 20 and obtains display attribute information of the second tag, the second electronic device 20 converts the display attribute information of the second tag into preset format information of the second tag and then sends the preset format information of the second tag to the first electronic device 10, and the first electronic device 10 prints the second tag according to the preset format information of the second tag, so that the embodiment of the present invention further includes steps S301 to S303.
Referring to fig. 10, fig. 10 shows a printing flow chart of the first electronic device 10 according to the embodiment of the present invention, where the printing flow chart includes the following steps:
step S301, receiving preset format information of a second tag sent by a second electronic device, where the preset format information of the second tag is obtained by converting display attribute information of the second tag by the second electronic device, and the display attribute information of the second tag is obtained by the second electronic device from a tag editing page.
In the present embodiment, the second tab is a tab edited by the user on the tab editing page of the second electronic device 20, and the display attribute of the second tab may be some attribute information that characterizes how the second tab is displayed, like the first tab.
Step S302, converting the preset format information of the second label into the printing instruction information of the second label.
In this embodiment, the preset format information of the second label may be picture information of the second label or metadata format information of the second label, and since the printer 30 in this embodiment may be a printer from a different manufacturer and with a different model, in order to mask a difference in model of the printer 30, the embodiment of the present invention uniformly packages the print drivers provided by different printers 30, and as an implementation manner, the conversion of the preset format information of the second label into the print instruction information of the second label may be implemented in the following manner:
first, model information of the printer is acquired.
And secondly, calling a printing driver interface matched with the model of the printer, and converting the preset format information of the second label into the printing instruction information of the second label.
In this embodiment, the printers 30 of different models may correspond to different print drivers, and convert the preset format information of the second label into the print instruction information of the second label through the different print drivers. Some manufacturers can open the printing instruction of the printer produced by the manufacturers, for the printers of the manufacturers, the preset format information of the second label can be converted into the printing instruction information of the second label according to the opened printing instruction and the printing driving program, and under the condition, the printing attribute information included in the printing instruction information of the second label is richer, so that the printing effect is better. For a printer with a print instruction not opened by a manufacturer, the preset format information of the second label can still be converted into the print instruction information of the second label according to the print driver, and in this case, the print instruction information of the second label includes print attribute information meeting the most basic print requirement, so that the second label can also be printed.
Step S303, sending the printing instruction information of the second label to a printer, so that the printer prints the second label according to the printing instruction information of the second label.
It should be noted that, steps S301 to S303 may be implemented by using a C + + programming language, or may also be implemented by using a Java programming language or a C # programming language, and the embodiment of the present invention does not limit a specific implementation of the programming language.
It should be further noted that, the second electronic device 20 may send the preset format information of the second tag to the first electronic device 10 in a SOCKET manner, or may also send the preset format information of the second tag to the first electronic device 10 in a HyperText Transfer Protocol (HTTP) manner.
In this embodiment, in a fifth scenario shown in fig. 5, the first electronic device 10 is communicatively connected to the printer 30 through a network, in this case, the printer 30 may be a network printer, and is a printer produced by a manufacturer, and may directly access the network to which the first electronic device 10 belongs as an independent network device instead of accessing the network to which the first electronic device 10 belongs through the second electronic device 20, in this scenario, the first electronic device 10 may directly convert the attribute display information of the first label into the print instruction information of the first label, and then directly transmit the print instruction information of the first label to the printer 30 through the network to print the first label, and therefore, the embodiment of the present invention further includes: the print instruction information of the first label is sent to the printer 30, so that the printer 30 prints the first label according to the print instruction information of the first label.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
firstly, the editing function of the label and the printing function of the label are separated, so that the flexibility and the usability of label printing are improved, and meanwhile, the application scenes of label printing are enriched.
And secondly, the tag editing page is realized in a webpage mode, the display of the tag editing page does not need to depend on a specific operating system, the cross-platform realization can be realized, the expandability of the method is enhanced, and the application scene of the method is expanded.
And thirdly, converting the display attribute information of the first label into different preset format information of the first label according to the requirements of various scenes, such as picture information, metadata information, printing instruction information and the like.
Fourthly, data in third-party software can be converted into tags to be edited, and the tags can be conveniently used as component-based applications to be quickly integrated into various business system products.
Referring to fig. 11, fig. 11 is a block diagram illustrating a label printing apparatus 200 according to an embodiment of the present invention. The label printing apparatus 200 includes a label editing module 201 and a label printing module 202.
The tag editing module 201 is configured to acquire display attribute information of a first tag from a tag editing page; converting the display attribute information of the first label into preset format information of the first label; and sending the preset format information of the first label to the second electronic equipment so that the second electronic equipment prints the first label according to the preset format information of the first label.
As an embodiment, the tag editing module 201 is further configured to: receiving data to be printed; analyzing the data to be printed, generating a label corresponding to the data to be printed, and displaying the label on a label editing page; and acquiring display attribute information of a label corresponding to the data to be printed from the label editing page.
As another embodiment, the preset format information further includes metadata format information, and the tag editing module 201 is further configured to: and sending the metadata format information of the first tag to a cloud server so that the cloud server stores the first tag in the form of the metadata format information of the first tag.
As another embodiment, the preset format information further includes print instruction information, and the label editing module 201 is further configured to: and sending the printing instruction information of the first label to a printer so that the printer prints the first label according to the printing instruction information of the first label.
The label printing module 202 is configured to: receiving preset format information of a second label sent by second electronic equipment, wherein the preset format information of the second label is obtained by converting display attribute information of the second label through the second electronic equipment, and the display attribute information of the second label is obtained by the second electronic equipment from a label editing page; converting the preset format information of the second label into the printing instruction information of the second label; and sending the printing instruction information of the second label to a printer so that the printer prints the second label according to the printing instruction information of the second label.
Specifically, as a specific implementation manner of converting the preset format information of the second label into the printing instruction information of the second label, the label printing module 202 is further configured to: obtaining model information of a printer; and calling a printing driver interface matched with the model of the printer, and converting the preset format information of the second label into the printing instruction information of the second label.
It should be noted that the label editing module 201 and the label printing module 202 may run on different electronic devices, for example, the label editing module 201 may run on the first electronic device 10, and the label printing module 202 may run on the second electronic device 20, or vice versa. In a scenario where the cloud server 40 is communicatively connected to the printer 30, such as the fourth scenario shown in fig. 4, the tag editing module 201 may run on the first electronic device 10, and the tag printing module 202 may run on the cloud server 40.
It should be further noted that the label editing module 201 and the label printing module 202 may be simultaneously run on the same electronic device, for example, the label editing module 201 and the label printing module 202 may be simultaneously run on the first electronic device 10 or the second electronic device 20.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the label printing apparatus 200 described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor 103, implements the above-mentioned label printing method.
In summary, embodiments of the present invention provide a label printing method, an apparatus, an electronic device, and a system, where the method is applied to an electronic device, and the method includes: acquiring display attribute information of a first tag from a tag editing page; converting the display attribute information of the first label into preset format information of the first label; and sending the preset format information of the first label to the second electronic equipment so that the second electronic equipment prints the first label according to the preset format information of the first label. According to the embodiment of the invention, the editing function of the label and the printing function of the label are separated, so that the flexibility and the usability of label printing are improved, and meanwhile, the application scenes of label printing are enriched.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.

Claims (5)

1. A label printing method is applied to a first electronic device, the first electronic device is in communication connection with a second electronic device and a plurality of printers, the first electronic device packages printing drivers provided by the plurality of printers in a unified manner, and the method comprises the following steps:
acquiring display attribute information of a first tag from a tag editing page;
converting the display attribute information of the first label into preset format information of the first label, wherein the preset format information comprises at least one of metadata format information, printing instruction information or picture information;
sending the preset format information of the first label to the second electronic equipment so that the second electronic equipment prints the first label according to the preset format information of the first label;
the method further comprises the following steps:
receiving data to be printed;
analyzing the data to be printed, generating a label corresponding to the data to be printed, and displaying the label on the label editing page;
acquiring display attribute information of a label corresponding to the data to be printed from the label editing page;
receiving preset format information of a second label sent by the second electronic device, wherein the preset format information of the second label is obtained by converting display attribute information of the second label by the second electronic device, and the display attribute information of the second label is obtained by the second electronic device from a label editing page;
converting the preset format information of the second label into printing instruction information of the second label;
sending the printing instruction information of the second label to the printer so that the printer prints the second label according to the printing instruction information of the second label;
the step of converting the preset format information of the second label into the printing instruction information of the second label further comprises:
acquiring model information of the printer;
if the printing instruction of the printer exists, converting the preset format information of the second label into the printing instruction information of the second label according to the printing instruction and a printing driver interface matched with the model of the printer;
if the printing instruction of the printer does not exist, converting the preset format information of the second label into the printing instruction information of the second label according to a printing driver interface matched with the model of the printer, wherein the printing instruction information of the second label comprises printing attribute information meeting basic printing requirements;
and sending the printing instruction information of the first label to the printer so that the printer prints the first label according to the printing instruction information of the first label.
2. The label printing method of claim 1, wherein the first electronic device is communicatively coupled to a cloud server, the method further comprising:
and sending the metadata format information of the first tag to the cloud server so that the cloud server stores the first tag in the form of the metadata format information of the first tag.
3. The utility model provides a label printing device, its characterized in that is applied to first electronic equipment, first electronic equipment and second electronic equipment and printer all communication connection, the printer is a plurality of, first electronic equipment will be a plurality of the unified encapsulation has been made to the print drive that the printer provided, label printing device includes label editing module and label printing module, label editing module specifically is used for:
acquiring display attribute information of a first tag from a tag editing page;
converting the display attribute information of the first label into preset format information of the first label, wherein the preset format information comprises at least one of metadata format information, printing instruction information or picture information;
sending the preset format information of the first label to the second electronic equipment so that the second electronic equipment prints the first label according to the preset format information of the first label;
the tag editing module is further configured to:
receiving data to be printed;
analyzing the data to be printed, generating a label corresponding to the data to be printed, and displaying the label on the label editing page;
acquiring display attribute information of a label corresponding to the data to be printed from the label editing page;
the label printing module is specifically configured to:
receiving preset format information of a second tag sent by the second electronic device, wherein the preset format information of the second tag is obtained by converting display attribute information of the second tag by the second electronic device, and the display attribute information of the second tag is obtained by the second electronic device from a tag editing page;
converting the preset format information of the second label into printing instruction information of the second label;
sending the printing instruction information of the second label to the printer so that the printer prints the second label according to the printing instruction information of the second label;
the label printing module is further specifically configured to:
acquiring model information of the printer;
calling a printing driver interface matched with the type of the printer, and converting the preset format information of the second label into the printing instruction information of the second label;
the label printing module is used for calling a printing driver program interface matched with the type of the printer, and specifically, when converting the preset format information of the second label into the printing instruction information of the second label, the label printing module is further used for:
if the printing instruction of the printer exists, converting the preset format information of the second label into the printing instruction information of the second label according to the printing instruction and a printing driver interface matched with the model of the printer;
if the printing instruction of the printer does not exist, converting the preset format information of the second label into the printing instruction information of the second label according to a printing driver interface matched with the model of the printer, wherein the printing instruction information of the second label comprises printing attribute information meeting basic printing requirements;
and sending the printing instruction information of the first label to the printer so that the printer prints the first label according to the printing instruction information of the first label.
4. An electronic device, characterized in that the electronic device comprises:
one or more processors;
memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-2.
5. A label printing system is characterized by comprising a first electronic device, a second electronic device, a printer and a cloud server, wherein the first electronic device, the second electronic device and the cloud server are all in communication connection, the number of the printers is multiple, the first electronic device packages printing drivers provided by the printers in a unified mode, and the second electronic device is in communication connection with the printer;
the first electronic device is used for acquiring display attribute information of a first label from a label editing page, converting the display attribute information of the first label into preset format information of the first label and then sending the preset format information to the second electronic device, wherein the preset format information comprises at least one of metadata format information, printing instruction information or picture information;
the first electronic equipment is also used for receiving data to be printed; analyzing the data to be printed, generating a label corresponding to the data to be printed, and displaying the label on the label editing page; acquiring display attribute information of a label corresponding to the data to be printed from the label editing page;
the first electronic device is further configured to receive preset format information of a second tag sent by the second electronic device, where the preset format information of the second tag is obtained by converting, by the second electronic device, display attribute information of the second tag, where the display attribute information of the second tag is obtained by the second electronic device from a tag editing page; converting the preset format information of the second label into printing instruction information of the second label; sending the printing instruction information of the second label to the printer;
the first electronic equipment is also used for acquiring the model information of the printer; if the printing instruction of the printer exists, converting the preset format information of the second label into the printing instruction information of the second label according to the printing instruction and a printing driver interface matched with the model of the printer; if the printing instruction of the printer does not exist, converting the preset format information of the second label into the printing instruction information of the second label according to a printing driver interface matched with the model of the printer, wherein the printing instruction information of the second label comprises printing attribute information meeting basic printing requirements;
the first electronic equipment is also used for sending the printing instruction information of the first label to the printer;
the second electronic equipment is used for converting the preset format information of the first label into the printing instruction information of the first label and then sending the printing instruction information of the first label to a printer;
the printer is used for printing the first label according to the printing instruction information of the first label;
the printer is also used for printing the second label according to the printing instruction information of the second label;
the printer is further used for printing the first label according to the printing instruction information of the first label;
the preset format information of the first tag further comprises original data format information of the first tag, and the first electronic device is further used for sending the metadata format information of the first tag to the cloud server;
the cloud server is used for storing the first tag according to the form of the metadata format information of the first tag.
CN201910546993.5A 2019-06-24 2019-06-24 Label printing method and device, electronic equipment and system Active CN110244921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910546993.5A CN110244921B (en) 2019-06-24 2019-06-24 Label printing method and device, electronic equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910546993.5A CN110244921B (en) 2019-06-24 2019-06-24 Label printing method and device, electronic equipment and system

Publications (2)

Publication Number Publication Date
CN110244921A CN110244921A (en) 2019-09-17
CN110244921B true CN110244921B (en) 2023-02-28

Family

ID=67888880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910546993.5A Active CN110244921B (en) 2019-06-24 2019-06-24 Label printing method and device, electronic equipment and system

Country Status (1)

Country Link
CN (1) CN110244921B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210064860A (en) * 2019-11-26 2021-06-03 휴렛-팩커드 디벨롭먼트 컴퍼니, 엘.피. Processing of image forming job based on metadata tag input
CN111522553B (en) * 2020-04-03 2023-12-05 京东科技控股股份有限公司 Data processing method and device, electronic equipment and storage medium
CN112068783B (en) * 2020-08-21 2023-09-19 时时同云科技(成都)有限责任公司 Label printing system and method
CN113419659A (en) * 2021-08-23 2021-09-21 深圳市信润富联数字科技有限公司 Method, system, program product and storage medium for constructing label template
CN115543239A (en) * 2022-11-30 2022-12-30 北京标记万物科技有限公司 Label printing method and printing system
CN116151191B (en) * 2023-04-18 2023-06-16 武汉精臣智慧标识科技有限公司 Data rendering method, system, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5058055A (en) * 1987-12-28 1991-10-15 Naigai Clothes Co., Ltd. System for printing labels and tags, and a converter used therein
JP2005238524A (en) * 2004-02-24 2005-09-08 Max Co Ltd Label printer
JP2007118258A (en) * 2005-10-25 2007-05-17 Ishida Co Ltd Label editing device, label printer, and label editing method
CN205009766U (en) * 2015-10-12 2016-02-03 国网四川省电力公司信息通信公司 Label print system
JP2016126508A (en) * 2014-12-26 2016-07-11 マックス株式会社 Label issuing application, mobile information processing apparatus, and label printer

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5727135A (en) * 1995-03-23 1998-03-10 Lexmark International, Inc. Multiple printer status information indication
US20120102705A1 (en) * 2010-10-27 2012-05-03 Murray Richard A Method of assembling a multifunction printer
JP5910050B2 (en) * 2011-12-07 2016-04-27 ブラザー工業株式会社 Regular print information processing program, regular print information processing method, and recording medium
EP2972752A1 (en) * 2013-03-15 2016-01-20 Sanford, L.P. Label files
US9521280B2 (en) * 2013-12-04 2016-12-13 Hellermanntyton Corporation Systems and methods for display of regulatory information related to labeling
JP6519431B2 (en) * 2015-09-30 2019-05-29 セイコーエプソン株式会社 Print management server, printer driver management system, printer driver management program, and information processing apparatus
JP2018041144A (en) * 2016-09-05 2018-03-15 株式会社東芝 Printing system and printing setting program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5058055A (en) * 1987-12-28 1991-10-15 Naigai Clothes Co., Ltd. System for printing labels and tags, and a converter used therein
JP2005238524A (en) * 2004-02-24 2005-09-08 Max Co Ltd Label printer
JP2007118258A (en) * 2005-10-25 2007-05-17 Ishida Co Ltd Label editing device, label printer, and label editing method
JP2016126508A (en) * 2014-12-26 2016-07-11 マックス株式会社 Label issuing application, mobile information processing apparatus, and label printer
CN205009766U (en) * 2015-10-12 2016-02-03 国网四川省电力公司信息通信公司 Label print system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
e标识 云标签打印平台:大数据时代下的新势力――访北京科创京成条码科技有限公司董事长叶向东;郑昱;《中国自动识别技术》;20140218(第01期);第57-58页 *

Also Published As

Publication number Publication date
CN110244921A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN110244921B (en) Label printing method and device, electronic equipment and system
CN102165393B (en) Editing 2D structures using natural input
WO2017054629A1 (en) Method and device for editing printed receipt based on pos terminal
CN106886551B (en) Method and device for displaying image by using markup language
TWI409708B (en) System and method for storing a document in a serial binary format
CN109634579B (en) Code generation method, device, computer device and storage medium
CN106776800B (en) Page generation method, device and system for AngularJS framework
KR20150144073A (en) Method and apparatus for format conversion of document, and cloud server thereof
CN111797595A (en) Method and device for generating OFD format page based on XML template
CN112650714A (en) Document display method, device, equipment and computer readable medium
CN109815451B (en) PDF (Portable document Format) generation method, device and equipment
CN110674437A (en) Method and device for converting webpage data into PDF (Portable document Format) attachment
CN115543238B (en) Browser page printing method, device, equipment and storage medium
US9036163B2 (en) Methods and apparatuses for displaying text block and processing text block
CN110245341B (en) Identification code batch generation method and device
CN103034990A (en) Method and device for checking publications
CN104216868A (en) Adaptation method and device for document display format
US9223762B2 (en) Encoding information into text for visual representation
CN115034177A (en) Presentation file conversion method, device, equipment and storage medium
CN103488442A (en) Card face personalized real-time printing system and method
CN114676097A (en) OFD file processing method, device, equipment and medium
CN111967274A (en) Label conversion processing method and device, electronic equipment and readable storage medium
CN113703699B (en) Real-time output method and device for electronic file
CN108280053A (en) A kind of method and device of the formula typesetting based on Mathtype
JP2015076001A (en) History management method of image data, and history management system of image data

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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Label printing method, device, electronic device, and system

Granted publication date: 20230228

Pledgee: Bank of China Limited Wuhan Donghu New Technology Development Zone Branch

Pledgor: WUHAN JINGCHEN WISDOM LOGO TECHNOLOGY Co.,Ltd.

Registration number: Y2024980008335