Re: Getting the list of Autocorrect enties in word
- From: "nagar@xxxxxxxxxxxxxxxx" <nagar@xxxxxxxxxxxxxxxx>
- Date: Tue, 21 Aug 2007 10:28:01 +0200
Thanks Jialiang.
I actually need to process the entries in my C# application.
I added a reference to Microsoft Word 12.0 Object Libary and used this
code to enumerate the autocorrections
Microsoft.Office.Interop.Word.Application word= new Application();
AutoCorrect ac = word.AutoCorrect;
foreach (AutoCorrectEntry ae in ac.Entries) {
string abb = ae.Name;
string body = ae.Value;
}
My questions are:
1. I've attached to MS Word 2007. What should I do to get the
autocorrect from Office 2003?
2. What files should I distribute with my application. I saw VS2005
added a reference to Microsoft.Office.Core,
Microsoft.Office.Interop.Word and VBIDE.
Thanks
Andrea
On Tue, 21 Aug 2007 05:28:47 GMT, jialge@xxxxxxxxxxxxxxxxxxxx
(Jialiang Ge [MSFT]) wrote:
Hello Andrea,.
From your post, my understanding on this issue is: you want to get theauto-correct entries in Word. If I'm off base, please feel free to let me
know.
If you are using Office 2003/2002, please refer to the kb article:
http://support.microsoft.com/kb/826147 or
http://support.microsoft.com/kb/269006/EN-US/. Office 2002/2003 has a
'AutoCorrect Utility' in C:\Program Files\Microsoft
Office\Office\Macros\SUPPORT.DOT, which can help you export the
auto-correct entries. In Word 2000, the utility is located in C:\Program
Files\Microsoft Office\Office\Samples\Macros9.dot (see:
http://support.microsoft.com/kb/207748/EN-US/). As to Office Word 97 or 95,
please refer to http://support.microsoft.com/kb/186237/EN-US/ or
http://support.microsoft.com/default.aspx?scid=kb;en-us;135778&Product=wrd97
.
The exported auto-correct entries contain Name-Value pairs. For example:
Name - Value
abbout-about
For your second question about how to detect if Word is installed on the
user computer:
If Word is not installed, your code will throw an exception when it tries
creating an instance of Word.Application. You may capture the exception and
inform the users that Word is not installed.
Please let me know if you have any other concerns, or need anything else.
Sincerely,
Jialiang Ge (jialge@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
- Follow-Ups:
- Re: Getting the list of Autocorrect enties in word
- From: Jialiang Ge [MSFT]
- Re: Getting the list of Autocorrect enties in word
- References:
- Getting the list of Autocorrect enties in word
- From: nagar@xxxxxxxxxxxxxxxx
- RE: Getting the list of Autocorrect enties in word
- From: Jialiang Ge [MSFT]
- Getting the list of Autocorrect enties in word
- Prev by Date: RE: Getting the list of Autocorrect enties in word
- Next by Date: RE: Authenticated access to Clickonce install.
- Previous by thread: RE: Getting the list of Autocorrect enties in word
- Next by thread: Re: Getting the list of Autocorrect enties in word
- Index(es):
Relevant Pages
|