I know a great tool for the job.
It works fine with source control and allows documents to be diffed and merged.
The editor is 100% offline as is the product or it can be 100% online at will. No need to push changes to server - just replicate/copy. If you fancy collaboration tools you can use use extensive ones on a subscription basis.
It's got a well documented SDK and an interface that you can call.
Documentation is wonderful.
Automation can be done with PowerShell, VB.Net, C#, Python, Ruby, VBScript, JScript/JavaScript, Java or even Common Lisp if it takes your fancy.
Seriously just use Excel - it's just what you've asked for.