SQL*Plus Sending Report to Printer

Hello:
I have a query which I would like to send the report to the printer. I am using the SPOOL OUT command and the report will not print. I'm running 10g.
Can someone help?
This is my SQL script:
SET NEWPAGE 0
SET SPACE 0
SET LINESIZE 80
SET ECHO OFF
SET FEEDBACK OFF
SET VERIFY OFF
SPOOL C:\DEMO\DEPT3
CLEAR COLUMNS
CLEAR BREAKS
CLEAR COMPUTES
COLUMN DEPARTMENT_ID HEADING 'DEPT'
COLUMN LAST_NAME HEADING 'LAST NAME'
COLUMN SALARY HEADING 'SALARY' FORMAT $99,999
BREAK ON DEPARTMENT_ID SKIP 1 ON REPORT
COMPUTE SUM OF SALARY ON DEPARTMENT_ID
COMPUTE SUM OF SALARY ON REPORT
TTITLE CENTER 'iAPPLE PERSONNEL REPORT' SKIP 2 -
LEFT 'EMPLOYEE REPORT' RIGHT 'PAGE:' -
FORMAT 999 SQL.PNO SKIP 2
BTITLE 'COMPANY CONFIDENTIAL'
SELECT DEPARTMENT_ID, LAST_NAME, SALARY
FROM EMP_DETAILS_VIEW
WHERE SALARY > 12000;
SPOOL OUT
Thank you in advance.

from the 9i documentation
Stops spooling and sends the file to your host computer's standard (default) printer. This option is not available on some operating systems.
the 10g doc does not contain the second sentence.
so, what's your os? do you have a default printer set up? what version of sqlplus (client, not database)?

