Print Oracle report into a network folder

Hello,
I was trying to print an Oracle report in PDF format to a network folder. I can do this directly from the url by pasting the url below on the browser, but when I try to do the same from a database trigger, I get "Rep 51002 bind to report server failed" error. I would appreciate any help that you can provide.
Here is my code
DECLARE
req utl_http.req;
resp utl_http.resp;
value VARCHAR2(1024);
BEGIN
req := utl_http.begin_request('http://appserver.biosys.com/reports/rwservlet?server=rptserver&module=QueryIDResponse.rdf&userid=testuser/pwd@oracledb&destype=file&desformat=pdf&desname=c:/Query_Response_Report/245237new.pdf&P_QUERY_ID=123457&P_SERVICE_ID=6&P_SITE_ID=12501');
utl_http.set_header(req, 'User-Agent', 'Mozilla/4.0');
resp := utl_http.get_response(req);
LOOP
utl_http.read_line(resp, value, TRUE);
dbms_output.put_line(value);
END LOOP;
utl_http.end_response(resp);
EXCEPTION
WHEN utl_http.end_of_body THEN
utl_http.end_response(resp);
END;
Thanks
Sani

Thank you so much for your help. I used event driven pulishing and needed to install SRW package on my infra database and it is working good now.
One thing I am struggling with sending pdf reports to another server. I could create a pdf at runtime, but needed to send to another server for storage. I could set up the desname parameter to store the pdf in the same report server by using the following code
PORTAL.srw.add_parameter(myPlist, 'DESNAME', 'c:\Report\abcd');
but to store in a different server I don't know how to do that. Any help would be appreciated
Thanks

