chetan Allipur

chetan Allipur

  • NA
  • 541
  • 167.8k

How to get Active Document should come front in word Addins

Sep 5 2017 3:03 AM
How to get Active Document should come front in word Addins VSTO.
 
I am opening multiple word document files,but recently opened file is remains back.I want to get front using VSTO code.
 
 
Here is my code
Microsoft.Office.Interop.Word.Application app = null;
Microsoft.Office.Interop.Word.Document oWordDoc = null;
 
app = Globals.ThisAddIn.Application;
 
oWordDoc = app.Documents.Open(destinationPath, missing, false, missing, missing, missing, false, missing, missing, missing, missing, missing, missing
, missing, missing, missing);
oWordDoc.Activate();
 
Plese help me it is very urgent.