In this article, you will learn how to set the margins of an Excel worksheet using sample code. You will also learn how to programmatically set the margins for the page centre, the header and footer margins of Page Setup using the C# API or .NET Library....class provides the PageSetup property used to set the page setup...a worksheet. The PageSetup property is an object of the PageSetup...