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
ometimes that easiest way of figuring out how to do something in Word (or Excel) is to record a macro inside Word, then look at and convert the VBA code to perl. In this case search and replace produces the following VBA macro in Word 2000: Selection.Find.ClearFormatting Selecti

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

Re: search and replace problem and line break-up

2004-06-18 Thread $Bill Luebkert
Miha Radej wrote: > hi! > > i'm writing a script which does some file copying and similar and have > stumbled upon two problems i thought will be easy but i didn't manage to > solve them on my own. > firstly, i have a file consisting of lines which contain certainf filter > instructions. like

search and replace problem and line break-up

2004-06-18 Thread Miha Radej
hi! i'm writing a script which does some file copying and similar and have stumbled upon two problems i thought will be easy but i didn't manage to solve them on my own. firstly, i have a file consisting of lines which contain certainf filter instructions. like so: last f:\centrale\n300\d*.asm

RE: Registry Search and Replace

2003-08-14 Thread Ryan Amschel
0:07 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Registry Search and Replace All, Does anyone know of a good free (or almost free) reigistry search and replace tool out there? I have no preference whether it's written in perl and it doesn't have to be pretty, just has to wor

Win32::OLE Word Search and Replace Script Runs Locally but not as part of CGI

2003-02-13 Thread Donavon Lerman
I have the same program written for Excel that works fine both locally and part of a CGI Here is the Error I get: Can't call method "Content" on an undefined value at c:\scripts\sr.pl line 19. Here is the Code: #!/perl/bin use strict; use Win32::OLE; use Win32::OLE::Co

Re: Search and replace in msword .doc

2003-01-28 Thread work
Use 'or die Win32::OLE->LastError();' to see what the error is. In this case it was 'Type mismatch' on the line with Ecexute. Then look in the Visual Basic Object Browser (in Word, under the tools->maco menu is the Visual Basic Editor, you use this to look at macros that you want to do in perl, i

Search and replace in msword .doc

2003-01-28 Thread Philippe Paclet
Greetings to all, i want to do some 'find and replace' on a .doc file. Sample i found on this mailing list was: - use strict; use Win32::OLE; use Win32::OLE::Const; my $wd = Win32::OLE::Const->Load("Microsoft Word 9.0 Object Library"); my($outputFile) = 'file.doc'; my($word) = W

RE: Search and replace

2002-11-06 Thread Allegakoen, Justin Devanandan
---8< whoops, there i go again. mis-read the question. time for me to go home now. ---8< There there, dont feel bad. I know what the problem is - its the weekend just a

FW: Search and replace

2002-11-06 Thread Toby Stuart
whoops, there i go again. mis-read the question. time for me to go home now. > -Original Message- > From: Toby Stuart > Sent: Thursday, November 07, 2002 5:33 PM > To: 'Allegakoen, Justin Devanandan' > Cc: '[EMAIL PROTECTED]' > Subject: RE: Search

Re: Search and replace

2002-11-06 Thread $Bill Luebkert
Rajendra Babu, Praveen wrote: Hello, I am looking to search and replace a pattern within a file(not on command line). That is, I have a file name within the Perl script and I need to search for a pattern and replace the same. Eg. search for the pattern TOTAL and replace with T.TOT Can I do

RE: Search and replace

2002-11-06 Thread Toby Stuart
.allegakoen@;intel.com] > Sent: Thursday, November 07, 2002 5:00 PM > To: [EMAIL PROTECTED] > Subject: RE: Search and replace > > > > 8<----------- > I am looking to search and replace a pattern within a > file

RE: Search and replace

2002-11-06 Thread Allegakoen, Justin Devanandan
8<--- I am looking to search and replace a pattern within a file(not on command line). That is, I have a file name within the Perl script and I need to search for a pattern and replace the same. Eg. search for the pattern TOTAL

Search and replace

2002-11-06 Thread Rajendra Babu, Praveen
Hello, I am looking to search and replace a pattern within a file(not on command line). That is, I have a file name within the Perl script and I need to search for a pattern and replace the same. Eg. search for the pattern TOTAL and replace with T.TOT Can I do this in a single statement