N
Norrie
Hi,
I am currently developing a project which involves the storage/retrieval of
Word documents to/from a SQL Server database.
The user is required to be able to select a document from a list of stored
documents and press a button which should extract the relevant document from
the database and open it within Word to allow the document to be edited.
The problem that I am currently experiencing is that once the document has
been launched within Word, the "Check spelling as you type" option is
checked, but word acts as if this option was switched off.
Below is a snippet of code used to launch the document:
Public Sub OpenDocument(sFileName As String)
Dim oWord As Word.Application
Dim oDoc As Word.Document
Set oWord = CreateObject("Word.Application")
Set oDoc = oWord.Documents.Open(sFileName)
oDoc.Activate
oWord.Visible = True
oWord.Activate
End Sub
Any help in this matter would be greatly appreciated as it is slowly driving
me mad.
Cheers,
Norrie
I am currently developing a project which involves the storage/retrieval of
Word documents to/from a SQL Server database.
The user is required to be able to select a document from a list of stored
documents and press a button which should extract the relevant document from
the database and open it within Word to allow the document to be edited.
The problem that I am currently experiencing is that once the document has
been launched within Word, the "Check spelling as you type" option is
checked, but word acts as if this option was switched off.
Below is a snippet of code used to launch the document:
Public Sub OpenDocument(sFileName As String)
Dim oWord As Word.Application
Dim oDoc As Word.Document
Set oWord = CreateObject("Word.Application")
Set oDoc = oWord.Documents.Open(sFileName)
oDoc.Activate
oWord.Visible = True
oWord.Activate
End Sub
Any help in this matter would be greatly appreciated as it is slowly driving
me mad.
Cheers,
Norrie