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 .NET API. You can set the headers and footers For the first page, odd pages and even pages....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 .NET API. You can set the headers and footers for the first page, odd pages and even pages.