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

Similar Messages

  • 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

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

  • 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

  • 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

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

  • How to printing oracle report by specific printer name  on solaris?

    When running reports
    -http://host/reports/rwservlet?destype=PRINTER&desname=printername&desformat=dflt.prt&report=test.rdf&userid=test/test@TEST&MODE=CHARACTER
    report with destype=printer desname=printername, the report fails with REP-50159 Executed successfully but there were some errors when distribute the output
    if set default printer by add PRINTER=printername export PRINTER; in uiprint.txt
    it can print to printer.
    i found document id 394554.1 in metalink but it can't fix problem.
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:342229662272785964::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,394554.1,1,1,1,helvetica
    To fix the problem, execute the following steps:
    1. Take a backup of opmn.xml
    2. Edit opmn.xml and include the path information of the new printer:
    For In-process report server add the path information within <OC4J_BI_Forms>
    Eg:
    <process-type id="OC4J_BI_Forms" module-id="OC4J">
    <environment>
    <variable id="DISPLAY" value="localhost:0"/>
    <variable id="LD_LIBRARY_PATH"
    value="D:\Oracle\product\FRHome_1\lib32:D:\Oracle\product\FRHome_1\lib"/>
    <variable id="PATH" value="//printserver;D:/Oracle/product/FRHome_1/bin;................./>
    </environment>
    Here //printserver is the network drive where is printer is installed.
    For standalone report server add the path information within <reportservername>
    Eg:
    <ias-component id="standalonerepsvr01" status="enabled" id-matching="false">
    <process-type id="ReportsServer" module-id="ReportsServices">
    <process-set id="standalonerepsvr01" restart-on-death="true" numprocs="1">
    <environment>
    <variable id="DISPLAY" value="localhost:0"/>
    <variable id="LD_LIBRARY_PATH"
    value="D:\Oracle\product\FRHome_1\lib32:D:\Oracle\product\FRHome_1\lib"/>
    <variable id="PATH" value="//printserver;D:/Oracle/product/FRHome_1/bin;........../>
    </environment>
    3. Reload opmn : opmnctl reload
    4. Restart opmn: opmnctl stopall , opmnctl startall
    5. Run the report with destype=printer and desname=newprintername
    my config (solaris)
    oracle application server release 2 (10.1.2.0.2)
    i used axis printserver name is SZ_R02.
    <process-type id="OC4J_BI_Forms" module-id="OC4J">
    <environment>
    <variable id="DISPLAY" value="localhost:0"/>
    <variable id="LD_LIBRARY_PATH_64" value="/data/app/mid/lib:/data/app/mid/network/lib32:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib::/data/app/mid/jdk/jre/lib/sparcv9"/>
    <variable id="LD_LIBRARY_PATH" value="/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib32:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib::/data/app/mid/jdk/jre/lib/sparc"/>
                        <variable id="PATH" value="/SZ_R02:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib32:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib::/data/app/mid/jdk/jre/lib/sparc"/>
    </environment>
    how to print to printer by specific printer name?
    thank you very much
    khun

    if submit url with parameter
    http://hostname:7778/reports/rwservlet?destype=PRINTER&desname=lpSZ_R02_2&report=sticker.out
    error
    REP-50159: Executed successfully but there were some errors when distribute the output
    How to Solution?

  • Auto print out report for java application

    <p>Hi, </p><p>Now i&#39;m using eclipse 3.2 to develop a java application and using crystal report to create report.</p><p>I would like to directly printing out the report from the java application.</p><p>what the installer or plugin i need?</p><p>What the setting i need to set? </p><p>Can you give me the sample coding to directly print out the report from java application by passing parameter?</p><p>Thanks,</p><p>Hui Bee</p>

    There is a Consulting Solution called BOInterface that Business Objects Global Services sells and that helps you to achieve what you describe very easily.
    A description is <a href="http://www.mnsoft.org/bointerface0.0.html">here</a>.
    Particularly, see the <a href="http://www.mnsoft.org/boxinterfacedocs/com/bo/boxinterface/boreport/scheduler/BOReportSchedulerPrinter.html">BOReportSchedulerPrinter</a>. BOInterface comes with a complete example on scheduling to printer; that example can even itself be scheduled.
    Contact me via direct email for more information if this is interesting for you.
    HTH,
    M
    Matthias Nott -  Business Objects
    Service Line Leader Products EMEA
    [email protected]

  • Printing Oracle reports

    I have a report which is about 200-300 page.
    It does not show up on the web. It gives me
    configuration error. I think it is using
    up all the cache.
    Do you have any suggestion or work around.
    Is sending the report to the printer instead of screen an option
    null

    If you have &<TotalPhysicalPages> in the foot of your report then report makes all pages before display. Your computr may have too less memory to catch 300 pages.
    It is possible to refer report straight to the printer, you have adjust system parameter 'destype' to 'screen' value, but it can block up memory of your printer.
    null

  • How to print PDF report by clicking a button

    Hi,
    I'm using oracle 10g developer suite. i've developed a form clicking a button calling a PDF report. But i do not want to show PDF report. i want to auto print PDF report by clicking a button.
    Plz help me.

    Just follow the Oracle reports 10g output directly to printer and you will able to print directly
    Hope this helps
    Hamid
    If response is helpful or correct mark it.

  • Need help with Oracle reports 10g

    Hi
    we have a requirement in a oracle 10g application
    this application is on the unix server
    the requirement is such that the user must be able to print a report directly to the default printer
    when the user clicks on the button a report must be printed on the users default printer
    can u help us understand that how can we configure the local printer of the user on the unix server?

    hi, piyush9010
    Check this following link...
    Oracle reports 10g output directly to printer
    Oracle reports 10g output directly to printer
    Make your printer as shared printer then try.
    Use DESTYPE=PRINTER.
    http://qamarsyed.blogspot.com/2011/02/how-to-print-oracle-report-to-network.html
    http://docs.oracle.com/cd/E14571_01/bi.1111/b32121/pbr_cla005.htm#i637246
    Hope this helps
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for

  • Need Material Description in SAPscript Export Packing list

    Hi Friends,                 I copied standard SAPscript form SD_EXPORT_FUEP for Export packing list. I need a Material description in main window but not able to get. Please tell me how to get the material description. Thanks, Ziad

  • QM reports

    Hi All, Can i get a standard QM reports showing the following data Report 1 - Report showing Vendor,Quanity recied from vendor in a given period,Quantity accepted and defective quantity.This is somewhat similar to MCVI but MCVI does not show accepted

  • How do i change the name of a user in Yosemite?

    it's not how it used to be... ~Sunny

  • Why can't i access my hotmail email inbox from Windows Live messenger

    I am able to access it when I use the IE browser, but it appears to be blocked when I use Mozilla Firefox. I have changed my password, but can't access my account to change my personal question as recommended by Windows support forum. This problem be

  • BEx variable prompt in WebI

    Hi, I have created a Universe on top of a BEx query and a WebI, the result seem acceptable already, however I have one question that I need to clarify. When I run the WebI query, in the prompt screen list of value selection, I can see two columns.  O