-
Register DLL files
Please help :confused:
I am working on my senior project and I need to know how can I develop list that is moving simultaneously with the cursor position in MS-WORD.
I've already connected the MS-WORD with vb as an object but I think I have to register DLL files, well but I don't know what I have to do specifically and what kinds of files and why...
Please I really need help,
Thanks in advance.
-
Re: Register DLL files
Welcome to the Forums.
Post your code and I will try to guide you since this is for school. You dont need to register any dlls, only have Word installed on the system.
-
Re: Register DLL files
Dear moderator,
thanks for your help..
well, my project is to predict the next words (phrases) for the user as he types based on the English grammar.
till now I opened a document, retrieve the text automatically as the user types using the timers and I predicted the next words (phrases), but the predicted list is in the VB application form which makes it difficult to navigate between the MS-WORD (writing the text) and the application form (to see and choose the next word).
I've been told that there is such a way to make the predicted list moving on the MS-Word during the typing, so the user doesn't have to navigate between two windows.
Note that the program should be installed on a local machine.
I've attached the code regarding the Word object.
Thank you, I really appreciate your help.
Dim objword As Word.Application
Dim objdoc As Word.Document
If prediction.new_file = True Then
Set objdoc = objword.Documents.Add
choose = True
ElseIf prediction.exsist_file = True Then
Dim fname As String
cd1.ShowOpen
fname = cd1.FileName
Set objdoc = objword.Documents.Open(fname)
choose = True
End If
If choose = True Then
objdoc.Activate
word_count = objdoc.words.count - 1
If prediction.auto_predict = True Then
If prediction.level1 = True Then
Timer1.Interval = 1000
ElseIf prediction.level2 = True Then
Timer1.Interval = 500
End If
Timer1.Enabled = True
ElseIf prediction.demand_predict = True Then
cmdpredict.Visible = True
cmdpredict.Enabled = True
End If
End If