Similar Messages

  • How Can I print Oracle Report 9i directly To Printer on the local network?

    Dear All;
    How Can I print Oracle Report 9i directly To Printer on the local network?
    or to any other computer ? or to my default printer without prevoiues know the printer name i mean found it in my connected printer?
    plear help me?
    Best Wishes

    1. Check documentation for DESNAME and DESTYPE
    2. See 1 as long as they are a shared resource
    3. Think you must know the name, but please check or documentation
    Regards,
    Martin
    PS. There's a Reports Forum here which would be a better option for posting this question

  • Can not able to print Oracle report on HP inkjet500 Plotter

    Dear All,
    Please let me know how to print oracle report on HP plotter.
    I tried with both Bitmape and Character mode report but report preview automatically exit from the menu immediately without any error when i click print button (to the destination HP Plotter). But i can print Excel file/ PDF file on Plotter.
    My report size is 36 inch width, when i convert into
    PDF it converts data for 11 inch width only remaining
    is not available.
    I am using the following version
    Oracle 8i Enterprise Edition Release 8.1.7.0.0
    Report Builder : 6.0.5.28.0
    Forms : 6.0.5.0.2 [32 Bit] Version
    Hope you will reply with best solution.
    Thanks.
    Regards
    Yoonus

    user11996936 wrote:
    Has anyone faced such an issue with Oracle Apps?Maybe. Maybe not. Ask to the proper forum. Here you are in Peoplesoft forum.
    Nicolas.

  • How to convert Oracle Report into Excel

    Hi,
    Please guide for the following:
    I am using, Report Developer 11g and I want to save Oracle report into Excel format, is it possible ?
    Regards,
    Thanks.

    There is a Reports manual you know!
    http://download.oracle.com/docs/cd/E14571_01/bi.1111/b32121/pbr_cla005.htm#i636884

  • How to automatically saved a pdf form into a network folder using a submit button

    Good evening to everyone,
    I'm more than a beginner on adobe development reason why I would like to apologize first if my questions are dumbs. :-(
    I would like to know if 'Adobe 9 Professional Extended' has the possibility to put some code into a submit button in order for the pdf form to be saved with a unique name and into a Network folder located into an Encryption Server where we handle our PII. Is it? Over the past two weeks I've been digging into the documentation but I'm unable to find something that will help me to accomplish our headquarters requirements.
    If there is no possibility, is there any programming language that adobe accepts in order to configure a piece of code that will store the file into a network folder? Perhaps VB or C-SHARP?
    Whatever feedback anyone can give, I deeply appreciate it.
    Thanks,

    Thanks for the reply Mr. Chaney!
    I do have more questions based on your recomendation.
    From my understanding, JavaScript or FormCalc will be my only options, right? If that's the case, how can a scripting language (client server side) allow me to transfer automatic saved files into a Network folder within my company intranet? I downloaded the Scripting Basic manual and all the scenarios and code are client server side such as, changing background color, add effects to a button and so on.
    I did find a command under FormCalc called "PUT" can I use this command to transfer a pdf file into a Virtual Directory folder? All the examples I saw were for XML files.
    Greetings,

  • How to convert Oracle reports into excel?

    How can we convert Oracle reports into excel.
    i know there was a thread on this topic which i am not able to find.
    give the link / help.

    I found Std Oracle Report output to Excel Sheet has some suggestions. Not being a Reports person anymore I am not in a position to vouch for them.
    How did I find this thread? By not using the forum search tool but using Google instead.
    Cheers, APC

  • How to print a report on local/network printer(Sample Code)

    Hi forms Gurus,
    I'm looking for sample code witch allow to print report on local/network printer from Forms builder.
    Plz help! it's very important.
    TYAG.

    Armand,
    for Forms and Reports 9i, the only chance is to configure the printer as a network printer that is accessible to the Reports Server. In this case pass the printer's network name as desname and destype=printer as the Reports destination (e.g. desname=\network\printername destype=printer).
    Alterantively, there exist an unsupported utility orarrp that you can get from the otn.oracle.com/products/forms web page.
    Frank

  • Dr watson error while printing Oracle reports 6.0.5.28.0

    Hi All:
    I am getting this problem when I was trying to print from the perview mode of Oracle Reports(6.0.5.28.0) on Windows NT Client machine. We are using Network printer which is on Windows 2000 Server. Can you hyelp me resolve this problem.

    The first thing you should do would be to get onto a supported version. We've done a lot of work in the printing area in the 6.0.8 (6i) release, particularly in the latest patch set.
    If this doesn't help then you should download the drivertest utility (http://otn.oracle.com/software/products/reports/files/printerdrivertest.zip) and follow the instructions to test the driver. Then work with support to get a bug filed.
    Regards,
    Danny

  • Printing Oracle Report.

    I have a problem printing an Oracle report on a dot matrix
    printer.
    I have the report set to print in character mode
    with the width and height of the report set to 132,31
    respectivley and the width and height of paper
    set to 7.25,11 each.
    The problem is:
    when I print my report it still prints on a whole A4 page.
    isn't it supposed to stop printing somewhere on half of the A4?
    I hope you can help me figure out the matter.
    Jaq84.

    Hi Prabodh,
    I have used Debug mode and I see 2 debug entries added.
    The first is just displaying all the page defaults - (I think the page gets reloaded when you select debug from the developer menu)
    The second is the SUBMIT request and it shows the initial value of the hidden item (ie null) and then where I changed its value (ie Y).
    The problem is, it does not list an entry for the page when it returns from the Report Status page, so I have no way of knowing if anything is
    changing its value. I even changed code to set the item to N instead of null and then to Y on submit. But when I return from the Status page
    the value remains at N, even though if I check the Session State values it will say Y. The only conclusion I can come to is that it is using the
    cached values and effectively just displaying the values set before I submit the page.
    I have been playing around with iFrames and it seems to work the way I want.
    I created a new Page (5), then a HTML region. Within the HTML region i have the following code
    <table>
    <tr>
      <td>
       <iframe src="&P1_URL." width="500" height="300"></iframe>
      </td>
    </tr>
    </table>I also create a button (Return) + branch and on submit will return to page 1.
    From page 1, instead of branching to a URL, I now branch to page 5. This loads the Report Status page into my iFrame and indicates that it was
    successful, but now instead of using the OK button within the status page I use the Return button that is part of the Apex application.
    This way I no longer need the javascript or hidden items to try refresh the page , it will be done automagically once the return button is pressed.
    I know it may not look great but it is the only solution I can get to work at the moment.
    Thanks again for all your help, I really appreciated it.
    Regards,
    Ryan

  • Page reload/refresh after printing Oracle report.

    I have upgraded from version 3.0.1 to version 4.0.1 and I am having an issue.
    I have a page with a tabular form (SQL Query - updateable report) which allows me
    to select items I want to print.
    The report looks like the following:
    Name          Print
    Template 1     Y/N
    Template 2     Y/N
    Template 3     Y/N
    Template 4     Y/N
    The print column is a static LOV with a 'Y' or 'N' option.When I submit the page, a MRU runs and sets a flag for each item I want to print in the database.
    It then branches using "Branch to URL Identified by Item (Use Item Name)". The URL specifies an Oracle report
    server and the oracle report to print.
    All this works fine and the items that were selected, print out. An Oracle Reports Job Status is displayed
    on screen (this originates from the oracle report server) to indicate that it has "successfully run" along with
    an OK button. The OK button contains the following code: javascript:history.back()
    A process also exists on the page ("On Load - Before Regions") that resets any flags that were set in the database
    when the page is loaded and so the report will displays all N's in the Print column.
    Now my problem is that in version 3.0.1 when I hit the OK button it would return to the page in the apex
    application that branched to the oracle report and the page would be reloaded, where as in version 4.0.1
    the page is not reloaded.
    Any ideas how to fix this or can someone suggest a new way of achieving the same result.
    Any help would be appreciated.
    Regards,
    Ryan

    Hi Prabodh,
    I have used Debug mode and I see 2 debug entries added.
    The first is just displaying all the page defaults - (I think the page gets reloaded when you select debug from the developer menu)
    The second is the SUBMIT request and it shows the initial value of the hidden item (ie null) and then where I changed its value (ie Y).
    The problem is, it does not list an entry for the page when it returns from the Report Status page, so I have no way of knowing if anything is
    changing its value. I even changed code to set the item to N instead of null and then to Y on submit. But when I return from the Status page
    the value remains at N, even though if I check the Session State values it will say Y. The only conclusion I can come to is that it is using the
    cached values and effectively just displaying the values set before I submit the page.
    I have been playing around with iFrames and it seems to work the way I want.
    I created a new Page (5), then a HTML region. Within the HTML region i have the following code
    <table>
    <tr>
      <td>
       <iframe src="&P1_URL." width="500" height="300"></iframe>
      </td>
    </tr>
    </table>I also create a button (Return) + branch and on submit will return to page 1.
    From page 1, instead of branching to a URL, I now branch to page 5. This loads the Report Status page into my iFrame and indicates that it was
    successful, but now instead of using the OK button within the status page I use the Return button that is part of the Apex application.
    This way I no longer need the javascript or hidden items to try refresh the page , it will be done automagically once the return button is pressed.
    I know it may not look great but it is the only solution I can get to work at the moment.
    Thanks again for all your help, I really appreciated it.
    Regards,
    Ryan

  • Auto print Oracle report through call to PL/SQL

    I have been tasked with finding a way to generate an Oracle report from a java servlet. Basically they want to pass in parameters to a PL/SQL procedure and have it automatically print out, without user interaction.
    Can this be done?
    Jeff

    I am in a similar situation and have reached a bit of an impass. I am creating the report by means of passing a dynamically created URL from WebDB to the Report Server.
    I have created a procedure to do various things and was planning on calling the report via the procedure using
    OWA_UTIL.redirect_url depending on the params
    that the user entered. Does the UTL_HTTP work in the same means as the aforementioned? Or are they the same thing?
    Regards and thanks,
    Steve
    null

  • Auto-print oracle report

    hi all...
    i created a batch file to auto-print an oracle report upon executing the batch file.
    the report is successfully printed upon clicking on the batch file or by executing it in ms-dos environment on the server but it is not printed out when i execute the batch file by calling it from a visual basic program, instead i encounter a report error, REP-3002(Error initializing a printer).
    please take note that the batch file is located in a windows 2000 server and a printer is already installed on the server.
    The batch file has the following code:-
    D:\ORACLE\DEV6i\BIN\RWRUN60.EXE REPORT=D:\SIMPLE\PROGRAMS\FWR_DISCREPANCY_LIST.REP USERID =WMS/WMS@ORCL p_ware_id=%1 p_arrival_no=%2 PARAMFORM =NO DESTYPE =PRINTER DESFORMAT=dflt TRACEFILE =C:\TRACE.LOG PRINTJOB =NO
    please help...
    i am not sure why it is not able to print out the report upon calling/executing the batch file from visual basic...

    I am in a similar situation and have reached a bit of an impass. I am creating the report by means of passing a dynamically created URL from WebDB to the Report Server.
    I have created a procedure to do various things and was planning on calling the report via the procedure using
    OWA_UTIL.redirect_url depending on the params
    that the user entered. Does the UTL_HTTP work in the same means as the aforementioned? Or are they the same thing?
    Regards and thanks,
    Steve
    null

  • Printing Crystal reports into adobe-hyperlinks arent getting created

    We use a third party program, iMIS to print confirmations.  These confirmations are created in Crystal Reports.  When i print these documents to adobe not all hyperlinks are coded.
    If i export the document to word then print that document into adobe it has the embedded hyperlinks.  (But this way entails alot of extra steps to create, and no normal user will want to do this)
    Is there anyway i can get the embedded hyperlinks to print straight into adobe? (without having to do the many extra steps it takes to export to word then to adobe)
    (it is very frustrating, b/c i am the one that created these 'cool' reports but no one is getting the information.)

    If Crystal Reports supports creation of a PDF with PDF Link annotations it will be discussed in the Crystal Reports Support/User documentation. If it is not supported then you'll have to accept the Crystal Reports limitation and continue with the "2-step" shuffle. 
    At its core the issue is with Crystal Reports rather than PDF or Acrobat.
    Be well...

  • Printing Oracle Reports with values obtained from file using IO

    Hi All,
    We have decided to change the report writer tool from Brio SQR to Oracle Reports 6i. The design using Brio SQR was such that we used to populate all the values to be printed in a text file and then we use to populate the values in the BRIO reports using this file as an input.
    We don't want to make many changes to the design at this stage. Can anybody suggest how can we use the text file as input to populate the different fields in the Oracle Reports.
    Thanks in advance.
    Regards,
    Milind

    Hi Miliand
    Text Datasoucre is a Reports 9i feature. You can get the information on the feature overview at
    http://otn.oracle.com/products/reports/content.html.
    You will find the complete 9I Reports reference manuals on OTN soon
    Thanks
    The Oracle Reports Team

  • Printing oracle report from oracle forms

    At our place, our clinet machines are upgraded to IE8 (Internet explorer 8), and some users are having probelms when they print pdf reports from IE8. If they save pdf report on computer and use adobe acrobat reader, then they can print, but when they hit print button on the IE8 they are unable to rpint.
    Please advise why some users cannot print pdf reports from IE8. Thanks

    Hi,
    has anyone managed to resolve this yet?
    seems as though some sort of impersonation mechanism is necessary for the machine running the reports server to identify to the printer as the client username running the report..
    i do know it's possible to pass to the rep server a parameter called "authid",
    so if for example i run the following -
    http://<server>/reports/rwservlet?report=test.rdf&authid=rsorero&userid=bla/bla@bla&server=repsrv&destype=PRINTER&desname=\\printsrv1\myprinter1&desformat=PDF
    then in the report server queue (showjobs) i get the owner as "rsorero" instead of "ANONYMOUS"..
    but that doesn't translate to an OS user on the server side, and the print is still owned by [server]$..
    any insights?

