In previous versions, converting Excel files to Pdf needs two components: Aspose.Cells and Aspose.Pdf. With the new version v4.7.0, users can use Aspose.Cells for .NET only to implement this feature. This new change greatly optimizes speed and memory usage.

You will utilize the overloaded Save method of the Workbook class providing the SaveFormat.Pdf enum member that converts the native excel file to pdf format.

The above steps are implemented in the following example.



// Instantiate the Workbook object
// Open an Excel file
Workbook workbook = new Workbook("Book1.xls");

// Save the document in PDF format
workbook.Save("output.pdf", SaveFormat.Pdf);


Dim workbook As Workbook = New Workbook("Book1.xls")
workbook.Save("output.pdf", SaveFormat.Pdf)

Please download and try the new version at: