We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Need help- save to pdf error


I'm using pdf.dll and cell.dll

I have a workbook with some photo, when I try to save to pdf using the code:

myWorkBook.Save(xml_stream, FileFormatType.AsposePdf)

It show me the error:

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

when I try to save the workbook to excel:

myWorkBook.Save(xml_stream, FileFormatType.Excel2003)

It's ok.

I need to save the workbook into pdf. Any quick method / any code that can show me?

I have demo tomorrow. Thanks a lot.



Could you post your sample template file to reproduce the issue, it will really help us to figure out the issue soon.

And by the way could you try the latest fix attached @: <A href="</A> if it works fine.</P> <P>Thank you.</P>

cell.dll can not fix this issue.

template attached. I have demo today later, please help.

I using the following code to reproduce the issue:

Dim workbook As Aspose.Cells.Workbook = New Aspose.Cells.Workbook()

Dim fstream As FileStream = New FileStream("c:\\test2\\error.xls", FileMode.Open)

workbook.Save("c:\\test2\\error.xml", Aspose.Cells.FileFormatType.AsposePdf)

Dim pdf As Aspose.Pdf.Pdf = New Aspose.Pdf.Pdf()

pdf.BindXML("c:\\test2\\error.xml", Nothing)



Thanks for your file. We have found this error. We will fix it soon.


please try this fix.

Yes, It's work,

Thank you very much.

Best Regards,