#Create filenames $file =~ s/(.*)\.fin/$1/i; $file = $1; my $fileName = "$file.rtf"; my $fileName2 = "$file.doc"; my $doc = Win32::OLE->new('Word.Application', 'Quit'); $doc->Documents->Open($path); $doc->ActiveDocument->SaveAs({FileName => $fileName, FileFormat => wdF +ormatRTF}); $doc->ActiveDocument->SaveAs({FileName=> $fileName2}); $doc->Run("psqtemplate"); $doc->ActiveDocument->Save; #Close Winword $doc->Quit(); undef $doc;
In reply to Re^3: Win32::OLE running macros
by Anonymous Monk
in thread Win32::OLE running macros
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |