[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107415489A - A kind of method and its printer of expanding printing content - Google Patents

A kind of method and its printer of expanding printing content Download PDF

Info

Publication number
CN107415489A
CN107415489A CN201710513828.0A CN201710513828A CN107415489A CN 107415489 A CN107415489 A CN 107415489A CN 201710513828 A CN201710513828 A CN 201710513828A CN 107415489 A CN107415489 A CN 107415489A
Authority
CN
China
Prior art keywords
information
bill
template
mark
printer
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.)
Granted
Application number
CN201710513828.0A
Other languages
Chinese (zh)
Other versions
CN107415489B (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.)
Xiamen Hanyin Co ltd
Original Assignee
Xiamen Hanyin Electronic 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 Xiamen Hanyin Electronic Technology Co Ltd filed Critical Xiamen Hanyin Electronic Technology Co Ltd
Priority to CN201710513828.0A priority Critical patent/CN107415489B/en
Publication of CN107415489A publication Critical patent/CN107415489A/en
Application granted granted Critical
Publication of CN107415489B publication Critical patent/CN107415489B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • B41J3/44Typewriters or selective printing mechanisms having dual functions or combined with, or coupled to, apparatus performing other functions
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The invention provides a kind of method of expanding printing content, the described method comprises the following steps:Judge printer whether configuration information template;Information is extracted from bill data according to described information template information set in advance, or according to described information template, the printer generates the mark related to the information for presetting or extracting, described to be identified as word or figure or Quick Response Code;According to described information template position set in advance, described identify is inserted into the relevant position of bill;If printer setup information model, printing includes the bill of mark;If printer is not provided with information model, bill of the printing not comprising mark.The printing content for needing to extend is inserted into bill by the present invention by being realized in printer section configuration information template.A kind of printer, including the control system being connected with bill handling apparatus, information model can be arranged as required in the control system, the control system prints mark according to information model on bill.

Description

