Hello Georg, I am not able to see the pictures, is MS Office "repairing" the document? Have you compared the XML after the repair? Microsoft once validated very strict against ODF 1.1 and when ODF 1.2 added a new version attribute it states the ODF is invalid. Indeed sounds a little like one of those jokes with a Djinn..
The common work around is to make the ODF 1.2 invalid and removing the version attribute from the root XML element and avoiding the misleading error message from Microsoft. Best regards, Svante On Fri, Jan 8, 2016 at 2:51 PM, Georg Füchsle <[email protected]> wrote: > Hello, > > > > I’m a beginner with odf and try to create a small example odf-File using > simple-odf 0.8.1: > > > > import org.odftoolkit.simple.TextDocument; > > private TextDocument target; > > … > > target = TextDocument.*newTextDocument*(); > > target.addParagraph("hello world"); > > target.save("C:/temp/odf/test.odt"); > > > When I open this file with MS Word 2010 (or 2007) then I get this message: > > > > > > I press the button „ok“ and get this: > > > > > > When I press „Ja“, it looks good. > > > > > > > When I use Apache OpenOffice 4, I don’t get an error and see the line > correct. > > How can I avoid this errors? > > > Our customers will use MS Word. For this reason we try to open it by MS > Word too. >
