I have a job that runs every five minutes and puts some information to the footer of the Word documents. Versioning is enabled on the list so whenever the job runs, a new version is created for every document.
Is there a way to modify the documents without creating new versions every time?
Currently, I am reading the file contents with SPFile.OpenBinary()
, modifying the stream, then putting the file back with file.ParentFolder.Files.Add(fileName, stream)
.
Any help is greatly appreciated.