Report_Object_Status TERMINATED_WITH_ERROR

Hello Experts,
Greetings to everybody!!!
First of all, I am very excited to give Oracle Fusion Middleware Forms11g R2 a try finally. But i am completely new to this, only experience i got is with forms6i with client-server architecture. I managed to install Oracle Fusion Middleware whole package on my test server(Microsoft Windows Server 2003 R2,Enterprise x64 Edition,Service Pack 2) and got the testing done successfully(thanks to oracle documentation) against Oracle 9i R2 database which is residing on another server on our network. I could run forms, reports individually,successfully. But, my problem is, when i try to call the report from forms using WEB.SHOW_DOCUMENT it WORKS FOR FEW TIMES and then starts throwing the following error.
TERMINATED_WITH_ERROR
Then i learned that Report_Object_Status status is not FINISHED and i have no clue about how to get it done. So, i decided to call the report with the status TERMINATED_WITH_ERROR then it gives me the following error.
REP-52251: The output of job ID 113 requested on Thu Jun 13 23:54:14 PDT 2013 cannot be retrieved.<P>REP-51026: No output is generated for job 113.
I am not posting the code here thinking that it might not be necessary as it work's few times then don't. So, i'm wondering if it is got to do anything with the configurations on the server. I would be really grateful if you could help me out in this regard.
Thank You

Reports Server Queue Status is as follows
The report terminated with error:
REP-110: File Testbill.rdf cannot be opened. REP-1070: An error occurred while opening or saving a document. REP-0110: File Testbill.rdf cannot be opened. .
By the way, i tried making the reports path length in registry very short as suggested by numerous people. But, nothing worked so far.

