I see you have been a member here since 2008. This isn't the first time you've posted asking for code on a platter. Just in case you don't realize it, the purpose of this site is to help people learn more about Perl, Perl extensions (i.e. modules on CPAN) and writing Perl, not to write the Perl code for you. For that, you will have to hire a programmer.
If you are writing the code yourself, and don't understand why it isn't working, feel free to update your post with a sample of the part of your code that isn't working and a description of why you are confused about it not working.
Best of luck, beth
| [reply] |
Do you know how to achieve this in Word? Once you work out how to do it using Word, convert the VBA code to Perl.
| [reply] |
My reaction to this one is ... “why use Perl for this?”
In any case, “the answer is... OLE.” There are a few things in the world of software engineering that Microsoft did get right, and this is one of them. Through OLE, and using any one of several languages (including Perl...) you can open both a Word.Document, and even the Word.Application itself, as an “object,” and then you can iterate through its properties (many of which are collections) and call its published methods. These will tell you, and will do for you, anything that you may require.
Now, every one of us has the source-code that we need to write today, and so yours probably isn’t on this list. But there’s the road that you must travel, to get where you’re wanting to go.
| |