CN105511820A - Free typesetting printing method - Google Patents

Free typesetting printing method Download PDF

Info

Publication number
CN105511820A
CN105511820A CN201510866260.1A CN201510866260A CN105511820A CN 105511820 A CN105511820 A CN 105511820A CN 201510866260 A CN201510866260 A CN 201510866260A CN 105511820 A CN105511820 A CN 105511820A
Authority
CN
China
Prior art keywords
printing
substitute character
character string
print
variable element
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510866260.1A
Other languages
Chinese (zh)
Inventor
翁斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bo Hong Information Technology Co Ltd
Original Assignee
Bo Hong Information 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 Bo Hong Information Technology Co Ltd filed Critical Bo Hong Information Technology Co Ltd
Priority to CN201510866260.1A priority Critical patent/CN105511820A/en
Publication of CN105511820A publication Critical patent/CN105511820A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/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/1253Configuration of print job parameters, e.g. using UI at the client

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 discloses a free typesetting printing method comprising the following steps: 1, pre-making a printing template, setting a fixed printing content format and a plurality of variable parameters in the printing template, and storing the printing template in a memory; 2, printing equipment reads the printing template and receives corresponding printing functions, wherein the printing functions comprise substitute character strings matched with the variable parameters; 3, printing equipment uses the characters in the corresponding substitute character string to replace the variable parameters, and prints the printing template and the replaced variable parameters. Replaceable variables are employed in the template for substitute printing; corresponding format variables are preset so as to directly replace the variable parameters in printing; the format can be adjusted according to format variables preset in the variable parameters, thus realizing free typesetting printing, and greatly reducing printing template quantity; the free typesetting printing method is fast in response time, and can hardly have printing error.

Description

