How can I read an ods(Open Document Spreadsheet) File in Powerbuilder without using Excel Application(Excel is not installed in the Computer)?
- Shirley Sanjuan
- PowerBuilder
- Tuesday, 2 October 2018 21:20 PM UTC
- Page :
- 1
There are no replies made for this question yet.
However, you are not allowed to reply to this question.
However, you are not allowed to reply to this question.
I think the original poster wants to open the files to read the data from cells, not render it on screen.
ODS files are compressed in ZIP format. They contain multiple files (metadata, styles, a thumbnails in png format, content, and a few others). This means that opening and reading data requires zip file extraction, and xml parsing.
The data is in content.xml, but rows/columns are not explicitly named, so the only way to find cell C13 would be to load all of the data into a grid, and see what's there. I've looked around on the web a bit and didn't see any COM objects or DLLs that allow this access. Plenty of Python/Java/PHP scripts out there though.
The only way I can see to accomplish this would be to use a ZIP library to extract the content.xml file, and parse that with the PB XML parsing object.