Free Support Forum - aspose.com

Document.Clone added

Hi,

Document.Clone was added to speed up generation of multiple (hundreds or thousands) of documents from a single template.

//Open the document only once and clone it for each mail merge.
Document srcDoc = TestUtil.Open(@“Test.doc”);
for (int i = 0; i < 1000; i++)
{
Document dstDoc = srcDoc.Clone();
dstDoc.MailMerge.Execute(table);
dstDoc.Save(@“Test Out.doc”);
}