I have a problem. I used doc.Activate() to bring the document to front but it doesn't work, the document remains in back.
I am closing Blank active document firts.
- if (app.ActiveDocument != null)
- {
- oWordDoc = app.ActiveDocument;
- if (Ribbon1.docnum == 1)
- {
- oWordDoc.Close();
- }
- }
- oWordDoc = app.Documents.Open(destinationPath, missing, false, missing, missing, missing, false, missing, missing, missing, missing, missing, missing
- , missing, missing, missing);
- app.Visible = true;
- oWordDoc.Activate();
Please replay me fast. I am waiting.

Amit GuptaRank #190 · 12.8K reputationPosted Aug 31, 2017, 10:00 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Aug 31, 2017, 10:10 PM EDT
chetan AllipurRank #2,527 · 554 reputationPosted Aug 31, 2017, 10:16 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Aug 31, 2017, 10:21 PM EDT
chetan AllipurRank #2,527 · 554 reputationPosted Aug 31, 2017, 10:26 PM EDT
Rajkiran SwainRank #165 · 14.4K reputationPosted Aug 31, 2017, 10:47 PM EDT
chetan AllipurRank #2,527 · 554 reputationPosted Aug 31, 2017, 11:22 PM EDT