We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Quit Event in Aspose?


I am useing demo version of Aspose. Could you please let me you do Aspose have any method for quit event;

Meanse If I close a open document can i track its quite event.

I am doing the same with word object. (the code is given below)

Is this possible in Aspose.???

// Create a Quit event handler.

Word.ApplicationEvents4_Event wdEvents;

wdEvents =


wdEvents.Quit +=

new Microsoft.Office.Interop.Word.


private void handlerQuit()
string[] fieldNames;
doc = new Document(fileName);
docBuil = new DocumentBuilder(doc);

fieldNames = doc.MailMerge.GetFieldNames();

doc = null;
docBuil = null;
//dgAspose.RowCount = fieldNames.Length;
dgAspose.RowCount = fieldNames.Length;
oDoc = null;
oWord = null;
for (int i = 0; i < fieldNames.Length; i++)
dgAspose.Rows[i].Cells[0].Value = fieldNames[i];



Thanks for your inquiry. Unfortunately, Aspose.Words doesn’t have Quit event. You can put code that you would like to process on Quit event directly after saving document.

Best regards.