Chart to Image

Last post 08-29-2011, 2:44 AM by aspose.notifier. 4 replies.
Sort Posts: Previous Next
  •  08-04-2011, 7:26 AM 320530

    Chart to Image .NET

    Attachment: Present (inaccessible)
    Hello
    I've just installed the latest version (6.0.1.4) of the Aspose.Cells component (only demo) to try if it can help us with exporting our Excel charts to images.

    We try to get better result than the built-in VBA function (Export) offers, especially we are focused on the image quality.

    For genarting image by aspose I use code like this
    //Create a new workbook.
    Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook();
    //Open the existing excel file which contains the pie chart.
    workbook.Open(path+fileName);
    //Get the designer chart
    Aspose.Cells.Charts.Chart chart = workbook.Worksheets["Figure 9"].Charts[0];
    //Convert the chart to an image file.
    System.Drawing.Bitmap bitmap = chart.ToImage();
                            
    bitmap.Save(path + "Aspose.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
    bitmap.Save(path + "Aspose.gif", System.Drawing.Imaging.ImageFormat.Gif);
    bitmap.Save(path + "Aspose.png", System.Drawing.Imaging.ImageFormat.Png);
    bitmap.Save(path + "Aspose.tiff", System.Drawing.Imaging.ImageFormat.Tiff);
    But the output image is quite blurry and also it doesn't respect size of the chart area.
    Look at the attachments

    What should I have to set to get better image?

    Thanks
    Pat
    Filed under: Chart;quality;ToImage
     
  •  08-04-2011, 8:09 AM 320542 in reply to 320530

    Re: Chart to Image

    Hi,

    Thanks for reporting the problem and your files.

    I have logged this issue in our database. We will fix this bug and let you know asap.

    This issue has been logged as CELLSNET-29628.

    Many Thanks and Kind Regards,

    Shakeel Faiz
    Support Developer
    Aspose Sialkot Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

    Keep in touch! We're on Twitter and Facebook
     
  •  08-10-2011, 4:22 AM 321511 in reply to 320530

    Re: Chart to Image

    Attachment: Present (inaccessible)
    Hi,

    We have fixed this issue. Please download: Aspose.Cells for .NET v6.0.1.6

    Many Thanks and Kind Regards,

    Shakeel Faiz
    Support Developer
    Aspose Sialkot Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

    Keep in touch! We're on Twitter and Facebook
     
  •  08-10-2011, 7:35 AM 321573 in reply to 321511

    Re: Chart to Image

    Excellent. Thank you
     
  •  08-29-2011, 2:44 AM 324937 in reply to 320530

    Re: Chart to Image

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


    This message was posted using Notification2Forum from Downloads module by aspose.notifier.
     
View as RSS news feed in XML