How to bypass Report10g Preview from calling Oracle form(Direct to printer

Hi Experts
I have a requirement here on calling report10g from oracle form10g ,actually report is working
but i want to bypass the preview on screen mean to say whenever user run the report that time
report preview should go on printer .(mean to say user don't want see a report10g preview on screen ,they wanted print/send report10g directly on printer.
so can any buddy tell me neccesary steps for doing this activity but here make not report10g is web based.
Appreciate if any buddy provide me step by step Solution example.
Thanks
Abhishek
Tech Cunsultant.

try this out hope this helps u
PROCEDURE PRINT_DOC IS
     PL_ID PARAMLIST;
BEGIN      
     PL_ID := GET_PARAMETER_LIST('TEMPDATA');
     IF NOT ID_NULL(PL_ID) THEN
          DESTROY_PARAMETER_LIST(PL_ID);
     END IF;
     PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
     ADD_PARAMETER(PL_ID, 'PARAMFORM', TEXT_PARAMETER, 'NO');
     ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PRINTER');
     ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<printer_path>');
     ADD_PARAMETER(PL_ID, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
     RUN_PRODUCT(REPORTS, '<report_name>', SYNCHRONOUS, RUNTIME, FILESYSTEM, PL_ID, NULL);      
END;printer path = \\10.10.22.10\printer sharing name

Similar Messages

  • How to display a calendar from an Oracle Form?

    When Microsoft Outlook is opened, is it possible to display the folder contining the user's calendar? What is the necessary code to do this? I want to be able to display the calendar and let the user enter information, delete information, view information, and update information. Can this be done from an Oracle Form? Could code be put in a When-Button Trigger to do this function?

    When Microsoft Outlook is opened, is it possible to display the folder contining the user's calendar? What is the necessary code to do this? I want to be able to display the calendar and let the user enter information, delete information, view information, and update information. Can this be done from an Oracle Form? Could code be put in a When-Button Trigger to do this function?

  • How login in BI Publisher from MyApp (Oracle Forms 11.1.2)

    Hi.
    Anyone can help me, as I login from my application in Oracle Forms 11.1.2, BI Publisher 11.1.6
    Thank you very much
    Carlos

    I would not use the national characterset, but change the database characterset instead. Oracle is perfectly capable of suporting multibyte charactersets like UTF-16 or UTF-8.
    Take a look how to verify if you can change the database characterset using csalter or if you'd need to create a new database:
    http://www.oracle-base.com/articles/10g/CharacterSetMigration.php
    If you change the database characterset to e.g. AL32UTF8 your VARCHAR2 columns are multibyte enabled (and depending on your NLS_LENGTH_SEMANTICS the precision you specified are BYTEs or CHARs), and you won't need to change your sourcecode at all.
    The national characterset is there to support multiple charactersets in one database; As you simply want to support multibyte it's by far more easy to change the database characterset. Change the database characterset to AL32UTF8 (4 byte variable-width characterset) and you won't have problems with charactersets at all in the future.
    Also changing to NVARCHAR2 multibyte won't be a easy "alter table modify blabla", as the data itself also needs to be migrated. The whole migration plus the change of your entire code plus the bug that this doesn't even work in forms makes a reinstall of your database install and a characterset migration via exp/imp by far the easiest solution.
    cheers

  • 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 to call a COM object from an Oracle Form?

    Hi All,
    Pls advice. How to call a COM object from an Oracle Form?
    Thanks.

    try asking the "Form" forum

  • How to Call Oracle Form From Oracle ADF

    Hi All,
    Version - Oracle Jdeveloper 11.1.1.5
    In Oracle Adf - when i click on Button how to call oracle form?
    Please help....
    Thanks..
    Sk

    And there is a tool called oraFormFaces that has some advanced linking api to access forms etc. Do a google search to find info on this.

  • Calling a Database Procedure from an Oracle Form

    Hi,
    I have a question we will be calling the procedure from an Oracle form and through that can we pass like 1000 input values to this procedure and we need to return certain values back to the Oracle Form also. Here the proceduere take two or more parameters. Please advice.
    To receive the input values we have the input parameter of the procedure as type object, so that we can receive multiple parameter values.
    Thanks and Regards
    Srinivas

    user2626293 wrote:
    Hi Francois,
    Thanks for your response, please suggest me as to how we can acheive passing of parameters which can hold multiple values, while making a call to the database procedure from the Oracle Form
    Hi Srinivas,
    Here is an example of procedure...
    CREATE OR REPLACE PROCEDURE P_GET_SAL (P_EMPID NUMBER, P_SAL OUT NUMBER)
    IS
    BEGIN
         SELECT SALARY
         INTO P_SAL
         FROM EMPLOYEE
         WHERE EMPLOYEE_ID=P_EMPID;
    END;
    SQL> VAR G_SAL NUMBER;
    SQL> EXEC P_GET_SAL(100,:G_SAL);
    PL/SQL procedure successfully completed.
    SQL> PRINT G_SAL;
    G_SAL
          2300Hope this helps
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.*

  • Call Oracle form from pl/sql

    Dear All
    How can I call Oracle form from pl/sql and open this form to end user
    many thanks

    Hshihadah wrote:
    how can I show this form to specific client ?What client?!? Database PL/SQL is executed within a process on the database server, it's not something which is executed on the client. Could you please elaborate a little bit more?
    By now I have not the faintest clue if you want to
    - call a form from another form ( call_form )
    - call a form within a database process (?!?)
    - call your form from a client you did not tell us (probably APEX?!?)
    For the case you really meant to call a form within Database PL/SQL: Just in case you didn't recognize it, but the database is perfectly capable of PL/SQL and as calling a form within a database process is a one-way street as you cannot interact with it there is no point at all in writing the things you want to do in forms. If you want some PL/SQL code executed on the database then...well...put it in a stored procedure in the database!
    cheers

  • Call Oracle forms from VB application

    Hi
    How can call Oracle Forms 4.5 from a VB application. Also Is it possible to return values back to the calling VB application. Please advice.
    Regards..
    Venkatesh

    In which case I would suggest you go to 10g or 11g of Forms since 6 is no longer supported.
    then check out
    http://www.oracle.com/technology/documentation/forms/index.html
    http://download.oracle.com/docs/cd/B25016_04/doc/dl/web/B14032_03/B14032_03.pdf
    http://otn.oracle.com/formsupgrade
    Its all documented here
    Regards
    Grant

  • HT4753 How do you stop preview from auto save

    How do you stop preview from doing AutoSave?
    Preivew keeps saving different copies of a pdf I am working on (highlighting/annotating), and I now only have 1GB left on my harddrive (had 180GB left).

    If you are using Safari, look at Safari > Preferences > General and make sure 'Open "safe" files after downloading' is not checked.  Other browsers should have a similar setting in their preferences.

  • Error while calling standard OAF page from custom Oracle Form

    Hi,
    I am calling standard OAF page from custom oracle form using the following code.
    FND_FUNCTION.EXECUTE(FUNCTION_NAME=>'FUN_TRX_ENTRY_OUT_VIEW_BATCH',
    OPEN_FLAG =>'Y',
    SESSION_FLAG =>'N' ,
    OTHER_PARAMS =>'&ViewBatchID = "' || NAME_IN('FUN_AGIS_LINE_D.BATCH_ID') ||
                        '&CallingFunction = "' || 'MANEXPINQ' ||'"');
    But I am getting this error.
    oracle.apps.fnd.framework.OAException: This request was not processed as the request URL %2FOA_HTML%2FOA.jsp%3Fpage%3D%2Foracle%2Fapps%2Ffun%2Ftransaction%2Fentry%2Fwebui%2FViewOutBatchPG%26OAPB%3DFUN_PRODUCT_BRAND%26OAHP%3DFUN_SSWA_MENU%26OASF%3DFUN_TRX_ENTRY_OUT_SEARCH%26_ti%3D1217029204%26language_code%3DUS%26%26ViewBatchID%20%3D%20%22203148%26CallingFunction%20%3D%20%22MANEXPINQ%22%26CallFromForm%3D%27Y%27%26oas%3DqZqg3tmdEdUNyw_HtskVow.. contained potentially illegal or un-encoded characters. Please try again by submitting a valid URL or contact your systems administrator for assistance.
    Please let me know any thing I missed out here.
    Any suggestion will highly appreciated.
    Thanks & Regards,
    Sunita

    I am using FND_FUNCTION.EXECUTE to call a OAF page from PLSQL in R12. I am getting following error"Error(9,23): PLS-00302: component 'EXECUTE' must be declared"

  • Procedure runs in SQL Plus, but not when called from my Oracle Form

    Hi. I have this code to send an email alert as the user updates a record on my base table from my Oracle Form. I use dbms_scheduler so that it's submitted as a background job and so the email processing does not delay my Oracle Form from saving quickly. If I submit this code in SQL Plus it executes and I receive the email as expected.
    begin
    dbms_scheduler.create_job ( 
         job_name            => 'IMMEDIATE_JOB', 
         job_type            => 'PLSQL_BLOCK', 
         job_action          => 'begin TTMS.dropperVacationConflict_Notify (62547, ''01-SEP-11'', ''02-SEP-11''); end;', 
         number_of_arguments => 0, 
         start_date          => sysdate +1/24/59, -- sysdate + 1 minute 
         enabled             => TRUE, 
         auto_drop           => TRUE, 
         comments            => 'Immediate, one-time run');
    end;However if I submit this code from a Post-Update trigger in my form the code runs without error, but my email is never received (the same parameter values would be passed to this trigger):
    begin
    -- Submit the email notification in the background so as to not slow down the screen while saving.   
    dbms_scheduler.create_job ( 
         job_name            => 'IMMEDIATE_JOB', 
         job_type            => 'PLSQL_BLOCK', 
         job_action          => 'begin TTMS.dropperVacationConflict_Notify (:dropper_vacations.dropper_id, :dropper_vacations.begin_dt, :dropper_vacations.end_dt); end;', 
         number_of_arguments => 0, 
         start_date          => sysdate +1/24/59, -- sysdate + 1 minute 
         enabled             => TRUE, 
         auto_drop           => TRUE, 
         comments            => 'Immediate, one-time run');
    end;     Any ideas why this might be happening?

    Wow, so I changed the two procedures so that I'm only passing in one number parameter and one char parameter...
    CREATE OR REPLACE procedure TTMS.job_vacationconflict_notify (p_dropper_id number, p_other char) IS
    CREATE OR REPLACE PROCEDURE TTMS.dropperVacationEmailURL_new (in_dropper_id number, in_other char) ISIf I execute it like this it works and I get the email:
    TTMS.job_vacationconflict_notify(62547, 99999);or like this it works and I get the email:
    TTMS.job_vacationconflict_notify(62547, '99999');But if I execute it like this (I get no errors) the email is not sent:
    TTMS.job_vacationconflict_notify(62547, 'ababa');So this problem really has nothing to do with date formats. It seems to have to do with whether parameter two has characters in it!!! What the heck.
    Any ideas on this?
    Here is the procedure I'm calling:
    CREATE OR REPLACE procedure TTMS.job_vacationconflict_notify (p_dropper_id number, p_other char) IS
    begin
      dbms_scheduler.create_job ( 
         job_name            => 'IMMEDIATE_JOB', 
         job_type            => 'PLSQL_BLOCK', 
         job_action          => 'begin TTMS.dropperVacationemailurl_new ('||p_dropper_id||','||p_other||'); end;', 
         number_of_arguments => 0, 
         start_date          => sysdate +1/24/59, -- sysdate + 1 minute 
         enabled             => TRUE, 
         auto_drop           => TRUE, 
         comments            => 'Immediate, one-time run');
    end;
    /And the above procedure is calling this procedure which should be sending the email alert:
    CREATE OR REPLACE PROCEDURE TTMS.dropperVacationEmailURL_new (in_dropper_id number, in_other char) IS
          myguid varchar2(15):=null;
          pcm_contact varchar2(3):=null;
          guid_contact varchar2(15):=null;
          conflict_cnt number(8):=0;
          -- Various declarations
          PSENDER VARCHAR2(200);            --  From
          PRECIPIENT VARCHAR2(200);         --  To
          P_CC_RECIPIENT VARCHAR2(200);     --  CC
          P_BCC_RECIPIENT VARCHAR2(200);    --  BCC
          PSUBJECT VARCHAR2(200);           --  Subject
          PMESSAGE VARCHAR2(6000);          --  Message Body
          PPARAMETER NUMBER;                --  Parameter Value
          guid_valid varchar2(15);          --  Used to grab the validation value of
          -- Grab name details of e-mail targets
          cursor targets is
          select guid, initcap(first_name) first_name, initcap(first_name)||' '||initcap(last_name) fullname
          from pwc_employee
          where upper(guid) = upper(guid_contact);
    BEGIN
            select count(*)
            into conflict_cnt
            from dropper_bundle_assign
            where
                dropper_sched = in_dropper_id and
                trunc(sched) <> '31-DEC-29' AND        
                trunc(sched) between '01-SEP-11' and '02-SEP-11' and
                trunc(sched) > trunc(sysdate);
            select distinct pcm
            into pcm_contact
            from dropper_bundle_assign
            where
                  dropper_sched = in_dropper_id and
                  trunc(sched) <> '31-DEC-29' AND        
                  trunc(sched) between '01-SEP-11' and '02-SEP-11' and
                  trunc(sched) > trunc(sysdate);
            select guid
            into guid_contact
            from pwc_employee
            where initials = pcm_contact;
        -- Ensure required parameters have been passed
        if guid_contact is not null
           and in_dropper_id is not null then
               Begin
                    select guid
                    into guid_valid
                    from pwc_employee
                    where upper(guid) = upper(guid_contact);
               Exception
                    when no_data_found then
                    raise_application_error(-20000,'Invalid Recipient.  Please check the employee table.  Please try again.');
               End;
               -- In the event there are multiple targets then we will loop thru and send individual emails
               for thisone in targets loop
                    PSENDER := lower(user)||'@us.ibm.com';
                    PRECIPIENT := lower(thisone.guid)||'@us.ibm.com';
                    P_CC_RECIPIENT := lower(thisone.guid)||'@us.ibm.com';
                    P_BCC_RECIPIENT := 'ssbuechl'||'@us.ibm.com';
                    PPARAMETER := TO_NUMBER(lower(in_dropper_id));
                    PSUBJECT := 'TEST: Dropper Vacation '||in_other||' Conflict Notification for dropper '||in_dropper_id||' - Action Required';
                    PMESSAGE := thisone.first_name||'-<br><br>There is an induction conflict due to a new or updated dropper vacation.<br><br>Click here to the dropper''s vacation conflicts: <u><a href="http://9.35.32.205:7777/forms/frmservlet?config=TTMSMENU&form=dropper_vacations&otherparams=p_dropper='||PPARAMETER||'">Dropper Id: '||PPARAMETER||'</a></u> (note: use your Oracle credentials when prompted for log-on information).<br><br>Thanks.';
                    SEND_MAIL ( PSENDER, PRECIPIENT, P_CC_RECIPIENT, P_BCC_RECIPIENT, PSUBJECT, PMESSAGE );  -- Procedure to physically send the e-mail notification
               end loop;
        else
              raise_application_error(-20001,'Recipient and Parameter Value are required. Please try again.');
        end if;
    exception
        when no_data_found then
             raise_application_error(-20002,'Note: Email will not be sent because no PCM was identified as the manager or the PCM does not have a record in the Employee table.  See ITS for assistance.');
         when too_many_rows then
             raise_application_error(-20003,'Note: Email will not be sent because multiple PCMs manage this dropper. Please notify each PCM manually.');
    END dropperVacationEmailURL_new;
    /Edited by: sharpe on Aug 17, 2011 4:38 PM
    Edited by: sharpe on Aug 17, 2011 5:03 PM

  • How to call Oracle Form within Oracle Form?

    Hi,
    I have a requirement to call a customized Oracle Form from standard Oracle Form (Special Information screen) and vice versa.
    Then need to display the person detail accordingly.
    Is it possible to be done? Appreciate guidance on this item.
    Thanks and Regards,
    SC

    Veerendra,
    Sounds like you are using the Oracle E-business Suite (EBS). If that is the case, opening a form is different in the EBS than it is in a non-EBS Forms application. You have the register the Custom Form in the EBS for starts.
    This question should be posted in the General EBS Discussion forum not here. Also, I recommend you take a look at the Oracle Applications Documentation and find the "Oracle Applications Developer's Guide".
    Craig...

  • Can anyone please tell me how to stop email previews from appearing on my screen. I have turned off the preview option in settings on both my ipad and iphone, but they still keep appearing.  Thanks

    Can anyone please tell me how to stop email previews from appearing on my screen. I have turned off the preview option in settings on both my ipad and iphone, but they still keep appearing.  Thanks

    works ok on mine - (5, 7.1.1).  Try again.  with previews set to none, mine shows the sender and the subject line only.  (you cannot get rid of the subject)    with the other settings, you get the sender, subject line and however many lines you selected.

  • How to run a DOS command from an Oracle form.

    How can I run a DOS command from an Oracle form (i.e. open the calculator located at c:\windows\system32\calc.exe)?

    first of all get the environment variable for the c:\windows\system32 direcotry for any of the windows
    you can use get variable from the ora env package
    now cancat the system32 variable with the calc.exe string
    now pass the string with host command as parameters
    this process will work for all type of windows.

Maybe you are looking for

  • Wi-Fi loosing connection every few seconds on my macbook pro and its not my router's fault (running yoseomite)

    Basically I bought my new Macbook Pro retina display in September 2014. My wifi was working perfectly well for about a month or two until Yosemite was brought out. I'm not sure if it was immediately after I downloaded Yosemite or not, but not long af

  • C   RUNTIME ERROR

    my issue is  1.i am getting the attached error when i try to submit my tender thr' web site name "www.ireps.gov.in" . 2. basic need to log in & to submit the tender thr' this site is ie6,7,8 or 9 & windows xp/sp3, vista or 7  & DIGITAL SIGNATURE CERT

  • Deferred tax: Post invoice and payment separately 600000025

    Hi Friends, While releasing billing document to accounting in VF02, i am facing with the following error. Deferred tax: Post invoice and payment separately 600000025 Message no. DEFTAX020 600000025 is the billing document number. please help me.. wit

  • Aperture can't read Sony a7 II raw files

    I just got a new Sony a7 II and was shocked to see that Aperture cannot read a raw file from this camera.  Does anyone know of a work-around?

  • Tablesorter null pointer exception

    I have table dynamically updating from network, but when ever I read data into table it gave me exception as same as this forum. I try to look out for answer but so far every expert seem to live with it. here the link http://forum.java.sun.com/thread