Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Win32::OLE) convert text to word
by tachyon (Chancellor) on Feb 06, 2003 at 11:22 UTC | |
Why bother, Word will open text files? Why turn an elegant compact file into a bloated proprietary M$ *.doc file. If you make it a Word 2000+ file you will have turned a file that can be read by anyone into a file that can only be read by people who have Word 2000 or later installed. Wo betide those of us who have not bought a copy of Word since Word 95 which was about the last time a useful feature was added IMHO. You can probably do it with Win32::OLE if you really want to, but why on earth would you bother? Rather like taking a Perl and turning it into a swine...... UpdateFor the record here is how to add text to a new word document using Win32::OLE. I will leave it as an exercise for the reader as to how to read the text file in (see perlman:open)....
cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print | [reply] [d/l] |
by Anonymous Monk on Feb 06, 2003 at 16:21 UTC | |
How can I solve that problem...if anybody know please answer......
janitored by ybiC: Balanced <code> tags around code and error message, as per Monastery convention | [reply] [d/l] [select] |
by BrowserUk (Patriarch) on Feb 06, 2003 at 17:36 UTC | |
Um... Sorry, but how do you expect to run Win32::OLE on /usr/lib/perl5/5.8.0/i386-linux-thread-multi? Does MS Word run on that platform? ps. Your more likely to get responses of you take the time to read the site FAQ and learn how to format your posts so they are readable. Examine what is said, not who speaks. The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead. | [reply] |