S
Spiros Rentoulas
Opening a Word Document from VB 6.0 that is already opened from another
workstation does not display the usual confirmation box about read only
document.
It just opens the document, displays the (read only) text in WinWord header
caption but does not warn the user.
However when I try to open the document manually using windows explorer I do
get the warning message and manage to open the document.
The vb code is the following:
Global GWordObj As Object
....
Set GWordObj = CreateObject("Word.Application")
....
GWordObj.Visible = True
GWordObj.DisplayAlerts = wdAlertsAll
GWordObj.Documents.Open (DocfileName), True
workstation does not display the usual confirmation box about read only
document.
It just opens the document, displays the (read only) text in WinWord header
caption but does not warn the user.
However when I try to open the document manually using windows explorer I do
get the warning message and manage to open the document.
The vb code is the following:
Global GWordObj As Object
....
Set GWordObj = CreateObject("Word.Application")
....
GWordObj.Visible = True
GWordObj.DisplayAlerts = wdAlertsAll
GWordObj.Documents.Open (DocfileName), True