esr has asked for the wisdom of the Perl Monks concerning the following question:
What am I missing?use Win32::OLE; use Win32::OLE::Const 'Microsoft Word'; $word = Win32::OLE->GetActiveObject('Word.Application') || Win32::OLE->new('Word.Application'); $mydoc = $word->Documents->Open($xfile); $word->Run("tskedfmt"); ($xfn) = $xfile =~ m/(.*)\.txt$/; $xfn .= "\.doc"; $mydoc->SaveAs(FileName => "$xfn", FileFormat => wdFormatDocument); $word->{Visible} = 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "type mismatch" in Word
by bmann (Priest) on Nov 30, 2004 at 05:34 UTC | |
|
Re: "type mismatch" in Word
by diotalevi (Canon) on Nov 30, 2004 at 04:23 UTC | |
|
Re: "type mismatch" in Word
by tachyon (Chancellor) on Nov 30, 2004 at 10:19 UTC | |
|
Re: "type mismatch" in Word
by fglock (Vicar) on Nov 30, 2004 at 20:41 UTC | |
|
Re: "type mismatch" in Word
by jimbojones (Friar) on Nov 30, 2004 at 20:36 UTC | |
|
Re: "type mismatch" in Word
by esr (Scribe) on Nov 30, 2004 at 19:51 UTC | |
|
Re: "type mismatch" in Word
by esr (Scribe) on Dec 03, 2004 at 01:07 UTC | |
by esr (Scribe) on Dec 03, 2004 at 18:57 UTC |