Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

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");
//Response.Write("Saved");
counter += 1;
}

eceballos
 
Posts: 2
Joined: Fri Apr 19, 2013 5:19 pm

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.

Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2767
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.XLS