event DocumentSave(sFile)

Called just before the file buffer is saved. The file name is sFile. You can make edits to the file buffer at this point just before it gets saved. If you want to do something after the file is saved, then you can use the Docu­mentSaveComplete event.