Home
Analytics
PPT POI Issue
QBiT
Hi,
when i create a ppt file with Powerpoint i can read this file with Apache POI and manipulate it afterwards.
When i render a ppt file using the PPTWriter of Birt i get a ppt file which i can open with MS Powerpoint but when i try to read this with Apache POI i get something like this:
java.io.IOException: Invalid header signature; read 0x7265562D454D494D, expected 0xE11AB1A1E011CFD0
at org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockReader.java:107)
at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:151)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:103)
at org.foo.poitester.PoiTester.main(PoiTester.java:44)
Has anyone else had issues like that?
The main goal is to read 2 different design files export them into ppt and after that open them with POI and merge them together.
Maybe there is another way to accomplish this task.
Help is very much appreciated.
Find more posts tagged with
Comments
JasonW
Does poi support office 2003?
Jason
QBiT
At least i am able to read a ppt file which i created with powerpoint 2007. I created a pptx file and saved it as 97 - 2003 ppt file. I was able to read this with poi.
So i guess it supports office 2003.
QBiT
I got a little step further. I used the tribix ppt emitter which is based on Apache POI. This emitter can be downloaded here:<br />
<br />
<a class='bbc_url' href='
http://sourceforge.net/projects/tribix/files/2.5.1/org.uguess.birt.report.engine.emitter.ppt_2.5.1.201001221050.jar/download'>Download
Tribix - Extended Emitters for BIRT from SourceForge.net</a><br />
<br />
I substituted the default birt ppt emitter with the new one:<br />
<br />
engineConfig.setDefaultEmitter("ppt","org.uguess.birt.report.engine.emitter.ppt");<br />
<br />
Now i am able to process the generated ppt file with poi