Re: Microsoft Word and Perl

2004-06-18 Thread Ilaiy
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

RE: Microsoft Word and Perl

2004-06-14 Thread Tim Johnson
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

RE: Microsoft Word and Perl

2004-06-14 Thread Ichim, Adrian 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

RE: Microsoft Word and Perl

2004-06-13 Thread Tim Johnson
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:

Microsoft Word and Perl

2004-06-12 Thread Ilaiy
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