A kind of method and its printer of expanding printing content
Technical field
The present invention relates to the field of printer, in particular to a kind of method and its printer of expanding printing content.
Background technology
The purposes of bill printer is quite varied, such as market supermarket printing receipt, invoice, also each Corporate Finance Print printer of VAT invoice etc..The type of common bill printer has temperature-sensitive bill printer, thermal transfer bill Printer, needle type bill printing machine etc..The advantage and disadvantage of different types of printer are each variant.The advantages of thermal printing technique is Print speed is fast, and printing effect is good, and maintenance cost is low, and shortcoming is that the requirement to printing paper is higher.Thermal transfer bill printer Advantage is speed, and effect is relatively good, but the complexity of its mechanism is larger.
At present, bill printer is generally connected with bill handling apparatus, and the typesetting of bill has secured.If change If, it is necessary to which the developer of bill handling apparatus corresponding to finding is modified.Flow is cumbersome, spends time length.If user Want to embody the mark related to oneself product, service on bill, be just difficult to operate, reduce Consumer's Experience.
The content of the invention
The invention provides a kind of method of expanding printing content, it is intended to and improve bill printing typesetting format and fix, be single, The problem of being difficult to meet user's request.
The invention provides a kind of printer, it is intended to improves bill printing typesetting format and fixes, be single, it is difficult to meets user The problem of demand.
What the present invention was realized in:
A kind of method of expanding printing content, the described method comprises the following steps:
Judge printer whether configuration information template;
According to described information template information set in advance, or letter is extracted from bill data according to described information template Breath, the printer generates the mark related to the information for presetting or extracting, described to be identified as word or figure or two dimension Code;
According to described information template position set in advance, described identify is inserted into the relevant position of bill;
If printer setup information model, printing includes the bill of mark;If printer is not provided with information model, Bill of the printing not comprising mark.
Further, in preferred embodiments of the present invention, described information template comprises at least ending message template and expansion Exhibition printing content template, the printer are generated according to the expanding printing content template and identified, and the ending message template is extremely Include the information of embedded location of the mark in bill less.
Further, in preferred embodiments of the present invention, described information template also includes extraction information model, described to carry Information model is taken to be used to extract some information from bill data, the ending message template is used to extract from bill data The information of trailer field.
Further, in preferred embodiments of the present invention, judge printer whether configuration information template, specifically include with Lower step:
Judge whether to set ending message template;
Judge whether to set expanding printing content template;
Judge whether to set extraction information model;
If being not provided with ending message template or expanding printing content template, terminate the process of generation mark, into printing The pattern of bill not comprising mark.
Further, in preferred embodiments of the present invention, if there is provided extraction information model, need according to the extraction Information model extracts information from bill data, specifically includes following steps:
The search information corresponding with extraction information model in bill data;
Judge whether to search for successfully;
Store the target data of extraction.
Further, in preferred embodiments of the present invention, before printed tickets, also comprise determining whether to set extraction Information;
If setting extraction information, the target data of storage is loaded into mark;If being not provided with extracting information, print and do not wrap Mark containing target data.
Further, in preferred embodiments of the present invention, according to described information template position set in advance, by described in Mark is embedded into the relevant position of bill, specifically includes following steps:
According to ending message template, trailer field is searched for determine embedded location;
Judge whether location finding success;
If location finding is failed, repeat search trailer field.
Further, in preferred embodiments of the present invention, printer is judged whether before configuration information template, in addition to Bill data transmitting terminal sends bill data, the printer storing bill data to printer.
Further, in preferred embodiments of the present invention, the mark is embedded into the relevant position of bill, specific bag Include following steps:
According to ending message template trailer field set in advance, the trailer field searched in bill data, it is determined that mark Insertion position;
According to the insertion position of mark, mark and bill data are subjected to typesetting.
A kind of printer, including control system, the control system are connected with bill handling apparatus, in the control system Information model can be arranged as required to, the control system prints mark according to information model on bill.
The beneficial effects of the invention are as follows:The present invention can be connected by the method for above-mentioned expanding printing content with printer The bill handling apparatus connect will need what is extended using in the case of constant by being realized in printer section configuration information template Printing content is inserted into bill.User allow according to their needs, the adjustment of personalization is made to bill printing.This hair The method of bright expanding printing content greatly improves Consumer's Experience, has the advantages of bill personalized designs are convenient.
Brief description of the drawings
, below will be to required use in embodiment in order to illustrate more clearly of the technical scheme of embodiment of the present invention Accompanying drawing be briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not to be seen as It is the restriction to scope, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other related accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the embodiment of the present invention, structural representation of the device under the first visual angle;
Embodiment
To make the purpose, technical scheme and advantage of embodiment of the present invention clearer, implement below in conjunction with the present invention Accompanying drawing in mode, the technical scheme in embodiment of the present invention is clearly and completely described, it is clear that described reality The mode of applying is a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, ability The every other embodiment that domain those of ordinary skill is obtained under the premise of creative work is not made, belongs to the present invention The scope of protection.Therefore, below the detailed description of the embodiments of the present invention to providing in the accompanying drawings be not intended to limit will The scope of the present invention of protection is sought, but is merely representative of the selected embodiment of the present invention.Based on the embodiment in the present invention, The every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made, belong to this Invent the scope of protection.
Embodiment 1:
Shown in reference picture 1, a kind of method of expanding printing content, it the described method comprises the following steps:
Judge printer whether configuration information template;
According to described information template information set in advance, or letter is extracted from bill data according to described information template Breath, the printer generates the mark related to the information for presetting or extracting, described to be identified as word or figure or two dimension Code;
According to described information template position set in advance, described identify is inserted into the relevant position of bill;
If printer setup information model, printing includes the bill of mark;If printer is not provided with information model, Bill of the printing not comprising mark.
By the above method, if printer can in the case where being provided with information model printed tickets;Can also be In the case that printer is not located at information model, printed with existing bill typesetting format.So that the printing of printer Mode diversification, meet different user's requests.It can be answered by the above method in the bill handling apparatus being connected with printer In the case of constant, the printing content for needing to extend is inserted into bill by being realized in printer section configuration information template In.User allow according to their needs, the adjustment of personalization is made to bill printing.The expanding printing content of the present invention Method greatly improves Consumer's Experience, has the advantages of bill personalized designs are convenient.
Described information template refers to the agreement that printer can be identified, communicated, or includes the program of several instructions.Institute Information model is stated by setting and being downloaded in printer on the server.The mark refers to the extension set on the server and beaten Content is printed, the mark can be that such as firm name, shop l ogo, store information, shop need information promoted etc.. Mark can be the various forms such as word, numeral, figure, can also be the recognizable figure such as Quick Response Code, bar code.
Preferably, printer is judged whether before configuration information template, in addition to bill data transmitting terminal is sent out to printer Send bill data, the printer storing bill data.The bill data transmitting terminal can be computer, control device etc., example For handling the control device of the computer of billing information, automatic printing ticket during such as supermarket's bill printing.The bill data Transmitting terminal is connected with printer.Printer is cached when receiving bill data, so that print procedure extraction needs to print Content.Bill data includes the content on bill, and the composition information of ticket contents.Composition information include font size, Line space, position relationship, sequencing etc..
Preferably, described information template comprises at least ending message template and expanding printing content template, the printer Generated and identified according to the expanding printing content template, the ending message template has comprised at least the mark in bill The information of embedded location.
The ending message template is used for the information that trailer field is extracted from bill data, by ending message template Upper setting trailer field, then it is then the insertion position of extension content before or after trailer field position.Specific bag Include following steps:
According to ending message template, trailer field is searched in bill data to determine embedded location;
Judge whether location finding success;
If location finding is failed, repeat search trailer field;Enter the fortune of other steps if location finding success OK.
Preferably, described information template also includes extraction information model, and the extraction information model is used for from bill data Some information of middle extraction.The extraction information model refers to the information that user extracts some needs from bill as needed, root According to field set in advance, the extraction transition information associated with field etc. in extraction information model.For example, in extraction information mould The plate setting amount of money, total item etc..
If there is provided extraction information model, need to extract information from bill data according to the extraction information model, have Body comprises the following steps:
The search information corresponding with extraction information model in bill data.For example, extraction information model sets total gold The information of volume, printer searches for the field of " total amount " first from bill data, and the association numeral of total amount is extracted Come;
Judge whether to search for successfully, this hunting action is repeated if not searching for successfully;
Store the target data of extraction.
Preferably, judge printer whether configuration information template, specifically include following steps:
Judge whether to set ending message template;
Judge whether to set expanding printing content template;
Judge whether to set extraction information model;
Each information model all judges respectively so that printer can carry out different according to existence information templating species Operation is handled.If being not provided with ending message template or expanding printing content template, terminate the process of generation mark, into printing The pattern of bill not comprising mark.
Before printed tickets, also comprise determining whether to set extraction information.If extraction information is set, by the mesh of storage Mark data and be loaded into mark;If it is not provided with extracting information, mark of the printing not comprising target data.Therefore, even if there is provided carry Information model is taken, can not also be printed, there are the operations for facilitating user.
Preferably, because extraction information is the information in bill data, therefore, it can be included and carried according to extraction information generation Win the confidence the Quick Response Code of breath, bar code etc. so that user can by reading Quick Response Code, bar code obtains information.Work as expanding printing When the Quick Response Code that can be distinguished, bar code are contained in content, then extraction information can be directly loaded into expanding printing content and set It is fixed or production to distinguish in figure.
Preferably, the mark is embedded into the relevant position of bill, specifically includes following steps:
According to ending message template trailer field set in advance, the trailer field searched in bill data, it is determined that mark Insertion position;
According to the insertion position of mark, mark and bill data are subjected to typesetting.
Embodiment 2:
A kind of printer, it is possible to achieve the method for the extension dump in embodiment 1, the printer include control and be System, the control system are connected with bill handling apparatus, and information model can be arranged as required in the control system, described Control system prints mark according to information model on bill.
By setting the information model that can be set according to demand so that the carry out individual character setting that user can be more flexible.
The preferred embodiment of the present invention is the foregoing is only, is not intended to limit the invention, for this area For technical staff, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made is any Modification, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (10)

  1. A kind of 1. method of expanding printing content, it is characterised in that the described method comprises the following steps:
    Judge printer whether configuration information template;
    Information is extracted from bill data according to described information template information set in advance, or according to described information template, The printer generates the mark related to the information for presetting or extracting, described to be identified as word or figure or Quick Response Code;
    According to described information template position set in advance, described identify is inserted into the relevant position of bill;
    If printer setup information model, printing includes the bill of mark;If printer is not provided with information model, print Bill not comprising mark.
  2. 2. the method for expanding printing content according to claim 1, it is characterised in that described information template comprises at least knot Beam information model and expanding printing content template, the printer is generated according to the expanding printing content template and identified, described Ending message template has comprised at least the information of embedded location of the mark in bill.
  3. 3. the method for expanding printing content according to claim 2, it is characterised in that described information template also includes extraction Information model, the extraction information model are used to extract some information from bill data, and the ending message template is used for The information of trailer field is extracted from bill data.
  4. 4. the method for expanding printing content according to claim 3, it is characterised in that judge printer whether configuration information Template, specifically include following steps:
    Judge whether to set ending message template;
    Judge whether to set expanding printing content template;
    Judge whether to set extraction information model;
    If being not provided with ending message template or expanding printing content template, terminate the process of generation mark, do not wrapped into printing The pattern of bill containing mark.
  5. 5. the method for expanding printing content according to claim 4, it is characterised in that if being provided with extraction information model, Then need to extract information from bill data according to the extraction information model, specifically include following steps:
    The search information corresponding with extraction information model in bill data;
    Judge whether to search for successfully;
    Store the target data of extraction.
  6. 6. the method for expanding printing content according to claim 5, it is characterised in that before printed tickets, in addition to Judge whether to set extraction information;
    If setting extraction information, the target data of storage is loaded into mark;If being not provided with extracting information, printing does not include mesh Mark the mark of data.
  7. 7. the method for expanding printing content according to claim 4, it is characterised in that set in advance according to described information template Fixed position, the mark is embedded into the relevant position of bill, specifically includes following steps:
    According to ending message template, trailer field is searched for determine embedded location;
    Judge whether location finding success;
    If location finding is failed, repeat search trailer field.
  8. 8. the method for expanding printing content according to claim 3, it is characterised in that judge printer whether configuration information Before template, in addition to bill data transmitting terminal sends bill data, the printer storing bill data to printer.
  9. 9. the method for expanding printing content according to claim 8, it is characterised in that the mark is embedded into bill Relevant position, specifically include following steps:
    According to ending message template trailer field set in advance, the trailer field searched in bill data, it is determined that mark insertion Position;
    According to the insertion position of mark, mark and bill data are subjected to typesetting.
  10. 10. a kind of printer, it is characterised in that including control system, the control system is connected with bill handling apparatus, described Information model can be arranged as required in control system, the control system prints mark according to information model on bill.
