Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLE2 Container in Forms

Status
Not open for further replies.

mucum

Programmer
Mar 17, 2003
1
TR
I want to get data from an OLe Container (its name is 'my_ole'). I add an Ole Container (Microsoft Word Document) into my block. After I edit word doc , I want to take its text into my variable. But I couldn't succeed.

My Code is :


declare
arg_list OLE2.LIST_TYPE ;
word_obj OLE2.OBJ_TYPE ;
c OLE2.OBJ_TYPE ;
n OLE2.OBJ_TYPE ;
sel varchar2(200);
begin
activate_server('my_ole');
word_obj := Get_Interface_Pointer('my_ole');
word_obj := Get_Object_Handle ;
arg_list := OLE2.Create_Arglist ;
ole2.add_arg(arg_list,1);

OLE2.INVOKE(word_obj,'EditSelectAll',arg_list);

sel := oLE2.GET_CHAR_PROPERTY(word_obj,'Selection');
end
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top