none
dictionary from ms office

Answers

  • Hi bahushekh,

    Thanks for posting in the MSDN Forum.

    Because in the VSTO modules we aren't able to operation the customer dictionary, I provide a way to handle it via System.IO.

    This is the snippet to add new word to customer dictionary. This is a winform application’s snippet.

    'You must Imports System and Imports System.IO at first
    'Please replace the path of you dic file
    Using objStram As StreamWriter = New StreamWriter("C:\Users\[your account]\AppData\Roaming\Microsoft\UProof\CUSTOM.DIC", True, System.Text.Encoding.Unicode)
      objStram.WriteLine(Chr(13))
      objStram.WriteLine("NewWord")
      objStram.Flush()
      objStram.Close()
     End Using
    

     

    I hope it helps.

    Have a great day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, February 24, 2011 6:17 AM