Article View: microsoft.public.win32.programmer.ole
Article #26Re: PB Opening word file with perl...Win32::OLE
From: Ronald J Kimball
Date: Fri, 25 Jun 1999 00:00
Date: Fri, 25 Jun 1999 00:00
22 lines
1450 bytes
1450 bytes
[posted and mailed]
Olivier Maas <olivier.maas@at-lci.com> wrote:
> $document=$application->Documents->Open("$fichier");
> $res=$document->SaveAs('c:\temp\testtest.txt',wdFormatText);
> the error message goes :
> Can't call method "SaveAs" on unblessed reference at assist.pl line
> 72...
You should always check the result when you open a file.
Even when opening a Word document through Win32::OLE.
--
_ / ' _ / - aka -
( /)//)//)(//)/( Ronald J Kimball rjk@linguist.dartmouth.edu
/ http://www.tiac.net/users/chipmunk/
"It's funny 'cause it's true ... and vice versa."
Technical Details
Message-ID:
<1dtz6ej.1oqv5h7h019gfN@p41.tc2.metro.ma.tiac.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3773739B.5774F3F6@at-lci.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 112333,ec4cf2818ac70e6a
X-Google-Attributes: gid112333,public
X-Google-Thread: fa0ae,ec4cf2818ac70e6a
X-Google-Attributes: gidfa0ae,public
X-Google-Thread: fe15c,ec4cf2818ac70e6a
X-Google-Attributes: gidfe15c,public
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: PB Opening word file with perl...Win32::OLE
Date: 1999/06/25
Message-ID: <1dtz6ej.1oqv5h7h019gfN@p41.tc2.metro.ma.tiac.com>
X-Deja-AN: 494000812
References: <3773739B.5774F3F6@at-lci.com>
X-Face: *spJTl5BP|H]tv^0$Q6a-pzBFK8I5fHa$8}}%f[=uE!o{BT`.GS9L}atGt.A* lE.l,Qi{"Ge2>hK*$qvJx\ev\>+b87D,fxSfXItRacBv*Z%`bZK*@B
Organization: Tamias Striatus
Newsgroups: microsoft.public.win32.programmer.ole,fr.comp.lang.perl,comp.lang.perl.misc