Word 2010 .dotx doc gives error

Hi,



Using the attached document with the below code makes that the new document can not be read.



Can you tell me why that is?



if ( !Utilities.isNullOrEmpty( template ) ) {

FileOutputStream outputStream = null;



try {

doc = new com.aspose.words.Document( template );

builder = new DocumentBuilder( doc );



final BuiltInDocumentProperties props = doc.getBuiltInDocumentProperties();

props.setNameOfApplication( “IT2BE Word Plug-in for Servoy” );



File file = new File(“text.doc”);



outputStream = new FileOutputStream( file );



doc.save( outputStream );

}

catch ( final Exception e ) {

// e.printStackTrace();

}

finally {

outputStream.close();

}

}

Hi Marcel,


Thanks for your inquiry.

Perhaps you’re using an older version of Aspose.Words as with Aspose.Words for Java 13.4.0, I was unable to reproduce this issue on my side. I would suggest you please upgrade to the latest version of Aspose.Words i.e. 13.4.0. You can download it from the following link:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

I hope, this helps.

Best regards,