Hi adi,
how can i know when a document finished loading after openning?
(using c#)
why do you want to know that?
Has it to do with code in an auto-macro?
A workaraound like the following might help,
for small documents.
Sub AutoExec()
'or autoopen or autonew or semething of that kind
Application.OnTime _
When:=Now + TimeValue("00:00:02"), _
Name:="continue"
End Sub
sub continue
' whatever
end sub
Or maybe something like this, which works even for
a 1000 pages document:
Option Explicit
Dim p1 As Long
Dim p2 As Long
Sub autoopen()
Selection.EndKey unit:=wdStory
p1 = Selection.Information(wdActiveEndPageNumber)
continue
End Sub
Sub continue()
p2 = Selection.Information(wdActiveEndPageNumber)
If p1 = p2 Then
MsgBox "ready"
Else
autoopen
End If
End Sub
Just to show a possible way, a workaraound.
With c#, you should be able to check wether
the process "WINWORD.EXE" is idle.