Am 25.11.2009 14:38, schrieb dpmihai: > The test testWriteSimplePropertySet() just creates an excel file which if I > want to open with Microsoft Excel I get "file format is not valid" >
Yes, that's true and intentional, because the properties stuff (HPSF) is
independend of Excel, Word etc.
> If i add just these lines at the beginning in the test method :
>
> HSSFWorkbook wb = new HSSFWorkbook();
> HSSFSheet xlsSheet = wb.createSheet("Page 1");
> wb.write(out);
>
> I have a valid excel file but with no information. So I cannot write both
> content and summary on the same output stream? (I do not read the
> information, just I look inside the excel file at Properties).
>
Hm, I never fiddled around with HSSF. Perhaps the others can help?
--
Rainer Klute
Software-Architekt
Telefon: +49 (0) 231 / 98 60-222
Telefax: +49 (0) 231 / 98 60-211
Mobil: +49 (0) 151 / 17396741
+49 (0) 172 / 2324824
http://www.itemis.de/
[email protected]
https://www.xing.com/profile/Rainer_Klute2
itemis AG
Am Brambusch 15-24
44536 Lünen
OpenPGP-Fingerprint: E4E4386515EE0BED5C162FBB5343461584B5A42E
- Wenn deine E-Mail vertraulicher als eine Postkarte sein soll...
Rechtlicher Hinweis:
Amtsgericht Dortmund, HRB 20621
Vorstand: Wolfgang Neuhaus, Jens Wagener, Dr. Georg Pietrek
Aufsichtsrat: Dr. Burkhard Igel(Vors.), Stephan Grollmann, Michael Neuhaus
signature.asc
Description: OpenPGP digital signature
