Click to See Complete Forum and Search --> : Register DLL files
malak
May 8th, 2005, 11:45 AM
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.
RobDog888
May 8th, 2005, 11:47 AM
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.
malak
May 8th, 2005, 03:00 PM
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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.