Results 1 to 3 of 3

Thread: Register DLL files

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    2

    Question Register DLL files

    Please help

    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.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    2

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width