update custom.dic
am 01.10.2007 23:04:00 von jason
Is there any way to programmatically update (add custom words) to the
custom.dic file (office's custom dictionary file) using .NET (vb or c#)? Any
com interface? I tried looking in the
Microsoft.Office.Interop.Word.Dictionary class without any luck, thanks in
advance for any help!
RE: update custom.dic
am 02.10.2007 08:53:25 von stcheng
Hello Jason,
From your description, you're like to programmatically manipulate the
custom.doc dictionary file of word? As far as I know, generally, this file
would be maintaied by the word application and mostly we'll not directly
access it in custom code. Generally for test, I would suggest you try do
the related operations in Word interface(which will manipulate that file)
and record the related Macro. If the file does be customizable through
custom code, you should be able to locate the related VBA script code in
Macro and then you can adopt the same code logic in .NET interop.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?SmFzb24=?=
>Subject: update custom.dic
>Date: Mon, 1 Oct 2007 14:04:00 -0700
>
>Is there any way to programmatically update (add custom words) to the
>custom.dic file (office's custom dictionary file) using .NET (vb or c#)?
Any
>com interface? I tried looking in the
>Microsoft.Office.Interop.Word.Dictionary class without any luck, thanks in
>advance for any help!
>
RE: update custom.dic
am 03.10.2007 08:58:54 von jialge
Hello Jason,
Based on my research, Office does not expose interface that we could
manipulate the items in custom.dic directly. But a possible workaround is
to operate directly on the custom.dic file. According to the KB article
http://support.microsoft.com/kb/242135#appliesto. If we want to remove some
items in the dictionary, we could remove the corresponding line in the
file. If we would like to add some entries, please note that the words in
the file must be sorted in ASCII alphabetical order. If you have any other
concern or need anything else, please feel free to let me know.
Sincerely,
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
RE: update custom.dic
am 05.10.2007 03:32:58 von jialge
Hi Jason,
Would you mind letting me know the result of the suggestions? If you need
further assistance, feel free to let me know. I will be more than happy to
be of assistance.
Have a great day!
Sincerely,
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.