Link to home
Start Free TrialLog in
Avatar of khaled022498
khaled022498

asked on

OLE Integration with FileNet

Does any one have any ideas on how can I integrate FileNet imaging software "Watermark" through OLE
with Oracle Forms 4.5 and above , in order to get the full functionality of that software,
using Visual Basic I did that through CreateObject statement.
using set statement I can control any function like scanning, setting document properties, ...
thank you.
ASKER CERTIFIED SOLUTION
Avatar of yesnaud
yesnaud

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of khaled022498
khaled022498

ASKER

what I really want is to implement the following VBCode using Oracle , I've tried but it did not work the way I want, because the way you are Starting OLE Server is different

Public Sub CustomizeWorkspace()
      Dim wmMainWindow As Object
      Dim wmApp As Object
           
      set wmApp=CreateObject("Watermark.Application")
            Set wmMainWindow = g_wmWorkspace.MainWindow
      ' set the caption of the window
      wmMainWindow.Caption = "Out of Place Watermark Workspace"
      ' only show toolbars (no menu)
      wmMainWindow.ShowUI (2 Or 4)
      wmMainWindow.ShowWindow (2 Or 64)
            'Start Scanning
             wmApp.scan StartPage, Increment, MaxPages, Flags
             'OCR The Current Page and Set user Index Fields
             wmApp.Document.UserIndex("Name") =wmApp.OCR CurrentPage, PageCount
      Exit Sub

ErrorHandler:
      If (Err) Then MsgBox Err.Description
      
End Sub

forget about error handler, and all other accessories, the thing i want is how to start OLE server, passing commands from my program to OLE.
Thanks.
Hi,

I can't test what the code below but I think that's the way I would do it...

Declare
application ole2.obj_type

begin
-- That will start an ole server.
application := ole2.create_obj('WaterMark.Application');

/*
** Here use ole2 built-in functions to call functions, get properties...etc..etc...
*/
-- that will stop the ole server
ole2.release_obj(application);

end;

Thank you, you have been very helpful