According to one embodiment of the present invention, disclosed is a computer program, stored in a computer-readable medium, for supporting at least two different executable document file formats. The computer program includes commands for allowing a computer to perform the following steps: recognizing a first document file on the basis of a request for executing the first document file; determining the file format of the first document file; determining the menu frame type of the first document file to be displayed in response to at least one among user selection input regarding the file format of the first document file and the menu frame type of the first document file; and displaying the determined menu frame of the first document and a document output frame for the first document file.