[
https://issues.apache.org/jira/browse/ODFTOOLKIT-456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16055340#comment-16055340
]
Svante Schubert commented on ODFTOOLKIT-456:
--------------------------------------------
@Siddarth Prasad
Bjoern is right, the function is not yet implemented as nobody desired it
earlier, but you may easily add it.
I would suggest you add to
org.odftoolkit.simple.SpreadsheetDocument
a function called:
public Table getActiveSheet() {,,,}
which calls internally public Table getTableByName(String name) using the name
found in settings.xml
XPATH something similar to:
/office:document-settings/office:settings/config:config-item-set/config:config-item-map-indexed/config:config-item-map-entry/config:config-item[@config:name='ActiveTable']
if you need any further help, just ping. :)
(I will attach a test document)
> Missing support for getting active sheet in Spreadsheets
> --------------------------------------------------------
>
> Key: ODFTOOLKIT-456
> URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-456
> Project: ODF Toolkit
> Issue Type: New Feature
> Components: simple api
> Reporter: Siddharth Prasad
>
> POI has the feature to be able to get the active sheet index of any
> spreadsheet file. But since POI doesn't work with .ods files, I have to use
> ODFToolkit. But this feature is missing.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)