Similar Messages

  • SQL*PLUS HTML reports

    Hi how to add javascripts to the HTML reports generated using SQL*plus :
    SET MARKUP HTML ON SPOOL ON
    If we want to modify the dynamically generated HTML page by SQL*PLUS how does one do that??
    Please help

    If you create a script containing the following it should work:
    set markup html on spool on
    spool <your file>
    run sql-commands here
    spool off
    set markup html off

  • Error sending report to printer

    When I try to schedule a 9i report to print to a network printer, I get the following message.
    Error while sending file to printer. Exit with Error Code 1848.
    I am able to print from anything else to this printer.
    Any Ideas?

    If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
    LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel.

  • HOW CAN I SET MY FAX SENDING REPORT AS PRINT HP LASER JET COLOURE 2840

    sory i want to set my hp laser jet coloure 2840 as fex sending report as a print 

    Hi
    I found a link which may help you
    http://h10032.www1.hp.com/ctg/Manual/c00292207.pdf
    Go through the Fax part of it.
    Hope this helps.
    ***** Click the KUDOS Thumbs UP (Like) on the left to say 'Thanks'*****
    ****Make it easier for other people to find solutions, by marking my answer “Accept as Solution”&"Kudos"if it solves your problem.****
    -VJ
    Although I am an HP Employee, I am speaking for myself and not for HP.

  • Fonts when sending Reports via Printer Option (10g Reports / Redhat 5)

    When I send a Oracle 10g report to the printer, which PPD file is it using? The printer you install on the server or the one in ORACLE_HOME/guicommon/tk/admin/PPD directory?
    I installed a printer on the Linux Server and copied the file to the ORACLE_HOME/guicommon/tk/admin/PPD directory. I added some new fonts in the PPD so that the report would pick some Windows fonts that didn't exist originally on the Linux. I installed the fonts on the server and am able to see them in PDF Output options on the server.
    When I send the report with the same parameters to the printer directly, it doesn't see those fonts. I only modified the PPD for that printer on ORACLE_HOME/guicommon/tk/admin/PPD directory. So I was wondering if I have to do it on the installed server file as well or not.
    Any help is appreciated.
    Chris

    This was a response that I received from Oracle Support. Basocally, I'd have to install the font in the internal printer memory to get this to work.
    Is there a way to send a Report to PDF in Oracle Forms and then at the same time once that PDF is generated, send it to the printer (without user interaction). That would take care of my problem. That would take care of my printing issue. I know PDF's work and I know I can print them displaying the fonts just fine.
    Support Response:
    Fonts need to be present in the PPD file as well as the internal printer memory .
    Reason is as follows.
    1)Based on PPD file , Font metrics will be used to create thye PS file with the correct font names.
    2)When the PS file is sent to the the printer, actual fonts are not sent . Note that this is a limitation of Oracle Reports PS driver on unix and . Hence, it is required to have a printer that has the fonts installed in its memory/system.
    Currently there is an internal pending enhancement request to upgrade the Postscript driver of Oracle Reports
    Reference
    4149510 UNIX POSTSCRIPT PRINTING ENHANCEMENTS

  • REP-56048: Engine rwEng-0 crashed sending reports to printer Linux

    Hi,
    I was wondering if anyone had any ideas of things I could try to get around this error in Oracle 10g (10.1.2.3) on Linux:
    Terminated with error: REP-56048: Engine rwEng-0 crashed
    I'm receiving it when I send a report directly to the printer (DESTYPE=printer DESFORMAT=blank DESNAME=printer name. When I run it locally on my Windows Machine, the command works and my report prints direclty to the printer fine. It's only when I go to Linux that I have issues. I get the above error. I've read posts on here about turning tracing off but that doesn't seem to help (unless I turned an option off that I thought was tracing.
    When I run it with (DESTYPE=cache DESFORMAT=pdf), the reports generates in a new browser window and works fine (on Windows and Linux both).
    Here's the code below I'm sending
    V_OTHER := 'PARAMFORM=NO READONLY=YES authid='||user;
    V_OTHER := V_OTHER||' PAGESIZE='||vPaper;
    V_OTHER := V_OTHER||' ORIENTATION='||vOrientation;
    V_OTHER := V_OTHER||' DELIMITER='||V_DELIM;
    V_OTHER := V_OTHER ||' '||vParameters;
    SET_REPORT_OBJECT_PROPERTY('GENERICREPORT', REPORT_FILENAME, LOWER(:MODULE.MODULE_NAME)||'.rep');
    SET_REPORT_OBJECT_PROPERTY('GENERICREPORT', REPORT_SERVER, 'rep_inxx37_ybs');
    SET_REPORT_OBJECT_PROPERTY('GENERICREPORT', REPORT_OTHER, V_OTHER);
    IF :SUBM_RQST.DESTINATION = 'P' THEN -- This is printer option
    SET_REPORT_OBJECT_PROPERTY('GENERICREPORT', REPORT_DESTYPE, PRINTER);
    SET_REPORT_OBJECT_PROPERTY('GENERICREPORT', REPORT_DESNAME, 'gt-ybs-ps');
    SET_REPORT_OBJECT_PROPERTY('GENERICREPORT', REPORT_DESFORMAT, '');
    ELSIF :SUBM_RQST.DESTINATION = 'S' THEN     -- This is the PDF option               
    SET_REPORT_OBJECT_PROPERTY('GENERICREPORT', REPORT_DESTYPE, CACHE);
    SET_REPORT_OBJECT_PROPERTY('GENERICREPORT', REPORT_DESFORMAT, 'PDF');
    END IF;
    Any help is appreciated.
    Chris

    Has anyone had any issues with upgrading from a different OS (like Windows) to Linux and trying to print reports directly to the printer? I've had nothing but issues with it. I know others are using the feature but, I just haven't figured it out.
    When I send it via the command line, I get this message below. I'm working with Oracle Support on this. I've got default printer setup as my network printer. I can print a document via the command line to my printer but when I submit an Oracle Report command, I get errors like below.
    [as10g@inxx37 bin]$ ./rwrun.sh report=/u11/app/as10g/ybs/bin/test.rdf destype=printer
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0x01c4d4d3, pid=21730, tid=103095184
    # Java VM: Java HotSpot(TM) Server VM (1.4.2_14-b05 mixed mode)
    # Problematic frame:
    # C [libc.so.6+0x704d3] strrchr+0xa3
    # An error report file with more information is saved as hs_err_pid21730.log

  • Send Report to printer

    Hi,
    Windows Xp,
    Oracle`10g,
    Oracle Db g.
    I am Try to send a report direct to printer . I add parameter
    DesType = Printer, DesName = Printer Name
    But nothing happen no errors nothing happen.
    What is the problem?
    Regards,

    Thanks ....
    The problem is solved which is i put destype = 'Printer' but Printer as oracle reserved word.
    For the first time the out put ok ,
    Then suddenly the output report font disappear.
    Regards,

  • Inserting digitized signature in SQL plus reports

    Our company has decided to use SQL plus for reporting needs. We have few reports with digitized signature printed at the bottom. Is this possible in SQL plus. Digitized signature should be in which format? Can somebody help me. If SQL plus doesn't support this, we mat need to look for alternate tools for reports.

    Actually, it looks like Forums do something strange to URLs pasted into posts. Sorry!
    The thread URL is Re: store/retrieve data in lang other than eng when CHARACTERSET is not UTF8

  • Can we use xml Publisher reporting for sql* Plus in EBS

    Hello All,
    The current report is designed in Sql* Plus Executable report and the output is in txt format, Now the requirement is to have the output in Excel format.
    So is it possible to use the xml reporting and make the output as Excel from the word template we design from MSword as we do for rdf(I have done few reports created in rdf to xml publisher reports in EBS and stand alone as well.).
    Do the same procedure will suit for Sql*Plus reports tooo or Is there any work around to achieve this.
    Thanks and Regards
    Balaji.

    Hi
    Thanks for the reply..
    I tried to do the follwoing
    1. changed the output to xml in the conc. prog.
    2. ran the same report but i am getting the follwoing error in the output file
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource
    Other reports which are using the Oracle Reports(rdf) as source, i am able to generated the xml as expected....
    So my question is whether we can use sql* reports executable and generate xml in the conc.prog.
    if any one has used the sql*reports for xml publisher reporting... please let me know, so that if its possible i will check my sql needs some validation or tuning...
    thanks in advance
    Balaji.

  • SQL*Plus report: hide accept value in report

    HI all,
    I have created an SQL Report of an APEX-Application. The output is stored in a HTML file.
    All works fine but one think I want to hide in the HTML report.
    I try to describe what the problem is.
    I prompt the user to put in the application_id of the apex application:
                           accept v_application_Id char prompt 'Appliaction-ID:'
    In the HTML file the following output is shown:
    Report created on:
    25-Jun-2013, 10:06:04
    alt 8: where application_id = &&v_application_id
    neu 8: where application_id = 680
    Workspace
    WORKSPACE
    APPLICATION_ID
    APPLICATION_NAME
    ALIAS
    OWNER
    Q0Q0AUFTRAGSVERWALTUNG
    680
    Q0Q0AUFTRAGSVERWALTUNG
    F680317
    Q0Q0AUFTRAGSVERWALTUNG_ADMIN
    How can I hide the two lines
    alt 8: where application_id = &&v_application_id
    neu 8: where application_id = 680
    from the report?
    I have searched  this forum and toke a look into the documentation but I have nothing found.
    Could anyone please help me?
    Oracle 11g R2
    This is the SQL script what I run in SQL*Plus.
    -- start script
    accept v_application_Id char prompt 'Appliaction-ID:'
    spool C:\a\APEX.html
    set termout off
    SET MARKUP HTML ON SPOOL ON HEAD "<TITLE>SQL*Plus APEX-Report</title> -
    <STYLE TYPE=’TEXT/CSS’><!--BODY {bgcolor: ffffaa background: ffffc6} --></STYLE>"
    clear break
    clear buffer
    clear compute
    clear column
    clear sql
    set feedback off
    set serveroutput on
    -- Report Header
    ttitle left ' ' skip 1
    select TO_CHAR(sysdate,'dd-Mon-yyyy, hh24:mm:ss')  "Report created on:"
    from dual;
    -- Workspace
    ttitle left col 15 '<font face="Arial" size="+2" color="#0000FF">Workspace</font>' skip 1
    set linesize 300
    set pagesize 500
    set serveroutput on
    column workspace format a35
    column application_id format 99999999
    column application_name format a35
    column alias format a35
    column owner format a35
         select
             WORKSPACE,
             APPLICATION_ID ,
             APPLICATION_NAME,
             ALIAS,
             OWNER
         from apex_applications
         where application_id = &&v_application_id;
    ttitle off
         select
             APPLICATION_GROUP,
             APPLICATION_GROUP_ID,
             HOME_LINK,
             PAGE_TEMPLATE,
             ERROR_PAGE_TEMPLATE
         from apex_applications
         where application_id = &&v_application_id;
    set termout on
    set markup html off head '' body '' entmap off spool off pre off
    set feedback on
    set linesize 80
    set pagesize 50
    ttitle off
    set termout on
    set serveroutput off
    spool off
    set echo on
    -- End Script
    best regards
    ben
    Oracle 11g R2

    Hi, Ben,
    The SQL*Plus command to stop those messages is
    SET VERIFY OFF
    Put this command anywhere before the first use of a substitution variable, e.g. before the SPOOL command.
    Those "OLD" and "NEW" messages will stay suppressed until you either end the SQL*Plus session, or issue a SET VERIFY ON command.
    If you use SQL*Plus often, then, when you have a few minutes, look up the SET command in the SQL*Plus manual,
    SET System Variable Summary
    and read a little about each option.  You probably won't remember everything, but you probably will remember what kinds of things can be controlled by the SET command, and have a better idea of where to start looking in the future when you have a different problem.

  • Query is Slower in PL/SQL than in SQL*Plus ?

    I have a query that executes quiet fast in SQL*Plus (<1 second) but with EXECUTE IMMEDIATE withing an PL/SQL block its performance is really poor (=20 times slower)
    I am using the agregation function WMSYS.WM_CONCAT and I figured out that the poor PL/SQL performance must be related somehow to this function...
    I don't get why in SQL*Plus the query executes that much faster... Any ideas/solutions?
    Thanks!
    My PL/SQL query:
    EXECUTE IMMEDIATE 'INSERT INTO ' || temp_table_opt || '
    SELECT DISTINCT a.hs as HS, a.ht as HT, a.vehicle_id as VEHICLE_ID, c.option_id as OPTION_ID, WMSYS.WM_CONCAT(e.av_checked) as AV,
    d.vehicle_id || '';'' || d.option_code || '';'' || d.option_type || '';'' || d.manuf_name as COMPOUND_KEY
    FROM jumla.ax_vid a, jumla.version b, jumla.equipment c, jumla.option_list d, jaxlink_data.checked e
    WHERE a.hs = SUBSTR(''' || phsht || ''', 1, 2)
    AND a.ht = SUBSTR(''' || phsht || ''', -2, 2)
    AND b.vehicle_id = a.vehicle_id
    AND c.vehicle_id = a.vehicle_id
    AND d.vehicle_id = a.vehicle_id
    AND b.id_106 IN (''2'', ''4'', ''X'')
    AND d.option_type <> ''P''
    AND d.option_id = c.option_id
    AND e.hs = a.hs
    AND e.ht = a.ht
    AND e.schema_id = c.schema_id
    AND e.option_code = d.option_code
    AND e.description = d.manuf_name
    GROUP BY a.hs, a.ht, a.vehicle_id, c.option_id, d.vehicle_id || '';'' || d.option_code || '';'' || d.option_type || '';'' || d.manuf_name';

    > I am using the agregation function WMSYS.WM_CONCAT and I figured
    out that the poor PL/SQL performance must be related somehow to this
    function...
    Wrong.
    Who executes the SQL that is created?
    Answer - does not matter where the SQL comes from, from a PL procedure, Java program, SQL*Plus, TOAD or whatever, the SQL is parsed by the SQL engine, execution plan created by the CBO and stored in the SQL Shared Pool.
    An EXECUTE IMMEDIATE is a PL command that sends the string to the SQL engine to be processed. Just as SQL*Plus sends a string to the SQL engine to be processed.
    So how can the very same SQL be faster from SQL*Plus and slower from somewhere else?
    Nothing to do with where it comes from, but everything to do wrt the session that the SQL is being executed in. Issues such as settings for that session (which can be differ from session to session). Scope. Context. Etc.

  • Print a report from sql*plus.

    Regards all
    Let me know whether it is possible to print a hard report rom sql*plus and how.
    waiting

    Let me know whether it is possible to print a hard report rom sql*plus Yes. SPOOL is a command to get SQL*Plus screen results to disk real-time.
    and how.A "report" is such a generic term, that you will have to get started with at least some reading :)
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a90842/toc.htm
    (search for: "How Can I Learn SQL*Plus")
    You may also address specific questions about the SQL*Plus product (that are not really Database SQL and/or PL/SQL related) via the [Technologies>Tools>iSQL*Plus] forum rather than here.
    waiting That's up to you! Dig in!
    Michael O'Neill
    Publisher of the PigiWiki
    clever-idea.com

  • SQL Plus command to print a report in Landscape format

    Hi,
    what is the SQL Plus command to print a report in Landscape format?

    841731 wrote:
    Hi,
    what is the SQL Plus command to print a report in Landscape format?SQLPlus doesn't print, and it doesn't know about 'landscape' vs. 'portrait' any more than it knows about fonts. the only 'formatting' it knows is line size, page size. And all it does with line size is know where to insert a CR/LF pair (windows) or a CR (*nix). The only thing it knows to do with page size is repeat column headers.
    The rest is up to whatever application you use to open the pure asciii text spool file.

  • Unable to send report output to printer when using RUN_REPORT_OBJECT in 10g

    Hello All,
    When I try to send my report output to a file from my form(10g), I get 'FRM-41213: Unable to connect to report server'. I can sucessfully send my report to printer when I set the REPORT_DESTYPE to 'PRINTER'.Here is the code from my when-button-pressed trigger.
    Am I missing something?
    declare
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN                
    repid := find_report_object('PWRR_CTRL_TYP_MAINT');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_ipkcaf7vm');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'DFLT');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'C:\TEST1.doc');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
         LOOP
         rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
              msg_alert('Report print successfully', 'I', FALSE);
    ELSE
         msg_alert('Error when running report', 'I', FALSE);
    END IF;
    END;
    Thanks,
    Anna

    Hi,
    its because
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'C:\TEST1.doc');
    references the report rdf pr rep file to run, not the output file. The Reports output file is always specified with DESNAME
    Frank

  • Send Report Directly To Printer Without using ORARRP?

    Is their any other way to send report output directlly to printer from reports 10g running on Oracle IAS 10g without use of Orarrp?
    I am asking this question because of some non-support issue with Orarrp mentioned by Oracle in documents.
    Looking for yours help on this topic.
    Thanks

    within a forms trigger:
    1. generate the report
    2. copy from iAS to local
    like: webutil_file_transfer.url_to_client()
    3. print.exe /d:printer filename (for windows OS)

Maybe you are looking for

  • FI-AA Imprimir Totais em relatorios Sandart.

    Olá Boa tarde. Eu estou com um problema na impressão dos totais de relatorios. Bom primeiro eu vou na transação S_ALR_87011964 Tirei o utilizar ALV grid control e gero o relatorio analiticamente. Quando eu faço a impressão os sub-totais (linhas em am

  • Reporting services button not auto loading the data

    Hi, I am having issues loading data from reporting services (using the reporting services button).When I click on the "refresh on load" box, is not pulling the data automatically. The data gets pulled only if I press the button. Also, the trigger cel

  • ITunes could not copy...unknown error occured (-50)

    Hello.  I'm getting the unknown error (-50) when trying to sync or copy songs to my ipodtouch.  Part of my troubleshooting was to upgrade to the latest iTunes and the latest iOS. Both actions were completed today.  Firewalls and security are turned o

  • How To Change Root Folder Reference for href - anythingslider links?

    How To Change Root Folder reference for href - anythingslider links? My root folder in Web Apps>Carousel in admin is set at /carousel/ (http://bestinscotland04.businesscatalyst.com/carousel/slide-2 - as an example) but I want it to link to a specific

  • Dvd to ipod touch

    can i copy dvds to my ipod and if so how do i do it