Keith McFarlane General User

Joined: 06 Apr 2010 Posts: 14 Location: Amsterdam
|
Posted: Tue Apr 06, 2010 5:38 am Post subject: HOW DO I CREATE INTERACTIVE (TABLE-BASED) CHARTS IN WRITER? |
|
|
Relatively new to the OpenOffice API, I've been trying to create an INTERACTIVE chart based on a pre-existing XTable object programmatically. I can do this "manually" by selecting a set of rows and columns and then inserting an Object of type Chart from the standard OpenOffice writer menu-set. I can also create charts programmatically that are NOT interactive by creating and embedding an embedded object, setting the appropriate CLSID PropertyValue and accessing the XChartDataArray object and setData ( float [ ] [ ] ) method.To be clear, I'm referring to the "swriter' context, not a spreadsheet (no problems there, simply use the addNewByName method of the XTableCharts interface).
BUT HOW DO I TELL THE CHART WHICH TABLE and ROW / COLUMN RANGES I WISH TO PLOT? Your knowledge or suggestions are appreciated.
Best Wishes,
Keith _________________ Keith |
|