purplepint
New member
- Joined
- Aug 8, 2014
- Messages
- 1
- Programming Experience
- 5-10
Hi All,
I hope some one may be able to come up with a solution to this one.
I create and open a word document from a form and then use .Activate to bring it to the front like so:
System.IO.File.WriteAllBytes(Directory.GetCurrentDirectory() &
"\document.docx", Document)
Dim WordApp As New Microsoft.Office.Interop.Word.Application
WordApp.Documents.Open(Directory.GetCurrentDirectory() &"\document.docx", ReadOnly:=True)
WordApp.Visible =True
'bring Word to the front
WordApp.Activate()
So, with word 2007 it works fine, with 2013 (on Win 8) the icon just flashes at the bottom. Does anyone know how I can change this to come to the front instead?
Much thanks
I hope some one may be able to come up with a solution to this one.
I create and open a word document from a form and then use .Activate to bring it to the front like so:
System.IO.File.WriteAllBytes(Directory.GetCurrentDirectory() &
"\document.docx", Document)
Dim WordApp As New Microsoft.Office.Interop.Word.Application
WordApp.Documents.Open(Directory.GetCurrentDirectory() &"\document.docx", ReadOnly:=True)
WordApp.Visible =True
'bring Word to the front
WordApp.Activate()
So, with word 2007 it works fine, with 2013 (on Win 8) the icon just flashes at the bottom. Does anyone know how I can change this to come to the front instead?
Much thanks