Unable to send report output to printer when using RUN_REPORT_OBJECT in 10g

Hello All,
When I try to send my report output to a file from my form(10g), I get 'FRM-41213: Unable to connect to report server'. I can sucessfully send my report to printer when I set the REPORT_DESTYPE to 'PRINTER'.Here is the code from my when-button-pressed trigger.
Am I missing something?
declare
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN                
repid := find_report_object('PWRR_CTRL_TYP_MAINT');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_ipkcaf7vm');
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,FILE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'DFLT');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'C:\TEST1.doc');
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
          msg_alert('Report print successfully', 'I', FALSE);
ELSE
     msg_alert('Error when running report', 'I', FALSE);
END IF;
END;
Thanks,
Anna

Hi,
its because
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'C:\TEST1.doc');
references the report rdf pr rep file to run, not the output file. The Reports output file is always specified with DESNAME
Frank

Similar Messages

  • 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.

  • UNABLE TO SAVE PORTAL REPORTS OUTPUT TO DISK WHEN USING INTERNET EXPLORER

    Hi,
    We are unable to save portal reports output to disk when we are using
    Internet Explorer. This works fine if we use Netscape.
    Steps to reproduce
    1. Run a report from portal
    2. Now from the IE menu, select File-> Save As
    We get a warning saying that IE cannot save the web page
    Any thoughts ?
    Thanks
    Tim

    Tim,
    Are you trying to save the HTML output ? You might encounter probs. with that, but that is more due to IE security
    settings than the Portal.
    You might want to check your IE security settings.
    Hi,
    We are unable to save portal reports output to disk when we are using
    Internet Explorer. This works fine if we use Netscape.
    Steps to reproduce
    1. Run a report from portal
    2. Now from the IE menu, select File-> Save As
    We get a warning saying that IE cannot save the web page
    Any thoughts ?
    Thanks
    Tim

  • Send Report Directly To Printer Without using ORARRP?

    Is their any other way to send report output directlly to printer from reports 10g running on Oracle IAS 10g without use of Orarrp?
    I am asking this question because of some non-support issue with Orarrp mentioned by Oracle in documents.
    Looking for yours help on this topic.
    Thanks

    within a forms trigger:
    1. generate the report
    2. copy from iAS to local
    like: webutil_file_transfer.url_to_client()
    3. print.exe /d:printer filename (for windows OS)

  • How to send report output to printer

    Hi,
    In Oracle applications one of my AR report has printer parameter
    when user submitting the request he needs to choose the printer name for that
    parameter then this report output needs to go to automatically to that printer after completion of report.
    Do I need to change report system parameter values for this?
    Could you help me in this?
    Thanks in advance.

    Hi,
    If you use ORARRP, you reports will automatically go to the default printers.
    Regards,
    Soumyajit

  • Sending report output to printer directly (on Unix)

    Hello.
    Please help.
    I was previously using LPD for printing my oracle character mode reports. Now we have migrated to a new versions which has more graphics and colours. Also, some of my new reports are in PDF format.
    I would need some help sorting out how to configure my new printers (Deskjets and Laser - replacing some of my dot matrix).
    I had created all my printers using SAM->Printers and Plotters->LP Spooler->Printers and Plotters
    Also, i use Print Server Emulator programs running under Microsoft Windows to accept printjobs from queues and print.
    Thank you in advance for a reply
    YD

    Check the reports job queue for the exact error message.
    I doubt if this is a valid printer name. Check if this printer is defined on the server. It can also be that the user that runs the Oracle reports service has no access to the printer.

  • Scheduled Report Output to Printer

    Hi Guys,
    hope you are all well.
    Can someone help me.  I am have created a report and set this to be schedule at X time.  I need the report output via Business Objects XI to be to Printer.
    I have set up a printer and set it as a shared printer on the same server BO runs on.  I have also set the printer to Default.  When I schedule the report and set the Print Settings to Default Printer it does not print...no error messages...but no print.  Helppppp as I am going mad.
    Many thanks

    We just recently migrated to XI R2 on a new server, and did not consider the print settings...until a user noticed they could not print like normal
    We recreated the printers on the new server, and people could then choose a specific printer now. (We named the printers the same as the print ID on the server.)
    However, people could not choose Default Printer in Infoview (during Schedule). When they chose it, the report would be successful, but we were not sure where the output would go.
    I found a few articles on Knowledge base, and I think #1 and #2 may be our best alternatives.
    1202786 - A Crystal report printed through InfoView does not use the default printer on the client computer
    1203768 - The default printer is not chosen when printing from Infoview
    This last one seems little drastic - all scheduled reports on a jobs server would take the behavior of the job server. This seems excessive.
    1217095 - Report does not print when scheduled to printer in Crystal Enterprise or BusinessObjects Enterprise
    Article #1 &2 will require retooling of the rpt files, but we plan to address the user issues on a per report basis.
    Walter

  • Very urjent how to send report output in mail

    hi experts,
    how to send report output in mail which function module should i use wht parameters should i pass.
    thanks in addavnce,
    points to be awarded.

      CALL FUNCTION 'GET_PRINT_PARAMETERS'
           EXPORTING
                destination    = '026c'
                copies         = count
                list_name      = 'VATS_ASBUILT'
                list_text      = v_list
                immediately    = 'X'
                release        = 'X'
                new_list_id    = 'X'
                expiration     = days
                line_size      = 132
                line_count     = 65
                layout         = 'X_65_132'
    *            sap_cover_page = 'X'
    *            cover_page     = 'X'
                receiver       = 'SAP*'
                department     = 'VATS'
                no_dialog      = 'X'
           IMPORTING
                out_parameters = params
                valid          = valid.
      SUBMIT zppr_vats_asbuilt  WITH p_aufnr EQ v_aufnr
                   TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                      SPOOL PARAMETERS params
                         AND RETURN.
      SELECT SINGLE rqident FROM tsp01 INTO l_spoolno
                         WHERE rqtitle = v_list .
    * convert report to PDF format
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = l_spoolno
                no_dialog                = 'X'
           TABLES
                pdf                      = l_ipdf
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        EXIT .
      ENDIF.
    Now comes the part to send the mail
      try.
    * -------- create persistent send request ------------------------
          send_request = cl_bcs=>create_persistent( ).
          clear document.
    * -------- create and set document with attachment ---------------
    * create document from internal table with text
          document = cl_document_bcs=>create_document(
          i_type = 'RAW'
          i_text = text
          i_length = '12'
          i_subject = '' ).
    *changing the content of the attachment
          binary_content[] = l_iobjbin[].
    *change the name of the PDF attachment
          concatenate 'Build ID' s_buildid_i 'Rev' v_buildid_rev
                              into i_att_sub separated by space.
    * add attachment to document
          call method document->add_attachment
            exporting
              i_attachment_type    = 'PDF'
              i_attachment_subject = i_att_sub
              i_att_content_hex    = binary_content.
    *setting the option to send an e-mail more than 50 characters
          call method send_request->set_message_subject
            exporting
              ip_subject = t_sub.
    * add document to send request
          call method send_request->set_document
            exporting
              i_document = document.
    * --------- set sender -------------------------------------------
    * note: this is necessary only if you want to set the sender
    * different from actual user (SY-UNAME). Otherwise sender is
    * set automatically with actual user.
          sender = cl_sapuser_bcs=>create( 'VATSUPPORT' ).
          call method send_request->set_sender
            exporting
              i_sender = sender.
    *Send the list based on receivers list obtained
          loop at l_ireclist.
            AD_SMTPADR = l_ireclist-receiver.
    * --------- add recipient (e-mail address) -----------------------
    * create recipient - please replace e-mail address !!!
          recipient = cl_cam_address_bcs=>create_internet_address(
          AD_SMTPADR ).
    * add recipient with its respective attributes to send request
          call method send_request->add_recipient
            exporting
              i_recipient = recipient
              i_express   = 'X'.
          ENDLOOP.
          call method send_request->set_status_attributes
            exporting
              i_requested_status = 'E'
              i_status_mail      = 'E'.
    * To send the mail immediately
          call method send_request->set_send_immediately( 'X' ).
    * ---------- send document ---------------------------------------
          call method send_request->send( ).
          commit work.

  • To run a report from command line, when using jdbc-odbc bridge

    Hi,
    How to run a report from command line, when using jdbc-odbc bridge?
    Usually with tns, we do by "rwrun module=<> userid=<user>/<passwd>@tns".
    with odbc, we do by "rwrun module=<> userid=<user>/<passwd>@odbc:DSN"
    Please specify, what is command line arguments for jdbc-odbc bridge driver?
    Environment : Oracle 9i Report Builder on WinNT
    Database : Sybase
    Regards,
    Ramanan

    Hello Ramanan,
    Report Builder : connect JDBC Query in Report Builder is to through Connection Dialog in JDBC Query Editor. User can use a Sign on parameter (can use, default : P_JDBCPDS or can create new) to connect to JDBC Data Source. Connection once made will be mentioned and will be reused through out Reports Builder.
    JDBC PDS allows user to connect one or more same or different kind of databases.
    While running report through runtime or Server, user can pass the sign on parameter(connection string) value, like any other user parameter.
    Syntax for connection string : <username>/<password>@databaseURL . The syntax of database part of connection string depend on the type of JDBC Driver used to connect to Data Source while designing the JDBC Query. databaseURL refer to the location of the database and its format depend on the JDBCPDS river selected in design time while creating the JDBC Query.
    rwrun eg :
    rwrun report=jdbc_odbc.rdf destype=file desname=output.html desformat=html P_JDBCPDS=scott/tiger@database
    Server eg :
    http://server.com:8888/servlet/RWServlet?server=MyReportServer+report=jdbc_odbc.rdf+destype=cache+desformat=html+P_JDBCPDS=scott/tiger@database
    http :
    Please see ORACLE_HOME/reports/conf/jdbcpds.conf for more information.
    With Regards
    Reports Team

  • Connecting to a HP Officejet 7610 printer when using a Mac running OSX 10.5.8

    Connecting to a HP Officejet 7610 printer when using a Mac running OSX 10.5.8

    Did you download & install the 10.5.8 driver?
    http://www.hp4driver.com/2015/01/hp-officejet-7610-driver-download.html

  • Can i use any wireless printer when using air express

    can i use any wireless printer when using air express

    If you are looking for a new printer, any wireless model will work with the AirPort Express.
    But, since you indicate that you have an iPad, you would want to make sure that the printer you choose is AirPrint compatible. This way, you will be able to print from your iPad....if you need that function.
    See this Apple support document for info on AirPrint and compatible models.
    http://support.apple.com/kb/HT4356

  • Hi, i want to ask why i am unable to log in my twitter acc when using my itouch safari. It tend to go back to the log in page.

    Hi, i want to ask why i am unable to log in my twitter acc when using my itouch safari. It tend to go back to the log in page. Can someone please help me?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Settings>Safari and Clear Cookies, History and Data
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                             
    - Restore to factory settings/new iOS device.

  • I am unable to get dragging guides from rulers when using CS6 InDesign. Is anybody else getting this problem?

    I am unable to get dragging guides from rulers when using CS6 InDesign. Is anybody else getting this problem?

    Try restoring your InDesign preferences:
    Trash, Replace, Reset, or Restore the application Preferences

  • The cyan color won't print when using our HP Pro 6500 Officejet printer

    the cyan color won't print when using our HP Pro 6500 Officejet printer.  Can I get help with this?

    This doesn't make sense. The printer is exhibiting behavior noticed when a network printer is connected to a laptop while the laptop is connected to a VPN. But in this case, neither the printer is connected on a network, not is the laptop connected to a VPN per se.
    Are you sure all the latest drivers for your laptop have been installed? That's pretty much the only thing I can think of right now.
    Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"
    I am an ex-HP Employee.

  • IPod nano 6gen does not send audio to home stereo when using an older (iPod classic) dock.

    iPod nano 6gen does not send audio to home stereo when using an older (iPod classic) dock.  Is this a functional discount or something else?  [This system has worked with iPod Classic and Nano 4 gen.]

    Perform the instructions for your version of Mac OS X on this page.
    (15457)

Maybe you are looking for