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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -