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

Free Support Forum - aspose.com

System is not able to convert attached file to PDF

System is not able to convert the excel file to PDF.

Attached is zip file, unzip and find excel.SH2-PCE30-0100 (1).zip (684.3 KB)

below is code
MemoryStream oConvertedStream = new MemoryStream();
SPFile dccSourceLibraryPdfFile = null;
SPFile ConvertedFile = null;
Aspose.Words.Document workbook = new Aspose.Words.Document(memStr);

System throw issue on ‘memStr’ and getting Object reference is not set to instance of an object.

Please reply as soon as possible as user is awaiting for it.


Thanks for the template file and sample code segment.

Your attached MS Excel file is corrupt which cannot be opened into MS Excel as I tested (after changing the extension to .xlsx). Please attach a valid file which can be opened fine into Ms Excel manually. Also, please use Aspose.Cells APIs instead of Aspose.Words as Aspose.Cells is a spreadsheet component used to create, manipulate or render MS Excel files.