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!

Inserting table from ORACLE to WORD using OLE

Status
Not open for further replies.

anne17

Programmer
Apr 18, 2002
4
PH
hi,

I want to insert a table from Oracle to Word.... can you please help me how to do it... I have a code here can you check this one , because I can't run
it :

hSelection OLE2.LIST_TYPE;
hArgs OLE2.LIST_TYPE;
hTables OLE2.OBJ_TYPE;
hTable OLE2.OBJ_TYPE;
hColumns OLE2.OBJ_TYPE;
hColumn OLE2.OBJ_TYPE;
hCells OLE2.OBJ_TYPE;
hCell OLE2.OBJ_TYPE;

Begin
hTables := LE2.GET_OBJ_PROPERTYhselection,'Table');
hArgs := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(hArgs, hTables);
hTable := OLE2.INVOKE_OBJ(hTables,'Item',hArgs);
OLE2.DESTROY_ARGLIST(hArgs);
end;

Please help me :c

Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top