Excel save to image

Technical support for Spire.XLS

Moderators: iceblue support, Flash, Manager

Excel save to image

Postby eceballos » Wed Apr 24, 2013 2:55 am

I'm trying to save the sheets of a Excel file as a image, works fine but do not export graph.Thanks for Advice

The Code:

//Response.Write("Create Wbook Object");
var workbook = new Workbook();
//Response.Write("Try Load");
workbook.LoadFromFile(path, ExcelVersion.Version2010);
//Response.Write("Loaded:" + path);

var counter = 1;
foreach (Worksheet sheet in workbook.Worksheets)
//Response.Write("Try Save Image:" + imagefolderstore + imageprefix + "_" + counter.ToString(CultureInfo.InvariantCulture) + ".jpg");
sheet.SaveToImage(imagefolderstore + imageprefix + "_" + counter.ToString(CultureInfo.InvariantCulture) + ".jpg");
counter += 1;
Posts: 2
Joined: Fri Apr 19, 2013 5:19 pm

Re: Excel save to image

Postby amy.zhao » Wed Apr 24, 2013 3:36 am

Dear eceballos,

Thanks for your inquiry.
Sorry for that our Spire.Xls doesn't support to convert the graph to image at present, but our dev team is working on the new feature. Once the feature has been supported, we will inform you immediately.

E-iceblue support team
User avatar
Posts: 2256
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.XLS

Who is online

Users browsing this forum: No registered users and 0 guests