|
|
| Welcome to the Monastery | |
| PerlMonks |
MS-Word OLE and Joining Tablesby BrianP6 (Initiate) |
| on Dec 30, 2012 at 17:50 UTC ( #1010946=perlquestion: print w/ replies, xml ) | Need Help?? |
|
BrianP6 has asked for the
wisdom of the Perl Monks concerning the following question:
Hello All I am automating the "magazine run" process for a Classic Car club, this involves creating renewal letters in which I include in the letter all the cars that each member owns. I do this via a "catalog" mail merge in word which I control through a Perl script. Adding the cars into a table in this method creates a small one-line table for each car added in the mail merge. When finished, I need to run a "TableJoiner" macro so that all of these individual tables are joined up into one. I found this macro on the internet from a very helpful tutorial on the "catalog" mail merge, it works superbly and it looks like this:
I want to turn this into Perl OLE script so that I can run it on any PC without installing the macro into MS-Word first. Can anyone help me with this please? I have got as far as this:
I did start the foreach loop with:
But I thought I needed to 'persuade' perl that it was a hash. Any help you can give me would be much appreciated. Thanks.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||