File Events

File Events

JoAntt
Enthusiast Enthusiast
261 Views
1 Reply
Message 1 of 2

File Events

JoAntt
Enthusiast
Enthusiast

Hi 

 

I am using

 

OnFileSaveAsDialog
OnSaveDocument

 

And i can capture before after and so on.

But how can i tell wich has fired the event.

If i click Export it fires the save OnFileSaveAsDialog and sometimes a regular save fires the save as.

I cant figure out the logic behind this and assuming i missed something.

 

/J

0 Likes
262 Views
1 Reply
Reply (1)
Message 2 of 2

woodstylee3
Advocate
Advocate

The only reason I am aware a Save would trigger a save-as event/action is when..

 

a) The File is read-only on the hard drive and cannot be overwritten.

b) The file is new and has not been saved at all.

 

Both of these conditions are logical, and can be tested as follows..

 

a) Get the document filename and check the file attributes.

b) Check the fullfilename of the document (beforeSave). If this is = "" the file has no filename.

 

 

 

 

0 Likes