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

Similar Messages

  • 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

  • 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

    Hi,
    I want to set printer that can print the number of page I want, ex: I have 100 page and I just want print 50 page. The report printed from form or runtime preview.
    I don't know how I start that
    Thanks

    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 report From Oracle form directly on printer

    Hi,
    I am running report from form and output should be directly printed on printer.
    Database: 11g Release2
    Forms version : 11.1.2
    Report version : 11.1.2
    OS: windows 7 professional 32 Bit
    Written following code:
    declare
    pl_id ParamList;
    varno number;
    x VARCHAR2(150);
    y NUMBER;
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    begin                
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    repid := FIND_REPORT_OBJECT('SALEBILLNEW'); -- report object name
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'copies',TEXT_PARAMETER,'1');
    Add_Parameter(pl_id,'background',TEXT_PARAMETER,'Yes');
    Add_Parameter(pl_id,'mode',TEXT_PARAMETER,'Character');
    Add_Parameter(pl_id,'printjob',TEXT_PARAMETER,'YES');
    Add_Parameter(pl_id,'VCOMPANY',TEXT_PARAMETER,:block50.coname);
    Add_Parameter(pl_id,'VCOde',TEXT_PARAMETER,:block50.code);
    Add_Parameter(pl_id,'VOURBILLNO',TEXT_PARAMETER,:BLOCK50.FROMBILL);
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER, 'PRINTER') ;
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, 'OKI MICROLINE 391 TURBO (COPY1) on NILESH-PC') ; --default printer name
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_adminserver_inorasrv-pc_asinst_3');
    y := LENGTH ('rep_adminserver_inorasrv-pc_asinst_3') + 2;
    x := RUN_REPORT_OBJECT (repid, pl_id);
    WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/rwservlet/getjobid'||SUBSTR(x,y)||'?server=rep_adminserver_inorasrv-pc_asinst_3&userid=scott/tiger@winorasr');
    Destroy_parameter_list('tmpdata');
    end;
    Above code giving following error:
    REP-52251: The output of job ID 111 requested on Thu Oct 18 18:37:20 IST 2012 cannot be retrieved.<P>REP-51026: No output is generated for job 111.
    Need help..
    Thanks in advance.

    Hi,
    I have change the printer name to OKI
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, '\\Nilesh-pc\OKI') ;
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER, 'dflt.prt');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,'\\Nilesh-pc\OKI');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt.prt');
    code which i have posted above unable to reach at default printer and gives following error
    The report generated successfully but distribution to destinations failed.
    Modified above code to take default printer from registry.
    Added below code
    rtn_Registry := CLIENT_WIN_API_ENVIRONMENT.Read_Registry('HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows','Device');
    rtn_defaultPrinter := substr(rtn_Registry,1,instr(rtn_Registry,',',1)-1);
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, 'rtn_defaultPrinter') ;
    It is giving error
    CLIENT_WIN_API_ENVIRONMENT.Read_Registry must be declare.
    Edited by: parapr on Oct 20, 2012 10:47 PM

  • 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

    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

  • 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 Report from Web..

    Dear All,
    I have deployed my 6i reports on OAS Forms and Reports Services (9.0.4), by compiling 6i reports in 10 g report builder.
    These 6i reports have the default parameters like
    Destype=screen
    Desformat=dflt
    But in forms builder 10g in report object I gave
    Destype=cache
    Desformat=pdf
    parameter to run the report from forms using Web.show_document().
    So when take the print from web the format ( indentation, fonts,font size) of the report is little changed as compare to 6i reports format.
    How can I got the exact format ( indentation, fonts,font size) of 6i while print from web(
    by OAS Forms and Report Services)?
    Thanks & Regards
    Rana

    Repost.

  • 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

  • Report  from  form

    Hi,
    i called report from form with following and gives the
    error
    REP-0100 Unable to open the file
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    repid := FIND_REPORT_OBJECT('DUMMY_REPORT');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    Thanks.

    Hi,
    this tells you that the Reports Server cannot find the physicale reports file. Please see
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    Frank

  • Print report from client machine without showing in screen

    Hi guys!!
    I m using (forms10g+ 10gAS). I want to Print report from client machine without showing in the screen/monitor.
    Currently I m generating report in pdf format. From the pdf I m printing the document.
    But my requirements is to print directly to the printer without showing preview
    Thanks in advance
    Mokarem

    Maybe this will help:
    http://forums.oracle.com/forums/thread.jspa?messageID=1209371&#1209371
    Gary

  • How to call jsp web report from forms 9i

    Dear fellows,
    How can i call a jsp report from forms 9i.
    Thanx
    Mochoo

    Use web.show_document instead of Run_Report_Object. If the jsp contains a paper layout you can still use Run_Report_Object, but you have to specify the filename extension .jsp along with the filename.

  • Calling a report from Form 6i

    Hi,
    I want to call a report from Form 6i at run time. And I write the following code in When Buttton Press trigger . when I press the button it will gives no response.
    declare
         x report_object;
         y varchar2(100);
    begin
         x:=find_report_object('billform');
         y:=run_report_object(x);
    end;
    for more information , path of my report is: C:\REP\billform.rdf
    please send me the solution of this problem
    E_mail: [email protected]
    Shahzad

    hi,
    now i am using the following code in when button press trigger. if u give me ur e_mail address i will send u FMB and RDF files used for Scott/tiger EMP table for the sample.
    declare
    repo_Para     ParamList;
    BEGIN
    repo_Para:=Get_Parameter_List('Report_para');
    IF not Id_null(repo_Para) THEN
         destroy_parameter_list(repo_para);
    end if;
    repo_Para:=Create_Parameter_List('Report_para');
    Add_Parameter(Repo_para,'PARAMFORM',TEXT_PARAMETER,'No');
    Add_Parameter(Repo_para,'MAXIMIZE',TEXT_PARAMETER,'Yes');
         Add_Parameter(Repo_para,'BDATE',TEXT_PARAMETER,:BLOCK3.a_dptno);
         Add_Parameter(Repo_para,'EDATE',TEXT_PARAMETER,:BLOCK3.b_dptno);
         RUN_PRODUCT(REPORTS,'c:\apu\DDATE.rep', SYNCHRONOUS,
              runtime, FILESYSTEM,Repo_para,NULL);
    end;
    BDATE & EDATE are two user parameters created in report.
    when i press the button in form pass parameters the report will be called but no data will be display but when i directly run reprot from report buider and pass same values of BDATE & EDATE it will show data.
    please give me ur e mail address or help me for this problem
    best regards,
    shahzad

Maybe you are looking for

  • Unable to enter valid password for SMB sharing

    I am trying to share files with my PCs, so I enabled the SMB and selected the user that I want to enable. When I check [in checkbox] the user then it asked me for a password for that user. I entered the CORRECT password but it kept saying that the pa

  • Unable to  re print  purchase order.

    Dear expertes The po  was printed 2 days back , again after changing payment  terms then  after release  process  iam  able to view the print view but could not print the po  using  ME9F. Iam gettingu201D  message already processed on  11.07.2011 wha

  • GPIB Control of Spectrum analyser

    Hi There I have a HP 8591 EM spectrum analyser and EMC receiver I wish to control this via GPIB. I would basically like to control everything from my PC if possible which covers everything on the front panel and to pull of all the data for analysis m

  • Apple TV. setting network time

    MMy school's wifi network demands that I log in before using, and Apple TV tries to set network time before I log in. How can I set network time after I log in to the network. I don't seem to see a menu item for this.

  • Printer won't quit after printing

    After I print anything from my eMac to the HP laser printer it is hooked up to, the printer icon stays in the dock with the little arrow under it showing that it is open. It won't quit automatically; I have to manually go in and quit the printer. I t