We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Java Word: attach a tempalte to a generated document

I see methods in Document class to dettach template associated with a docuemnt. Could you a reverse by attaching a template to a generated document?

Thanks,

Sean

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. You can use Document.setAttachedTemplate() to achieve this. Please see the following link for more information:

http://www.aspose.com/documentation/java-components/aspose.words-for-java/com/aspose/words/document.html#AttachedTemplate

Best regards.