Hi all,
I've finally managed to install an ad-hoc version of POI, thanks to
ibiblio.org's jars.
I want to write Office properties : somewhere, the tutorial says :
---
Writing is quite simple, as the following line of code shows:
dsi.setCategory("POI example");
This statement sets the "category" property to "POI example".
---
where "dsi" is an instance of DocumentSummaryInformation. But I did not find
the appropriates setters in this class, so I tried with the
SummaryInformation class. And this time, the problem is when trying to write
my stuff to disk. Here's my code :
---
this.si.setAuthor(a);
this.si.write(this.dir,DocumentSummaryInformation.DEFAULT_STREAM_NAME);
this.poifs.writeFilesystem(this.out);
---
(where : "si" is a Summary Information, "dir" is poifs.getRoot(), "poifs" is
a POIFSFilesystem, and "out" is an OutputStream)
but no way, it throws an exception.
Anyone can see where I'm wrong ?
Yours,
Pierre
--
"L'Esprit travaille à réaliser ce qu'il se sait être."
(G.W.F. Hegel, philosophe Allemand)