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.

Similar Messages

  • Dynamic Order By on Report Builder 10g

    Hi,
    How can I do a dynamic order by clause using user parameters on Report Builder 10g? I need to set dynamically the column and the direction on the clause.
    Thanks.
    Bruno Galletti
    Brazil.

    Hi Bruno / Rainer,
    I am implementing the same solution, and after adding the lexical parameter reference in the SQL statement and calling the report from Oracle Forms the report failed with the following error on the report server:
    Terminated with error: <br>REP-300: missing expression select wcsr_no , wcsr_date , wcsr_rec_week_zone , wcsr_loc_house_num || ' ' || wcsr_loc_pre_dir || ' ' || wcsr_loc_street_name || ' ' || wcsr_loc_street_type || ' ' || wcsr_loc_post_dir || ' ' || wcsr_loc_unit || ' ' || wcsr_loc_city || ' ' || wcsr ==>
    No change has been done to the SQL statement except adding the &p_orderby parameter at the end of the query.
    Any suggestions? Are all parameters defined as "bind" parameters on the Repotr Object Navigator.?
    Thanks
    Gabriel Aguirre
    [email protected]

  • DDE 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;
    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

    By all means feel free to post your question as often as you like!
    In webforms DDE runs on the middle tier; it might do what you want against your local OC4J now, but it surely won't open a thing when you run it against an application server.
    Maybe you should enlighten us with your requirement, maybe there is a better solution for your problem.
    cheers

  • 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

  • Pdf file view in report builder 10g

    I store pdf file in database 10g using webutil_doc form ,now I need to view this file in report builder 10g is it possible

    By all means feel free to post your question as often as you like!
    In webforms DDE runs on the middle tier; it might do what you want against your local OC4J now, but it surely won't open a thing when you run it against an application server.
    Maybe you should enlighten us with your requirement, maybe there is a better solution for your problem.
    cheers

  • ORACLE reports Build 10g - Data Model - query - If statement in Alias ?

    I have the following select statement. It has the alias Survivors, Deaths and "All
    With the ORACLE reports Build 10g - Data Model - I have the following query statement. I require the alias to change. Can the following be done.
    Cases". Is it posible to use :P_LANGUAGE variable to say that -- IF :P_LANGUAGE = FRENCH THEN alias are Survivants for survivors, Décès for Deaths, Tous_les_cas for All Cases. Please advise
    SELECT ALL T_NTR_MULTIBAR.CAT, T_NTR_MULTIBAR.NUM_CASES_LEFTBAR AS Survivors,
    T_NTR_MULTIBAR.NUM_CASES_MIDDLEBAR AS Deaths, T_NTR_MULTIBAR.NUM_CASES_RIGHTBAR AS "All Cases"
    FROM T_NTR_MULTIBAR
    WHERE INSTANCE_NUM = :P_INSTANCENUM
    order by ORDERS

    It is no problem, you can automatically change the complete query before the report is running, which delivers you different kind of values. But the alias names does not change in the group of the data-model, although two query are running with different alias names at different times. In the data model you see the alias names of the first implemented select statement, which are the column fields in the layout.

  • Issue is TEXT_IO application API is not working in report builder 10g.

    Issue is TEXT_IO application API is not working in report builder 10g.
    TEXT_IO application api is working in report builder 6i. (Not working in upgrade from Oracle EBiz 11i to Oracle Ebiz R12)
    I saw that details in some forums, client_text_io is available for form builder 10g.
    Is any other api available for report builder 10g?
    If it is available what steps we need to do?

    All the CLIENT_% procedures are part of webutil in Forms. Forms uses the Java applet on the client PC to perform actions on the local PC via webutil. This is not possible for Reports.
    You can still use text_io on the server, but you need some other way to copy the files to/from the client PC.
    I wonder how you used the functionality in EBS R11. Even R11 uses web reports, so text_io already worked on the server, not the client PC.

  • Report Builder 10g problem

    I already create my report by using report builder 10g then I run it and its ok after that I tried to make some modification on that report and I Compile it(ctrl+shift+k) and Generate it(ctrl+t) the I saved it as RDF file but when i run it the modification which i made it didn't show on the report i dont know why?
    any body has idea in this
    plz help me..
    Regards
    Rahma Al-Saadi

    Probably you might have old .rep file in your directory. You can create .rep file of you modified rdf file by opening it in builder and pressing Ctrl+T.
    This is a Forms forum , you can post in Reports for better replies.

  • Generating .pdf file from Reports Builder 10g

    Hi,
    I made a report in Reports Builder 10g and every label and field I set, but when I print the report throw reports builder field are displaced randomly, i.e. they are not where I set them in paper layout. In print preview everything is OK, but when I print it everything(fields) is in the mess. Please help.

    APEX doesn't output PDF natively, so you have to use an external report server for this. There's a link on apex.oracle.com entitled PDF Printing that discusses the options.
    Tyler Muth
    http://tylermuth.wordpress.com
    [Applied Oracle Security: Developing Secure Database and Middleware Environments|http://sn.im/aos.book]

  • How to import java Classes in report Builder 10g

    How to import java Classes in report Builder 10g .....
    Arshad

    Hello,
    To import the Java classes:
    Add your jar in the REPORTS_CLASSPATH
    Launch Reports Builder.
    Note:
    You must launch Reports Builder now so that the new REPORTS_CLASSPATH is used.
    Choose Program > Import Java Classes to display the Import Java Classes dialog box.
    Regards

  • To Unable to Import Customize Java classes in Report Builder 10g

    Hi,
    In Report Builder 10g , I am trying to load image from Remote server
    URL:"http://imagecache5.art.com/p/LRG/15/1544/1ABDD00Z/muhammad-ali-vs-sonny-liston.jpg"
    Steps did in Report Builder 10g
    1.In Report Builder Created a Formula column with
    Datatype : Character
    Read from File: Yes
    File Format: Image
    In Formula columns trying to Unable to Import Customize Java classes.
    To read methods from Java classes.
    Please help on this.
    Ranga

    Hello,
    To import the Java classes:
    Add your jar in the REPORTS_CLASSPATH
    Launch Reports Builder.
    Note:
    You must launch Reports Builder now so that the new REPORTS_CLASSPATH is used.
    Choose Program > Import Java Classes to display the Import Java Classes dialog box.
    Regards

  • Reports Builder 10g

    Hi,
    I want examples of
    Before Parameter Form Report Trigger and After Parameter Form Report Trigger
    I am using Oracle Report Builder 10g
    can someone please help here..

    Check this link...
    1. Difference between After parameter Form Trigger and before Report Trigger
    2. http://docs.oracle.com/cd/E12839_01/bi.1111/b32122/orbr_multoc003.htm
    For more search in this forum and google.com
    Hope this helps
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.*

  • How i can save report updation on report builder 10g

    how i can save report updating on report builder 10g
    please help me
    any help will be appreciated

    See anwer in :
    why no body try to help me its possible no body has idea about how to save

  • Report Builder 10g does not start on Windows 7 (stays minimized)

    When i run the report builder 10g in my Windows 7 machine, the splash screen appears for some time and then it minimizes to the task bar. Thinking that it has loaded and gone to task bar, if i click the icon on task bar, it shows another splash screen and loads another copy of Report Builder, which also minimizes to same icon.
    On right-clicking the icon there is no maximize button. I tried running it as administrator and also fix the compatibility, but nothing worked.
    This issue starts only after some days of installing the developer 10g. It worked ok for some days and then it started behaving like this. Seen this twice now, both times on re-installing the developer suite the issue goes away.
    Is there any way to solve this other than re-install the Oracle Developer ?

    Hello,
    Did you check the files cagprefs.oar and cauprefs.ora ?
    Re: report builder
    regards

  • Reports Builder 10g hanging while printing

    Hi all,
    We have a printing issue with our Reports Builder 10g. When I run a report, select FILE and PRINT and click o.k, Reports Builder hangs where it trys to format page one. Any suggestions?
    Thanks,
    Mike

    Strange, my ReportBuilder works with File/Print but hangs when printing from the print icon.
    ReportBuilder is not a robust product. It hangs and crashes frequently. Little has been done to correct. Except for the auto-save/crash-recovery feature - that is a job saving addition to the product.
    That said, lots-o-features get added from one release to the next, but precious little attention seems to be given to improving stability.

Maybe you are looking for

  • Error while trying to create a Solr collection (java.io.IOException: The device is not ready)

    Hello, everyone. I'm trying to create a .cfm document that will erase a specific Solr collection and then re-create it, index it, and optimize it. The delete works flawlessly.  Unfortunately, creating it isn't working, at all.  I get the following me

  • Mail Not Generated

    Hi , We used to run an interface in Application server 2. But Recently we got Apps 3. ( Basis people have done by taking the instance of Apps2) . When we running the Interface in APPS3 it is not sending the mail. when we are using Apps2 it is sending

  • Best export options in QuickTime Pro to burn a dvd with?

    I'm trying without luck to establish a workflow where i edit original content (combine image and sound, add credits) in QuickTime Pro then i need to burn the resulting movie to a dvd. This seems near to impossible. I have finally figured out i need t

  • Error trying to get LiveCycle ES up and running with JBoss/SQL Server

    I am having an error trying to get LiveCycle ES Trial up and running with JBOSS and SQL Server.  The LiveCycle ES and JBOSS engines are running on Windows Server 2003 SP #2 under VMWare Server with 2 vCPUs/1 GB vRAM.  The SQL Server database is SQL 2

  • Document types - reg.,

    Hi, gurus, can anybody clarify the document types for P.R.,RFQ.,P.O.,contracts & scheduling aggrements. thanks in advance tulja singh