Convert excel to SVG

i'm getting this error:
java.lang.NoClassDefFoundError: com/sun/media/imageio/plugins/tiff/TIFFImageWriteParam

when trying to convert excel to SVG:

This is my code:

public static void excelToSVG(InputStream stream, OutputStream out) throws Exception {
Workbook workbook = new Workbook(stream);
workbook.save(out,SaveFormat.SVG);
}

is there a solution?

Hi Gil,

Thanks for your posting and using Aspose.Cells.

Please add the JAI library in your class path and see if it resolves your issue. You need to add the following jar files in your class path.

  • jai_core.jar
  • jai_imageio-1.1.jar

Thanks for the answer. I got rid from the exception.

Plus my code wasn’t properly use your API so after using this exmaple:

Converting/Extracting Excel Charts/Selection Ranges to an SVG Image

It seems to work.
Thanks!

Hi Gil,

Thanks for your feedback and using Aspose.Cells.

It is good to know that you were able to sort out this issue. Let us know if you encounter any other issue, we will be glad to look into it and help you further.