Excel Print Setup The Excel Print Setup feature in IronXL allows developers to easily configure print settings for Excel worksheets before printing or saving them. This feature is particularly useful when generating reports, invoices, or documents that need specific formatting for printing. Developers can set custom headers and footers to include dynamic content like page numbers, titles, and other details, ensuring a professional output. The PrintSetup options also allow fine-tuning of print margins, paper size, and orientation, making it possible to adapt the document for various printers and paper types. IronXL gives developers full control over how the printed document will appear with the ability to specify paper sizes such as B4, A4, or letter sizes, as well as orientation options (portrait or landscape). Additionally, the ability to switch to black-and-white printing or disable color adds flexibility, especially for cost-effective printing scenarios. This feature streamlines the process of preparing Excel files for high-quality printed output. How to use Excel NumberFormat in C# var workBook = WorkBook.Load("sample.xlsx"); var workSheet = workBook.DefaultWorkSheet; workSheet.Header.Center = "My Document"; workSheet.PrintSetup.PaperSize = PaperSize.B4; workSheet.PrintSetup.PrintOrientation = PrintOrientation.Portrait; workBook.Save(); Learn More About Managing Excel Worksheets in C# Related Docs Links View on Github Related Tutorial Related How-To Guide Class Documentation Download IronXL DLL Report an Issue on this page Ready to Get Started? Nuget Downloads 1,696,644 | Version: 2025.11 just released Free NuGet Download Total downloads: 1,696,644 View Licenses
All your questions are answered to make sure you have all the information you need. (No commitment whatsoever.)