Sign In  Sign Up Live-Chat

get Excel chart as image (in Java)

Last post 03-01-2008, 8:21 AM by Amjad Sahi. 3 replies.
Sort Posts: Previous Next
  •  02-29-2008, 6:46 AM 115537

    get Excel chart as image (in Java)

    Hi,

    I just downloaded the evaluation version of Aspose.Cells for Java. I am interested in reading Excel spreadsheets in Java, not creating ones. I browsed the documentation, but I can't see a method for reading (exporting) Charts as images, for example png. Did I miss something or simply it is not possible?

    Regards,

    Plamen


    This message was posted using Page2Forum from Aspose.Cells for .NET and Java - Documentation
     
  •  02-29-2008, 7:53 AM 115553 in reply to 115537

    Re: get Excel chart as image (in Java)

    Hi,

    The feature is not available for Java version of the component currently, we will support it soon.

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Nanjing Team
    Contact Us
     
  •  03-01-2008, 8:01 AM 115663 in reply to 115553

    Re: get Excel chart as image (in Java)

    Attachment: Present (inaccessible)

    Hi again!

    I downloaded the .Net library and tried the ToImage() method of the Chart object:

     

    Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook();

    workbook.Open("c:\\temp\\chart.xls");

    Aspose.Cells.Chart chart = workbook.Worksheets[0].Charts[0];

    chart.ToImage("c:\\temp\\chart.jpg");

     

    The generated image does not look good! No any text anywhere! I tried several examples, even some of your Aspose.Cells-generated documents and none of the generated images looked identical to the chart. The format of the image (jpg, gif, etc.) was irrelevant.

    On top of that, if the document is in Excel 2007 xlsx format, the Charts collection is empty.

    I attach the examples.

    Any estimate when toImage() will be available in Java? Is it going to work more reliably?

    Regards,

    Plamen

     
  •  03-01-2008, 8:21 AM 115664 in reply to 115663

    Re: get Excel chart as image (in Java)

    Hi,

    Thanks for reporting with template files.

    We will fix it for .NET version of Aspose.Cells for (.xls files) soon.

    For Excel2007 .xlsx files, the feature is not supported yet, we will support it soon.

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Nanjing Team
    Contact Us
     
View as RSS news feed in XML