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

Free Support Forum - aspose.com

Template namespace is not found

I can’t found the template namespace in aspose.words for .NETAPI reference of the Aspose.words namespace. Is it present in the aspose.words library?

Hi Purnima,

Thanks for your inquiry. Please read Aspose.Words for .NET API Reference from here:
https://reference.aspose.com/words/net/

Could you please share what you want to achieve using Aspose.Words? We will then provide you more information about your query along with code.

I want to create a template document with watermark and attach that template to my document.

Hi Purnima,

Thanks for your inquiry. Please use the following code example to achieve your requirements. Please use the code of InsertWatermarkText method from here:
https://docs.aspose.com/words/net/working-with-watermark/

Hope this helps you.

Document template = new Document();
InsertWatermarkText(template, "CONFIDENTIAL");
template.Save(MyDir + "template.dotx", SaveFormat.Dotx);
Document doc = new Document(MyDir + "template.dotx");
doc.AttachedTemplate = MyDir + "template.dotx";
doc.Save(MyDir + "Out.docx");

If you still face problem, please share your expected template and output documents here for our reference. We will then provide you more information about your query along with code.