Re: Microsoft Word search and replace issue

2005-05-23 Thread Chris Cox
ois <[EMAIL PROTECTED]> Sent: Friday, May 20, 2005 5:15 PM Subject: Re: Microsoft Word search and replace issue That is a more efficient way to do it; cycle through the collection. Good call! The problem here is that the document contains ActiveX controls and, as noted, the only way to acces

Re: Microsoft Word search and replace issue

2005-05-20 Thread Greg Chapman
That is a more efficient way to do it; cycle through the collection. Good call! The problem here is that the document contains ActiveX controls and, as noted, the only way to access ActiveX controls embedded in a document is to cycle through objects in the z-ordered layers of the document, the

RE: Microsoft Word search and replace issue

2005-05-19 Thread Jan Dubois
On Thu, 19 May 2005, Chris Cox wrote: > Further on this, I found I had to loop over all the Shapes in the Shapes > collection. eg: > > use strict; > use Win32::OLE; You could try: use Win32::OLE qw(in); > use Win32::OLE::Const 'Microsoft Word'; > > my $word = Win32::OLE->new('Word.Applicat

RE: Microsoft Word search and replace issue

2005-05-19 Thread Chris Cox
61 7 3216 9755 Mobile: +61 412 416600 http://www.creatop.com.au/ [EMAIL PROTECTED] -- - Original Message - From: [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Subject: Microsoft Word search and replace issue Hi all, Firstly, I hope sending an attachment is allowed

Re: Microsoft Word search and replace issue

2005-05-17 Thread Todd Beverly
Chris Cox wrote: I'm trying to write a basic perl script to open a Word document, change some predefined values to something else. It works fine on a basic document, but anything with text boxes it doesn't work at all. The script I run is: use strict; use Win32::OLE; use Win32::OLE::Const 'Micros

Microsoft Word search and replace issue

2005-05-16 Thread Chris Cox
Hi All, I'm trying to write a basic perl script to open a Word document, change some predefined values to something else. It works fine on a basic document, but anything with text boxes it doesn't work at all. The script I run is: use strict; use Win32::OLE; use Win32::OLE::Const 'Microsoft W