Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I end up with a directory full of ~$<filename>.doc....which cannot be deleted. Any suggestions?
BTW, I know $path isn't pretty but it works.
here's the code:
my $doc = Win32::OLE->new('Word.Application', 'Quit'); $doc->Documents->Open($path); my $path=~ s/(.*)\.fin/$1/i; $path = $1; my $fileName = "$path.rtf"; $doc->ActiveDocument->SaveAs({FileName => $fileName, FileFormat => wdF +ormatRTF});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32:OLE - close documents
by Corion (Patriarch) on Jan 03, 2005 at 14:25 UTC | |
by Anonymous Monk on Jan 03, 2005 at 14:41 UTC | |
by Corion (Patriarch) on Jan 03, 2005 at 14:46 UTC | |
by jplindstrom (Monsignor) on Jan 03, 2005 at 17:57 UTC |