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

Free Support Forum - aspose.com

Changing the date of word document within the footer area

Received : 2007/10/09 11:37:48
Message : Hi, there

I have a word document that I need to change the Date within the footer to any date on the fly. Can you help me with a code that actually can work.
Here's what I created so far to do that task:

Aspose.Words.License wordlicense = new Aspose.Words.License();

Aspose.Words.Document wdoc = new Aspose.Words.Document(@"C:\My Document\Test.Doc");

wdoc.Variables["Date"] = "25/06/2006";

wdoc.Document.Save(@"C:\My Document\Test.doc");

Thanks for your help in advance.

Thanks, Ayman

This message was posted using Aspose.Live 2 Forum


Thanks for your request. It seems that your code works fine on my side. Please, attach your document. I will investigate it and try to help you.

Best regards.