Configuration d'impression Excel 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# Liens de documentation associés Voir sur Github Tutoriel connexe Guide pratique connexe Documentation de classe Télécharger IronXL DLL Signaler un problème sur cette page Prêt à commencer? Nuget Téléchargements 1,686,155 | Version : 2025.11 vient de sortir Téléchargement gratuit NuGet Total des téléchargements :1,686,155 Voir Licences
Testez dans un environnement en direct Testez en production sans filigranes.Fonctionne où que vous en ayez besoin.
Produit entièrement fonctionnel Profitez de 30 jours de produit entièrement fonctionnel.Configurez-le et faites-le fonctionner en quelques minutes.
Testez dans un environnement en direct Testez en production sans filigranes.Fonctionne où que vous en ayez besoin.
Produit entièrement fonctionnel Profitez de 30 jours de produit entièrement fonctionnel.Configurez-le et faites-le fonctionner en quelques minutes.