jamiros has asked for the wisdom of the Perl Monks concerning the following question:
use Win32::OLE; use Win32::OLE::Const 'Microsoft Word'; $file = "c:\\C-212\\200539061_D.doc"; $new_file = "c:\\C-212\\200539061_D.txt"; $WordObj = Win32::OLE->new('Word.Application', 'Quit') or die "Couldn' +t run Word"; $wd = $WordObj->Documents->Open($file); $WordObj->ActiveDocument->SaveAs({ FileName => $new_file, FileFormat =>wdFormatText, }); $wd->Close(); $WordObj->exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MS Word and PERL
by terra incognita (Pilgrim) on Oct 05, 2005 at 20:02 UTC | |
by jamiros (Novice) on Oct 06, 2005 at 15:58 UTC | |
|
Re: MS Word and PERL
by davidrw (Prior) on Oct 05, 2005 at 20:11 UTC | |
|
Re: MS Word and PERL
by InfiniteSilence (Curate) on Oct 05, 2005 at 20:18 UTC |