A kind of method realizing free Typeset and Print
Technical field
The present invention relates to a kind of method realizing free Typeset and Print.
Background technology
At present, in ATM in bank, strip prints common method is that analyze the information that need print, make multiple printing template, each template fixes the size of print format and type fount, and wherein print format comprises printing placed in the middle, occupies the forms such as left printing; Then the information printed as required, call corresponding printing template to print, this printing type needs to make multiple printing template, because each print What has trickle difference, such as same position is placed in the middle or occupies left printing, all need to make different printing templates, cause template number too much.And printing needs to find corresponding printing template, printing template quantity to a certain extent time, its response time will be slack-off, easily occurs printing crashing or the situation of Print Garbled.
Summary of the invention
During in order to solve the printing of current ATM, the required printing template read of different printing situations is too much, the technical matters printing deadlock or Print Garbled may be caused, the invention provides a kind of method that effectively can reduce the free Typeset and Print of realization of printing template.
In order to realize above-mentioned technical purpose, technical scheme of the present invention is,
Realize a method for free Typeset and Print, comprise the following steps,
Step one: make printing template in advance, and fixing print What form and multiple variable element are set in printing template, and printing template is stored in storer;
Step 2: printing device reads printing template, and receives corresponding printf, and printf comprises for the substitute character string corresponding with variable element;
Step 3: the character in corresponding substitute character string is replaced variable element by printing device, and printing template and the variable element after replacing are printed.
A kind of described method realizing free Typeset and Print, in described step one, includes at least one in substitute character finger URL or layout character in each variable element in described printing template.
A kind of described method realizing free Typeset and Print, in the step 2 stated, described substitute character string comprise multiple for replace variable element carry out actual printing substitute character and substitute character string is carried out segmentation old single substitute character accord with the string segmentation of each variable element of correspondence.
A kind of described method realizing free Typeset and Print, in described step 3, when printing, read substitute character string, according to the position of string segmentation symbol in substitute character string, substitute character string is divided into multiple substitute character, then according to the position of variable element in printing template, the position by the order in substitute character string substitute character being substituted into variable element prints.
A kind of described method realizing free Typeset and Print, in described step 3, when variable element comprises layout character, then adjusts the print format of corresponding substitute character after replacement according to the definition of layout character.
A kind of described method realizing free Typeset and Print, in described substitute character string, at the beginning first variable symbol that uses of definition character string decollator of character string.
A kind of described method realizing free Typeset and Print, the described predefined print format of layout character comprises printing placed in the middle, occupies left printing, occupies right printing, overstrike, line feed print.
A kind of described method realizing free Typeset and Print, the date-time that described substitute character also comprises for reading current date, the time carries out printing replaces symbol.
Technique effect of the present invention is, carry out replacement by adopting interchangeable variable in a template to print, and pre-set corresponding form variable, directly variable element is replaced during printing, carry out Format adjusting according to the form variable pre-set in variable element again, realize free Typeset and Print, owing to greatly reducing the quantity of printing template, response time of the present invention is fast, not easily occurs misprint.
Embodiment
The present embodiment comprises the following steps,
Step one: make printing template in advance, and fixing print What form and multiple variable element are set in printing template, and printing template is stored in storer;
Step 2: printing device reads printing template, and receives corresponding printf, and printf comprises for the substitute character string corresponding with variable element;
Step 3: the character in corresponding substitute character string is replaced variable element by printing device, and printing template and the variable element after replacing are printed.
In step one, in each variable element in printing template, include at least one in substitute character finger URL or layout character.
In step 2, substitute character string comprise multiple for replace variable element carry out actual printing substitute character and substitute character string is carried out segmentation old single substitute character accord with the string segmentation of each variable element of correspondence.
In step 3, when printing, read substitute character string, according to the position of string segmentation symbol in substitute character string, substitute character string is divided into multiple substitute character, then according to the position of variable element in printing template, the position by the order in substitute character string substitute character being substituted into variable element prints.
In step 3, when variable element comprises layout character, then adjust the print format of corresponding substitute character after replacement according to the definition of layout character.
Adjust for the ease of string segmentation symbol, in order to avoid when appearing at printing, the character that need print and string delimiter repeat and cause printing incorrect, in substitute character string, at the beginning first variable symbol that uses of definition character string decollator of character string.
The predefined print format of layout character comprises printing placed in the middle, occupies left printing, occupies right printing, overstrike, line feed print, and also can increase and decrease according to specific needs.
In order to carry out date print, the date-time that substitute character also comprises for reading current date, the time carries out printing replaces symbol
Below by embodiment, the present invention is explained.
The printing template of the present embodiment is as follows:
Time: & & DTime:& & T#
TransactionType:&&1#
CardNo.&&2#
Transferto:&&3#
Ainount:&&4#
RetrievalReferenceNo.589907#
AcquireNo.ATC:001C#
CardRetained:&&5"B_S1"#
TelephoneofBank:&&6"V_0"#
The substitute character string sent is:
(", " Chinese Chinese, Support support, survey test examination, and te surveys st examination, 1234567890,0660-8574900)
The end product then printed is:
Time: 2015-11-30Time:09:43:30
TransactionType: Chinese Chinese
CardNo.Support supports
Transferto: survey test examination
Ainount:te surveys st examination
RetrievalReferenceNo.589907#
AcquireNo.ATC:001C#
CardRetained:1234567890
TelephoneofBank:0660-8574900
In the present embodiment, the & & D in masterplate in the first row represents that the date replaces symbol, & & T represents that the time replaces symbol, therefore what occur in print result is current date and concrete time.
What in masterplate, the second row substitute character finger URL adopted is that " & & " and follow-up label are to represent the order of substitute character, # is defined as the line feed symbol into printing in layout character, therefore in masterplate " TransactionType:& & 1# ", namely represent and the substitute character of first in substitute character string is replaced at & & 1 place, then enter a new line, and substitute character string is (", " Chinese Chinese, Support supports, survey test examination, te surveys st examination, 1234567890, 0660-8574900), substitute character string starts most ", " for carrying out the definition of variable symbol to string segmentation symbol, namely this symbol of comma is string segmentation symbol, owing to may need to print this symbol of comma when other print, therefore in first place, string segmentation symbol is defined arbitrarily, adopt one at the follow-up symbol that can not use, as long as there is this symbol, namely substitute character string is split, so the content of first substitute character is " Chinese Chinese " in corresponding printing template, therefore the content printed is " TransactionType: Chinese Chinese ".
At the 8th row of template, in " CardRetained:& & 5 " B_S1 " # ", & & 5 represents the 5th character in corresponding substitute character string, i.e. " 1234567890 ", what " B_S1 " represented is overstrike, therefore the result printed is " CardRetained:1234567890 ", the rest may be inferred, in " TelephoneofBank:& & 6 " V_0 " # " of the 9th row, what " V_0 " represented is printing placed in the middle, therefore print result is TelephoneofBank:0660-8574900 placed in the middle.
In actual use, can according to specific needs, substitute character finger URL, layout character etc. be replaced, to ensure not repeat mutually with concrete print What.

Claims (8)

