Print data generation apparatus and non-transitory computer-readable storage medium
First Claim
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.
1 Assignment
0 Petitions
Accused Products
Abstract
A print data generation apparatus generating print data includes a processor, and a memory configured to store a database having a plurality of records in which texts are respectively set for fields, template data which is associated with one of operation keys and in which at least arrangement positions of the texts to be printed are set, link information associating arrangement positions in the template data with the fields of the database, and computer-readable instructions instructing the processor to execute steps including detecting operation of the operation keys, selecting, from among the plurality of records of the database, the record to be used for printing, and generating print data such that the texts that are respectively set for the fields of the selected record are arranged in the arrangement positions associated with the fields by link information, by using the template data corresponding to the operated operation key.
9 Citations
5 Claims
-
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, and causing the printer to print the generated print data on the print medium. - View Dependent Claims (2, 3, 4, 5)
-
Specification