Reply to topic  [ 3 posts ] 
Get chart from Excel 
Author Message

Joined: Tue Nov 06, 2007 4:38 am
Posts: 8
Reply with quote
Post Get chart from Excel
Hello,
I want to read existing charts in some sheet in my existing excel file. Is this possible with EasyXLS reader? I've search all the API but found no way to do this.

Please help!


Tue Nov 06, 2007 4:50 am
Profile

Joined: Fri Feb 03, 2006 12:23 pm
Posts: 157
Location: Brasov, Romania
Reply with quote
Post 
You need to use ExcelDocument.easy_LoadXLSFile to load your existing excel file and then to extract your chart.

//Load the excel file
ExcelDocument xls = new ExcelDocument();
xls.easy_LoadXLSFile(filePath);
//Get the worksheet that contains the chart
ExcelWorksheet xlsSheet = xls.easy_getSheetAt(sheetIndex);
//Get the chart from the worksheet
ExcelChart xlsChart = xlsSheet.easy_getChartAt(0);


Wed Nov 07, 2007 3:42 am
Profile WWW

Joined: Tue Nov 06, 2007 4:38 am
Posts: 8
Reply with quote
Post Thanks
Thanks Daniela. It works great!


Wed Nov 07, 2007 10:19 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.