Create document from template

Hi
I am trying to create a new document from an existing Word Template. How can I do this?
I tried the following:

Dim doc As Document = New Document("C:\doc1.dotx")
doc.BuiltInDocumentProperties.Title = "Test"
doc.Save("C:\doc1.docx")

This creates the document & the property but the document is blank and does not have the templates design and information. What am I doing wrong?
Thanks in advance

Hi

Thanks for your inquiry. Could you please attach your template for testing? I will investigate the issue and provide you more information.
Best regards.

Hi
I finally got this working after much frustration. It seems that you cannot save a .dotx template as a .doc. It has to be either .dot to .doc or .dotx to .docx
I was trying to save a Word 2007 template as a Word 2003 doc. Should this not in theory be possible as Word allows this? The only way I found it working was to use the correct filetype for the target version of Word.
Regards

Hi

Thank you for additional information. There is no difference what the load format is. You can convert DOTX to DOC, DOCX, RTF or any other format supported by Aspose.Words. Most likely, there is some content in your DOTX template that is not supported by Aspose.Words. So, please attach your DOTX template for testing.
Best regards.