Patent ID: 7433868

Claim:
A method of controlling an information processing apparatus accessible to a first database and a second database, the first database storing a plurality of pieces of first information and their properties associated with unique identification codes, and the second database storing a plurality of pieces of second information and their properties, said method comprising the steps of: receiving a unique identification code from an external communication apparatus; retrieving a piece of the first information and its property corresponding to the received unique identification code from the first database in a first retrieval step; retrieving for a plurality of pieces of the second information and their properties from the second database based on the property of the retrieved piece of the first information in a second retrieval step; setting a printing priority on each of the retrieved pieces of the second information based on the properties of the retrieved pieces of the second information; preparing a plurality of printing layout examples for printing the retrieved pieces of the second information to be printed with the retrieved piece of the first information, each of the printing layout examples including at least one of the retrieved pieces of the second information based on the printing priorities; selecting one printing layout example from the plurality of printing layout examples; and creating printing data for printing the retrieved piece of the first information and the at least one of the retrieved pieces of the second information according to the selected printing layout example.