Thanks for your reply.
I have commented out old code in the sample program and added new code as suggested .The program executes fine but when we open (output.docx) the word document we received attached warning(DocumentWarning.png).
Even after document is opened we see below two issues.
1.Output document size is reduced from 149kb to 106kb as that is what happening in previous attached program as well.
2.Even if we opened the document after ignoring the warning we still can see the header is totally removed and date replaced is no where to seen in Header section.
I have attached sample word output document for your reference.
Please let me know If I missed anything inside the sample program and suggest a code change to resolve the above 2 issue.
Apart from this , please let me know the reason why the word document size is getting reduced after program execution since we are just replacing document property only.
Note : We are using Microsoft Office Version Microsoft Office Professional 2010 and Microsoft Word version 14.0.7184.5000.
Jinesh ParikhCodeChangeArtifcats.zip (243.3 KB)