WebUtil & Client_OLE2 - Urgent!

Hi!
I use Oracle9iASR2, Forms9i (Patch 9.2.0.3) and JInitiator 1.3.1.13!
I was following all webutil_manual.pdf and readme.html steps!
I have no problem with client_get_file_name or client_host calls, but I have a tedious problem when I'm trying to call Client_OLE2.create_obj('Excel.Application'), for instance.
Java Console shows:
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError
     at oracle.forms.webutil.ole.OleFunctions.create_obj(OleFunctions.java:513)
     at oracle.forms.webutil.ole.OleFunctions.getProperty(OleFunctions.java:218)
     at oracle.forms.handler.UICommon.onGet(Unknown Source)
     at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
     at oracle.forms.engine.Runform.processMessage(Unknown Source)
     at oracle.forms.engine.Runform.processSet(Unknown Source)
     at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
     at oracle.forms.engine.Runform.onMessage(Unknown Source)
     at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
     at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
     at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Window.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
This is my classpath parameter in default.env file:
CLASSPATH=d:\Oracle9iAS2\jlib\importer.jar;d:\Oracle9iAS2\forms90\java;D:\Oracle9iAS2\jlib\debugger.jar;D:\Oracle9iAS2\jlib\ewt3.jar;D:\Oracle9iAS2\jlib\share.jar;D:\Oracle9iAS2\jlib\utj90.jar;d:\webutil\lib\webutil.jar;D:\Oracle9iAS2\jdk\jre\lib\rt.jar
Could someone help me, please?
Dejan

A machine of Oracle9iAS must be powerful, I guess! I have 512MB RAM, only, and a recommendation is 1GB at least. It works slowly, but that's only a test environment. I have strong servers in my company, so the most significant thing at the moment is that webutil concept works. That is the basic reason for migration from 6i, but not the only one. Now I need a library of properties for the word and excel invoking, for a complete settings of any document or worksheet. If someone has something similar, please send me! My address is [email protected] . Thank you in advance!

