DDE package

Can We use DDE.initiate built in without using DDE.APP_Begin
if yes then how

Here is a sample:
http://www.orape.net/article35.html
Hope this could help.
Francois

Similar Messages

  • WebUtil and DDE-package

    Hello,
    does anybody know, if there will be something like a CLIENT_DDE-package (related to the old DDE-package of forms) in webutil. The first announcements of Oracle about WebUtil told so, but now there is nothing left about it.
    Any suggestions?
    Thank you in advance!

    Roelof J van Suilichem
    In forms 9i, which is on web architechture, does DDE work ?
    i.e. if I want to read a .xls located on a network drive, and load that data into a table, is it possible using DDE in forms 9i.
    Thanks

  • How to use DDE package in form 10g module

    Hi All,
    I am using DDE.package in form 10g for uploading excels data in oracle database at windows platform but it is showing non-oracle exception.
    Thanks

    hi
    mehwish............just do for attachment.......
    u can also use something like this...
    Execute send_mail;and also.
    try something like this..
    example:
    begin
    mahi.mail('email address','subject','message','attachment');
    end;Edited by: Sarah on Apr 18, 2011 10:25 AM

  • DDE Package refusing to take more than 265 CHAR

    Dear all,
    i'm using Oracle 9i, i'm using the DDE package to get data from Excell
    this is my code
         DECLARE
         CONVID PLS_INTEGER;
         AppId PLS_INTEGER;
         BUFFER VARCHAR2(5000);
         LEN NUMBER;
    BEGIN
    AppId := Dde.App_Begin('C:\Program Files\Microsoft Office\OFFICE11\Excel.exe C:\abc.xls' , DDE.APP_MODE_MAXIMIZED );
    CONVID := DDE.INITIATE('EXCEL','C:\abc.xls');
    DDE.REQUEST(CONVID,'R7C6',BUFFER,DDE.CF_TEXT,10000);
    :DATA:= BUFFER;
    DDE.TERMINATE(CONVID);
    DDE.APP_END(APPID);
    END;
    the R7C6 cell contain a text of 270 character. in the buffere it is returning only 265 character.
    if anyone please can tell me what cuase this.
    Message was edited by:
    nbreik

    If changing the data type to CLOB is NOT a option at the moment then you can work around using DBMS_SQL to get the LENGTH of the LONG column.
    Something Like what I have below (Not tested) –
    In this Function, I am passing the “Id” <Key> of the record to search and check the length of the LONG column. You can chose to pass ROWID instead.
    Declare
    lRtnLen Number := 0;
    FUNCTION fn_len_long_str ( p_RecId In Number )
    RETURN number As
    mycursor Integer default DBMS_SQL.open_cursor;
    l_x number;
    l_long_value varchar2(32760);
    l_len_of_long number;
    l_blen number := 32760;
    l_pos number := 0;
    BEGIN
    DBMS_SQL.parse( mycursor, 'select col2 from Test3 Where Col1 = :pCol2',
    dbms_sql.native );
    DBMS_SQL.bind_variable( mycursor, ':pCol2', pId );
    DBMS_SQL.define_column_long(mycursor, 1);
    l_x := DBMS_SQL.execute(mycursor);
    if (dbms_sql.fetch_rows(mycursor)>0)
    then
    loop
    DBMS_SQL.column_value_long(mycursor, 1, l_blen,
    l_pos ,
    l_long_value, l_len_of_long );
    l_curpos := l_pos + l_len_of_long;
    EXIT when l_len_of_long = 0;
    end loop;
    end if;
    DBMS_SQL.close_cursor(mycursor);
    RETURN l_curpos;
    exception
    when others then
    END fn_len_long_str;
    Begin
    lRtnLen := fn_len_long_str (Pk_Of_The_Table);
    Dbms_output.Put_Line ('Len Of LONG = ' || lRtnLen);
    End;
    /

  • I need any documents OLE2 and DDE package

    Dear all,
    I need to fully explanation OLE2 and DDE package. Pressing F1 provides very limited help for me. Anyone here have or know some links of any reading materials
    (e-books, documentation)?
    Please share
    thanks
    regards

    Google is your friend.
    Check Forms online help it has enough information to work with.

  • OLE2 and DDE package books

    Hi All,
    I need to fully understand OLE2 and DDE package. Pressing F1 provides very limited help for me. Anyone here have or know some links of any reading materials(e-books, documentation)?
    Please share... I'm drowned with my tasks here.
    Thanks!

    DDE is seriously outdated and should only be considered as a last resort. As for OLE2, concern yourself not with learning the OLE2 package, but instead, with understanding OLE automation. The OLE2 package is just a wrapper that makes it possible to manipulate OLE automation servers from PL/SQL. Once you understand OLE, using OLE2 should come easily.
    I learned OLE automation as a Visual Basic developer, before ever working with Oracle, and found it to be fairly straightforward. The easiest and cheapest way to learn OLE automation is by using Microsoft's Visual Basic for Applications IDE -- an Office component. Search this forum using keywords VBA and Tutorial, and you will find information that should hopefully prove helpful.
    As for Mark's assertion that XML provides a simpler solution, there are important differences between the XML and OLE approaches. The XML approach involves simply creating a document, whereas the OLE approach involves instructing the OLE server application to create a document. XML might be perfect, for example, if you wish to create Word documents on a *NIX server.  On the other hand, when your environment permits it, OLE makes it possible to leverage application functionality, like Excel's data analysis functions.
    Eric Adamson
    Lansing, Michigan

  • DDE Package in FORMS 4.5

    Does anyone now, in which version of Forms the DDE built-in-
    package did appear the first time and whether there is a
    differen related to this topic betwenn Forms on Windows nd Forms
    on Unix (i.e. HPUX).
    Michael

    Joel I think you'll have to use the short name for "program files" e.g. the version you'd get in a Dos "DIR /x" command - something like "progra~1"

  • Using DDE package in report builder 10g

    Hi,
    I use this code in form 10g to edit a ms word and its work properly:
    DECLARE
    APPID PLS_INTEGER;
    CONVID PLS_INTEGER;
    DOCID PLS_INTEGER;
    SYS_DATE CHAR(8);
    BEGIN
    SELECT TO_CHAR(SYSDATE,'MM/DD/YY') INTO SYS_DATE FROM DUAL;
    APPID := DDE.APP_BEGIN('C:\Program Files\Microsoft Office\Office12\WINWORD.EXE',
    DDE.APP_MODE_MINIMIZED);
    CONVID := DDE.INITIATE('WINWORD','SYSTEM');
    DDE.EXECUTE(CONVID,'[FileOpen "c:\bin_test\exp.dotx"]', 10000);
    DOCID := DDE.INITIATE('WINWORD','c:\bin_test\exp.dotx');
    DDE.POKE(DOCID,'BOOKMARK1', SYS_DATE,DDE.CF_TEXT,10000);
    DDE.EXECUTE(DOCID,'[FileSaveAs "c:\bin_test\output.doc"]', 10000);
    DDE.TERMINATE(CONVID);
    END;
    when I put this code in the afterreport trigger in report builder 10g and call the report from form;
    a blank document word is opened withoud any changes as well as the report result in pdf format.
    what can i do to let this code work in report builder??
    best regards,
    Ahmad

    I use this code in form 10g to edit a ms word and its work properlyI very much doubt that. Calling DDE from Forms this way would result in trying to open Word on the <b>server</b>.
    the report result in pdf formatThe report result format is determined by how it is called. Looks like you call it with desformat=pdf.

  • Using DDE package

    Dear all,
    i'm using oracle 9i version 9.2.0.1.0, i want to get data from an excel fie excel version 2003.
    i'm using the same code in the help
    DECLARE
         CONVID PLS_INTEGER;
    BEGIN
    CONVID := DDE.INITIATE('EXCEL','C:\abs.xls');
    DDE.REQUEST(CONVID,'D4',BUFFER,DDE.CF_TEXT,1000);
    end;
    but each time i'm getting this error ora-106555 and ora-106553, and i can't find enough explanation either in google or in other posted messages here.
    can u help me plz

    Hi,
    We have implemented it using the following command.(But it is a word document).
    But it requires some configuation.Like u need to place the MS09.dll and WinWord.EXE in the c:\MSOFFICE.
    AppID := DDE.APP_BEGIN('c:\MSOFFICE'||:blk01.image_file,
         DDE.APP_MODE_MAXIMIZED);
    Hope this will help u.
    Regards,
    Alok Dubey

  • Webutil and DDE problem

    Hello,
    We are running into a problem web-enabling a client-server Forms application. We are using WebUtil for HOST and OLE calls and sending files between client and app-server and it all works really marvelous. But we noticed that the DDE package is not available in WebUtil. Unfortunately for us, we are using DDE calls to interact with MS Word (for example merging template letters with address-data) and MS Excel (filling out template sheets with data).
    Can you tell me if DDE will be available in future releases of WebUtil? And, if not, is it (generally) possible to rewrite the DDE-calls to OLE-calls using WebUtil's CLIENT_OLE functions? And what DDE-functionality maps to the corresponding OLE-functionality?
    Or, if it's not possible to rewrite DDE to OLE, what are the alternatives? Removing the interaction between web-forms and MS Office is NOT an option ;-)
    Thanks in advance,
    H. Verschuren

    var shell=new ActiveXObject("WScript.shell")
    var command=null
    var key
    try {
    key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\11.0\\Word\\InstallRoot\\Path" /* Word 2003 */
    command= shell.RegRead(key);
    } catch (e) {
    try {
    key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\9.0\\Word\\InstallRoot\\Path" /* Word 2000 */
    command= shell.RegRead(key);
    } catch (e) {
    try {
    key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\8.0\\Word\\InstallRoot\\Path" /* Word 97 */
    command= shell.RegRead(key);
    } catch (e) {
    command="\"" + command + "\\Winword.exe\" ftp://10.100.x.x\\ftpshare\\macros.dot -mMyMacro"
    shell.run(command,1,false)
    I must learn to monitor threads after I have contributed.

  • DDE problem (close file)

    I use Oracle Forms 6 and DDE package.
    My dde peace of code work normal and fine, but problem is: How I can work with DDE without show word document on the screen or close that document which is show on screen?
    and later unlock that file so I can cut it or delete it?
    Another question is: is there any way to formating my word template without make some macro (for ms word) in VB?
    thanks and best regards.
    mret

    Are you sure the error occurs at Close File VI?  You should put your code in highlight execution mode (the light bulb on the block diagram) and watch your error cluster wire, it will show the error in red text when it occurs, this info may help to pinpoint the issue.
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

  • DDE error in Forms 4.5 running Win2k

    We are upgrading our O/S from Win95 to Win2k and we have several forms that creates a .csv file using TEXT_IO package and calls Excel using the DDE package. It works fine on Win95 but when we run it under Win2k it gives me problems.
    Right now we:
    <cut>
    v_app_location := 'C:\MSOFFICE\Office\excel.exe C:\Starsrpt\daylcnsrpt.csv';
    AppID := DDE.APP_BEGIN (v_app_location,DDE.APP_MODE_MAXIMIZED);
    <cut>
    Now the location of Excel is changing in Win2k, so once I made the directory path change it falls into the DDE.APP_FAILURE excpetion:
    <cut>
    v_app_location := 'C:\Program Files\Microsoft Office\Office\EXCEL.EXE c:\starsrpt\daylcnsrpt.csv;
    AppID := DDE.APP_BEGIN (v_app_location,DDE.APP_MODE_MAXIMIZED);
    <cut>
    I know that while using the DDE.APP_BEGIN, the first indication of a space means that the next string of characters is used as the file in which to open within the aforementioned application (Excel). Is this the reason for the error to occur and if so, what is the work around? (I have tried concatinating the CHR(32) value (ASCII of ' ' (SPACE)) and it falls into the same error. Any ideas would be great.
    Thanks.
    joel

    Joel I think you'll have to use the short name for "program files" e.g. the version you'd get in a Dos "DIR /x" command - something like "progra~1"

  • DDE - From EXCEL to FORMS

    Hi!, I have used (DDE PACKAGE) to get data from EXCEL SHEETS into ORACLE FORMS, and it worked properly , my question is if there is a way or idea (Other than using TIMERS) to have a link between the - Very frequently changed EXCEL cells - and ORACLE FORMS that would keep intouch with the most recent updated EXCEL cells.
    Please note that I could solve the problem using timers but that was against the overall performance.
    Thanks,
    Firas AlKhatib

    Hi Firas AlKhatib
    Pls Can U send me the form which transfers data from excel into forms?
    I'll be gratefull to u...
    Prashanth Deshmukh

  • DDE is not working in 10gr2

    Hi..
    I am using dde package for importing data from excel files , it's working in my pc , but when we deploye it on apps server it's giving error message.
    is it possiable to use dde in FORMS 10gr2.

    hi..
    could you tell me is it possiable to use DDE in webutil , bcoz i have already written code in DDE package .
    i don't want to write it again Through Client_ole2 pkg .
    If any solution plz suggest me .
    Ravi

  • DDE not working when MS office lnaguage is not english

    HI
    I am using DDE package to send and receive data from excel file and it is working fine.
    but when i apply same procedure in a computer where the MS.OFFICE language is not english it fails on DDE.INITIATE procedure.
    any idea what is the reason?
    regards
    adeel

    To conclude:
    Win 7 -> x64
    Office 2013 -> x86
    Your application -> x86
    I wonder if the error comes after:
    ole_workbook = ole_excel.application.workbooks(1)
    or after:
    ole_worksheet = ole_workbook.worksheets(1)
    The last command could also be written as:
    ole_excel.Application.ActiveWorkbook.Worksheets[1]
    That way ole_workbook = ole_excel.application.workbooks(1) isn't needed...
    I wonder why you use ole_workbook = ole_excel.application.workbooks(1). Is there any possibility you will open and work with two workbooks concurrently?
    Andreas.

Maybe you are looking for

  • Disable Print from menu/toolbar from Designer 7

    Hello, I have a form that contains a print button, which is only executed if all validation rules are executed successfully. However, I still have the Print function in the menu and the toolbar of Acrobat/Reader. In the forum I found an entry stating

  • Bridge - Asset Management (DRM)

    Hello All, I hope this is the right place to to ask this question. We use Adobe Premier CS 5.5 and and soon going to upgrade to CS 6.6. We are recording lots of small videos, in a green screen, studio, on-site, off site, and lots of small clips that

  • Having trouble finding the height of a Binary Tree

    Hi, I have an ADT class called DigitalTree that uses Nodes to form a binary tree; each subtree only has two children at most. Each node has a "key" that is just a long value and is placed in the correct position on the tree determined by its binary v

  • Can't change the phone number that appears on the front screen

    My phone used to belong to my mom and I had it unlocked so I could use it overseas.  However, her phone number still shows up on the front screen even though I've had 2 different sim cards in it, each with their own number.  How do I change it to my

  • Transfer books to iPad

    Just bought my wife the iPad2 and need to transfer her ebooks. She had an Sony EReader. Will her Sony EBooks transfer into iPad2?