In controlling a network printer, a driver program of the printer
connected through the network is installed. A first network group
identifier step acquires a group identifier of the network according to
the installation or a network group identifier based on the group
identifier. An identifier of the printer and the network group identifier
are stored in association with each other. A printing request is
performed for requesting a printer connected through the network, which
is the same as or different from the printer of which the driver program
is installed, to perform a printing process. A second network group
identifier step acquires, in accordance with the printing request, a
group identifier of the network to which the user is connected or a
network group identifier.