CN201710513828.0A 2017-06-29 2017-06-29 Method for expanding printing content and printer thereof Active CN107415489B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710513828.0A CN107415489B (en) 2017-06-29 2017-06-29 Method for expanding printing content and printer thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710513828.0A CN107415489B (en) 2017-06-29 2017-06-29 Method for expanding printing content and printer thereof

Publications (2)

Publication Number Publication Date
CN107415489A true CN107415489A (en) 2017-12-01
CN107415489B CN107415489B (en) 2019-12-31

Family

ID=60427689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710513828.0A Active CN107415489B (en) 2017-06-29 2017-06-29 Method for expanding printing content and printer thereof

Country Status (1)

Country Link
CN (1) CN107415489B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846448A (en) * 2018-06-05 2018-11-20 浪潮软件股份有限公司 A kind of quotient based on digital location technology, which is overpriced, signs Method of printing
CN110517419A (en) * 2019-08-07 2019-11-29 北京数衍科技有限公司 Interception serial ports cash register print data and the method and system for pursuing and attacking additional information
CN110533848A (en) * 2019-08-07 2019-12-03 北京数衍科技有限公司 Interception parallel port cash register print data and the method and system for pursuing and attacking additional information
CN111756799A (en) * 2020-05-20 2020-10-09 拉扎斯网络科技(上海)有限公司 Method and device for processing printing information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007160851A (en) * 2005-12-16 2007-06-28 Seiko Epson Corp Printer and method for printing to templet
CN101052973A (en) * 2003-11-12 2007-10-10 交易技术公司 Printer having a configurable template and methods for configuring a printer template
CN103677684A (en) * 2012-08-29 2014-03-26 精工爱普生株式会社 Recording device and control method of the recording device
CN105607880A (en) * 2015-12-29 2016-05-25 南威软件股份有限公司 Printing method and device for examined and approved documents

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052973A (en) * 2003-11-12 2007-10-10 交易技术公司 Printer having a configurable template and methods for configuring a printer template
JP2007160851A (en) * 2005-12-16 2007-06-28 Seiko Epson Corp Printer and method for printing to templet
CN103677684A (en) * 2012-08-29 2014-03-26 精工爱普生株式会社 Recording device and control method of the recording device
CN105607880A (en) * 2015-12-29 2016-05-25 南威软件股份有限公司 Printing method and device for examined and approved documents

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846448A (en) * 2018-06-05 2018-11-20 浪潮软件股份有限公司 A kind of quotient based on digital location technology, which is overpriced, signs Method of printing
CN110517419A (en) * 2019-08-07 2019-11-29 北京数衍科技有限公司 Interception serial ports cash register print data and the method and system for pursuing and attacking additional information
CN110533848A (en) * 2019-08-07 2019-12-03 北京数衍科技有限公司 Interception parallel port cash register print data and the method and system for pursuing and attacking additional information
CN111756799A (en) * 2020-05-20 2020-10-09 拉扎斯网络科技(上海)有限公司 Method and device for processing printing information
CN111756799B (en) * 2020-05-20 2023-04-07 拉扎斯网络科技(上海)有限公司 Method and device for processing printing information

