CN106354447A - Printing control method and device and printing system - Google Patents

Printing control method and device and printing system Download PDF

Info

Publication number
CN106354447A
CN106354447A CN201610782912.8A CN201610782912A CN106354447A CN 106354447 A CN106354447 A CN 106354447A CN 201610782912 A CN201610782912 A CN 201610782912A CN 106354447 A CN106354447 A CN 106354447A
Authority
CN
China
Prior art keywords
print
printer
printing
printed
data
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
CN201610782912.8A
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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201610782912.8A priority Critical patent/CN106354447A/en
Publication of CN106354447A publication Critical patent/CN106354447A/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/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • 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/1229Printer resources management or printer maintenance, e.g. device status, power levels
    • G06F3/1234Errors handling and recovery, e.g. reprinting
    • 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
    • G06F3/1258Configuration of print job parameters, e.g. using UI at the client by updating job settings at the printer

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)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The embodiment of the invention discloses a printing control method. The printing control method includes the steps that first printing task is sent to a printer and carries first to-be-printed data; when a first printing completing notice sent by the printer is received, the state of the first to-be-printed data is marked to be that printing is successful, wherein the first printing completing notice is sent according to the first printing task. According to the embodiment of the printing control method, a printing response of the printer is received, the printing states of data are recorded to guarantee correctness of financial records, there is no need to manually check whether printing errors occur on printed bills, in this way, manual intervention of the bills during printing can be reduced, the automation level of bill printing can be improved, and labor can be saved.

Description

