This article provides sample code that shows how to programmatically set various headers and footers of Excel worksheet Page Setup settings using the C++ Library and API. You can set the headers and footers for the first page, odd pages, and even pages....Headers and Footers For Different Pages with C++ Contents [ Hide ] MS...for the first page, odd pages, and even pages since Excel 2007...