This article demonstrates how to programmatically set the Print Options of the Excel Worksheet Page Setup feature using the C++ API and Library. You can set the Print Area, Print Titles, and Page Order.... Assign a cell range that defines the print area...// Set the print area to the range A1:T35 pageSetup . SetPrintArea...