A non-transitory computer-readable storage medium storing an application program for causing a computer to execute a control method for an information processing apparatus that causes a printing apparatus to execute printing, the application program cooperating with a general printer driver, the control method comprising:
- obtaining intermediate data including a predetermined print setting, the intermediate data being data of a plurality of pages, and the predetermined setting being different among the pages;
- determining whether or not the printing apparatus has a capability of mixed-sheet printing, the general printer driver not being capable of the mixed-sheet printing;
- generating print data for causing the printing apparatus to execute the mixed-sheet printing based on the intermediate data;
- and
- transmitting the generated print data to the printing apparatus,
- wherein generating the print data includes, in a case that the printing apparatus does not have the capability of the mixed-sheet printing, obtaining the predetermined print settings included in the intermediate data in order of the pages to be printed, sequentially comparing the predetermined print setting of each page with the predetermined print setting of an immediately preceding page to detect a change in the predetermined print setting, and generating a plurality of pieces of print data based on a plurality of pieces of divided intermediate data obtained by dividing the intermediate data at each detected change based on differences among the predetermined print settings of the plurality of pages.