Free Support Forum - aspose.com

Convert xls (Excel 2003) to pdf

Hello,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

I try to convert an excel 2003 file (xls) to pdf file.

I use VS 2010 on Windows 7, and Aspose.Cells.net 7.0.1

book.save generates an exception

Here is the code :

Dim book As Workbook

Dim inStream As MemoryStream = New MemoryStream(bFileW) 'bFileW: excel file (xls) bytes

Dim outStream As MemoryStream = New MemoryStream()

book = New Aspose.Cells.Workbook(inStream,New Aspose.Cells.LoadOptions(Aspose.Cells.LoadFormat.Excel97To2003))

book.Save(outStream, Aspose.Cells.SaveFormat.Pdf)

This code works with Aspose.cells.net 6.0.1

The xls file is in 'File Attachment'

I have already lost a lot of time with this problem.

I ask you to verify the conversion of the xlsx files too.

Thank you for your response.

Best Regards.

Hi,

Please use the latest version: Aspose.Cells for .NET v7.0.1.5 it is working fine.


Thank you.