ct subs" in use at test1.pl line 13
same error if i use update or Update
Ilaiy
- Original Message -
From: "Tim Johnson" <[EMAIL PROTECTED]>
To: "Ilaiy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, June 13, 2004 5:45 AM
Subject: RE: Micr
To: [EMAIL PROTECTED]
Subject: RE: Microsoft Word and Perl
Could you try instead
foreach my $obj_Story (@{$newdoc->StoryRanges}) {
.
...
}
As I remember from my past experience with Win32::OLE stuff, Perl
doesn't know that $newdoc->StoryRanges is a list, therefore you n
>
> my $newdoc = $word->ActiveDocument;
> foreach my $obj_Story ($newdoc->StoryRanges ){
>$obj_Story->Fields->{Update}; ==> Cannot find object
>while ($obj_Story->NextStoryrange != ""){
> $obj_Story = $obj_Story->NextStoryRange;
> $obj_Story->Fi
Try changing "Fields->{Update}"
to
"Fields->{update}"
or
"Fields->update()"
-Original Message-
From: Ilaiy [mailto:[EMAIL PROTECTED]
Sent: Sat 6/12/2004 2:39 PM
To: [EMAIL PROTECTED]
Cc:
I have been trying to update my word document using perl, i used
$word->Selection->WholeStory;
$word->Selection->Fields->{Update};
But this is a little slow and at times doesnot update completely. I
modified the code and right now getting a wired error but the same in
VBA works really well .
m