When a document is to be edited and the edited document is to be output to a printing apparatus, a printing apparatus to be used is designated. Either of the first mode in which all predetermined setting items stored in a storage medium in advance are selected, and the second mode in which, of the predetermined setting items, setting items controllable by the designated printing apparatus are selected is set. Setting items to be selected are determined based on the designated printing apparatus and/or set mode. The document is so controlled as to enable editing it on the basis of contents set in the selected setting items.