OLE in Forms 6i

hi
how do you insert an excel object in a form?
i've been trying to mimic the [wapidemo]demo form, but have been unsuccessful.
thanks
null

There is a limitation in using OLE: you can only use one page at a time. If you have multiple page documents, you have to split them per page.
We had the same problem and I remember there was a note on My Oracle Support about this. We've used an OLE item for a 3 page word document and had to split the document.
It is one of the reasons you should keep OLE containers to a minimum.
Another reason is that you'll never be able to get the document out of the database without using Forms.

Similar Messages

  • OLE in forms

    Hi,
    I am trying to use OLE in forms to access objects. There is a
    function called
    FUNCTION GET_OLE_NUM (obj OLEOBJ, memberid PLS_INTEGER)
    RETURN oleprop NUMBER;
    Can anyone please tell me what this value memberid stands for
    Thanks in advance
    Padma

    You'll need to setup WEBUTIL. Have a search for the documentation on the main otn page. It'll include examples of the functionality which will include the client_ole2 functionality.

  • Display data on OLE object (form) in Crystal Report

    Hi All,
    I m using Crystal Reports 2008. We have Business Objects XI 3.1 SP3 environment.
    I have a crystal report with OLE object embedded in it. The OLE Object is a form on which the database fields and the formula fields are supposed to be displayed. The OLE Object form has multiple lines (rows) and sections. I have a formula field that sometimes brings multiple records and I want to be able to display those records as rows (one below the other) on the same page until all rows on the form are filled. I have 2 problems:
    1. When the formula field brings more than 1 record, only one record is displayed on one page and the next record goes and prints on the next page i.e. the records are not being displayed below each other.
    2. How do I make sure that the records display on the next page of the report once all empty lines/rows on the OLE object form are filled?
    Your replies are much appreciated.
    Thank you.

    Hi,
    if I understand correctly, your OLE object is a form and your data needs to display on it.
    What you can do is, inserting the OLE object on page header and then in the section expert, click "Underlay the following section".
    Note that the structure of Crystal report is RH, PH, GH, Details.
    So, if you insert OLE object in Page Header (PH) and you have a group, underlaying the OLE means displaying the object underlay Group Header (GH).
    So, it is a bit of twisting to do and your OLE object needs to fit well as in A4 (or the paper size you need) consistently.

  • Ole retrieval FORMS 6.0

    Hello All,
    Iam unsing forms 6.0 and iam using OLE object to store the data object into the database, using the block wizard i created the object and from the
    action->Save iam saving the ole object to the database....
    Now i want to retrive the ole object from the database....
    my sql is
    declare
    ol long raw;
    begin
    select ole_object into ol from drawing_files where draw_no=1;
    drawing_files.ole_object:=ol;
    end;
    Its showing error in "Bad bind variable"
    How to solve the error

    I make icon file 16x16 and use it in FTree.
    But FTree reflect icon as 32x32.
    null

  • Scrollbar of OLE in forms 6i

    Hi all
    I am using forms 6i and Oracle 10g. I have an entry form and in this form there is an OLE item. I am using MS word application in this ole. When i write 2/3 pages documents i can not see the whole documents in the OLE contents. If I could enable scroll bar of OLE item then my problem solve.
    Can I enable scroll bar of OLE item?
    thanx in advance.

    There is a limitation in using OLE: you can only use one page at a time. If you have multiple page documents, you have to split them per page.
    We had the same problem and I remember there was a note on My Oracle Support about this. We've used an OLE item for a 3 page word document and had to split the document.
    It is one of the reasons you should keep OLE containers to a minimum.
    Another reason is that you'll never be able to get the document out of the database without using Forms.

  • WebUtil -- OLE functions Forms 10G

    We could use severl webutil functions but OLE.
    When calling it is failing right in the first line....
    application:=CLIENT_OLE2.create_obj('Outlook.Application');     
    generating below error in Java Console.....Any help is appreciated..
    Exception occurred during event dispatching:
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jacob)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkLink(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at com.jacob.com.Dispatch.<clinit>(Dispatch.java:537)
         at oracle.forms.webutil.ole.OleFunctions.create_obj(Unknown Source)
         at oracle.forms.webutil.ole.OleFunctions.getProperty(Unknown Source)
         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.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)

    Its all in the first line:
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jacob)
    This probably means that you did not correctly sign the JAR files....hence a security exception accessing the jacob library
    Regards
    Grant Ronald
    Oracle Product Management

  • Using blobsin database and ole in forms ,reports

    Dear forum ,
    I have one thread to you, its stopping me from moving forward.
    I am using forms 6i ,reports 6i ,db above 9i.
    I had created database table haveing one blob column ,used the column in form as ole object and inserted a record contains (opened ms office excel sheet ,i need some part of rows columns matrix copied -it contains data taken) copied in forms runtime and saved.
    And the same table used in oracle reports the column as ole column, generated the output to pdf ,or word .
    the inserted records -bolob images are not retriveing or not shown in generated file can be pdf or word or html ?
    what is the reason.
    can you help me the proceeding.
    Thanks & Regards ,
    Deviprasad.m

    I don't think its possible to include a word-doc or a pdf stored in a blob in a report. A blob in reports can be used to show an image, like a jpg or gif.
    Edited by: Andreas Weiden on 11.07.2010 14:11

  • WebUtil -- OLE functions Forms 10G -- OutLook Access dialog window

    Hello:
    I am using OLE to open outlook compose dialog email dialog box from Forms.
    When we invoke Outlook Compose/draft window, an Outlook Dialog window/alert comes up with a message "A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this? etc.."
    How can I suppress this dialog box?
    Thanks

    Hello,
    take a look at this thread:
    Re: E-mail from oracle form - suppress dialog window
    and first off all, contact your system administrator.
    Bernd

  • OLE & Web Forms

    In the client/server environment, I'm able to use OLE to invoke
    and store documents, e.g. word, excel documents, etc. into an
    ole container. When I move the same function to the web, it
    doesn't seem to work. I cannot get the right mouse button to
    show anything. Is this something that will be in the next
    release? Could this work using Java or some other way?
    Thanks
    null

    Laura (guest) wrote:
    : In the client/server environment, I'm able to use OLE to invoke
    : and store documents, e.g. word, excel documents, etc. into an
    : ole container. When I move the same function to the web, it
    : doesn't seem to work. I cannot get the right mouse button to
    : show anything. Is this something that will be in the next
    : release? Could this work using Java or some other way?
    : Thanks
    OLE will not work at all in Developer Server
    null

  • Using OLE in forms 10g

    Gurus,
    I have a problem. I want to import MS-Excel sheet into forms 10g, any builts to be used ?? what's the procedure ?
    Can anyone help me
    Regards

    Well, the application should come from the client machine rather than serverThe application runs from the server (as it is web-forms), but the UI runs and the client.
    WEBUTIL is designed to do things on the client. So CLIENT_OLE is executed on the client-pc.

  • Forms 6i and OLE

    I've upgraded from Forms 5 to Forms 6i and have subsequently found my Word2000 documents become corrupt when edited using OLE in the new version of Forms. Has anyone found this ?
    I've been advised by Oracle to recreate them as new documents in Forms 6i. This is no easy task as I have over 135,000 documents stored in the data base. A possible solution suggested was to open the documents in Forms 5, saving them on my hard drive, then opening the documents from the hard drive using Forms 6i, copying the contents and pasting them in to a new document using OLE in Forms 6i. This doesn't work as the paste facility fails in new documents and Word2000 has an in build message which appears when copying large amounts of text. I'm really struggling to find a solution to this, I also find it hard to believe that I'm first person to have attempted a upgrade from Forms 5 to 6i with word documents stored using OLE.
    Can anyone help ??

    it not only for word, but for JPG files too, I mean it is not possible for other tools to open the JPG file from db after thru forms 5.x, 6.x to save to db.

  • Inserting dynamic images to excel using oracle forms 6i

    HI All,
       I'm working in project to export data from a table, one of the column has images (Blob). I need to export the data to excel.
       How can I do it?
    Thanks

    Use OLE Functions.
    http://codingwithpassion.blogspot.com/2011/02/plsql-forms-word-and-excel-manipulation.html
    Features of OraOLEDB
    ole - Oracle Forms using OLE2 not saving Excel document on 3-tier setup - Stack Overflow
    Tx

  • Using an OLE container to store MS word files

    Hello,
    We are using OLE containers in Forms 6 to store word documents. Occasionally documents seem to be coruppted and can not be opened. I exported document back to a file useing TOAD but the file seems to have a bunch of extra header info added by forms. Anyone know what this is and if it can be stripped off?
    null

    Hello,
    I have a similar problem. I want to extract a blob filed with ole from forms with other tools to a file, but the new file then has extra informations about the ole-object. Due to MetaLink there seems to be no possibility to strip these extra bytes off the data.
    Please let me know if you have a solution to this problem.
    Greetings,
    Thorsten.

  • OLE Automation for Word. EditGoto with Word 97

    I found a solution. Instead EditGoto, use WW7_EditGoto.
    Example:
    .- A Word Template whith two bookmarks
    (Texto1, Tabla1). A normal bookmark
    (Texto1) and a bookmark into a Word
    Table (Tabla1).
    In the Word Table, is posible change
    cell o create a new row with the same
    command (NextCell).
    The word table has two columns an two
    rows.
    The first row is the Header.
    The second row the first column contain
    a bookmark (Tabla1).
    .- A Form whit two blocks:
    First block with two items:
    nombre_doc
    texto1
    Secod Block (multirecord) whit two items
    col1
    col2
    with a When-Button-Pressed:
    DECLARE
    application OLE2.OBJ_TYPE;
    args OLE2.LIST_TYPE;
    BEGIN
    -- Start WordBasic and make Word visible
    application:=OLE2.CREATE_OBJ('Word.Basic');
    OLE2.INVOKE(application, 'AppShow');
    -- Open a Word document
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,'Plantilla.dot');
    OLE2.INVOKE(application, 'FileOpen', args);
    OLE2.DESTROY_ARGLIST(args);
    -- Put Text in the first bookmark
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,'Texto1');
    OLE2.INVOKE(application, 'WW7_EditGoto', args);
    OLE2.DESTROY_ARGLIST(args);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,:Texto1);
    OLE2.INVOKE(application, 'Insert', args);
    OLE2.DESTROY_ARGLIST(args);
    -- Send data from Multirecord Block to Word Table
    GO_BLOCK('MULTI');
    FIRST_RECORD;
    IF :SYSTEM.RECORD_STATUS != 'NEW' THEN
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,'Tabla1');
    OLE2.INVOKE(application, 'WW7_EditGoto', args);
    OLE2.DESTROY_ARGLIST(args);
    LOOP
    IF :col1 IS NOT NULL THEN
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,:col1);
    OLE2.INVOKE(application, 'Insert', args);
    OLE2.DESTROY_ARGLIST(args);
    END IF;
    OLE2.INVOKE(application, 'NextCell');
    IF :col2 IS NOT NULL THEN
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,:col2);
    OLE2.INVOKE(application, 'Insert', args);
    OLE2.DESTROY_ARGLIST(args);
    END IF;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
    NEXT_RECORD;
    OLE2.INVOKE(application, 'NextCell');
    END LOOP;
    -- Save a Word document
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,:nombre_doc);
    OLE2.INVOKE(application, 'FileSaveas', args);
    OLE2.DESTROY_ARGLIST(args);
    --Release the OLE object
    OLE2.RELEASE_OBJ(application);
    END;
    Sorry by the sintax, but i don't speak English.
    I hope it solves this problem.

    Hello,
    I am also trying to use the OLE2 package for OLE Automation. But
    difference being that I am not using Word but am using an
    invisible control for Mail services, using the objects
    MAPISession, MAPImessages. If anyone out there had already done
    this do please give me a code snippet.
    Thanx in advance
    Anup Mistry,
    Programmer/Analyst,
    IIS,Inc
    Vasile (guest) wrote:
    : Hi Daniel,
    : I used OLE with forms 5 ,but now it work without problems in
    : forms 6, too.
    : A procedure that save doc. look like that:
    : procedure filesaveas (fname in varchar2) is
    : arglist ole2.list_type;
    : begin
    : arglist := ole2.create_arglist;
    : ole2.add_arg (arglist, fname);
    : ole2.invoke (obj_hnd, 'filesaveas', arglist);
    : ole2.destroy_arglist (arglist);
    : end;
    : I hope this help you.
    : Vasile
    : Daniel Fox (guest) wrote:
    : : I am using Forms 6.0
    : : Can anyone help with OLE automation using OLE2.
    : : I can open Word, document stored in long raw, even insert
    data
    : : from other form field into the Word Document (only at the
    : : beginning of the Document, though).
    : : All the File commands, such as FileSaveAs, EditGoTo, etc..
    : don't
    : : work. They are simply ignored - no error messages, nothing.
    : : Does anyone use Word Automation through Forms 6.0?
    : : Please, HELP....
    : : Thanks in advance,
    : : Desperate Daniel.
    null

  • Using RealPlayer control in OLE container to play video

    Hi everyone,
    I am a student and I want to use Oracle OLE control in Oracle forms to implement some multimedia data. I choose RealPlayer G2 control / Window media Player / even Oracle Video Control to do this. But I have one common problem that I can't insert those control object in the OLE container automatically(in the designer).
    How can I have the multimedia control object start when forms runtime?
    Also, how can I store and retrieve data using that multimedia control object?
    Anyone can help me?
    Thx.
    Carol

    Hello,
    I have a similar problem. I want to extract a blob filed with ole from forms with other tools to a file, but the new file then has extra informations about the ole-object. Due to MetaLink there seems to be no possibility to strip these extra bytes off the data.
    Please let me know if you have a solution to this problem.
    Greetings,
    Thorsten.

Maybe you are looking for