Hi
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 =
(Microsoft.Office.Interop.Word.ApplicationEvents4_Event)oWord;
wdEvents.Quit +=
new Microsoft.Office.Interop.Word.
ApplicationEvents4_QuitEventHandler(handlerQuit);
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;
try
{
dgAspose.RowCount = fieldNames.Length;
}
finally
{
oDoc = null;
oWord = null;
GC.Collect();
GC.WaitForPendingFinalizers();
for (int i = 0; i < fieldNames.Length; i++)
{
dgAspose.Rows[i].Cells[0].Value = fieldNames[i];
}
}
}