Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: "type mismatch" in Word

by tachyon (Chancellor)
on Nov 30, 2004 at 10:19 UTC ( #411145=note: print w/ replies, xml ) Need Help??


in reply to "type mismatch" in Word

As noted you need to pass a hash ref. There is also another method that works....

my $doc = $word->{Documents}->Open($infile); # either use this $doc->SaveAs( { FileName => $outfile, FileFormat => wdFormatText } ); # or you can do this $word->WordBasic->FileSaveAs($outfile);

cheers

tachyon


Comment on Re: "type mismatch" in Word
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://411145]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-07-07 04:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls