TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anand Navale
NA
149
7.3k
Problem on word document open in maximize screen in word 365
Aug 30 2019 12:39 AM
I have word document, open that word document in maximize screen directly when i using word 13/16 but problem on word 10/365 it has open but goes to task bar using VB.Net,
Please provide me solution....
What I have tried:
Dim
WordApp
As
New
Microsoft.Office.Interop.Word.Application
Dim
DocToOpen
As
Microsoft.Office.Interop.Word.Document
DocToOpen = WordApp.Documents.Open(
CStr
(szDisplayFile))
WordApp.WindowState = Word.WdWindowState.wdWindowStateMaximize
WordApp.ActiveWindow.ActivePane.View.Zoom.Percentage = 100
WordApp.Visible =
True
ActivateDocumentWindow(szDisplayFile)
WordApp.Activate()
Application.DoEvents()
Public
Sub
ActivateDocumentWindow(
ByVal
a_strDocName
As
String
)
Dim
Alllocal
As
Process() = Process.GetProcesses()
Dim
Item
As
Process
'Loop through all processes to locate and activate our document
For
Each
Item
In
Alllocal
'if the main title is not blank
If
Item.MainWindowTitle.ToString <>
""
Then
If
InStr(Item.MainWindowTitle.ToString, a_strDocName) > 0
Then
Dim
intOurDoc
As
Integer
= Item.Id
AppActivate(intOurDoc)
Exit
For
End
If
End
If
Next
End
Sub
Reply
Answers (
1
)
different types of validations
type conversion