Forms OLE Automation with Word
From: Dolf-Jan Mulder <djmulder_at_advantage.nl>
Date: Sat, 13 Nov 1999 17:36:44 -0000
Message-ID: <80k3g9$7iu$1_at_beast.euro.net>
Hello,
Date: Sat, 13 Nov 1999 17:36:44 -0000
Message-ID: <80k3g9$7iu$1_at_beast.euro.net>
Hello,
[Quoted] I use the following procedures to exchange data form Forms to Word. The
problem that occurs that only the first occurence of a variable is replaced.
I want a 'replace all'. Can somebody point out how to code this?
procedure EditGoTo (txt in varchar2) is
arglist ole2.list_type;
begin
- txt is a variable in Forms arglist := ole2.create_arglist; ole2.add_arg (arglist, '<'||txt||'>'); ole2.invoke (obj_hnd, 'editfind', arglist); ole2.destroy_arglist (arglist); end;
procedure InsertText (txt in varchar2) is
arglist ole2.list_type;
begin
- txt is the value for the variable arglist := ole2.create_arglist; ole2.add_arg (arglist, txt); ole2.invoke (obj_hnd, 'insert', arglist); ole2.destroy_arglist (arglist); end;
Thanks, Dolf-Jan Received on Sat Nov 13 1999 - 18:36:44 CET