Hi Clay
Thanks for your reply.
actually I only want to set rights & expiry date to an existing files only.No new forms.
for this I changed my code a little bit but its still giving some problem.The problem area is line
oDoc1 = (_XDocument3)oWord.XDocuments.Open(infoFileName, ...