c# - Keep Microsoft Word from adding files opened programmatically to its History -
i have .net program opens file programmatically in word modify it. unfortunately, microsoft word keeps times file opened in word in history, though don't want happen when file opened programmatically.
how can keep happening in .net?
if using documents.open or saveas can set addtorecentfiles property this:
open:
globals.thisaddin.application.documents.open("filename", addtorecentfiles: false); save as:
globals.thisaddin.application.activedocument.saveas2("filename", addtorecentfiles: false);
Comments
Post a Comment