Re: [jopendocument] Re: .fods (flat xml) support

2015-04-17 Thread Sylvain Cuaz

Le 16/04/2015 21:07, Adam Brousseau a écrit :

Not sure if anyone knows that answer, but I am still interested in this
functionality.


Hi,

	If you're sure that it's a flat XML, you can use ODSingleXMLDocument.createFromFile() / 
createFromStream(). Otherwise ODPackage.createFromFile() / createFromStream() will work for the 
zipped and flat formats (then call getSpreadSheet()).


Cheers,
Sylvain

--

--- 
You received this message because you are subscribed to the Google Groups jOpenDocument group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to jopendocument+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jopendocument] Re: .fods (flat xml) support

2015-04-16 Thread Adam Brousseau
Not sure if anyone knows that answer, but I am still interested in this 
functionality.
 
Adam Brousseau

On Monday, April 6, 2015 at 5:27:38 AM UTC-4, Adam Brousseau wrote:

 Does anyone know if this format is supported? I have tried the class below 
 as a test to read a single cell from the spreadsheet, but have been 
 unsuccessful. The goal of my project is to compare spreadsheet changes 
 textually in eclipse. XML allows us to do this nicely, but for the users to 
 provide input it is best to have the standard Excel interface.

 public class SpreadsheetTest {

 public static void main(String[] args) 
 {
 File file = new File(testSpreedsheets/Untitled 1.fods);
 try 
 {
 final Sheet sheet = 
 SpreadSheet.createFromFile(file).getSheet(Sheet1);
 String test = (String) sheet.getCellAt(A1).getValue();
 System.out.println(test);
 } 
 catch (Exception e) 
 {
 // TODO Auto-generated catch block
 e.printStackTrace();
 }

 }

 }

 Thanks,
 Adam Brousseau



-- 

--- 
You received this message because you are subscribed to the Google Groups 
jOpenDocument group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jopendocument+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.