Need Help [message #537371] |
Wed, 28 December 2011 00:47 |
|
faraz87_baloch
Messages: 2 Registered: December 2011 Location: Pakistan
|
Junior Member |
|
|
HI Everyone,
I m working on Forms 6i.
I want to do the the "Find and Replace" functionality on word document with OLE2.Is their any way to achieve this functionality through OLE2.
Looking for your cooperation.
Thanks.
|
|
|
Need Help [message #539231 is a reply to message #537371] |
Thu, 12 January 2012 06:01 |
|
faraz87_baloch
Messages: 2 Registered: December 2011 Location: Pakistan
|
Junior Member |
|
|
Hi Everyone,
I m trying this piece of code for the above functionality.
args := ole2.create_arglist;
ole2.add_arg ( args,'Abc' );---Finding a text in the Document.
ole2.add_arg ( args,'Xyz' );--- Replacing the Above text with 'Xyz'
ole2.add_arg ( args,0 );
ole2.add_arg ( args,1 ); ole2.invoke ( application,'EditReplace',args );
ole2.destroy_arglist ( args );
But still it is not working.
Any Solution for the above Problem.
Regards
Faraz.
|
|
|