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.
chetan AllipurPosted Sep 1, 2017, 3:22 AM
Rajkiran SwainPosted Sep 1, 2017, 2:47 AM
chetan AllipurPosted Sep 1, 2017, 2:26 AM
Amit GuptaPosted Sep 1, 2017, 2:21 AM
chetan AllipurPosted Sep 1, 2017, 2:16 AM
Amit GuptaPosted Sep 1, 2017, 2:10 AM
Amit GuptaPosted Sep 1, 2017, 2:00 AM