Prashant Soni wrote:
Hi. I'm using jakarta POI to create ppt files (
http://jakarta.apache.org/poi/hslf/index.html ). These files (which open
perfectly in Powerpoint) do not open in OpenOffice, and give the error -
Error loading document file://<documentname>
Version Incompatibility.
Incorrect File Version.

For now, I've narrowed down the occurance to ppt files which contain
multiple slides. A poi created file with single slide, and some content in
the slide opens fine in openoffice.

I created a test case where there are only two blank slides and nothing
else. This file opens fine in powerpoint, but gives the above error. The
file opens in OpenOffice once we saveas from powerpoint.

Could someone help by identifying the problem (where OpenOffice gets stuck)
for us so that we can either alter the POI code ourself, or get back to the
POI developers with the problem so that they can have a go at it? OR maybe
if it's a problem with OpenOffice, at least we could have an identification
of the problem and then a bug could be registered.

The test-case files are located at
http://www.prithvitech.com/prashant/poi_impress_test_case.zip

Thanks and Regards,


Prashant


Hi,

I think it is a problem of the nMaxPersistWritten parameter
of the UserEditAtom, which is 3 in the file created by Jakarta
POI, but the corresponding PersistPtrIncrementalBlock read as
follows:

It is having a size of 28 bytes:
+0 (0x00200001) (2 consecutive offsets starting at 1)
+4 (0x00000000) (offset to ref 1)
+8 (0x0000037d) (offset to ref 2)
+12(0x00100003) (1 consecutive offset starting at 3)
+16(0x00000d5f) (offset to ref 3)
+20(0x00100004) (1 consecutive offset starting at 4)
+24 0x00000e57) (offset to ref 4)

In my opinion the nMaxPersistWritten parameter should be 4.

Be it as it may, I fixed the problem in OOo by accepting
ref values lesser or equal than nMaxPersistsWritten.

I just fixed it for OOo 2.02 with Issue 72511 in cws[impress115]
(svx/source/svdraw/svdfppt.cxx -r1.148.50.1)

Best regards,
Sven

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to