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

Free Support Forum - aspose.com

Aspose Cells exception while converting XLS files

I am getting exception while converting few excel files.
I have tried both the jars Aspose Cells 23.1 & 23.2.
Can you please check these files Aspose Cells exception while converting XLS files.zip (177.1 KB)


I did test your scenario/case using our latest version/fix: Aspose.Cells for Java v23.2 to convert both your files to PDF, it works fine and the output PDFs are fine tuned. Here is the sample code that I am using;
Sample code:

Workbook workbook1 = new Workbook("f:\\files\\PRV-MM-TQ-00015.xls");

Workbook workbook2 = new Workbook("f:\\files\\PRV-MM-TQ-00019.xls");

Please find attached the output PDFs for your reference.
out1.pdf (99.5 KB)
out2.pdf (275.9 KB)

Could you please share your sample code segment that you are using. Also, give us your environment (OS, JDK version, CPU, RAM, etc.) details.

I am using Windows 10 and JDK 1.8
This is my sample code,
String[] fontFolders = {asposeFontDir};
FontConfigs.setFontFolders(fontFolders, true);

	  Workbook workbook = new Workbook(inputFile);
	  WorksheetCollection col = workbook.getWorksheets();
	  PdfSaveOptions opt = new PdfSaveOptions();
	  opt.setWarningCallback(new AsposeCellsCallback());
	  for (int i=0; i<col.getCount(); i++) {
		  Worksheet sheet = workbook.getWorksheets().get(i); 
	  OutputStream outStream = new ByteArrayOutputStream();
	  workbook.save(outStream, opt);


No exception occurs with your code on our side. Please share us a runnable code to reproduce the issue(e.g. the implement of AsposeCellsCallback in your code.)

Also, share us the exception stack info on your side.

Here is source code with callback implementation SourceCode.zip (833 Bytes)

Not getting any callback warning in logs, just getting this exception " java.lang.Exception"


We are not getting exceptions for your two source files with your code.
Please share us which version of Aspose.Cells you are using, and share us the full exception stack info.

I am using Aspose Cells 23.3
Not getting any other exceptions except ‘java.lang.expection’


You got exception java.lang.Exception for the two files with Aspose.Cells 23.3? If yes, please share us the full exception stack info.