I was informed that I could possibly run the process in the background by opening the document in a different manner. I attempted to follow another post i saw to open up the document by swapping out the XDocument oDoc = oApp.XDocuments.Open(fileName,1) with the following code:
XDocuments oDocs = oApp.XDocuments;
Type oDocsType = oDocs.GetType();
object objDocName = fileName;
XDocument oDoc = (XDocument)oDocsType.InvokeMember("Open", System.Reflection.BindingFlags.InvokeMethod, null, oDocs, new Object[] { objDocName, null, null });
Unfortunately, I don't know what the expected parameters are for the InvokeMethod and am getting an exception error stating:
Number of parameters specified does not match the expected number
Any suggestions?