Rendre une page PDF par feuille de calcul Excel Conversion Excel en PDF

Contents
[ ]

Veuillez consulter le code d’exemple suivant qui convertit un fichier Excel avec plusieurs feuilles de calcul en PDF.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
// Initialize a new Workbook
// Open an Excel file
Workbook workbook = new Workbook(dataDir+ "input.xlsx");
// Implement one page per worksheet option
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.OnePagePerSheet = true;
// Save the PDF file
workbook.Save(dataDir+ "OutputFile.out.pdf", pdfSaveOptions);