Maybe you are looking for

  • Solaris 8 on Intel hangs after FDISK

    Target machine is a Compaq Presario 4660, 1 cdrom (HP), 64 megs, pII-300, IDE based HD under 8GB. During install, blurb pops up notifing me that FDISK must be run, and a Solaris FDISK partition will be created for me. At this time, I get a FDISK scre

  • Re:report

    Dear all, In My report i required MC(Merchandise Categories) in hierarchy level ,sales qty, current stock ,brand and vendor please guide me regarding in is-retail project reports regards pradeep

  • Standby Database Creation in the same Box Oracle 9.2.0.1

    Box - Sun Solaris 64 bit Oracle Version - 9.2.0.1 I have a database called 'sales' in the above box. I want to create a standby database in the same box (in different mount point). This is what I did: 1. took cold backup of all datafiles 2. created s

  • Document Header for SD related document

    Hi gurus, I want to catch the SD invoice number in the reference number field of the FI document . Where i have to do configuration for this. The detail eg of ouput required is as under Sales invoice is gnerated. Its number is 55697. Accounting docum

  • Pattern brush alignment for a circle.

    Here are my two attempts at this simple pattern: The example on the left clearly shows the alignment that I want to correct. Is there a way to adjust this alignment? Playing with the scale and fit options (of the pattern brush) didn't seem to help. W