Home » Developer & Programmer » Forms » how to open document of all office in developer 6i useing OLE2
icon5.gif  how to open document of all office in developer 6i useing OLE2 [message #424256] Thu, 01 October 2009 02:30 Go to next message
qutaibaocp
Messages: 4
Registered: October 2009
Location: jordan
Junior Member
hi


i know how to open word and excel from form 6i useing OLE2 , but
how can i to open PPT , PPS , PDF , Access and any Image from form 6i useing OLE2

,i need help please thx
Re: how to open document of all office in developer 6i useing OLE2 [message #424403 is a reply to message #424256] Fri, 02 October 2009 02:49 Go to previous messageGo to next message
qutaibaocp
Messages: 4
Registered: October 2009
Location: jordan
Junior Member
hello people no one can help ??????
Re: how to open document of all office in developer 6i useing OLE2 [message #424899 is a reply to message #424256] Tue, 06 October 2009 07:57 Go to previous messageGo to next message
qutaibaocp
Messages: 4
Registered: October 2009
Location: jordan
Junior Member
hi all

no one can help me how to open ppt & pdf by useing OLE2 ??????

where are you expert
icon11.gif  Re: how to open document of all office in developer 6i useing OLE2 [message #426342 is a reply to message #424899] Thu, 15 October 2009 00:45 Go to previous messageGo to next message
qutaibaocp
Messages: 4
Registered: October 2009
Location: jordan
Junior Member
this is the code i write to open the ppt but he give me this errore

DECLARE
application OLE2.OBJ_TYPE;
Presentations OLE2.OBJ_TYPE;
Presentation OLE2.OBJ_TYPE;
args OLE2.LIST_TYPE;
BEGIN
application := OLE2.CREATE_OBJ('PowerPoint.Application');
ole2.set_property(application,'Visible','true');
Presentations := OLE2.GET_OBJ_PROPERTY(application,'Presentations');
args := OLE2.CREATE_ARGLIST;
ole2.add_arg(args,:FILE_PATH); -- file path and name
Presentation := ole2.GET_OBJ_PROPERTY(Presentations,'Open',args);
ole2.destroy_arglist(args);
END;


THE ERRORE : ORA-305500
Re: how to open document of all office in developer 6i useing OLE2 [message #427329 is a reply to message #424256] Thu, 22 October 2009 01:50 Go to previous message
coolbunny111
Messages: 12
Registered: June 2009
Junior Member
You can open any document whether it's related of ms office or acrobat by using dde.appbegin instead of using ole2

Here I m affixing a sample code for your reference

declare
AppID PLS_INTEGER;
begin
AppID := DDE.App_Begin('C:\Program Files\Adobe\Acrobat 7.0\Acrobat\ACROBAT.EXE '||'H:\oracle_r_n_d\send_mail\EMPTOT.PDF',DDE.APP_MODE_MAXIMIZED);
end;



hope this will suffice your purpose Smile
Previous Topic: how to show scroll bar at runtime
Next Topic: Change object name case
Goto Forum:
  


Current Time: Fri Sep 20 14:12:30 CDT 2024