TonyJollans
12-02-2008, 06:03 PM
Having raised the issue, I'll explain what I'm trying to do.
The background.
If you used Word as Outlook e-mail editor in 2003 or earlier, you just used an instance of Word as you had it elsewhere. This meant that anything in your Normal Template was available both to Word, and to Word-in-Outlook. In particular formatted AutoCorrects; if you created them in either instance, they were available in both.
Using Word as Outlook editor had its problems, and partly because of this, what happens in Office 2007 is that Outlook uses, as its own editor, a cut down instance of Word, kept entirely separate from Word proper. Even if you don't have Word installed, some of its executable ships with Outlook (if you do have Word installed you get a richer feature set, but it still isn't full-blown Word). The new, 2007, Word-in-Outlook uses its own Normal template (NormalEmail.dotm).
As Word and Outlook use separate Normal Templates, formatted AutoCorrects created in one are no longer automatically available in the other. There is no easy way to copy them across, even manually.
What I would like to do.
1. Create a method of programmatically copying AutoCorrects from Word to Outlook.
2. Ideally, automate the process of synchronisation between the two.
The Solution and the Issues.
Although it may be possible to work directly with the XML, I have no idea where to start and have not explored that avenue. That aside (ignoring the limited Word capacity available in Outlook, which I have managed to overcome sufficiently for my needs), the things I need to do are the same in 2003 as in 2007.
The only way to access full details of the AutoCorrects is to insert them into a Document. When that is done, you can extract the content from that Document and create another AutoCorrect from it. Copying from one application to another is possible via the Clipboard (using Copy and Paste) but as a general rule, I don't like using that as it belongs to the User. In Word 2007, you can get a string representation using the WordOpenXML Property of a Range; I haven't tried but I think something similar can be done with the HTMLProject in Word 2003.
So, copying new AutoCorrects from one application to another can be done - relatively easily :). To go a step further, however, I would like to be able to recognise changes as well as just additions and this is where I want to compare them. As far as I can tell, I have a basic process working but I find it very clumsy and I have still to test many scenarios.
I have another issue but it's entirely separate. That is: when you have multiple versions of Word installed on a single machine, how do you invoke a specific version of Word, other than the default. I do have a mechanism but, again, far from perfect.
All comments welcome - apart from the one that says that I clearly have too much time on my hands :)
The background.
If you used Word as Outlook e-mail editor in 2003 or earlier, you just used an instance of Word as you had it elsewhere. This meant that anything in your Normal Template was available both to Word, and to Word-in-Outlook. In particular formatted AutoCorrects; if you created them in either instance, they were available in both.
Using Word as Outlook editor had its problems, and partly because of this, what happens in Office 2007 is that Outlook uses, as its own editor, a cut down instance of Word, kept entirely separate from Word proper. Even if you don't have Word installed, some of its executable ships with Outlook (if you do have Word installed you get a richer feature set, but it still isn't full-blown Word). The new, 2007, Word-in-Outlook uses its own Normal template (NormalEmail.dotm).
As Word and Outlook use separate Normal Templates, formatted AutoCorrects created in one are no longer automatically available in the other. There is no easy way to copy them across, even manually.
What I would like to do.
1. Create a method of programmatically copying AutoCorrects from Word to Outlook.
2. Ideally, automate the process of synchronisation between the two.
The Solution and the Issues.
Although it may be possible to work directly with the XML, I have no idea where to start and have not explored that avenue. That aside (ignoring the limited Word capacity available in Outlook, which I have managed to overcome sufficiently for my needs), the things I need to do are the same in 2003 as in 2007.
The only way to access full details of the AutoCorrects is to insert them into a Document. When that is done, you can extract the content from that Document and create another AutoCorrect from it. Copying from one application to another is possible via the Clipboard (using Copy and Paste) but as a general rule, I don't like using that as it belongs to the User. In Word 2007, you can get a string representation using the WordOpenXML Property of a Range; I haven't tried but I think something similar can be done with the HTMLProject in Word 2003.
So, copying new AutoCorrects from one application to another can be done - relatively easily :). To go a step further, however, I would like to be able to recognise changes as well as just additions and this is where I want to compare them. As far as I can tell, I have a basic process working but I find it very clumsy and I have still to test many scenarios.
I have another issue but it's entirely separate. That is: when you have multiple versions of Word installed on a single machine, how do you invoke a specific version of Word, other than the default. I do have a mechanism but, again, far from perfect.
All comments welcome - apart from the one that says that I clearly have too much time on my hands :)