We are changing from Microsoft.Office.Interop.Word to Aspose.Word. One of the object we used with the MS version was Microsoft.Office.Interop.Word.Application , but I can not seem to find this in the Aspose.Words.
This is how we were using it:
Word.Application wordApp;
public Word.Application WordApp
{
get
{
if (null == WordApp)
{
WordApp = new Microsoft.Office.Interop.Word.Application();
WordApp.DocumentBeforeClose += new Microsoft.Office.Interop.Word.ApplicationEvents4_DocumentBeforeCloseEventHandler(WordApp_DocumentBeforeClose);
WordApp.DocumentBeforeSave += new Microsoft.Office.Interop.Word.ApplicationEvents4_DocumentBeforeSaveEventHandler(WordApp_DocumentBeforeSave);
}
return WordApp;
}
set
{
WordApp = null;
}
}
Then later on we use:
Word.Range mtrange = wordApp.Selection.Range;
wordApp.Selection.Paste();
Thanks in advance,
Scott