×

Print data generation apparatus and non-transitory computer-readable storage medium

  • US 9,373,231 B2
  • Filed: 09/26/2013
  • Issued: 06/21/2016
  • Est. Priority Date: 11/22/2012
  • Status: Active Grant
First Claim
Patent Images

1. A printing device, comprising:

  • a processor;

    a plurality of operation keys for receiving an operation from a user;

    a printer configured to print texts on a print medium;

    a plurality of data bases that includes a plurality of records associated with a plurality of template data;

    the plurality of template data being respectively associated with the plurality of operation keys, the template data assigned to each of said plurality of operation keys being all different; and

    a memory configured to store said data bases having said plurality of records in which texts are respectively set for fields, the template data in which at least arrangement positions of the texts to be printed on the print medium are set, link information associating arrangement positions in the template data with the fields of the databases, template data that is linked with the database and template data that is not linked with the database existing together and computer-readable instructions that instruct the processor to execute steps comprising;

    detecting operation of the operation keys by the user;

    determining whether the template data corresponding to the operated operation key is the template data in which the arrangement positions and the fields of the data base is associated by the link information, when it is detected that one of the operation keys has been operated by the user;

    selecting default texts that are set in advance in the template data that corresponds to the operated operation key when it is determined that the template data corresponding to the operated operation key is not the template data in which the arrangement positions and the fields are associated by the link information, and generating print data to print the selected default texts;

    determining whether, when it is determined that the template data corresponding to the operated operation key is the template data in which the arrangement positions and the fields are associated by the link information, a template number has been changed, the template number being a number assigned to a template of template data;

    setting, when it is determined that the template number has been changed, a record number in accordance with a state in which a selection key is operated, the record number being a variable to select texts to be arranged in the arrangement positions of the template data, the selection key being included among the operation keys and being used to select a record corresponding to the set record number to be used for printing from among the plurality of records of the database;

    setting, when it is determined that the template number has not been changed, a record number corresponding to a record in accordance with a number of times of operation of the operation key;

    generating the print data such that the texts that are respectively set for the fields of the record corresponding to the set record number are arranged in the arrangement positions that are associated with the fields by the link information, andcausing the printer to print the generated print data on the print medium.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×