A kind of print control program and device and a kind of print system
Technical field
The present invention relates to communication technical field, more particularly, to a kind of print control program and device and a kind of print system.
Background technology
It will usually provide the voucher as transaction for the valuable bills of various printings to client, such as in various process of exchanges Ticket, sight spot admission ticket etc..And the tent financial management of operator and tax related system typically have valency with what these printed Bill is according to being recorded.Existing bill printing method, in order to ensure the correct of financial records, need to manually verify and beat Whether misprint situation occurs in the bill printing off, for example print in printer fault or due to print data lose cause Bill does not print, labor intensive.
Content of the invention
In view of this, the invention provides a kind of print control program and device and a kind of print system, existing to solve In order to ensure the correct of financial records in technology, need to manually verify the situation whether misprint occurs in the bill printing, The problem of labor intensive.
Embodiments provide a kind of print control program, comprising:
Send the first print out task to printer, described first print out task carries the first data to be printed;
When receiving the first printing completion notice that described printer sends, by the state of the described first data to be printed It is labeled as printing successfully, described first printing completion notice sends according to described first print out task.
Preferably, described transmission the first print out task, to printer, also includes before:
After completing to print preparation, receiving printing orders, described print command carries the described first number to be printed According to;
Inquire about the state of described printer;
When the state receiving described printer transmission normally notifies, send described first print out task to described printing Machine.
Preferably, the described status indication by the described first data to be printed is to print successfully, also includes afterwards:
When described print command also carries the second data to be printed, inquire about the state of described printer again;
When the state receiving described printer transmission normally notifies, send the second print out task to described printer, Described second print out task carries the described second data to be printed;
When receiving the second printing completion notice that described printer sends, by the state of the described second data to be printed It is labeled as printing successfully, described second printing completion notice sends according to described second print out task.
Preferably, described transmission the first print out task, to printer, also includes afterwards:
When not receiving the first printing completion notice that described printer sends, by the shape of the described first data to be printed State is labeled as printing unsuccessfully, terminates printing process concurrency and send miscue.
The embodiment of the present invention additionally provides a kind of print control unit, comprising: task sending module, notify receiver module and Status indication module;
Described task sending module, for sending the first print out task to printer, described first print out task carries First data to be printed;
Described notice receiver module, for receiving the first printing completion notice that described printer sends, described first dozen Print completion notice sends according to described first print out task;
Described status indication module, for notifying receiver module to receive the first printing that described printer sends when described During completion notice, the status indication of the described first data to be printed is to print successfully.
Preferably, also include: command reception module and state-query module;
Described command reception module, for complete print preparation after, receiving printing orders, described print command is taken With the described first data to be printed;
Described state-query module, for inquiring about the state of described printer;
Described notice receiver module, the state being additionally operable to receive described printer transmission normally notifies;
Described task sending module, the state for receiving described printer transmission when described notice receiver module is normal During notice, send described first print out task to described printer.
Preferably, described state-query module, is additionally operable to when described print command also carries the second data to be printed, In the described shape notifying receiver module to inquire about described printer after receiving the normal notice of state that described printer sends again State;
Described task sending module, be additionally operable to when described notify receiver module to receive state that described printer sends just When normal open is known, send the second print out task to described printer, described second print out task carries the described second number to be printed According to;
Described notice receiver module, is additionally operable to receive the second printing completion notice that described printer sends, and described second Print completion notice to be sent according to described second print out task;
Described status indication module, is additionally operable to notify receiver module to receive second dozen that described printer sends when described During print completion notice, the status indication of the described second data to be printed is to print successfully.
Preferably, also include: terminate module and prompting sending module;
Described status indication module, is additionally operable to notify receiver module not receive the first of described printer transmission when described When printing completion notice, the status indication of the described first data to be printed is to print unsuccessfully;
Described termination module, for having printed when described notice receiver module does not receive the first of described printer transmission When becoming to notify, terminate to print flow process;
Described prompting sending module, for notifying receiver module not receive first dozen that described printer sends when described During print completion notice, send miscue.
The embodiment of the present invention additionally provides a kind of print system, comprising: host computer and printer;
Described host computer, for sending the first print out task to described printer, described first print out task carries the One data to be printed;
Described printer, prints completion notice to institute for after having printed the described first data to be printed, sending first State host computer;
Described host computer, is additionally operable to when receiving the first printing completion notice that described printer sends, by described the The status indication of one data to be printed is to print successfully.
Preferably, described host computer, is additionally operable to receiving printing orders, and it is to be printed that described print command carries described first Data;
Described host computer, is additionally operable to send status inquiry instruction to described printer;
Described printer, is additionally operable to transmission state and normally notifies to described host computer;
Described host computer, is additionally operable to, when the described state receiving described printer transmission normally notifies, send described First print out task is to described printer.
Preferably, described printer, comprising: recognition unit, positioning unit and printhead;
Described recognition unit, for identifying the bill specification of bill in described printer, and described bill specification is sent To described positioning unit, described bill specification, comprising: black target position in the size of described bill and described bill;
Described positioning unit, for according to described bill specification, mobile described printhead is to predeterminated position.
Compared with prior art, the present invention at least has the advantage that
Print control program provided in an embodiment of the present invention, after by data is activation to be printed to printer, it is determined whether The response receiving printer transmission prints success notification.When receiving printing success notification, you can determine this number to be printed Complete according to correctly printing, the status indication of this data to be printed is to print successfully, tent financial management afterwards and the tax Relative recording is according to the print state of evidence of checking tickets without artificial nucleus all with state for printing successfully data to be printed. And, it is also possible to the state of each data to be printed as foundation, determine the data that need to print during follow-up printing again.This The print control program that bright embodiment provides, by receiving the printing response of printer, the print state of record data, to ensure Financial records correct, need not manually verify the situation whether misprint occurs in the bill printing, bill can be reduced and beat Manpower intervention during print, improves the automatization level of bill printing, saves artificial.
Brief description
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments described in application, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawings can also be obtained according to these accompanying drawings.
The schematic flow sheet of the Method of printing embodiment one that Fig. 1 provides for the present invention;
The schematic flow sheet of the Method of printing embodiment two that Fig. 2 provides for the present invention;
The structural representation of the printing equipment embodiment one that Fig. 3 provides for the present invention;
The structural representation of the printing equipment embodiment two that Fig. 4 provides for the present invention;
The structural representation of the print system embodiment one that Fig. 5 provides for the present invention;
The structural representation of the print system embodiment two that Fig. 6 provides for the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention it is clear that described embodiment is only this Invent a part of embodiment, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art exist The every other embodiment being obtained under the premise of not making creative work, broadly falls into the scope of protection of the invention.
Self-service equipment often provides the voucher printing various valuable bills as transaction in application process to client, such as Ticket, sight spot admission ticket etc..Different areas and different sector applications, for self-demand and different numbers of deals it is believed that Breath, the note form providing a user with is not quite similar.For example, the size of bill, bank slip recognition black target position and entire volume bill Head and afterbody whether have test ticket or prompting ticket etc. to be all not quite similar.And, because these valuable bills are related to transport The tent financial management of battalion side and tax related system, bill printing mistake, producing will situations such as invalidated ticket or print data are lost Bring very burden to client and operator.All these situations propose to the versatility of bill printer and printing accuracy Very high request.
For this reason, embodiments providing a kind of print control program and device and a kind of print system, first After bill is installed, first carries out bank slip recognition, bill positioning and printer upper cutter fine position etc. and print preparation, so that Can adapt to the bill of different-format and specification during formal printing, reduce situations such as bill printing mistake occurs or produces invalidated ticket Probability.In formal print procedure, host computer all carries out inquiry during printing every bill with printer and interacts, and records The whether printing of every bill is correct, correct to ensure the record in the tent financial management of operator and tax related system, The print result of every bill need not manually be determined.In practical operation, before printing every bill, host computer all can be inquired about and beat Print machine state.When printer modes normal (printer sends state response to host computer), host computer sends to printer and beats Print task.Printer carries out printing to host computer after completing print out task and completes response.At this moment, host computer can be according to printer Response, record the print result of every bill, and by the incorrect print data information Store printing in host computer, it is to avoid User is when single continuous printed tickets quantity is used up more than remaining bill quantity in printer or printer carbon ribbon Cause print data to lose, produce duplicate printing situation, bring very big trouble to user and operator.
Based on above thought, understandable for enabling the above objects, features and advantages of the present invention to become apparent from, with reference to Accompanying drawing is described in detail to the specific embodiment of the present invention.It should be noted that following examples with bill printing are all Example is introduced, and the print control program that the present invention provides and device and a kind of print system apply also for other data and beat Print occasion, here will not enumerate.
It should be noted that the embodiment of the present invention provides print control program and device to can be applicable to host computer.Host computer It is connected with printer by wireless communication link or wired communications links, send to printer for content will be printed, and control The printing type of printer and printing flow process.Host computer includes but is not limited to computer, server, mobile phone, panel computer and beats Control device within print machine etc..
Embodiment of the method one:
Referring to Fig. 1, this figure is the schematic flow sheet of the print control program embodiment one that the present invention provides.
The print control program that the present embodiment provides, comprising:
S101: send the first print out task to printer, described first print out task carries the first data to be printed;
It is understood that host computer can send the first print out task to printer in several ways, including but not It is limited to the communication such as wired communication mode and Bluetooth transmission, network transmission.
S102: when receiving the first printing completion notice that described printer sends, by the described first data to be printed Status indication be prints successfully, described first print completion notice is sent according to described first print out task.
Printer, after completing corresponding first print out task, sends the first printing completion notice, so that host computer is learnt Whether printer has completed the first print out task.After receiving the first printing completion notice, host computer labelling simultaneously preserves corresponding The print state of data to be printed.Afterwards, can be to print successfully data to be printed according to each state, carry out tent finance pipe Reason and tax relative recording etc., correct to ensure the record in the tent financial management of operator and tax related system.
If host computer is not received by printing success notification, can determine that the print procedure of this data to be printed occurs wrong By mistake, need again to print this data to be printed, need not manually verify.Now, can terminate entirely to print flow process, and prompting maintenance letter Breath.After printer is adjusted to normal operating conditions, host computer further according to the state of each data to be printed recording before, Determine the data to be printed needing again to print, send it to printer and print, until the state of data to be printed is to print When correct, just tent financial management and tax relative recording etc. can be carried out according to this data to be printed.
The print control program that the present embodiment provides, after by data is activation to be printed to printer, it is determined whether receive Print success notification to the response that printer sends.When receiving printing success notification, you can determined this data to be printed Correct printing completes, and the status indication of this data to be printed is to print successfully, tent financial management afterwards is related with the tax Record is according to the print state of evidence of checking tickets without artificial nucleus all with state for printing successfully data to be printed.And, It is also possible to the state of each data to be printed as foundation, determine the data that need to print during follow-up printing again.The present embodiment carries For print control program, by receive printer printing response, the print state of record data, to ensure financial records Correctly, the situation whether misprint occurs in the bill printing need not manually be verified, during bill printing being reduced Manpower intervention, improves the automatization level of bill printing, saves artificial.
Embodiment of the method two:
Referring to Fig. 2, this figure is the schematic flow sheet of the print control program embodiment two that the present invention provides.Compared to Fig. 1, Present embodiments provide a kind of more specific print control program.
In the present embodiment, step s204 is identical with step s102 in embodiment of the method one, will not be described here.
The print control program that the present embodiment provides, also includes:
S201: after completing to print preparation, receiving printing orders, described print command carries described first and waits to beat Printing evidence;
When printing beginning, host computer can receive corresponding print command, and print command is included in this print procedure The data whole to be printed that need to print.It is understood that in fact it could happen that a print command carries in practical work process There is the situation of multiple data to be printed, such as user need to once print multiple ticket.
Do not lose for guarantee data to be printed, first can preserve all data to be printed to transmit queue, then will wait to beat Print data is activation, to printer, makes printer print all data to be printed.This transmit queue is fifo queue.
Afterwards, in order to reduce the probability of misprint further, before by data is activation to be printed to printer, this reality The print control program of example offer is provided, also includes:
S202: inquire about the state of described printer;
S203: when the state receiving described printer transmission normally notifies, send described first print out task to institute State printer.
It is understood that the state of printer includes: normal condition and scarce paper, lack ink, the abnormality such as offline.When beating When print machine state is normal, sends state to host computer and normally notify, to notify the host computer now can direct normal print.Afterwards, Host computer can send data to be printed to printer, starts to print.
Additionally, when abnormality in printer, also corresponding abnormal state can be sent to host computer and notify, this notice Carry abnormal information, so that staff notifies the abnormality of exclusion printer it is ensured that each print according to this abnormal state Correct.When abnormality in printer, print flow process and interrupt.Due to when receiving print command by number to be printed According to being saved in transmit queue, after the abnormality of exclusion printer sends the normal notice of state, can be directly by transmit queue In data is activation to be printed to printer, start print.In above-mentioned steps, need not receiving printing orders again, it is to avoid weight The problems such as repeat book keeping operation in the financial management being likely to result in during print command is sent in recurrence, improves the automatization level of equipment.
On this basis, after by data is activation to be printed to printer, the print control program that the present embodiment provides, Also include:
S205: when not receiving the first printing completion notice that described printer sends, by the described first number to be printed According to status indication be prints unsuccessfully, end printing process concurrency send miscue.
When not receiving the first printing completion notice of printer transmission, that is, mistake (as beaten in explanation print procedure Print loss of data or cause to print unsuccessfully by the abnormality of printer), need to again print the first data to be printed.At this moment, on Position machine terminates to print flow process, continues this mistake to prevent from subsequently printing, and need to send miscue to notify staff Exclusion causes the factor of misprint.When print command carries multiple data to be printed, this also can be printed by host computer In instruction remaining data to be printed preserve it is ensured that subsequently can the remaining data to be printed of normal print, need not receive again and beat Print instruction.
Need exist for illustrating, those skilled in the art can set content and the transmission of miscue according to practical situation Mode, such as this miscue can be networked and be sent to staff, also can be believed the fault of printer according to the feedback of printer Breath includes sending in miscue, and other forms here will not enumerate, and specific implementation and process are here also no longer Repeat.
The print control program that the present embodiment provides, also includes:
S206: when described print command also carries the second data to be printed, inquire about the state of described printer again;
S207: when the state receiving described printer transmission normally notifies, send the second print out task and beats to described Print machine, described second print out task carries the described second data to be printed;
S208: when receiving the second printing completion notice that described printer sends, by the described second data to be printed Status indication be prints successfully, described second print completion notice is sent according to described second print out task.
When print command carries multiple data to be printed, each data to be printed is separately printed, once only by one Individual data is activation to be printed prints to printer, sends next after previous data-printing success to be printed again to printer Data to be printed.It is understood that the printing flow process of each data to be printed is identical, i.e. step s206-s208 and step S202-s204 is similar, and the flow process not received after printing success when printing every time is also similar, and this is no longer going to repeat them.
It should be noted that when carrying multiple data to be printed in print command, one by one that each is to be printed successively Data is activation prints to printer, and inquires about the state of printer before each printing, can reduce whole printing to greatest extent During artificial uncontrollable factor (as print data loss, printer fault etc.) to the impact being printed as power, improve and set Standby reliability and automatization level.
The print control program being provided based on above-described embodiment, the embodiment of the present invention additionally provides a kind of print control dress Put.
Device embodiment one:
Referring to Fig. 3, this figure is the structural representation of the print control unit embodiment one that the present invention provides.
The print control unit that the present embodiment provides, comprising: task sending module 100, notice receiver module 200 and state Mark module 300;
Described task sending module 100, for sending the first print out task to printer, described first print out task carries There is the first data to be printed;
Described notice receiver module 200, for receiving the first printing completion notice that described printer sends, described first Print completion notice to be sent according to described first print out task;
Described status indication module 300, for when described notify receiver module 200 to receive described printer sends the During one printing completion notice, the status indication of the described first data to be printed is to print successfully.
The print control unit that the present embodiment provides, after task sending module is by data is activation to be printed to printer, Determine whether that the response receiving printer transmission prints success notification.Receive printing success notification when notifying receiver module When, you can determine that this data to be printed correctly prints and complete, the status indication of this data to be printed is by status indication module Print successfully, tent financial management afterwards and tax relative recording all with state for print successfully data to be printed as foundation , the print state of evidence of checking tickets without artificial nucleus.And, follow-up when again printing it is also possible to each data to be printed State is foundation, determines the data that need to print.The print control unit that the present embodiment provides, should by receiving the printing of printer Answer, the print state of record data, to ensure the correct of financial records, need not manually verify in the bill printing and whether occur The situation of misprint, can reduce the manpower intervention during bill printing, improve the automatization level of bill printing, save people Work.
Device embodiment two:
Referring to Fig. 4, this figure is the structural representation of the print control unit embodiment two that the present invention provides.Compared to Fig. 3, Present embodiments provide a kind of more specific print control unit.
The print control unit that the present embodiment provides, also includes: command reception module 400 and state-query module 500;
Described command reception module 400, for receiving printing orders, it is to be printed that described print command carries described first Data;
Described state-query module 500, for inquiring about the state of described printer;
Described notice receiver module 200, the state being additionally operable to receive described printer transmission normally notifies;
Described task sending module 100, for notifying receiver module 200 to receive the shape that described printer sends when described When state normally notifies, send described first print out task to described printer.
Described state-query module 500, is additionally operable to when described print command also carries the second data to be printed, in institute State the shape notifying receiver module 200 to inquire about described printer after receiving the normal notice of state that described printer sends again State;
Described task sending module 100, is additionally operable to notify receiver module 200 to receive what described printer sent when described When state normally notifies, send the second print out task to described printer, described second print out task carries described second and treats Print data;
Described notice receiver module 200, is additionally operable to receive the second printing completion notice that described printer sends, and described the Two printing completion notices send according to described second print out task;
Described status indication module 300, is additionally operable to notify receiver module 200 to receive what described printer sent when described During the second printing completion notice, the status indication of the described second data to be printed is to print successfully.
The print control unit that the present embodiment provides, also includes: terminates module 600 and prompting sending module 700;
Described status indication module 300, is additionally operable to send when described notice receiver module 200 does not receive described printer First printing completion notice when, by the status indication of the described first data to be printed be print unsuccessfully;
Described termination module 600, for notifying receiver module 200 not receive the first of described printer transmission when described When printing completion notice, terminate to print flow process;
Described prompting sending module 700, for notifying receiver module 200 not receive what described printer sent when described During the first printing completion notice, send miscue.
The print control program being provided based on above-described embodiment and device, the embodiment of the present invention additionally provides a kind of printing and is System it is adaptable to above-described embodiment provide print control program and device.
System embodiment one:
Referring to Fig. 5, this figure is the structural representation of the print system embodiment one that the present invention provides.
The printing equipment that the present embodiment provides, comprising: host computer 10 and printer 20;
Described host computer 10, for sending the first print out task to described printer 10, described first print out task carries There is the first data to be printed;
Described printer 20, prints completion notice extremely for after having printed the described first data to be printed, sending first Described host computer 10;
Described host computer 10, is additionally operable to when receiving the first printing completion notice that described printer 20 sends, by institute The status indication stating the first data to be printed is to print successfully.
Additionally, in another kind of implementation of print system provided in an embodiment of the present invention,
Described host computer 10, is additionally operable to receiving printing orders, and described print command carries the described first data to be printed;
Described host computer 10, is additionally operable to send status inquiry instruction to described printer 20;
Described printer 20, is additionally operable to transmission state and normally notifies to described host computer 10;
Described host computer 10, is additionally operable to, when the described state receiving described printer 20 transmission normally notifies, send Described first print out task is to described printer 20.
Also, it should be noted when carrying multiple data to be printed in print command, by each data to be printed separately Print, once only a data is activation to be printed to printer is printed.After previous data-printing success to be printed again to Printer sends next data to be printed, and the printing flow process of each data to be printed is identical with foregoing description, prints flow process such as Under:
After completing to print preparation, host computer receiving printing orders, print command carries multiple data to be printed.It Afterwards, host computer inquiry printer modes, when host computer state is normal, by the first data is activation to be printed to printer;When beating During print machine abnormal state, terminate to print flow process, and send maintenance prompting.Then, after printer completes to print, send and print successfully Notify to host computer.After host computer receives printing success notification, the first data markers to be printed are to print successfully, and again Inquiry printer modes, when host computer state is normal, by the second data is activation to be printed to printer;When printer modes are different Chang Shi, terminates to print flow process, and sends maintenance prompting.And when host computer does not receive printing success notification, terminate to print stream Journey, and send maintenance prompting.When print procedure abnormal, circulation execution above-mentioned steps, in print command all Data to be printed all prints successfully, prints flow process and terminates.
The print system that the present embodiment provides, data is activation to be printed to printer, printer are being printed as by host computer Send after work(and print success notification to host computer.Host computer determines whether that the response receiving printer transmission prints and successfully leads to Know.When host computer receives printing success notification, you can determine that this data to be printed correctly prints and complete, this is to be printed The status indication of data is to print successfully, and tent financial management afterwards and tax relative recording are all successful for printing with state Data to be printed is according to the print state of evidence of checking tickets without artificial nucleus.And, host computer also may be used during follow-up printing again Directly with the state of each data to be printed as foundation, determine the data that need to print, and the data is activation that need are printed extremely prints Machine.In the print system that the present embodiment provides, host computer passes through to receive the printing response of printer, the printing shape of record data State, to ensure the correct of financial records, need not manually verify the situation whether misprint in the bill printing, can subtract Manpower intervention during few bill printing, improves the automatization level of bill printing, saves artificial.
System embodiment two:
Referring to Fig. 6, this figure is the structural representation of the print system embodiment two that the present invention provides.Compared to Fig. 5, this reality Apply and provide a kind of more specific print system.
Because the bill of different size is when using first, printer needs correction identification bill specification, during this Invalidated ticket can be produced.Especially in the case that entire volume bill does not have head test ticket, more invalidated tickets can be produced, waste money Source.Meanwhile, it is also required to a number of printing during the adjustment of printer cutter location just can calibrate, there is also above-mentioned generation The problem of invalidated ticket.
For the problems referred to above, the present embodiment adopts the following technical scheme that to complete to print set-up procedure:
Bank slip recognition process: after entire volume bill is correctly installed in printer, is arranged according to sola bill specification and print The testing length of machine.It is understood that testing length is directly proportional to the accuracy of identification of printer.Afterwards, printer is made to enter Bank slip recognition state, printer carries out paper delivery according to the testing length setting, and identifies the black mark on bill, to determine this volume ticket According to bill specification (including black target position on the width of every bill and height and every bill), and by this volume bill Bill specification is stored in printer.Printer determines the print position of ticket contents according to the bill specification identifying, and with This is to predeterminated position according to mobile printhead.During formal printing, printhead is controlled to be to start to print from preset value.It is appreciated that , printer goes out character segment and is referred to as printhead.
Bill position fixing process: due to needing outside paper feed to identify bill specification in above-mentioned steps.At this moment, do not produce for reaching Invalidated ticket, the purpose economizing on resources, need to be retracted in printer printer in the bill carrying out transmitting out during bank slip recognition manually Portion, and the starting position of entire volume bill is positioned default specified location, with the position of printhead prints when ensureing formally to print Put accurately.
Therefore, in the print system that the present embodiment provides, described printer, comprising: recognition unit 21, positioning unit 22 and Printhead 23;
Described recognition unit 21, for identifying the specification of bill in described printer, and the specification of described bill is sent To described positioning unit 22, the specification of described bill, comprising: black target position in the size of described bill and described bill;
Described positioning unit 22, for the specification according to described bill, movement described printhead 23 is to predeterminated position;
Need exist for illustrating, predeterminated position determines according to printer control program, that is, when the start bit of entire volume bill Put when being positioned accurate, printer prints the position zero deflection of content.
After above-mentioned bank slip recognition process and bill position fixing process, printer can be normal according to the black cursor position of bill Precise Printing.But, need in some cases to finely tune printer cutter location and black target relative position further, to ensure The size of every bill and content intact.Now, also need to follow the steps below, to complete to printing set-up procedure:
In the case of having test ticket head for the entire volume bill using first, in host computer after bank slip recognition and positioning Operation interface is finely adjusted.Concrete operations are: click on a testing button, send test command to printer.Printer receives To after test command, print a test ticket cut paper.Afterwards, the position of cut paper and black mark relative position on this bill are determined Whether meet the requirements, and carry out cutter location fine setting on a printer, the position of cut paper meets the requirements and will be whole on bill Till the test ticket of volume bill cuts.So, both enabled to fight each other print machine upper cutter position fine setting moreover it is possible to by entire volume bill The test paper of head removes to carry out subsequently formal print procedure.
In the case of not testing ticket head for the entire volume bill using first, operate paper feed function on a printer, see Whether the paper feed position examining every bill meets the requirements, and according to cursor position adjustment printer upper cutter skew black on every bill Amount, on bill, the position of cut paper meets the requirements.Afterwards, manually the bill transmitting out is retracted into printer, and will The starting position of entire volume bill is positioned default specified location.
Through above-mentioned printing set-up procedure, you can make the printer system that the present embodiment provides be suitable for different regions different size Bill printing, reduce invalidated ticket produce probability it is ensured that financial records correct, improve the reliability of self-service equipment.Need Illustrate, only need to carry out above-mentioned printing set-up procedure in each bill changing different size.
It is understood that above-mentioned be only exemplary explanation, this area skill to the concrete detailed description printing set-up procedure Art personnel also can be completed bank slip recognition, bill positioning and cutter location fine setting etc. and print beam worker using other technologies means Make, with when ensureing formally to print bill printing correct.
It should be noted that each embodiment is described by the way of going forward one by one in this specification, each embodiment emphasis is said Bright is all the difference with other embodiment, between each embodiment identical similar portion mutually referring to.For reality For applying system disclosed in example or device, because it corresponds to the method disclosed in Example, so description is fairly simple, related Part is referring to method part illustration.
Also, it should be noted herein, such as first and second or the like relational terms are used merely to one Entity or operation are made a distinction with another entity or operation, and not necessarily require or imply between these entities or operation There is any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant are intended to contain Comprising of lid nonexcludability, wants so that including a series of process of key elements, method, article or equipment and not only including those Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element that limited by sentence "including a ..." it is not excluded that Also there is other identical element including in the process of described key element, method, article or equipment.
The step of the method in conjunction with the embodiments described herein description or algorithm can directly be held with hardware, processor The software module of row, or the combination of the two is implementing.Software module can be placed in random access memory (ram), internal memory, read-only deposit Reservoir (rom), electrically programmable rom, electrically erasable rom, depositor, hard disk, moveable magnetic disc, cd-rom or technology In known any other form of storage medium in field.
The above, be only presently preferred embodiments of the present invention, and not the present invention is made with any pro forma restriction.Though So the present invention is disclosed above with preferred embodiment, but is not limited to the present invention.Any it is familiar with those skilled in the art Member, without departing under technical solution of the present invention ambit, can be utilized the methods and techniques content of the disclosure above to the present invention Technical scheme makes many possible variations and modification, or the Equivalent embodiments being revised as equivalent variations.Therefore, every without departing from The content of technical solution of the present invention, according to the present invention technical spirit to any simple modification made for any of the above embodiments, equivalent Change and modification, all still fall within the range of technical solution of the present invention protection.

Claims (10)

1. a kind of print control program is it is characterised in that include:
Send the first print out task to printer, described first print out task carries the first data to be printed;
When receiving the first printing completion notice that described printer sends, by the status indication of the described first data to be printed For printing successfully, described first printing completion notice sends according to described first print out task.
2. print control program according to claim 1 is it is characterised in that described transmission first print out task is to printing Machine, also includes before:
After completing to print preparation, receiving printing orders, described print command carries the described first data to be printed;
Inquire about the state of described printer;
When the state receiving described printer transmission normally notifies, send described first print out task to described printer.
3. print control program according to claim 2 is it is characterised in that the described shape by the described first data to be printed State is labeled as printing successfully, also includes afterwards:
When described print command also carries the second data to be printed, inquire about the state of described printer again;
When the state receiving described printer transmission normally notifies, send the second print out task to described printer, described Second print out task carries the described second data to be printed;
When receiving the second printing completion notice that described printer sends, by the status indication of the described second data to be printed For printing successfully, described second printing completion notice sends according to described second print out task.
4. print control program according to claim 1 is it is characterised in that described transmission first print out task is to printing Machine, also includes afterwards:
When not receiving the first printing completion notice that described printer sends, by the state mark of the described first data to be printed It is designated as printing unsuccessfully, terminate printing process concurrency and send miscue.
5. a kind of print control unit is it is characterised in that include: task sending module, notice receiver module and status indication mould Block;
Described task sending module, for sending the first print out task to printer, described first print out task carries first Data to be printed;
Described notice receiver module, for receiving the first printing completion notice that described printer sends, described first has printed Become and notify to be sent according to described first print out task;
Described status indication module, for completing when described the first printing notifying receiver module to receive described printer transmission During notice, the status indication of the described first data to be printed is to print successfully.
6. print control unit according to claim 5 is it is characterised in that also include: command reception module and state are looked into Ask module;
Described command reception module, for complete print preparation after, receiving printing orders, described print command carries Described first data to be printed;
Described state-query module, for inquiring about the state of described printer;
Described notice receiver module, the state being additionally operable to receive described printer transmission normally notifies;
Described task sending module, for normally notifying when the described state notifying receiver module to receive described printer transmission When, send described first print out task to described printer.
7. print control unit according to claim 6 it is characterised in that
Described state-query module, is additionally operable to when described print command also carries the second data to be printed, in described notice Receiver module inquires about the state of described printer again after receiving the normal notice of state that described printer sends;
Described task sending module, is additionally operable to notify receiver module to receive the positive normal open of state that described printer sends when described When knowing, send the second print out task to described printer, described second print out task carries the described second data to be printed;
Described notice receiver module, is additionally operable to receive the second printing completion notice that described printer sends, described second printing Completion notice sends according to described second print out task;
Described status indication module, is additionally operable to print when described notice receiver module receives the second of described printer transmission When becoming to notify, the status indication of the described second data to be printed is to print successfully.
8. print control unit according to claim 5 is it is characterised in that also include: terminates module and prompting sends mould Block;
Described status indication module, is additionally operable to notify receiver module not receive the first printing that described printer sends when described During completion notice, the status indication of the described first data to be printed is to print unsuccessfully;
Described termination module, for completing to lead to when described the first printing notifying receiver module not receive described printer transmission When knowing, terminate to print flow process;
Described prompting sending module, for having printed when described notice receiver module does not receive the first of described printer transmission When becoming to notify, send miscue.
9. a kind of print system is it is characterised in that include: host computer and printer;
Described host computer, for sending the first print out task to described printer, described first print out task carries first and treats Print data;
Described printer, on, after having printed the described first data to be printed, transmission the first printing completion notice is extremely described Position machine;
Described host computer, is additionally operable to, when receiving the first printing completion notice that described printer sends, described first be treated The status indication of print data is to print successfully.
10. print system according to claim 9 it is characterised in that
Described host computer, is additionally operable to receiving printing orders, and described print command carries the described first data to be printed;
Described host computer, is additionally operable to send status inquiry instruction to described printer;
Described printer, is additionally operable to transmission state and normally notifies to described host computer;
Described host computer, is additionally operable to, when the described state receiving described printer transmission normally notifies, send described first Print out task is to described printer.
CN201610782912.8A 2016-08-31 2016-08-31 Printing control method and device and printing system Pending CN106354447A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610782912.8A CN106354447A (en) 2016-08-31 2016-08-31 Printing control method and device and printing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610782912.8A CN106354447A (en) 2016-08-31 2016-08-31 Printing control method and device and printing system

Publications (1)

Publication Number Publication Date
CN106354447A true CN106354447A (en) 2017-01-25

Family

ID=57857437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610782912.8A Pending CN106354447A (en) 2016-08-31 2016-08-31 Printing control method and device and printing system

Country Status (1)

Country Link
CN (1) CN106354447A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107247567A (en) * 2017-05-12 2017-10-13 四川长虹电器股份有限公司 Uploaded based on multi-user's line and develop and print system and method under the line of drawing system
CN108428309A (en) * 2018-01-09 2018-08-21 国网山东省电力公司滨州供电公司 A kind of automatic selling motor bill printing monitoring system
CN110399106A (en) * 2019-07-18 2019-11-01 浙江口碑网络技术有限公司 Print control program, the apparatus and system of bill printer
CN110688075A (en) * 2018-07-07 2020-01-14 森大(深圳)技术有限公司 Printing abnormity detection method, device and system
CN110865776A (en) * 2019-09-30 2020-03-06 浙江口碑网络技术有限公司 Bill printing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383070A (en) * 2007-09-05 2009-03-11 山东新北洋信息技术股份有限公司 Print control method and device
CN101905578A (en) * 2010-07-19 2010-12-08 山东新北洋信息技术股份有限公司 Printer and control method thereof
CN101913296A (en) * 2010-07-21 2010-12-15 山东新北洋信息技术股份有限公司 Printing system, control method thereof, information recorder
CN102789373A (en) * 2011-05-16 2012-11-21 山东新北洋信息技术股份有限公司 Print system, control method of print system, printer and control method of printer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383070A (en) * 2007-09-05 2009-03-11 山东新北洋信息技术股份有限公司 Print control method and device
CN101905578A (en) * 2010-07-19 2010-12-08 山东新北洋信息技术股份有限公司 Printer and control method thereof
CN101913296A (en) * 2010-07-21 2010-12-15 山东新北洋信息技术股份有限公司 Printing system, control method thereof, information recorder
CN102789373A (en) * 2011-05-16 2012-11-21 山东新北洋信息技术股份有限公司 Print system, control method of print system, printer and control method of printer

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107247567A (en) * 2017-05-12 2017-10-13 四川长虹电器股份有限公司 Uploaded based on multi-user's line and develop and print system and method under the line of drawing system
CN108428309A (en) * 2018-01-09 2018-08-21 国网山东省电力公司滨州供电公司 A kind of automatic selling motor bill printing monitoring system
CN108428309B (en) * 2018-01-09 2022-05-24 国网山东省电力公司滨州供电公司 Automatic electricity selling ticket printing monitoring system
CN110688075A (en) * 2018-07-07 2020-01-14 森大(深圳)技术有限公司 Printing abnormity detection method, device and system
CN110399106A (en) * 2019-07-18 2019-11-01 浙江口碑网络技术有限公司 Print control program, the apparatus and system of bill printer
CN110865776A (en) * 2019-09-30 2020-03-06 浙江口碑网络技术有限公司 Bill printing method and device

Similar Documents

Publication Publication Date Title
CN106354447A (en) Printing control method and device and printing system
US7899235B1 (en) Image exchange send non-BOFD identification
CN101905578B (en) Printer and control method thereof
CN111091349B (en) Certificate binding system, method and equipment
US20060070055A1 (en) Method of updating printer firmware and printing device employing the method
US20120054099A1 (en) Method and system for virtual processing of checks deposited in automated teller machines
CN101383070B (en) Print control method and device
CN108762698A (en) A kind of consumptive material method for anti-counterfeit and imaging print system
US9659465B2 (en) Problem resolution validation
CN101840316B (en) Print management apparatus, and printer system
JP3440575B2 (en) POS system and control method thereof
CN203012738U (en) Material error proofing information contrast system
EP1229436A1 (en) Method and apparatus for embodying documents
KR20090003435A (en) Automatic teller machine prediction maintenance system and method for maintaining automatic teller machine predictively using the same
US20060069825A1 (en) Method and system of transferring firmware from a host device to a printing device
KR100686291B1 (en) A method for printing security documents using sheets with identifiers
JP3341057B2 (en) Securities issuing equipment
US9207891B1 (en) Hidden information at flush pattern locations for print jobs
CN106346958A (en) Intelligent receipt printer
JP2004348414A (en) Print controller of pos system, and registration method and initialization method for image data
JP2000132627A (en) Ocr system
CN105809853A (en) Billing system and method compatible with plurality of invoice types
JP4408360B2 (en) Automatic transaction apparatus and transaction system
CN112288961A (en) Automatic teller machine inspection device, inspection system and inspection method
EP3346376B1 (en) Printer script autocorrect

Legal Events

Date Code Title Description
C06 Publication
CB03 Change of inventor or designer information

Inventor after: Sun Yanfei

Inventor after: Chen Ping

Inventor after: Jiang Tao

Inventor after: Lu Wenlong

Inventor after: Li Yang

Inventor before: Sun Yanfei

Inventor before: Chen Ping

Inventor before: Jiang Tao

Inventor before: Lu Wenlong

Inventor before: Li Yang

COR Change of bibliographic data
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170125

RJ01 Rejection of invention patent application after publication