Similar Messages

  • TERMINATED_WITH_ERROR

    Hi All,
    When I run my report directly from the report builder, I get the output. But when I run it through the form I get TERMINATED_WITH_ERROR status in REPORT_OBJECT_STATUS() builtin. How can I know what that error is? Any idea is greatly appreciated.
    Thanks and Regards,
    C.Balaji

    Hello,
    A jobid has been returned by the builtin RUN_REPORT_OBJECT.
    You can use the URL :
    http://<server>:<port>/reports/rwservlet/showjobid123?server=repserver&statusformat=xml
    replace 123 by the jobid and repserver by the reports server name
    Regards

  • REPORT_OBJECT_STATUS error

    I get the following error when I run the builtin REPORT_OBJECT_STATUS after running the builtin RUN_REPORT_OBJECT:
    'FRM-40738: Argument 1 to builtin REPORT_OBJECT_STATUS cannot be null'
    My form is displaying fine with no errors.
    My code looks like this:
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('tape_log_report');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := report_object_status(v_rep);
    END;
    And the properties for my report are as follows:
    Execution Mode: Runtime
    Communication Mode: Asynchronous
    Report Destination Type: screen
    Anybody have any idea what is going on here?
    Thank you
    null

    Todd,
    Report_object_status and copy_report_object_output should be used only with the reports server. They are not supported by the reports background engine.
    When RUN_REPORT_OBJECT is called on a report object with a blank 'Report Server' property, the return value will be NULL.
    Thus, when running a report in this manner, the functions REPORT_OBJECT_STATUS
    and COPY_REPORT_OBJECT_OUTPUT are not supported (because they require an
    id value to be returned from RUN_REPORT_OBJECT.)
    Best Regards,
    Deepak Rai

  • Report_object_status

    Hi all,
    While calling a report from Oracle Forms (10g), do we need to call the Report_object_status in a loop or should it be called just once
    for example : should the code be as follows
    1) Report_message := Run_report_object (Report_id);
    Rep_status := Report_object_status (Report_message);
    While Rep_status In ('RUNNING','OPENING_REPORT','ENQUEUED')
    Loop
    Rep_status := Report_object_status (Report_message);
    End Loop;
    IF Rep_status = 'FINISHED'
    THEN
    ELSE
    END IF;
    OR
    2) Report_message := Run_report_object (Report_id);
    Rep_status := Report_object_status (Report_message);
    IF Rep_status = 'FINISHED'
    THEN
    ELSE
    END IF;
    Kindly let me know.
    Thanks in advance.

    Better would be
    PROCEDURE prc$run_rep(report_id REPORT_OBJECT,
                                                           report_server_name VARCHAR2,
                                                           report_format VARCHAR2,
                                                           report_destype_name NUMBER,
                                                           report_file_name VARCHAR2,
                                                           report_otherparam VARCHAR2,
                                                           reports_servlet VARCHAR2)
    IS
    report_message VARCHAR2(100) :='';
    rep_status VARCHAR2(100) :='';
    vjob_id VARCHAR2(4000) :='';
    hidden_action VARCHAR2(2000) :='';
    v_report_other VARCHAR2(4000) :='';
    i number (5);
    c char;
    c_old char;
    c_new char;
    BEGIN
    -- set reports running parameters
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,report_file_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
    message('test1');
    -- creating string for pfaction parameter
    hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
    hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
    hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY (report_id,REPORT_DESFORMAT);
    hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'||
                                            get_application_property(password)||'@'||get_application_property(connect_string);
    -- report other parameters are passed as key value pairs
    -- "key1=value1 key2=value2"
    -- The following loop replaces the delimited blanks with an '&' used on the web.
    -- This replacements only works for values that don't have blanks themselves.
    message(hidden_action);
    -- c_old is initialized as a dummy value
    c_old :='@';
    FOR i IN 1..LENGTH(report_otherparam) LOOP
    c_new:= substr(report_otherparam,i,1);
    IF (c_new =' ') THEN
    c:='&';
    ELSE
    c:= c_new;
    END IF;
    -- eliminate multiple blanks
    IF (c_old =' ' and c_new = ' ') THEN
    null;
    ELSE
    v_report_other := v_report_other||c;
    END IF;
    -- save current value as old value
    c_old := c_new;
    END LOOP;
    hidden_action := hidden_action ||'&'|| v_report_other;
    -- report_servlet contains the full path to the reports servlet
    -- Example 1 : Forms and reports areon the same server
    -- report_servlet :='/reports/rwservlet'
    -- Example 2 : Forms and reports are on different hosts
    -- report_servlet := 'http://host:port/reports/rwservlet'
    hidden_action := reports_servlet||'?_hidden_server='||report_server_name|| fnc$encode(hidden_action);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||hidden_action||' '||report_otherparam);
    -- run Reports
    report_message := run_report_object(report_id);
    rep_status := report_object_status(report_message);
    IF rep_status='FINISHED' THEN
    vjob_id :=substr(report_message,length(report_server_name)+2,length
    (report_message));
    WEB.SHOW_DOCUMENT(reports_servlet||'/getjobid'||vjob_id||'?server='||
    report_server_name,' _blank');
    ELSE
    --handle errors
    null;
    END IF;
    END prc$run_rep;

  • Arbitrary terminated_with_error on reports generation

    Hi,
    we are currently migrating a forms 6i application to 10g and are simultaneously upgrading the deployed database from 9i to 10g as well. Until now, most work has been finished apart from a weird problem concerning the reports server.
    Sometimes, we receive a "TERMINATED_WITH_ERROR" when calling reports from forms, even if it is the same one. This behaviour is completely unreproducable.
    The application server hosting the reports service is now located within the network of the live environment, thereby possibly conflicting with the current live application server.
    Is it possible that the forms service is therefore sometimes trying to connect to the "wrong" reports server, which is named the same way?
    Or is it possible that the reports server sometimes fails to connect to the datebase, which is still located outside the live environment in a completely different subnet?
    We have done some checks but can't figure out what could produce this error.
    Are there any experiences regarding this issue?
    Thanks for the help so far.

    This is what the listener status shows
    Alias                     FINPROD
    Version                   TNSLSNR for HPUX: Version 9.2.0.6.0 - Production
    Start Date                26-JUL-2010 13:45:15
    Uptime                    0 days 2 hr. 9 min. 22 sec
    Trace Level               off
    Security                  OFF
    SNMP                      OFF
    Listener Parameter File   /d01/finprod/product/9i/network/admin/listener.ora
    Listener Log File         /d01/finprod/product/9i/network/admin/finprod.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROCFINPROD)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hp3.nfpc.com)(PORT=1521)))
    Services Summary...
    Service "FINPROD" has 1 instance(s).
      Instance "FINPROD", status UNKNOWN, has 1 handler(s) for this service...
    Service "FINPROD.nfpc.com" has 1 instance(s).
      Instance "FINPROD", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully

  • INF-200017 Unexpected error TERMINATED_WITH_ERROR

    Am having the above error message popping out each time i want to run a report.
    When i run the report from report builder, i dun face any problem as am able to
    generate the output. Please provide assistance.
    At the report server am getting error
    Terminated with error: <br>REP-110: BACKGROUND is deprecated. See help for more information.
    REP-0110: Unable to open file 'LN3204'.
    REP-1070: Error while opening or saving a document. REP-0110: Unable to open file 'LN3204'.
    Whats the cause of this problem and what should i do? Please guide.
    thanks and best regards,
    Radha
    Edited by: user620064 on Oct 29, 2008 12:50 AM

    you probably don't have permition for reading and writting

  • Polling the status of report_object_status

    Instead of using a WHILE LOOP to get the get 'FINISHED' status of the report, any number of loops is suggested if we want to have a time out for this polling method?
    Say
    FOR i in 1..500? 1000? LOOP
    END LOOP
    anyone can give me a hint?
    Thanks

    You probably don't need this piece of code (the loop to check report status). It is usually used to wait for a report to finish, before calling the output with web.show_document.
    If you run the report in SYNCHRONOUS mode, this loop is not necessary. See the online help:
    Synchronous specifies that control returns to the calling application only after the called product has finished.

  • Error when sending report output to printer from Forms 10g

    Hi,
    I have a simple report that I am running from a form using run_report_object built-in. I can successfully send the report output to a file but when I send the report output to a printer my report is
    terminated with report status of 'TERMINATED_WITH_ERROR'. I am using the default forms service and reports server that comes with the forms builder. How do I specify the reports server to user my default network printer ?Following is the code that runs my report.
    Thanks,
    Anna
    PROCEDURE SEND_TO_PRINTER IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(50);
    rep_server system_variables.reports_server%type;
    alldone          exception;
    BEGIN
         select reports_server
         into rep_server
         from system_variables;
         if rep_server is null then
              msg_alert('Error getting the reports server name', 'I', FALSE);                
              raise alldone;
         end if;
         :ctrl.run_report_errors := 'N';                    
         repid := find_report_object('REP_OBJ1');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,rep_server);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
         IF :ctrl.rg_print = 'P' THEN
              --Send the output to printer.
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt');
         ELSIF :ctrl.rg_print = 'R' THEN
              --Rich Text Format
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'rtf');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,:ctrl.filename);
         END IF;
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
         LOOP
              rep_status := report_object_status(v_rep);
         END LOOP;
         IF rep_status = 'FINISHED' THEN
              null;
         ELSE
              :ctrl.run_report_errors := 'Y';
              msg_alert('Error when running report.' || rep_status, 'I', FALSE);           
         END IF;
    EXCEPTION
         when no_data_found then
              msg_alert('Error getting the reports server name', 'I', FALSE);      
         when alldone then
              null;     
    END;

    If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
    LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel.

  • ERROR WHILE RUNNING REPORT THROUGH FORMS.....!

    hi all,
    ive designed one form in Forms 9i...I'm tryin to run report through a Push button .....report is running well in paper layout through report builder 9i...The problem I'm facing is dat when i pressed button it is giving me error initially as FRM-41214 cannot run report and after that FRM-40735 When button pressed unhandled exception ora-06502.....What could go wrong??... Ive started OC4J instance ....created report object in object nevigator as well and defined basic properties for diff.parameters HTMLCSS,CACHE..etc.,mentioned report path in complete i.e.c:\reports\genbill.rdf ...Can anybody help me out ??? Thnx.!
    -----------------------CODE ON BUTTON----------------------------------
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('REPORT5');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('<HOSTNAME>:8889/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=myrepserver','_blank');
    ELSE
    message('Error when running report');
    END IF;
    PAUSE;
    END;

    When a report terminates with an error, REPORT_OBJECT_STATUS returns the value "TERMINATED_WITH_ERROR", which is 21 bytes of data, but rep_status is defined as 20 bytes. The 6502 error is due to the data not fitting the variable.
    I recommend wrapping the REPORT_OBJECT_STATUS function with a SUBSTR that limits the data returned to 20 bytes, which will ensure the results fit.
    For example:
    rep_status := SUBSTR(REPORT_OBJECT_STATUS(v_rep), 1, 20);

  • Display the report server error in the application

    i have got an error while running the report from the application , the status of the report was "TERMINATED_WITH_ERROR" which come from the "REPORT_OBJECT_STATUS" built in function ,
    when i go to the application server to the failed jobs i got :
    Terminated with error: REP-1401: ??? ??? ???? ?? PL/SQL: 'cf_1formula'.
    ORA-01403: ?? ??? ?????? ??? ??? ??????
    the problem is i wan to display to the end user this error ORA-01403
    not only "TERMINATED_WITH_ERROR" .....
    please help me
    thanks

    Give a button in your web page with 'Check status' which on hitting, make an ajax call, to query the status table, and show the status in that page.
    Hope this helps

  • Error while running Oracle 9i forms

    Dear
    First of all, let me know that Oracle 9i Forms is only for web application or we may use it for client server envirnoment.
    I installed Oracle 9i Database & Oracle 9i Forms on Windows XP. Connection between Database & forms works properly.
    But When I click to run a form, I'm receiving this error.
    FRM - 10142 The HTTP Listener is not running on Amfah (my Computer Name) at port 8888. Please start the listener or check your runtime preferences.
    Please Help me !!
    Waiting for an early reply

    When a report terminates with an error, REPORT_OBJECT_STATUS returns the value "TERMINATED_WITH_ERROR", which is 21 bytes of data, but rep_status is defined as 20 bytes. The 6502 error is due to the data not fitting the variable.
    I recommend wrapping the REPORT_OBJECT_STATUS function with a SUBSTR that limits the data returned to 20 bytes, which will ensure the results fit.
    For example:
    rep_status := SUBSTR(REPORT_OBJECT_STATUS(v_rep), 1, 20);

  • Problem while running report for Multiple Language

    Hi Friends,
    The set up for the apps is done for two languages 1. German 2. English.
    I’m printing Invoice Report. It is associated with MLS language function.
    It returns US or D (for German) according to the setup.
    When I run the report from English User, the report runs fine for MLS language function which returns 'US' and not working for ‘D’ as the template is not being picked up(it completed with status Normal and i'm able to see the output by running 'XML Report Publisher' program)
    Similarly when I run the report from German User, the report runs fine for MLS language function which return 'D' and not working for ‘US’.
    I have created two template for testing purpose.The setup for the template as follows.
    Language English Territory US.
    Language German Territory Germany.
    There is no effect on the combination of the language and territory.
    Please help me...
    Regards,
    A. Swain

    When a report terminates with an error, REPORT_OBJECT_STATUS returns the value "TERMINATED_WITH_ERROR", which is 21 bytes of data, but rep_status is defined as 20 bytes. The 6502 error is due to the data not fitting the variable.
    I recommend wrapping the REPORT_OBJECT_STATUS function with a SUBSTR that limits the data returned to 20 bytes, which will ensure the results fit.
    For example:
    rep_status := SUBSTR(REPORT_OBJECT_STATUS(v_rep), 1, 20);

  • Failed Reports: best way to diagnose?

    Hello all.
    We are using forms & reports 11g (11.1.2) on a Linux x64 box (Oracle EL 5.6).
    Some reports called from forms fail to run. What is the best and easiest way to retrieve the error message, I mean, is there any way to do so without the need to go to log files on the server?
    I've been using EM to look at "failed jobs" (reports), but now the messages are unavailable too. Crap...
    Any help would be appreciated.
    Thanks in advance.

    If I get the Report_Object_Status from Forms, the status is TERMINATED_WITH_ERROR. But how can I get the complete message, with the REP- error?

  • Reg: sending an email using report server

    Hi,
    i am using the below code to send an email using the report server.
    When send button Click:
    DECLARE
    PL_ID ParamList;
    repid REPORT_OBJECT;
    v_rep varchar2(100);
    rep_status varchar2(20);
    l_host_name varchar2(50);
    l_port_num varchar2(10);
    l_server_name varchar2(50);
    l_month_name varchar2(20);
    l_from varchar2(50);
    l_to varchar2(50);
    l_cc varchar2(50);
    l_property varchar2(1000);
    l_sub_out varchar2(200);
    l_sub varchar2(400);
    L_BODY VARCHAR2(1000);
    l_email_dir varchar2(50);
    BEGIN
    l_sub:=:block1.number||' '||replace(replace(:block1.desc,'&','ampersand'),'''','$quote');
    if length(l_sub) >150 then
    l_sub_out:=substr(l_sub,0,150);
    else
    l_sub_out:=l_sub;
    end if;
    l_host_name := (i used my host ip address local host);
    l_port_num := '8889';
    l_email_dir := 'C:\forms\';
    l_from := [email protected];
    l_cc := [email protected];
    L_BODY:=' Please refer to the attached abc Report';
    repid := find_report_object('PRINT_REPORT');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'abc');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,MAIL);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');     
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,l_server_name);
    go_block('abc_MAIL_TO');
    first_record;
    if :abc.email_address is not null then
    loop
    l_to:=:abc.email_address;
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no DISTRIBUTE=YES DESTINATION='||l_email_dir||'test.xml'||' '||
    ' p_2='|| TO_CHAR(:control.sessionid)||' '||'P_ID='||TO_CHAR(:block1.ID)||' '
    ||'P_LIST_TYPE='||'A'||' '     
    ||'DISTRIBUTE=YES DESTINATION=test.xml'||' '
    ||'P_FROM='||''''||l_from||''''||' '
    ||'P_SEND='||''''||l_to||''''||' '
    ||'P_CC='||''''||l_cc||''''||' '
    ||'P_FILE='||'C:\testfile.txt'||' '
    ||'p_email_path='||l_email_dir||' '
    ||'P_BODY='||''''||l_body||''''||' '
    ||'P_NUM='||''''||'Email report: '||l_sub_out||'''');
    v_rep := RUN_REPORT_OBJECT(repid);     
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    null;
    ELSE
    message(rep_status);
    message('Error when sending email to: '||l_to);
    END IF;
    if :system.last_record='TRUE' then
    exit;
    else
    next_record;
    end if;
    end loop;
    end if;
    message ('Mail has been sent.');
    END;
    In the report:
    I created all the required parameters and i wrote a trigger as
    function AfterPForm return boolean is
    dst_file text_io.file_type;
    l_email_dir varchar2(50);
    begin
    dst_file := text_io.fopen(:p_email_path||'test.xml','w');
    text_io.putf(dst_file, '<destinations>'||chr(13));
    text_io.putf(dst_file, '<mail id="ex1" '||chr(13));
    text_io.putf(dst_file, 'from="&P_FROM"'||chr(13));
    text_io.putf(dst_file, 'to="&P_SEND"'||chr(13));
    text_io.putf(dst_file, 'cc="&P_CC"'||chr(13));
    text_io.putf(dst_file, 'subject="&<P_NUM>">'||chr(13));
    text_io.putf(dst_file, '<body srcType="text">'||chr(13));
    text_io.putf(dst_file,'<![CDATA>'||chr(13));
    text_io.putf(dst_file, '</body>'||chr(13));
    text_io.putf(dst_file, '<foreach>'||chr(13));
    text_io.putf(dst_file, '<attach format="pdf" name="report.pdf" srcType="report" instance="all">'||chr(13));
    text_io.putf(dst_file, '<include src="mainSection"/>'||chr(13));
    text_io.putf(dst_file, '</attach>'||chr(13));
    text_io.putf(dst_file, '</foreach>'||chr(13));
    text_io.putf(dst_file, '</mail>'||chr(13));
    text_io.putf(dst_file, '</destinations>'||chr(13));
    text_io.fclose(dst_file);
    return (TRUE);
    end;
    Then after compilation i click the button send. Then i got the message as
    Mail has been sent to [email protected].
    But i didn't receive any mail.
    then i check the report job id. It was showing job was successful .
    And i check whether the test.xml file was created or not. It has created the test.xml file as below:
    <destinations>
    <mail id="ex1"
    from="&amp;P_FROM"
    to="&amp;P_SEND"
    cc="&amp;P_CC"
    subject="&amp;&lt;P_NUM&gt;">
    <body srcType="text">
    <![CDATA Please refer to the attached abc Report]>
    </body>
    <foreach>
    <attach format="pdf" name="report.pdf" srcType="report" instance="all">
    <include src="mainSection"/>
    </attach>
    </foreach>
    </mail>
    </destinations>
    I have 2 machines having dev 10g. one machine is working fine with this code. but in my machine it was not working.
    Do any one of you had a solution for my case.
    Thanks in advance.
    Edited by: user648380 on Dec 29, 2009 5:59 PM

    Sorry to all.
    I made a mistake in the from email address.
    Instead of gmail.com i had given gmail,com
    I am really sorry about it.

  • Print a report to a specific printer from Forms

    I have a form from where i want to print a report to a specific printer (not the default printer). Is there any way to do this from Forms 9i. Im using the Orarrp but it pops up the printer dialog and shows the default printer. Is there any way to harcod the printer name. the printer is on the network..

    If i go to my control pannel and see the list of printers i take the printer name from there. should i put the path of the printer? i kno the port of the printer .it come like ip_192.1.11.1_p1 ..how do i define the printer name? if i dnt give the printer name shouldnt if fire to the default printer ..my code is as follows
    declare
    REPID REPORT_OBJECT;
    V_REP VARCHAR2(100);
    REP_STATUS VARCHAR2(20);
    BEGIN
    REPID := FIND_REPORT_OBJECT('CUS_PRINT');
    SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_DESTYPE,PRINTER);
         SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_SERVER,'test');
    SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_OTHER,'P_CUSREF='||:CTRL01.CUSREF||' PARAMFORM=NO');
         MESSAGE('SET REPORT PROP');
    V_REP := RUN_REPORT_OBJECT(REPID);
    REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
    MESSAGE('RAN REPORT');
    WHILE REP_STATUS IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
         REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
    END LOOP;
         IF REP_STATUS = 'FINISHED' THEN
              IF NVL('TEST',' ') <> ' ' THEN
              GEN_ALERT('NULL_ALERT','TEST');
              END IF;
              ELSE
         GEN_ALERT('NULL_ALERT','Error when running report');
         END IF;
    END;
    what should the desformat of the report should be..when im trying to run this it gives me 'no data found' error...why???

Maybe you are looking for