Caused by: com.aspose.cells.CellsException

Hi,


When generating preview I got an CellException error

Code for generating preview
 Workbook workbook = new Workbook(filepath);  
 WorksheetCollection worksheetCollection = workbook.getWorksheets();  
 ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();  
 imgOptions.setImageFormat(getImageFormat(ImageFormat.getPng());  
 imgOptions.setOnePagePerSheet(onePagePerSheet);  
 imgOptions.setHorizontalResolution(150);  
 imgOptions.setVerticalResolution(150);  
 imgOptions.setOnlyArea(areaOnly);  
 for (int i = 0; i < worksheetCollection.getCount(); i++) {  
      Worksheet worksheet = worksheetCollection.get(i);  
      SheetRender sr = new SheetRender(worksheet, imageOrPrintOptions);  
      for (int j = 0; j < sr.getPageCount(); j++) {  
           String imageFilePath = FileUtils.getAbsoluteFilePath(destinationFilePrefix + (noOfImages++), configurationInfo.getPreviewType().getType());  
           sr.toImage(j, imageFilePath);  
      }  
 }  

Hi Ashish,

Thanks for using Aspose.Cells for Java.

We were not able to generate any exception with your source file namely: Student calendar (Mon)1.xlsx using the latest version: Aspose.Cells
for Java v7.7.1.4
. Please download and use it at your end.

I have also attached the output images generated with the latest version for your reference.

However, we were able to observe the exception with your other source file namely: Daily work schedule1.xlsx. We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as CELLSJAVA-40724.

The issues you have found earlier (filed as CELLSJAVA-40724) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.