Printing a report from forms

I would like to print a report from forms without opening reports first. Is this possible and if so how?

From a command-line or .BAT file (assuming Windows and Developer6i) run the following (on a single line). It will go to your default printer.
<ORA_HOME>\bin\rwrun60 <report>.rdf userid=<user>/<pw>@<hoststring> destype=printer batch=yes
null

Similar Messages

  • How can print a report from form 6i,  when I press a button?

    hi Friends,
    How can print a report from form 6i, when I press a button?
    When i press a button from Form 6i, the report should print through printer.
    I have done it by using report parameter DESTYPE Printer but problem is that when I press a button printer dialogue box appear and then I give command Print to printer, I don’t want to show Printer dialogue box.
    I want when I press a button form Forms 6i , printer will print my report directly.
    Please send me the solution of this problem.
    Best regards,
    Shahzad

    Hi
    If You are using Client server application then to passing to Add all Print Parameter in the Host Command.
    Means Print command in unix to Host(lp.............) and Other Parameter to file name of the report to print.
    If You not Use Client Server Application the Also Passing a Host Command in Button-Pressed Event and Run.

  • Printing a report from Forms 9i

    Hi all
    I have to print a report from Forms 9i, but I can't do it directly, I have to execute it with desname = preview and then I can print it.
    I use the following sintax
    RUN_REPORT_OBJECT_PROC(repid, v_server_name,'pdf',printer,v_path,v_report,'paramform=no'|| other parameter....,v_servlet)
    where v_path is the name of the printer and run_report_object is a procedure to execute reports into forms
    I try to set v_path with the printer name on my client and on the server.. but it doesn't find it...
    Please help me,
    Thanks in advance
    Antonio

    Hi all
    have any one some information about ORARPP (Oracle Reports Remote Printing) ???
    I should print directly, my desname should be a printer.... could any one help me???
    Thanks in advance for your support...
    Antonio

  • Printing a report from forms that has a param form with orarrp 10g

    Hello,
    I have reports that i can successfully print from Oracle Forms using orarrp and web.ShowDocument(etc...) that do not have paraforms.
    However for my reports that have paraforms I have am unable to print them. Basically I need to catch the printer destype event from the paramform and execute some custom code based on the decision. Does anyone have any experience with this?
    Thanks

    I dont know if you want to explore this, but there is a better utility than orarrp that overcomes some of the drawbacks of orarrp.
    Perhaps it might solve your problem.
    check this out:
    http://forms.pjc.bean.over-blog.com/article-6621538.html

  • Error when printing reports from forms in Linux

    Im having an error when printing a report from a form. The problem is, only with certain forms. when printing a report (to PDF) from other forms, it prints with no problems. The oracle is 10g AS and operating system is Redhat AS 3.
    The error, in the log from the reports server is:
    [2004/9/7 7:14:59:599] Exception 62204 (): Internal error writing the image BandCombine: a row of the matrix does not have the correct number o
    f entries, should be OpImage.getExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..
    exception oracle.reports.RWException {
    oracle.reports.RWError[] errorChain={struct oracle.reports.RWError {
    int errorCode=62204,
    java.lang.String errorString="Internal error writing the image BandCombine: a row of the matrix does not have the correct number of entries, sh
    ould be OpImage.getExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..",
    java.lang.String moduleName="REP"
    at oracle.reports.utility.Utility.newRWException(Utility.java:604)
    at oracle.reports.toolkit.image.writer.JPEGImageWriter.writeImage(JPEGImageWriter.java:130)
    at oracle.reports.toolkit.image.ImageManager.writeJPEGImage(ImageManager.java:524)
    at oracle.reports.engine.EngineImpl.CRunReport(Native Method)
    at oracle.reports.engine.EngineImpl.run(EngineImpl.java:353)
    at oracle.reports.engine.EngineClassPOATie.run(EngineClassPOATie.java:84)
    at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:117)
    at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:62)
    at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2355)
    at com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:104)
    at com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:492)
    at com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapter.java:64)
    at com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:653)
    at com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.java:99)
    at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
    [2004/9/7 7:14:59:599] Error 50103 (C Engine): 19:14:59 ERR REP-0069: Internal error
    REP-62204: Internal error writing the image BandCombine: a row of the matrix does not have the correct number of entries, should be OpImage.get
    ExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..
    [2004/9/7 7:14:59:600] Error 50103 (C Engine): Error Writing Image, ID 2
    [2004/9/7 7:14:59:601] Error 50103 (rwtic:rwticga): Look up for image attributes for image 2
    [2004/9/7 7:14:59:602] Error 50103 (rwtic:rwticgi): Looking up for Image, ID 2 in the cache
    [2004/9/7 7:14:59:603] Error 50103 (rwtic:rwticgi): Loading the Image into the cache
    [2004/9/7 7:14:59:603] Debug 50103 (ImageManager:getImageSource): Retrieving the Image object for ID : 2
    [2004/9/7 7:14:59:603] Error 50103 (rwtic:rwticgi): Image successfully loaded into the cache
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageHeight ): Start Height : 155
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageWidth ): Start : width : 138
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageColorSpace ): Start
    [2004/9/7 7:14:59:608] Exception 50125 (): Caught exception: java.lang.NullPointerException
    exception oracle.reports.RWException {
    oracle.reports.RWError[] errorChain={struct oracle.reports.RWError {
    int errorCode=50125,
    If anyone could help me, is important !
    Thx in advance
    Bruno Santos                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Raise a TAR I reckon

  • Print report from form 9i

    Hi All,
    How do I print a report from a form? I have users wanting to print a report by pressing a button. They do not wish to see the report, but to print it directly to their default printer. I do not want to give any printer name, but rather form print to the default printer.
    Any help is appreciated.
    My environment is
    Database: Oracle 9i
    AS: Oracle Application Server 9i release 2
    Forms: 9i
    Reports: 9i
    Thanks
    -John

    Hi...
    See the URL
    How i select printer in Forms9i
    Really the the solution is "ridicula"
    Forms not have a solution printer for Reports...
    Regards
    Hector Ulloa Ligarius

  • How to print BIP reports from Oracle Forms?

    Hi all,
    I have a question in regards to printing BIP reports from Oracle Forms... We are aiming for a server installation of BIP with integration to Oracle Forms using SSO to handle security. We use Forms built-in web.show_document to render and view the report in PDF/Excel etc... We would like to by pass the viewing and print some of these reports directly to the printer.
    Any idea/suggestions how we can go about this?
    Thanks in advance for your time.
    Yahya

    Yahya,
    via HTTP it's not possible to send a report directly to the printer. You had to go via the Scheduler, which is able to do that. With the WebService API you can call a report with the Scheduler and Execute Immediate.
    Regards
    Rainer

  • Hi how can print report     from form directly

    Hi,
    I would like to print report from D2k directly....
    i.e. suppose we pressed a button report has to be generated and printed automatically.... Generating of report is done by Run_product function, but how to give print directly...
    please u send ur valuable suggestions to my mail id also
    [email protected]
    bye!

    When calling the report from form, include 2 more parameters in the parameter list:
    - PARAMFORM=No
    - DESTYPE=Printer
    hth

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

  • CALLING A REPORT FROM FORMS (PROBLEM)

    MY PROBLEM IS THE NEXT:
    I CREATED A MASTER-DETAIL REPORT CALLING 'ASUNTOS'WITH THE NEXT QUERY:
    SELECT ABOGADOS.APELLIDO_P,ABOGADOS.APELLIDO_M,ABOGADOS.NOMBRES,
    ASUNTOS.EXP_INT,ASUNTOS.MATERIA,ASUNTOS.GERENCIA,
    ASUNTOS.EMPRESA,ASUNTOS.RECLAMA,ASUNTOS.PESOS,
    ASUNTOS.DOLARES
    FROM ABOGADOS,ASUNTOS
    WHERE ABOGADOS.FICHA = ASUNTOS.F_ABOG
    AND ASUNTOS.F_ABOG = :ABOGADO ;
    -- ABOGADO = PARAMETER.
    THIS REPORT WORKS FINE THE PROBLEM IS WHEN I TRY CALL THIS REPORT FROM FORM I'VE USE A BUTTON(WHEN_BUTTON_PRESSED) WITH THE NEXT CODE:
    DECLARE
    LISTA PARAMLIST := GET_PARAMETER_LIST('ABOG');
    BEGIN
    IF ID_NULL(LISTA) THEN
    LISTA := CREATE_PARAMETER_LIST('ABOG');
    ADD_PARAMETER(LISTA,'DESTYPE',TEXT_PARAMETER,'PRINTER');
    ADD_PARAMETER(LISTA,'DESNAME',TEXT_PARAMETER,'LPT2');
    ADD_PARAMETER(LISTA,'ABOGADO',TEXT_PARAMETER,TO_CHAR(:ASUNTOS.F_ABOG));
    -- ADD_PARAMETER(LISTA,'PARAMFORM',TEXT_PARAMETER,'YES');
    END IF;
    RUN_PRODUCT(REPORTS,'ASUNTOS',SYNCHRONOUS,RUNTIME,FILESYSTEM,LISTA,NULL);
    END;
    BUT THE REPORT NOTHING DISPLAY.
    THERE ARE SOMETHING WRONG WITH THE CODE IN THE BUTTON

    Roberto,
    Does your report work when it is not called from Forms?
    try the following:
    [TOOLS_HOME]\BIN\RWRUN60 module=ASUNTOS destype=screen userid=<username>/<password>@<tns> ABOGADO=<some_valid_code>
    where TOOLS_HOME is the directory where Reports is installed.
    I can see nothing wrong with your code.
    Maybe some error in the query?
    Also, I would check for the existence of multiple ASUNTOS report definitions. Maybe Forms is calling an older one.
    Hope this helps,
    Pedro das Neves
    ([email protected])

  • Print a File from Forms to a Printer connected to USB Port

    Hi All,
    I have a printer connected to the USB port to my local machine.
    I access web application Forms 9i AS and try to print a report on my local printer.The report is opened using web.show_document in the Internet explorer browser window. There are several pages in the report and i need a page break to be recognized on each page. For remote printing i tried using ORARRP utility but it does not print from a printer connected to a USB port. But it works when the printer is connected to a parallel port.
    How do i achieve this, please share your thoughts on this and solution as well if this is feasible
    Expecting a favourable reply from the forum users.
    Thanks in advance

    WEB.show_document is mainly for running a report that you want to display in a browser but you can still use it to create a file in the report server even though I would recommend to use RUN_REPORT_OBJECT instead ...
    You can take a look at metalink note 207396.1 - How to Run Reports From Forms 9i / 10g Using RUN_REPORT_OBJECT.
    It appears you are already using it since WEB.show_document in your case is just used to retrieve the output from a job that was previously run, most likely with RUN_REPORT_OBJECT.
    Can you post the code used to run the report ? It will be easier to convert it to generate a file if we have it..
    The file name you assign it when you call the report (DESNAME=d:\mysharedfolder\mytextfilenameyyymmddhhmiss.txt) so that it is unique and you delete it after the report is printed, webutil can give you a private folder for the user in the application server, in case the data is sensitive, you would run the report with DESTYPE=FILE and MODE=CHARACTER.
    You would need two folder locations, one in the application server, webutil can help you with that, and another one in the client PC, it could be the C:\TEMP folder if you will ...

  • Calling a report from form using web.show_document

    Hi,
    Used the method as below, But , error reprot not found,
    Could anybody tell me how to get the server name from ny local machine as in the example servername ' Repsrv '
    /* WHEN-BUTTON-PRESSED */
    DECLARE
    vc_url varchar2(100);
    BEGIN
    vc_url:=‘http://<hostname><port>/reports/rwservlet?server='
    ||
    ‘Repsrv&report=reptest.rdf&desformat=htmlcss&destype=cache ’
    ||
    '&userid=user/pw@database&p_deptno='||:dept.deptno||'&paramform
    =no’;
    WEB.SHOW_DOCUMENT(vc_url,’_blank’);
    END;
    Thanks

    If you are attempting to print a report from a when-button-pressed trigger from within a form, you do not have to explicitly specify the server (hostname) nor the port. You can just use what I've found referred to as a virtual path to the server as I have done here:
    parm_string := '/reports/rwservlet?config=my_config&report=report_name'
         ||'&desformat=pdf&destype=cache'
         ||'&paramform=no&printjob=no'
         ||'&p_my_user_param1='||v_my_param1
         ||'&p_my_user_param2='||v_my_param2;
    web.show_document(parm_string,'_blank');
    You can specify a userid/password@connectstring within a named congifuration section of your formsweb.cfg file if necessary, e.g. my_config.
    Hope this helps.
    James K.

  • Print a report from Application Express direct to a CUPS Printer

    Hi all, I'm new to this technology, is it possible to print a report from Application Express directly to a CUPS Printer? Can someone tell me in laymans terms how to do it? I find the terminology and documentation less than helpful.

    Jeremy,
    BI Publisher handles submitting reports directly to a CUPS printer. However, the APEX integration doesn't currently integrate with that portion of BI Publisher.
    Here's an options:
    Use the Java API of BI Publisher to build a custom Java program that would do this for you. Delivering to CUPS is part of the Java API.
    Bryan

  • Print Message Report from Mobile

    Hello...
    We need modify standard mobile infrastructure java code...
    We need print some report from Mobile Front-end.
    Is possible to print all MESSAGE data that we can see from front-end of mobile infrastructure 2.5 ???
    thank you very much
    Stefano

    I haven't really done much enhancements on MAM 2.5, but Im sure sami will let you know where to add the code, or you can review the MAM enhancement guide on the CD.
    In regards to printing the PIOS API is pretty simple. If you are using a laptop to print to a normal printer then you can just use the Win32 Drivers..(installed via driver addon from web sap console.)If you are using the handheld you will need to find the appropriate drivers.
    Here is some code I used in one of my applications:
                   <i>Connector conn = Connector.getInstance();
                   DriverInfo[] driverInfo = conn.listDrivers(ConnectionType.PRINTER);
                   PrinterParameters params = new PrinterParameters(driverInfo[0]);
                   params.setPrinterMode(PrinterParameters.GRAPHIC_MODE);
                   GraphicPrinter gp = (GraphicPrinter) conn.open(params);
                   File myImage = new File("c:
    smalllogo.bmp");
                   if (myImage.exists()) {
                        float x = 0;
                        float y = 50;
                        try {
                             String[] sFonts =
                                  gp.getFontConfigurationManager().listFontNames();
                             PrinterFont pf = gp.getFont(sFonts[0]);
                             gp.drawText(
                                  pf,
                                  25,
                                  25,
                                  "TO For Delivery # = "
                                       + dbAccess.getItemFieldValue(arrayItems[0], "VBELN"),
                                  GraphicPrinter.NO_ROTATION);
                             for (i = 0; i < arrayItems.length; i++) {
                                  gp.drawText(
                                       pf,
                                       25,
                                       y,
                                       "Delivery Item # = "
                                            + dbAccess.getItemFieldValue(
                                                 arrayItems<i>,
                                                 "POSNR"),
                                       GraphicPrinter.NO_ROTATION);
                                  y = y + 10;
                                  gp.drawText(
                                       pf,
                                       25,
                                       y,
                                       "Material # = "
                                            + dbAccess.getItemFieldValue(
                                                 arrayItems<i>,
                                                 "MATNR"),
                                       GraphicPrinter.NO_ROTATION);
                                  y = y + 10;
                                  gp.drawText(
                                       pf,
                                       25,
                                       y,
                                       "Quantity to Pick = "
                                            + dbAccess.getItemFieldValue(
                                                 arrayItems<i>,
                                                 "LFIMG"),
                                       GraphicPrinter.NO_ROTATION);
                                  y = y + 25;
                   gp.doPrint(1);
                   gp.close();
              } catch (Throwable tFile) {
                   tFile.printStackTrace();
              }<i>
    This should give you an idea, you should also read through the MDK documentation for the printer API (PIOS). Its quite easy to pick up and as long as you have the driver and connector installed it prints right away.(You could also use the Peripheral emulator in
    NWDS to test the code first)
    Hope this helps,
    Wael..
    Dont forget the rewards
    Message was edited by: wael aoudi

  • Running reports from forms on the web

    On forms and reports 6i we used the following code to run reports from forms.
    We need to do the same on 9i forms and reports, we are running into problems.
    Any help will be appreciated.
    PROCEDURE web (inFileName VARCHAR2,
    inRecordGroup RECORDGROUP) IS
    outVirtualPath VARCHAR2(200) := '/forms90/f90servlet?p_url=/reports/rwservlet?'; outServer VARCHAR2(200) := 'server=rep_ora-app-4';
    outReport VARCHAR2(200) := 'report='||inFileName;
    outUserid VARCHAR2(200) :=
    'userid='||GET_APPLICATION_PROPERTY(USERNAME)||'/'||GET_APPLICATION_PROPERTY(PAS
    SWORD)||'@'||GET_APPLICATION_PROPERTY(CONNECT_STRING);
    outDesType VARCHAR2(200) := 'DESTYPE=CACHE';
    outDesFormat VARCHAR2(200) := 'DESFORMAT=PDF'; outUser VARCHAR2(2000);
    outCount INTEGER;
    error we are getting.
    FRM-42017:Module name must be specified.

    S Hatch (guest) wrote:
    : I'm thinking that you're going to have to install the Reports
    : cartridge, create an entry in the keymap with any parameters
    and
    : call your report via the url.
    : Dessislava Gantcheva (guest) wrote:
    : : How do I call a report from a form on the web?
    : : I have installed Windows NT Server 4.0 with SP 5, OAS4.0.7
    EE
    : : with patch 1, Developer 6.0 with patch 1. Developer server
    and
    : : forms server work fine in a non-cartridge implementation,
    but
    : I
    : : cannot run a report within a form. I just have no any info
    how
    : : to do this.
    I have entries in my keymap file and I can call my reports via
    the url, but I cannot run a report WITHIN a form. I mean to call
    a report by clicking on a button of a form on the web. The
    RUN_PRODUCT built-in does not work (at leas it seems like this)
    If any one has expiriense with it, please, give me a hint.
    Thanks
    null

Maybe you are looking for

  • HP Envy 5530 - computer won't recognize that the printer is on the same network

    Product Name: HP ENVY 5530 OS: Windows 8.1 No changes made to system before issue occured I bought this wireless printer last week (5-13-14). I have a working printer that was connected to my husband's work laptop via USB cable, but needed one to con

  • Tablet is not turning on..

    Hello I have a Lenovo Tablet A1000. The warranty is expired, and it is not turning on. The screen stays blank. When I press the power button it vibrates a little. It was nearly dead so I put it on charge and wen to sleep. When I woke up and checked o

  • Sync videos to Ipod

    I've recently downloaded some music videos from youtube to my Itunes account,they're in my RECENTLY ADDED and Movies, I can play them on my pc just fine, but they're not syncing to my Ipod touch.Pleeeeeese tell me what to do. Thank you all.

  • Download, Print  Link on the Dashboards

    Hi All Usually the requests on the dashboard comes up with Modify, refresh, Print, Download options. If we want to remove the options like Print, modify, etc., What is the procedure to get rid of those links. Thanks in Advance Hey

  • Conversion from BUPA_MAIN to 'simple intelligent'

    Hi Experts: In SMOEAC I changed BUPA_MAIN to simple intelligent. It was a recommandation of SAP OSS. Now I am a little bit confused. The filter I need for upload from BP´s  from CRM to ECC is from Table BUT000. Is it possible to implement a filter li