1. realize a method for free Typeset and Print, it is characterized in that, comprise the following steps,
Step one: make printing template in advance, and fixing print What form and multiple variable element are set in printing template, and printing template is stored in storer;
Step 2: printing device reads printing template, and receives corresponding printf, and printf comprises for the substitute character string corresponding with variable element;
Step 3: the character in corresponding substitute character string is replaced variable element by printing device, and printing template and the variable element after replacing are printed.
2. a kind of method realizing free Typeset and Print according to claim 1, is characterized in that, in described step one, includes at least one in substitute character finger URL or layout character in each variable element in described printing template.
3. a kind of method realizing free Typeset and Print according to claim 2, it is characterized in that, in described step 2, described substitute character string comprise multiple for replace variable element carry out actual printing substitute character and substitute character string is carried out segmentation old single substitute character accord with the string segmentation of each variable element of correspondence.
4. a kind of method realizing free Typeset and Print according to claim 3, it is characterized in that, in described step 3, when printing, read substitute character string, according to the position of string segmentation symbol in substitute character string, substitute character string is divided into multiple substitute character, then according to the position of variable element in printing template, the position by the order in substitute character string substitute character being substituted into variable element prints.
5. a kind of method realizing free Typeset and Print according to claim 4, it is characterized in that, in described step 3, when variable element comprises layout character, then adjust the print format of corresponding substitute character after replacement according to the definition of layout character.
6. a kind of method realizing free Typeset and Print according to claim 3, is characterized in that, in described substitute character string, at the beginning first variable symbol that uses of definition character string decollator of character string.
7. a kind of method realizing free Typeset and Print according to claim 2, is characterized in that, the described predefined print format of layout character comprises printing placed in the middle, occupies left printing, occupies right printing, overstrike, line feed printing, space typing.
8. a kind of method realizing free Typeset and Print according to claim 2, is characterized in that, the date-time that described substitute character also comprises for reading current date, the time carries out printing replaces symbol.
CN201510866260.1A 2015-12-02 2015-12-02 Free typesetting printing method Pending CN105511820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510866260.1A CN105511820A (en) 2015-12-02 2015-12-02 Free typesetting printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510866260.1A CN105511820A (en) 2015-12-02 2015-12-02 Free typesetting printing method

Publications (1)

Publication Number Publication Date
CN105511820A true CN105511820A (en) 2016-04-20

Family

ID=55719839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510866260.1A Pending CN105511820A (en) 2015-12-02 2015-12-02 Free typesetting printing method

Country Status (1)

Country Link
CN (1) CN105511820A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733332A (en) * 2018-06-19 2018-11-02 山东浪潮通软信息科技有限公司 A kind of general printing template Metadata design method
CN109343803A (en) * 2018-09-19 2019-02-15 益萃网络科技(中国)有限公司 Print from the definition method, apparatus, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1302029A (en) * 1999-12-30 2001-07-04 国际商业机器公司 Output file for forming formatting computer
CN1924789A (en) * 2005-09-02 2007-03-07 星精密株式会社 Print system
CN102937894A (en) * 2012-10-16 2013-02-20 国电南京自动化股份有限公司 Method for realizing simple and transplantable printf function

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1302029A (en) * 1999-12-30 2001-07-04 国际商业机器公司 Output file for forming formatting computer
CN1924789A (en) * 2005-09-02 2007-03-07 星精密株式会社 Print system
CN102937894A (en) * 2012-10-16 2013-02-20 国电南京自动化股份有限公司 Method for realizing simple and transplantable printf function

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733332A (en) * 2018-06-19 2018-11-02 山东浪潮通软信息科技有限公司 A kind of general printing template Metadata design method
CN108733332B (en) * 2018-06-19 2021-04-16 浪潮通用软件有限公司 Universal printing template metadata design method
CN109343803A (en) * 2018-09-19 2019-02-15 益萃网络科技(中国)有限公司 Print from the definition method, apparatus, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
DE3633613C2 (en)
CN109710198B (en) Printing method, device and equipment for local dynamic variable image
CN111626036B (en) Image-text typesetting processing method
EP2575024B1 (en) Print data processing apparatus, a print data processing method, a printing system and program, a page data creating apparatus, and a rasterization processing apparatus
CN105511820A (en) Free typesetting printing method
JP2011062835A5 (en)
US10338868B2 (en) Apparatus, method and non-transitory computer readable medium for displaying omission information to print serial number
KR100217995B1 (en) Printing device preformat feature and method thereof
CA1205035A (en) Printing apparatus having a memory for storing printed character information
CN113135054B (en) PCB manufacturing method and device, storage medium and PCB
CN112506453A (en) Method, device, processor and non-volatile storage medium for printing nameplate
EP0120481A2 (en) Method and device for selecting a character shape for each character of a text, e.g. of Arabic, according to four classes
CN104156345A (en) Method and device for identifying explanatory text in portable document format file
CN101645063A (en) Method and device for combining characters
CN102736865A (en) System and method for printing distributed auxiliary information file
CN111832250A (en) Display method, system, storage medium and terminal of long character string
US2899498A (en) Apparatus for synthesizing facsimile signals from coded signals
JP2014166740A (en) Serial printer and printing method
JP3029067B2 (en) Label printer
JP2008176356A (en) Variable printing method
JP5826208B2 (en) Printing method and printing machine
JPH0661969B2 (en) Output device
US8891118B2 (en) Printing system, printing device, and print control method
CN110070162A (en) The coding method and system of data to be filled in bar code
CN113889031A (en) Display data distribution method and system of novel display module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160420