Similar Messages

  • How do I call a SAP RFC from an Oracle Form using webutils CLIENT_OLE2?

    Hi guys,
    Your help on this problem would be greatly appreciated.
    We have an older forms 6i application which we are currently updating to 10g (which is a pain itself... but that's a different story.) which currently uses unssupported c++ routines to connect to the SAP system, we want to do away with this c++.
    What I have so far is the following test code:
    PROCEDURE cmd_summary
    IS
    o_sap_log client_ole2.obj_type;
    o_sap_conn client_ole2.obj_type;
    o_sap_rfcc client_ole2.obj_type;
    -- o_sap_rfcx client_ole2.obj_type;
    -- o_sap_rfc client_ole2.obj_type;
    v_args ole2.list_type;
    v_logon BOOLEAN := FALSE;
    BEGIN
    :block3.txt_result := 'TEST Started!';
    --create logon control object
    o_sap_log := client_ole2.create_obj ('SAP.logoncontrol.1');
    --create the function object
    o_sap_rfcc := client_ole2.create_obj ('SAP.Functions');
    --create a new connection object
    o_sap_conn := client_ole2.invoke_obj (o_sap_log, 'NewConnection');
    --set the connection properties
    client_ole2.set_property (o_sap_conn, 'System', caps$get_sys_param ('SAP_DST'));
    client_ole2.set_property (o_sap_conn, 'MessageServer', caps$get_sys_param ('SAP_HST'));
    client_ole2.set_property (o_sap_conn, 'GroupName', 'DEVELOP');
    client_ole2.set_property (o_sap_conn, 'client', caps$get_sys_param ('SAP_CLT'));
    client_ole2.set_property (o_sap_conn, 'SystemNumber', caps$get_sys_param ('SAP_SYN'));
    client_ole2.set_property (o_sap_conn, 'User', caps$get_sys_param ('SAP_USR'));
    client_ole2.set_property (o_sap_conn, 'Password', caps$get_sys_param ('SAP_PWD'));
    client_ole2.set_property (o_sap_conn, 'language', caps$get_sys_param ('SAP_LNG'));
    --set up the logon arguements
    v_args := client_ole2.create_arglist;
    client_ole2.add_arg (v_args, 1);
    client_ole2.add_arg (v_args, TRUE);
    --run the logon function
    v_logon := client_ole2.get_bool_property (o_sap_conn, 'logon', v_args);
    client_ole2.destroy_arglist (v_args);
    IF v_logon
    THEN
    :block3.txt_result := :block3.txt_result || CHR (10) || 'LOGON Worked!!';
    ELSE
    :block3.txt_result := :block3.txt_result || CHR (10) || 'LOGON Failed!!';
    END IF;
    :block3.txt_result := :block3.txt_result || CHR (10) || 'TEST Ended!';
    EXCEPTION
    WHEN OTHERS
    THEN
    :block3.txt_result := :block3.txt_result || CHR (10) || SQLERRM (SQLCODE);
    END cmd_summary;
    NOTE: the get_sys_param functionis returning text from a table.
    This seems to work okay, the logon command returning a TRUE. All good so far.
    However, when I try to then use this connection for anything then I stumble and fall!
    I've seen an example in VB where the SAP RFC object is "assigned" the connection object by simply stating:
    Set oSAPrfc.Connection = oSAPconn
    Where oSAPconn is setup in a similar way to my o_Sap_conn in the above example.
    I have tried using the CLIENT_OLE2.SET_PROPERTY procedures but I don't think that's quite right.
    I've tried using invoke, to try and "run" the method like:
    v_args := CLIENT_OLE2.CREATE_ARGLIST;
    client_ole2.add_arg_obj(v_args,o_sap_conn);
    client_ole2.invoke(o_sap_rfcc,'Connection',v_args);
    client_ole2.destroy_arglist(v_args);
    but it fails.
    I have also tried using the actual Connection function directly:
    SAP_ISAPFUNCTIONS.connection(o_sap_rfcc, o_sap_conn);
    But that just causes the Forms Server to crash... :?
    Has anyone connected to SAP via Forms? I noticed one post on this forum which an example of some code using a SAPBAPI control but not WEBUTIL (Which I think I'd need to use because we are running 10g)
    As a side note we are also looking into SAP Adapter as a possible "other" route but this too is getting very complicated... And I can't see a way of connecting a form to the Adpater anyway :(
    Any advice would be very much appreciated.

    Can anyone help?
    Mike

  • Error Handling in WebUtil CLIENT_OLE2.get_obj_property

    Hello,
    we have a problem with the error handling in WebUtil's CLIENT_OLE2.get_obj_property function. The WebUtil version is 1.0.2 and the problem can be reproduced on the 9iAS, 9iDS and 10gAS as well.
    Problem description:
    The get_obj_property function does not throw a PL/SQL exception when it is given an invalid object as first argument (i.e. an object handle to an application that has intermittently been closed by the user). Instead, the function returns a NULL value and the control flow of our application code continues as if the function had succeeded. So the problem is that the get_obj_property function neither throws an exception nor can the failure be caught by calling WEBUTIL_CORE.IsError as this returns that no error occurred.
    Example:
    PACKAGE BODY word IS
    OBJ_HND CLIENT_OLE2.OBJ_TYPE := NULL;
    mydocs CLIENT_ole2.obj_type;
    -- Start Word97
    PROCEDURE wordopen is                         
    BEGIN
    obj_hnd := null;
    obj_hnd := CLIENT_OLE2.create_obj ('Word.Application');
    CLIENT_OLE2.Set_property(obj_hnd,'Visible',1);
    END;
    PROCEDURE test is
    BEGIN
    IF obj_hnd IS NULL THEN
    wordopen;
    END IF;
    BEGIN
    mydocs := CLIENT_OLE2.get_obj_property(obj_hnd,'Documents');
    EXCEPTION WHEN OTHERS THEN
    -- Word has probably been closed by the user
    -- so just start it again and retry...
    wordopen;
    mydocs := CLIENT_OLE2.get_obj_property(obj_hnd,'Documents');
    END;
    END;
    END;
    If the procedure test is called once then the Word application is started and the procedure performs some work. The procedure could be called several times on the same Word instance but fails in case the user closes the Word application because the procedure does not get an exception or error from WebUtil's get_obj_property function. Only a JACOB Java exception is logged in the Java console of the user's computer - the PL/SQL code has no way of knowing that an error has occurred.
    Possible solution / patch for webutil.pll:
    The webutil.pll can be patched to throw an exception if it is given an invalid object handle. In webutil.pll version 1.0.2 in get_object_property, line 1205, just add the condition "(v_javaHandle IS NULL) or " at the beginning of the if-statement in that line so that an OLE_ERROR will be raised if v_javaHandle is NULL:
    if (v_javaHandle IS NULL) or (v_javaHandle = 0) or (v_javaHandle='') or (v_javaHandle=-1) then     
    raise OLE_ERROR;      
    end if;     
    Can you confirm the error and re-release a patched webutil.pll at a later time?
    Regards,
    Andreas Leidner
    infoteam GmbH Berlin

    Hi
    It is mentioned in webutil doc that, you must regenerate webutil.pll before using it; otherwise you’ll encounter error ORA-06508 when running a form with the attached library.
    Hope this helps...
    Regards,
    Amatu Allah

  • Webutil - CLIENT_OLE2 for exporting to MS Word

    I've done a lot of reading about this on the net, and have been unable to find the solution, perhaps someone on here knows. I am attempting to launch a word document and fill it with some text. A very simple small block of code (taken from an example I found on Oracle's website):
    ==========================================================
    DECLARE
    app CLIENT_OLE2.OBJ_TYPE;
    docs CLIENT_OLE2.OBJ_TYPE;
    doc CLIENT_OLE2.OBJ_TYPE;
    selection CLIENT_OLE2.OBJ_TYPE;
    args CLIENT_OLE2.LIST_TYPE;
    BEGIN
    -- create a new document
    app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
    CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Selection');
    -- insert data into new document from long item
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text', 'TEST123');
    CLIENT_OLE2.RELEASE_OBJ(selection);
    CLIENT_OLE2.RELEASE_OBJ(doc);
    CLIENT_OLE2.RELEASE_OBJ(docs);
    END;
    ==========================================================
    This will launch the word application, but no new document is created. I'm inclined to think there is a problem with the way that I've setup webutil, but why would forms have no trouble launching the word application, and be unable to create a new document?
    The error I get in the Java Console is the following:
    2007-Jul-11 09:49:39.699 ERROR>WUO-714 [OleFunctions.setExceptionValues()] Unable to get the last OLE Error details; Exception
    null
    2007-Jul-11 09:49:39.699 ERROR>WUO-708 [OleFunctions.get_obj_property()] Unable to get Property: Documents; Exception
    com.jacob.com.ComFailException: A COM exception has been encountered:
    At Invoke of: Documents
    Description: An unknown COM error has occured.
    I'm using the latest version of Jacob, a recent version of webutil, and Forms 10g. And MS Office 2003.
    Any help with this would be much appreciated.

    I used code given below, it gives an error ORA-305501
    I am using Microsoft Office-2003.
    how can I export contents(modified) of MSWORD back to form?
    declare
         app CLIENT_OLE2.OBJ_TYPE;
         docs CLIENT_OLE2.OBJ_TYPE;
         doc CLIENT_OLE2.OBJ_TYPE;
         selection CLIENT_OLE2.OBJ_TYPE;
         args CLIENT_OLE2.LIST_TYPE;
    BEGIN
    -- create a new document
              app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
              CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
              docs := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Documents');
              doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
              selection := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Selection');
         -- insert data into new document from long item
              CLIENT_OLE2.SET_PROPERTY(selection, 'Text', :b1.t1);
    -- save document as example.doc
         args := OLE2.CREATE_ARGLIST;
         CLIENT_OLE2.ADD_ARG(args, 'c:\temp\example.doc');
              CLIENT_OLE2.INVOKE(doc, 'SaveAs', args);
              CLIENT_OLE2.DESTROY_ARGLIST(args);
    -- close example.doc
              args := CLIENT_OLE2.CREATE_ARGLIST;
              CLIENT_OLE2.ADD_ARG(args, 0);
              CLIENT_OLE2.INVOKE(doc, 'Close', args);
              CLIENT_OLE2.DESTROY_ARGLIST(args);
              CLIENT_OLE2.RELEASE_OBJ(selection);
              CLIENT_OLE2.RELEASE_OBJ(doc);
              CLIENT_OLE2.RELEASE_OBJ(docs);
    -- exit MSWord
              CLIENT_OLE2.INVOKE(app,'Quit');
    END;

  • WEBUTIL - CLIENT_OLE2 : Clientside Word Integration problem

    Hi,
    I have attached webutil.pll and webutil.olb and configured the necessary files as per the webutil manual in Oracle Forms 10g under Windows 2000. I have compiled the libraries before running the form.
    When I run the form, encountering following error message:
    WUC-015: Your form must contain the following bean for this function to be available : oracle.forms.webutil.ole.olefunction
    Please help me out to trace the error.
    Thanks - Mundhir.
    [email protected]
    In my forms [When-Button-Pressed], I added the following code :
    ==========================================================
    PROCEDURE worddoc IS
    BEGIN
    DECLARE
    -- Declare the OLE object
    application CLIENT_OLE2.OBJ_TYPE;
    -- Declare handle to the OLE argument list
    args CLIENT_OLE2.LIST_TYPE;
    BEGIN
    -- Start WordBasic and make Word visible
    application:=CLIENT_OLE2.CREATE_OBJ('Word.Basic');
    CLIENT_OLE2.INVOKE(application, 'AppShow');
    -- Create a new Word document
    CLIENT_OLE2.INVOKE(application, 'FileNew');
    -- Navigate to the bookmark called 'LetterHead'
    args:=CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 'ViewHeader');
    CLIENT_OLE2.INVOKE(application, 'EditGoto', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    args:=CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, :TXT_HEADER);
    CLIENT_OLE2.INVOKE(application, 'Insert', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    -- Insert the text item into the Word document
    args:=CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, :TXT_COMMENT);
    CLIENT_OLE2.INVOKE(application, 'Insert', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    -- Save the document to the filesystem
    args:=CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 'c:\temp\EXAMPLE.DOC');
    CLIENT_OLE2.INVOKE(application, 'FileSaveAs', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    -- Release the OLE object
    CLIENT_OLE2.RELEASE_OBJ(application);
    END;
    END;
    ==========================================================

    I used code given below, it gives an error ORA-305501
    I am using Microsoft Office-2003.
    how can I export contents(modified) of MSWORD back to form?
    declare
         app CLIENT_OLE2.OBJ_TYPE;
         docs CLIENT_OLE2.OBJ_TYPE;
         doc CLIENT_OLE2.OBJ_TYPE;
         selection CLIENT_OLE2.OBJ_TYPE;
         args CLIENT_OLE2.LIST_TYPE;
    BEGIN
    -- create a new document
              app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
              CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
              docs := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Documents');
              doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
              selection := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Selection');
         -- insert data into new document from long item
              CLIENT_OLE2.SET_PROPERTY(selection, 'Text', :b1.t1);
    -- save document as example.doc
         args := OLE2.CREATE_ARGLIST;
         CLIENT_OLE2.ADD_ARG(args, 'c:\temp\example.doc');
              CLIENT_OLE2.INVOKE(doc, 'SaveAs', args);
              CLIENT_OLE2.DESTROY_ARGLIST(args);
    -- close example.doc
              args := CLIENT_OLE2.CREATE_ARGLIST;
              CLIENT_OLE2.ADD_ARG(args, 0);
              CLIENT_OLE2.INVOKE(doc, 'Close', args);
              CLIENT_OLE2.DESTROY_ARGLIST(args);
              CLIENT_OLE2.RELEASE_OBJ(selection);
              CLIENT_OLE2.RELEASE_OBJ(doc);
              CLIENT_OLE2.RELEASE_OBJ(docs);
    -- exit MSWord
              CLIENT_OLE2.INVOKE(app,'Quit');
    END;

  • Jacob.jar Help/Webutil Error-Urgent Help Needed

    We are not using any OLE object in forms.But after implementation on WEBUTIL the browser starts giving below error:
    java.lang.NoClassDefFoundError:com/jacob/com/ComFailException
    Can anyone help ?
    Is jacob.jar is required to download even if we don't need it.
    Thanks
    Mandeep Singh

    Thanks for quick response.
    But my question is do we need to config jacob lib even we dn't need it.I am asking this because with this release of WEBUTIL,jacob is a seperate lic. product and its not a part of WEBUTIL pack.
    Thanks

  • Webutil :client_ole2

    Using client_ole2 , I can control methods and properties of OLE2 . Is it possible for me to listen to OLE2 events ? Has anyone done that .
    Txs

    No - Events are not supported in either Mid Teir OLE2 or in the CLIENT_OLE2 package.

  • Why does WebUtil needs AS configurations?

    If we have to only attache the WebUtil.PLL and sub-class the webutil.olb to the form and place the frmwebutil.jar in the \%Oracle Dev Home%\forms\java then why do we need such a complicated set-up in the app server (like signing with JACOB which I really don't understand)? Do we have to install any Java components in the DB also?
    Can anybody explain to me what happens when a 10g Release 2 Form tries to read an Excel sheet from the client machine? In simple steps can you plese explan what WebUtil components are called and where those components are (client/app server/DB machine)? How does the application server come into play when a Form reads from an Excel sheet in the client machine because the Excel sheet is in the client machine and NOT in the app. server or DB machine?
    Please pardon my ignorence in this. I tried reading the documentation (PDFs and web-pages) but I could not figure how it works.
    Edited by: user12240205 on Apr 29, 2011 6:06 AM

    then why do we need such a complicated set-up in the app server (like signing with JACOB which I really don't understand)?JACOB stands for JAva-COm Bridge. This is the mechanism by which Oracle Forms is able to interact with the Client workstation and call Windows COM Automation components. Without the JACOB library (.jar) WebUtil would not work. You have to sign the jacob.jar because your application is deployed over the web.
    Do we have to install any Java components in the DB also?No - you only need the WebUtil database package.
    Can anybody explain to me what happens when a 10g Release 2 Form tries to read an Excel sheet from the client machine?Forms uses the Webutil Client_OLE2 package to communicate with Excel using Windows COM methods. As I mentioned above, without the JACOB library, WebUtil would not be able to communicate with Excel using COM.
    In simple steps can you plese explan what WebUtil components are called and where those components are (client/app server/DB machine)?Rather than explain each step, there are numerous demo's on the internet and in Oracle's Forms Demos that demonstrate how to use WebUtil. It is also a very common topic in the Forums. I recommend you look at WebUtil - A Simplified guide to understanding WebUtil. Also take a look at Forms: How to Read an Excel file into a Form for an example of how to interact with Excel.
    How does the application server come into play when a Form reads from an Excel sheet in the client machine because the Excel sheet is in the client machine and NOT in the app. server or DB machine?{qoute}The Application Server (AS) is simply the transport mechanism to deliver the JACOB Java Library to the Client. When a Forms interacts with Excel - everything occurs on the client. Depending on what you are attempting to do, the AS may never be involved with a WebUtil transaction on the client. Now, if you need to upload a file or store a client image in the database then the AS and the Database server would become involved.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • CLIENT_OLE2 Question

    I currently have an application that is using Webutils client_ole2... I have it sending a CLOB to microsoft word spell checks it and then copies all the corrected text to the clipboard so i can paste it back in a field on the forms. Everything is working fine, except when the CLOB is real big I get the microsoft word message:
    'You placed a large amount of text on the Clipboard. Do you want this text to be available to other applications after you quit word'
    And it still will work if they click yes. I was wondering is there a command I can send to automatically click the 'Yes' (with one of the webutil functions) button when this prompt fires?
    Any help would be appreciated. Thanks

    I currently have an application that is using Webutils client_ole2... I have it sending a CLOB to microsoft word spell checks it and then copies all the corrected text to the clipboard so i can paste it back in a field on the forms. Everything is working fine, except when the CLOB is real big I get the microsoft word message:
    'You placed a large amount of text on the Clipboard. Do you want this text to be available to other applications after you quit word'
    And it still will work if they click yes. I was wondering is there a command I can send to automatically click the 'Yes' (with one of the webutil functions) button when this prompt fires?
    Any help would be appreciated. Thanks

  • Webutil set.object

    Hi
    I am using webutil CLIENT_OLE2 to export data from a form to excel. The process works fine however if a field is a number field with leading zeros, the leading zeros are dropped leaving only the number.
    eg. a code field on the form = 0001 -> in the spreadsheet after the export the code field displays 1
    Is there a way to change the format of the cell from number to text using the client_ole2.set_object statement?
    Is it possible for me to get a list of the properties that can be set using the client_ole2.set_object statement?
    Thanking u in advance for your help.

    In the Forms default.env create a variable called REPORT_SERVER and set its value to the name of your rep server. In the form use the following to get that value:
    Declare
         repServer varchar2(255);
    Begin
         TOOL_ENV.Getvar ('REPORT_SERVER', repServer);
         -- Do something with repServer here.
    End;Do not try putting REPORT_SERVER in formsweb.cfg as an applet parameter because the applet doesn't know what it is and the value needs to be used on the server and not the client. Don't add any weight to the html if it isn't needed.

  • Use Excel's "analysis toolpak" in Forms webutil

    Hi experts,
    I want to use Microsoft Excel's PRICE function in "analysis toolpak".
    Is it possible to call "analysis toolpak" functions
    from Forms10g webutil(client_ole2).
    Regards,
    Kristerr

    Hi Jan,
    Thanks for the reply =)
    I have read some documentation about webutil
    and was able to successfully open Microsoft Excel with Forms10g.
    But opening Excel from forms10g
    will not load addins (analysis tookpak) automatically,
    and the documentation doesn't have any samples on how to load them.
    So my Excel returns a #NAME? error whenever I use the PRICE function.
    If you know any other webutil links with this example please do tell.
    Desperate,
    Kristerr

  • How To OLE2... WebUtil Familiarization Manual?

    What's being passed off as "documentation" for Webutil references a document called "WebUtil Familiarization Manual". No where does anything say how to find it. I'm currently Ransack-ing my hard drive for something with those words in it. I've searched the Oracle Documentation Library online, Google, I've dug through every file, link, and post I can find.
    Setting up OLE2 to work with Excel is giving me fits. There are a lot of examples that have gotten me a long way, but this trial-and-error is wasting precious time. If you happen to know where Oracle hides this OR know of a good OLE2 how-to document, please let me know.
    Thank you!
    (11g Forms, 11g Reports, 10g Database)

    Webutil references a document called "WebUtil Familiarization Manual". Curious. I did some digging of my own and found the WebUtil manual that makes this reference, but you are right - I could not find this manual anywhere, even in My Oracle Support. Occasionally, the documentation is hidden in plain sight - in the Oracle Forms Help system, but I could not find this manual there either.
    If you happen to know where Oracle hides this OR know of a good OLE2 how-to document, please let me know.Unfortunately, there is no single reference that gives examples of how to use the different methods available in WebUtil; you have to piece them all together from different sources. Here are a few that I have used:
    Oracle - How to perform OLE on the client using WebUtil
    Oracle - WebUtil Demo (download)
    Oracle - How To perform Text_IO on the client using WebUtil
    Oracle Forms Developer - WebUtil User's Guide
    The best references I've found require My Oracle Support access. Here is a list of a few of the documents I've used (related to OLE with Excel):
    *How to Copy Records from From Into MS Excel using WebUtil? [ID: 247606.1]*
    *How to Read Data from an EXCEL Spreadsheet int a form using WebUtil Client_OLE2 [ID: 813535.1]*
    There are also quite a few examples in the Forums of using Client_OLE with Excel.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to Load the data from excel file(Extension is .CSV) into the temp.table

    Hi
    How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
    My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
    Kindly Suggest the Solution.
    Regards,
    Sachin

    Hello Sachin,
    You can use the following metalink note:How to Read Data from an EXCEL Spreadsheet into a Form Using Webutil Client_OLE2 (Doc ID 813535.1) and modify it a little bit.
    Instead of copy values into forms you can save them in your temporary table.
    Kind regards,
    Alex
    If someone's helpful or correct please mark it accordingly.

  • DDE.initiate is not working in oracle forms 10g

    Previously i have used DDE for uploading the data from excel to DB in oracle forms 10g.now it is throwing non-oracle exception at DDE.intiate.
    could you please help me to solve this issue.
    i use the below code
    APPLICATION := OLE2.CREATE_OBJ('EXCEL.APPLICATION');
         ole2.set_property(application,'Visible','false');
         WORKBOOKS := OLE2.GET_OBJ_PROPERTY(APPLICATION,'WORKBOOKS');
         ARGS := OLE2.CREATE_ARGLIST;
         OLE2.ADD_ARG(ARGS,:PARAMETER.P_SERVER_FILE_NAME);
         WORKBOOK := OLE2.GET_OBJ_PROPERTY(WORKBOOKS,'OPEN',ARGS);
         OLE2.DESTROY_ARGLIST(ARGS);
         WORKSHEETS := OLE2.GET_OBJ_PROPERTY(WORKBOOK,'WORKSHEETS');
         WORKSHEET := OLE2.GET_OBJ_PROPERTY(APPLICATION,'ACTIVESHEET');     
         M_CONVID := DDE.INITIATE('EXCEL',:PARAMETER.P_SERVER_FILE_NAME);

    Hello,
    Do not use DDE.intiate.Comment that line.As per your code the file is already open.
    Here is a good example in this metalink note:
    How to Read Data from an EXCEL Spreadsheet into a Form Using Webutil Client_OLE2 (Doc ID 813535.1)
    Regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • Ole2 commands not working in forms 10g

    OLE2.set_property(Application, 'Visible', true);
    above statement not working in forms 10g;

    Try to use the OLE2 fuction from WEBUTIL library. There is function in webutil CLIENT_OLE2.
    -Ammad

Maybe you are looking for

  • How to  cancel GR

    Dear Friends, For Raw material which is having 01 insp. type GR is done through MIGO and kept it Unrestricted stock, now we want cancel GR can anyone tell me in detail how to do this. Because when i tried to MBST/MIGO reverse it is not allowing and g

  • Processing of soap message

    some help is required on the SOAP processing <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w

  • Two Skins Questions

    I have two questions which I've seen asked elsewhere on this forum but not answered. I'll try them again :-D Fist, I can create a custom skin and apply it to my project at time of generation, but it does not appear in my Project Set-up pod for furthe

  • Deleted files and photos

    If deleted files and photos even from the bin, is it possible in anyway to take them back without any cost issues? Thanks

  • I put some money in my phone by itunes accunt but i can not use it in clash of clans game why

    i put some money in my phone by itunes accunt but i can not use it in clash of clans game why please help me as soon as passbile