Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

You will not censor me through bug terrorism. -- James Troup


devel / comp.lang.clipper.visual-objects / Search and replace text in the entire document, including headers

SubjectAuthor
* Search and replace text in the entire document, including headersFerenc Ferenc
`* Re: Search and replace text in the entire document, including headersFerenc Ferenc
 `* Re: Search and replace text in the entire document, including headersNorbert Kolb
  `- Re: Search and replace text in the entire document, including headersFerenc Ferenc

1
Search and replace text in the entire document, including headers

<372c3064-e6ed-423c-a461-685e8d9179a7n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1416&group=comp.lang.clipper.visual-objects#1416

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ac8:5987:0:b0:417:d657:9fd7 with SMTP id e7-20020ac85987000000b00417d6579fd7mr137703qte.9.1696193555409;
Sun, 01 Oct 2023 13:52:35 -0700 (PDT)
X-Received: by 2002:a05:6808:1894:b0:3ab:8526:c222 with SMTP id
bi20-20020a056808189400b003ab8526c222mr4929114oib.8.1696193554896; Sun, 01
Oct 2023 13:52:34 -0700 (PDT)
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Sun, 1 Oct 2023 13:52:34 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=77.110.140.111; posting-account=IISCjQoAAADvx-CgssN4W6a0Iz1fGC1c
NNTP-Posting-Host: 77.110.140.111
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <372c3064-e6ed-423c-a461-685e8d9179a7n@googlegroups.com>
Subject: Search and replace text in the entire document, including headers
From: tuzxesz@gmail.com (Ferenc Ferenc)
Injection-Date: Sun, 01 Oct 2023 20:52:35 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Ferenc Ferenc - Sun, 1 Oct 2023 20:52 UTC

Hi,
Does anyone have any idea how to replace text in Word document headers?
The oWord:Selection:Find:Execute method only replaces text in the text header.

Ferenc

Re: Search and replace text in the entire document, including headers

<aa22dc73-0370-4843-989c-a8210f499c55n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1417&group=comp.lang.clipper.visual-objects#1417

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ac8:5b47:0:b0:412:12e8:8532 with SMTP id n7-20020ac85b47000000b0041212e88532mr154307qtw.9.1696227247896;
Sun, 01 Oct 2023 23:14:07 -0700 (PDT)
X-Received: by 2002:a05:6808:f92:b0:3ae:5aab:a6f3 with SMTP id
o18-20020a0568080f9200b003ae5aaba6f3mr5191698oiw.5.1696227247610; Sun, 01 Oct
2023 23:14:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Sun, 1 Oct 2023 23:14:07 -0700 (PDT)
In-Reply-To: <372c3064-e6ed-423c-a461-685e8d9179a7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.110.136.249; posting-account=IISCjQoAAADvx-CgssN4W6a0Iz1fGC1c
NNTP-Posting-Host: 77.110.136.249
References: <372c3064-e6ed-423c-a461-685e8d9179a7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <aa22dc73-0370-4843-989c-a8210f499c55n@googlegroups.com>
Subject: Re: Search and replace text in the entire document, including headers
From: tuzxesz@gmail.com (Ferenc Ferenc)
Injection-Date: Mon, 02 Oct 2023 06:14:07 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Ferenc Ferenc - Mon, 2 Oct 2023 06:14 UTC

To clarify, the oWord:Selection:Find:Execute method only replaces the text in the text stem.

Ferenc

Ferenc Ferenc ezt írta (2023. október 1., vasárnap, 22:52:36 UTC+2):
> Hi,
> Does anyone have any idea how to replace text in Word document headers?
> The oWord:Selection:Find:Execute method only replaces text in the text header.
>
> Ferenc

Re: Search and replace text in the entire document, including headers

<70c3f331-f72e-4d55-a33a-3840c90e2cdbn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1418&group=comp.lang.clipper.visual-objects#1418

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:6214:1623:b0:65c:fec5:6e7 with SMTP id e3-20020a056214162300b0065cfec506e7mr154037qvw.7.1696251065491;
Mon, 02 Oct 2023 05:51:05 -0700 (PDT)
X-Received: by 2002:a05:6808:1145:b0:3af:63ac:2f7e with SMTP id
u5-20020a056808114500b003af63ac2f7emr5494100oiu.9.1696251065272; Mon, 02 Oct
2023 05:51:05 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Mon, 2 Oct 2023 05:51:04 -0700 (PDT)
In-Reply-To: <aa22dc73-0370-4843-989c-a8210f499c55n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:8389:41c5:2d80:b428:109c:844:a3f7;
posting-account=FaB1-woAAACLDmwGeDBBeYMReO4osY8-
NNTP-Posting-Host: 2a02:8389:41c5:2d80:b428:109c:844:a3f7
References: <372c3064-e6ed-423c-a461-685e8d9179a7n@googlegroups.com> <aa22dc73-0370-4843-989c-a8210f499c55n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <70c3f331-f72e-4d55-a33a-3840c90e2cdbn@googlegroups.com>
Subject: Re: Search and replace text in the entire document, including headers
From: norbert@kolb.cx (Norbert Kolb)
Injection-Date: Mon, 02 Oct 2023 12:51:05 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2187
 by: Norbert Kolb - Mon, 2 Oct 2023 12:51 UTC

Hello Frence,
You have to selct the header first. Here is a small example that worked for me.

oWord:ActiveWindow:ActivePane:View:SeekView := wdSeekCurrentPageHeader
oSelection:TypeText("Das ist eine Probe")
oSelection:HomeKey( 6, 0 )
oSelection:Find:Execute("ist",,,,,,,,,"wird")
oSelection:EscapeKey()

Kind regards
Norbert

On Monday, October 2, 2023 at 8:14:08 AM UTC+2, Ferenc Ferenc wrote:
> To clarify, the oWord:Selection:Find:Execute method only replaces the text in the text stem.
>
> Ferenc
> Ferenc Ferenc ezt írta (2023. október 1., vasárnap, 22:52:36 UTC+2):
> > Hi,
> > Does anyone have any idea how to replace text in Word document headers?
> > The oWord:Selection:Find:Execute method only replaces text in the text header.
> >
> > Ferenc

Re: Search and replace text in the entire document, including headers

<510ae8ee-4f74-499a-83ed-4280c91e2b90n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1419&group=comp.lang.clipper.visual-objects#1419

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:1a1e:b0:775:7eb3:87bf with SMTP id bk30-20020a05620a1a1e00b007757eb387bfmr109792qkb.0.1696583178776;
Fri, 06 Oct 2023 02:06:18 -0700 (PDT)
X-Received: by 2002:a05:6870:3a10:b0:1d5:95fc:2a65 with SMTP id
du16-20020a0568703a1000b001d595fc2a65mr3169885oab.0.1696583178505; Fri, 06
Oct 2023 02:06:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Fri, 6 Oct 2023 02:06:18 -0700 (PDT)
In-Reply-To: <70c3f331-f72e-4d55-a33a-3840c90e2cdbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.110.137.158; posting-account=IISCjQoAAADvx-CgssN4W6a0Iz1fGC1c
NNTP-Posting-Host: 77.110.137.158
References: <372c3064-e6ed-423c-a461-685e8d9179a7n@googlegroups.com>
<aa22dc73-0370-4843-989c-a8210f499c55n@googlegroups.com> <70c3f331-f72e-4d55-a33a-3840c90e2cdbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <510ae8ee-4f74-499a-83ed-4280c91e2b90n@googlegroups.com>
Subject: Re: Search and replace text in the entire document, including headers
From: tuzxesz@gmail.com (Ferenc Ferenc)
Injection-Date: Fri, 06 Oct 2023 09:06:18 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2465
 by: Ferenc Ferenc - Fri, 6 Oct 2023 09:06 UTC

Hi Norbert,

Thanks for the helpful help. I am glad there are still people on the forum like you.

Ferenc

Norbert Kolb ezt írta (2023. október 2., hétfő, 14:51:06 UTC+2):
> Hello Frence,
> You have to selct the header first. Here is a small example that worked for me.
>
> oWord:ActiveWindow:ActivePane:View:SeekView := wdSeekCurrentPageHeader
> oSelection:TypeText("Das ist eine Probe")
> oSelection:HomeKey( 6, 0 )
> oSelection:Find:Execute("ist",,,,,,,,,"wird")
> oSelection:EscapeKey()
>
> Kind regards
> Norbert
> On Monday, October 2, 2023 at 8:14:08 AM UTC+2, Ferenc Ferenc wrote:
> > To clarify, the oWord:Selection:Find:Execute method only replaces the text in the text stem.
> >
> > Ferenc
> > Ferenc Ferenc ezt írta (2023. október 1., vasárnap, 22:52:36 UTC+2):
> > > Hi,
> > > Does anyone have any idea how to replace text in Word document headers?
> > > The oWord:Selection:Find:Execute method only replaces text in the text header.
> > >
> > > Ferenc

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor