Is first save?
Posted: Wed Mar 05, 2014 6:11 pm
Hello,
I need to log the save of the file only if it is the first save or save as.
- So the user creates a new document and save it -> I need to log it
- The user types in something and saves it -> I don't need to do anything
- The users clicks on Save As -> I need to log it
The problem is that in the rvActionSave1Saving method I cannot distinguish if it't the first save or not.
I tried comparing
srvActionsResource.rvActionSave1.GetDoc(MainForm.ActiveEditor.RichViewEdit).FileName and the input FileName because I though that srvActionsResource.rvActionSave1.GetDoc(MainForm.ActiveEditor.RichViewEdit).FileName would be the old file name but they are the same.
Thank you
I need to log the save of the file only if it is the first save or save as.
- So the user creates a new document and save it -> I need to log it
- The user types in something and saves it -> I don't need to do anything
- The users clicks on Save As -> I need to log it
The problem is that in the rvActionSave1Saving method I cannot distinguish if it't the first save or not.
I tried comparing
srvActionsResource.rvActionSave1.GetDoc(MainForm.ActiveEditor.RichViewEdit).FileName and the input FileName because I though that srvActionsResource.rvActionSave1.GetDoc(MainForm.ActiveEditor.RichViewEdit).FileName would be the old file name but they are the same.
Thank you