Home » Developer & Programmer » Forms » OLE2 Package
OLE2 Package [message #84578] Thu, 01 April 2004 00:30
Puneet sachar
Messages: 62
Registered: October 2003
Member
Hi foks,

I want to know all information as I could of this package used in D2k

'OLE2'

I have made a form and on button click i'm calling this code

but to my suprise nothing is coming no error and no calling is being done

following is the code-

declare
Obj_WordExtract ole2.obj_type := null;
BEGIN
   message('hh');
   message('hh');
  
   if Obj_WordExtract is null then
     Obj_WordExtract :=  OLE2.Create_Obj('Excel.Application');
      --Obj_WordExtract := OLE2.Create_Obj('BSEWord.Extractor');
   end if;

   if Obj_WordExtract is null then
      message('hello');
       message('hello');
      --do_alert('Error Brokasure Word Extract not registered!');
     
   end if;

OLE2.INVOKE(Obj_WordExtract,'AppShow');

  
  
EXCEPTION
   WHEN Others THEN
     message('hi');
      message('hi');
    Obj_WordExtract := null;
    
    end;

Also tell me what is this 'AppShow' is...

this is urgent.. plz guys..

Regards

Puneet
Previous Topic: Froims server on windows XP user1.pin(20): OS_ERROR
Next Topic: Object List Report
Goto Forum:
  


Current Time: Mon May 06 08:58:08 CDT 2024