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
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
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
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
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
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
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
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
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
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
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
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
---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
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
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
.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
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
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
18 matches
Mail list logo