A bit new to Aspose Slides. I’m trying to parse excel data and then create a table/graph/chart from scratch onto a slide and input the parsed data. Is this possible? This differs from OLE as we want the actual tables and data to be on the slides and editable.
The mechanism of charts and tables are different in Aspose.Slides API as compared to one in Aspose.Cells. Therefore, you need to traverse the Excel file using Aspose.Cells and then add the respective table or chart data from scratch using Aspose.Slides. Please visit working with tables and working with charts documentation sections for more information about handling them using Aspose.Slides.
Thank you for your response. I was able to figure out the tables case. As for the charts/graphs case, can I use cells to check the types of graphs/charts in an excel file? If so could you provide some sample code. Otherwise I wouldn’t know exactly what type of graph/chart to create in slides without this feature.
You may use ChartCollection.getCount() attribute using Aspose.Cells for the sheet. if it is >=1 then the workbook has chart(s).
Workbook workbook = new Workbook("Book1.xlsx");
//Get the first worksheet
Worksheet ws = workbook.getWorksheets().get(0);
int i = ws.getCharts().getCount();
This way, you can iterate through each worksheet and check if it has charts or not .
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.