Also Published As

Publication number Publication date
CN107415489B (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN107415489A (en) A kind of method and its printer of expanding printing content
US7577613B2 (en) Provision of receipts for self service or point of sale terminals
CN100565601C (en) A kind of bill processing apparatus and method
CN105278894B (en) Print control, print system and printing control method
US8498485B2 (en) Handprint recognition test deck
CN106940628A (en) Document Method of printing and device
CN106406779B (en) Electronic invoice Method of printing, system and equipment
CN110399108B (en) Voucher printing processing method and device
CN109948549A (en) OCR data creation method, device, computer equipment and storage medium
CN106610804A (en) Ticket printing method and system
CN108717543A (en) A kind of invoice recognition methods and device, computer storage media
CN104679824B (en) The webpage generating method and system of the network platform
CN106815733A (en) Data processing method, device and system and printer
CN109615803A (en) A kind of data-printing method and device
CN109388759B (en) Webpage interface construction method and system and data processing method
CN108564388A (en) Antifake method for products based on Quick Response Code
KR101783314B1 (en) Solution system, device and method for image printing in human skin
CN105224509A (en) A kind of method and device generating font format
CN102722940B (en) Printer, Method of printing and program
CN107066528A (en) A kind of network information annotation method
CN107704216A (en) A kind of bill information Method of printing and device, computer installation, storage medium
CN105718846A (en) Bill information input method and apparatus
CN205302382U (en) Developments business card generates device
US20060098234A1 (en) Printing apparatus, printing method, and printing program
JP6087879B2 (en) Reception support system and reception support method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 361000 room 305A, Aung Yip house, Pioneer Park, torch high tech Zone, Xiamen, Fujian

Patentee after: Xiamen Hanyin Co.,Ltd.

Country or region after: China

Address before: 361000 room 305A, Aung Yip house, Pioneer Park, torch high tech Zone, Xiamen, Fujian

Patentee before: XIAMEN HANIN ELECTRONIC TECHNOLOGY Co.,Ltd.

Country or region before: China