Hi There,
How can I change data source of existing pivot table? I could not find pivottable.changeDataSource method. If this is correct method could you please provide examples?
And can we add javadocs for aspose cells api in IDE (netbeans)?
I am using aspose cells version 7.0.0
Thanks
Hi,
Thanks for your posting and using Aspose.Cells.
Probably, this method is not available in the older version. You should download and use the latest version: Aspose.Cells for Java 8.1.0 to use this method i.e (PivotTable.changeDataSource())
You can use this method like the following code.
pivotTable.changeDataSource(new String[]{ “=Sheet3!$A$1:$B$11” });
In Eclipse, you can open Java Build Path and the click the Libraries tab and from there you can specify the Javadoc location of any JAR as shown in the following screenshot. Netbeans procedure should be similar, you can search on internet how to specify Javadoc location in Netbeans.
Thanks for the prompt reply.
Actually I am not able to use aspose 8.1.0 version. I am adding it in the same way I am doing for version 7.0 but not working. May be it is the java platform…is latest version compatible with jdk 1.7 or 1.6?
Hi Amrit,
There is a plugin in netbeans to use aspose APIs. With its help I am able to use the latest ver of aspose cells but but still could not find java doc. I know it might be annoying for you but could you as please use aspose API in netbeans for aspose cells and import java doc and then let me know how you did?
Hi Amrit,
- Right click on your project and select Properties.
- Select the Libraries from Categories pane.
- Select the aspose-cells-8.1.0.jar from the Compile-time Libraries pane.
- Click Edit.
- For JavaDoc, click Browse and select the doc.zip file attached with this post.
- JavaDoc has been set. You are good to go!
Thanx Guys, u r life saviors !!!
Hi Amrit,