View unanswered posts | View active topics
It is currently Wed Nov 27, 2024 3:31 am
|
Page 1 of 1
|
[ 3 posts ] |
|
Author |
Message |
khanhtran
Joined: Tue Nov 06, 2007 4:38 am Posts: 8
|
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 |
|
|
daniela
Joined: Fri Feb 03, 2006 12:23 pm Posts: 199 Location: Brasov, Romania
|
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 |
|
|
khanhtran
Joined: Tue Nov 06, 2007 4:38 am Posts: 8
|
Thanks
Thanks Daniela. It works great!
|
Wed Nov 07, 2007 10:19 pm |
|
|
|
Page 1 of 1
|
[ 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
|
|