Print reports directly in a local printer

Hello buddies,
Well, i wanna know if exists some way to print a reports directly in a local printer when using forms 9i ...
the procedure built-in "PRINT", open a dialog box to choose the printer to send the printscreen... maybe exists a way to make it for the reports...
thx a lot.
Regards,
Prado

This will work for you.
DECLARE
pl_id ParamList ;
Repid Report_Object ;
Rep_Status Varchar2(20) ;
Tag Varchar2(20) ;
BEGIN
:Global.Printer := '\\Pc Name\Printer Name';
-- printer_name is the name of the printer on your local machine
-- The printer should be a whole name like 'HPCOLOR6L'
-- The printer should be shared, and should not have blanks or other special chars
Pl_Id := Get_Parameter_List (Tag) ;
IF NOT Id_Null (Pl_Id) THEN
Destroy_Parameter_List (Pl_Id) ;
END IF ;
Pl_Id := Create_Parameter_List (tag) ;
add_parameter (Pl_Id , 'paramform' , Text_Parameter , 'NO') ;
Repid := Find_Report_Object('rep010_bpass') ; -- name of the report where it should be definded in the report section of the Oracle forms builder
Set_Report_Object_Property(Repid,REPORT_FILENAME,'Report path with report name') ;
Set_Report_Object_Property(Repid,REPORT_EXECUTION_MODE,RUNTIME) ;
Set_Report_Object_Property(Repid,REPORT_COMM_MODE,SYNCHRONOUS) ;
Set_Report_Object_Property(Repid,REPORT_DESTYPE,Printer) ;
Set_Report_Object_Property(Repid,REPORT_DESNAME,Global.Printer ) ;
Set_Report_Object_Property(Repid,REPORT_SERVER,'Report server name') ;
IF Rep_Status = 'FINISHED' THEN
NULL ;
ELSE
MESSAGE ('Error Running report ...') ;
MESSAGE ('Error Running report ...') ;
END IF ;
END ;

Similar Messages

  • Printing Reports directly from to a printer via 10g forms (Linux)

    Hi all,
    I need to be able to print Reports directly from a form to a printer (bypassing the form output) on Linux (RHEL 5). The trick here is this is Linux, not windows so, wasn't sure how to deal with printers in this case.
    I have the option working where I can run a report and set the options to "Cache" and PDF and it displays my outputted report directly in a new browser window w.
    I use the SET_REPORT_OBJECT_PROPERTY, RUN_REPORT_OBJECT, and WEB.SHOW_DOCUMENT properly for the PDF in a window.
    a.) I want to send them directly to a printer, preferably to a user's default printer on their PC, bypassing the output screen. How can I accomplish this?
    b.) I also would like the ability to generate a PDF (bypassing the output on a browser window) and put the form in a specified directory on a client's PC (which is what I used in 6i Client/Server). I believe I need to utilitize the WebUtil to allow this to happen. Otherwise, I'm thinking I just build a queue for the user on the Linux server and build a screen that shows all the reports they've generated for the past X amount of days and let them open them up and print from there.
    Any help (particulary for Part A) would be very beneficial.
    Chris

    1)
    if your app server is on a Linux server, for direct printing to work, the printer must be setup and accessible under Linux server using system-config-printer command, for PDF printout you probably want a postscript option checked
    if you print to screen (PDF) and then use print option then your windows client machine must have access to the printer
    2)
    you must pass this printer name as part of the report parameters.
    set_report_object_property(oRptObj, report_destype, Printer);
    and
    hidden_action := hidden_action ||'&report='|| cRptSrcFile; -- source of report program to call
    hidden_action := hidden_action ||'&destype='|| cDesType;
    hope this helps

  • Web Reports - directing output to local printer.

    We are running Forms/Reports web enabled, and we are designing
    reports, that must send the output directly to the customers
    printers without first showing them in a browser.
    Can anyone please tell me how to do this?
    Regards
    Benny

    There is a utility from Oracle called Remote Report Printing
    Utility. This is meant for sending Web Reports ( HTML,PDF)to a
    local printer. Though I have this utility+doc I havent
    successfully done it.
    If u want I can send it u.
    Hope this Helps

  • Print Report Direct from current PC

    Hi
    I want to print pre printed reports direct to dot matrix Printer without Concurrent Manager in requested PC ( Print from PC not from Server ) .
    So , can i do that or not ?
    Thanks,
    Mohamed Badr

    In general you have 2 options for printing.
    1) print via the server printing queue
    2) download/open the report and click the print button on your workstation
    there is a 2 B option. If we are talking about a HTML based report you can modify the reports in such a way that you send a java script with it that starts the printing. However this is (A) not advisable and (B) somewhat experimental and not supported ;-)
    If you want to know more about printing via javascript check this page: http://www.htmlgoodies.com/beyond/javascript/article.php/3471121/Print-a-Web-Page-Using-JavaScript.htm
    Regards,
    Johan Louwers.

  • Can not print report directly to printer.

    Hi,
    We are using Crystal Report Server for reporting in our project.
    The version we are using is Crystal Report Server XI R2 and Crystal Report Server XI R2 SP 2.
    Please kindly advice us on the following issues we faced:
    - Can not print report directly to printer.
      The print button on the Crystal Report Viewer prints the report to pdf and user have to click "Print" again in the pdf file. This is unusual and not convenient. As we have hundreds of reports to print, is there a way we can print the reporrt directly to printer?
    - "Set to Null"
      In the default interface of the Crystal Report View, there's is this "set to null" check box that we can not remove. Is there a way to do without it?
    Thank you,
    Kenny Tew

    Morning Kenny,
    The printer settings are in server management console. Additionally see what settings you have setup for the printer for the report in the server. If it is setup to use End User printer then check your End user machine settings and make sure the printer is setup as a default printer on his/her machine.
    Please let us know how you get along with the issue.
    As far as "Set to Null" I am not sure where it is set up. A screenshot of it might help understanding it better?
    Many thanks
    Regards
    Jehanzeb
    Edited by: Jehanzeb Navid on Oct 6, 2008 11:07 AM
    Is this issue on all computers or only one computer?
    I have just tested this on my colleague machine and it asks for default printer and not pdf however on mine I setup for pdf.

  • Print report directly from URL

    i have SSRS report where i have prompt to enter to get data. once the data is populated i would like to print directly from the print option rather saving to pdf and print. My page settings format is setup to 9X11 size. with this i can save and print fine.
    But if i print directly to print on A-4 right most part is not printing and looks like i have to change settings in my report. How do we print this kind of report correctly on A-4 size paper. Any help much appreciated.

    Hi SQL Instane,
    Per my understanding that you want to print the report directly when click the print button and print on A-4, you have set the size to 9X11 and after print out, some of the part is not printing, right?
    By default  the size setting for print to A4 is 8.5X11 or 11X8.5, If you have changed to 9X11 and didn't set the body size of the report properly, it my cause the issue you are facing.
    Details information below for your reference about how to do the size setting:
    Change the report size setting to 8.5(Page Width)X11(Page height), you can also try to decrease the size of the "left margin" and "right margin" to increase the width.
    Check the body size setting and maek sure they have the relationship as below:
    Body Width + Left margin + Right margin <=Page width
    Body height+ Top margin + Button margin <=Page height
    If you have many columns and need to increase the width, you can also change the default setting "potrait" (8.5X11)to "Landscape"(11X8.5)
    Article about  the Pagination in Reporting Services for your reference:
    http://msdn.microsoft.com/en-us/library/dd255278.aspx
    If your problem still exists, please try to provide more details information.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Print PDF report directly to a network printer (dot matrix)

    Dear All,
    I have a report of PDF output generated from an XML Report..
    Can I print this PDF report directly to the network printer (dot matrix), by default, like a normal text report output.
    If yes, how can I make this possible...
    Please update...

    Hi,
    Yes u can do that ,first setup the printer on the o/s and refer below documents
    Please refer below documents
    How To Print XML Publisher PDF Reports Via The Concurrent Manager [ID 338990.1]      
    How To Print Concurrent Requests in PDF Format [ID 333504.1]
    How To Generate And Print Reports In PDF Format From EBS With The UTF8 Character Set [ID 443778.1]
    Regards

  • Send 10g reports directly to the default printer of the client machine

    Hello..
    We are using Oracle DS10g and Forms & Reports service 10g. When the user clicks on the report button I want to send the report directly to the default printer installed in the client machine. In this case the printer name may vary and I cannot parameterize the DESNAME parameter. How do i know what is the default printer? Any clue as to how can achieve the desired result?
    Thanks

    If you use webutil in your shop. You can use the CLient_win_api_environment.read_registry to get the default printer. In the run_report_object, desname gets set to the default printer.
    This can also be found in metalink.
                   V_PRINTER := CLIENT_WIN_API_ENVIRONMENT.READ_REGISTRY('HKEY_CURRENT_USER\software\Microsoft\Windows NT\CurrentVersion\Windows','Device',TRUE);
                   V_PRINTER_LENGTH := LENGTH(V_PRINTER);
                   V_PRINTER_BLANK :=     INSTR(V_PRINTER, ',');
                   IF V_PRINTER_LENGTH > 0 AND V_PRINTER_BLANK = 0 THEN
                        :P_OUTPUT_FILE := V_PRINTER;                    
                   ELSIF V_PRINTER_LENGTH > V_PRINTER_BLANK THEN
                   :P_OUTPUT_FILE := SUBSTR(V_PRINTER, 0 , (INSTR(V_PRINTER, ',')-1 ));                    
                   END IF;

  • Re : how to print report output in DOT MATRIX printer

    Hai
           how to print report output in DOT MATRIX printer.
    Thanks
    mani

    Check this
    [http://help.sap.com/saphelp_nw04/helpdata/en/90/78f078030211d399b90000e83dd9fc/frameset.htm]
    also check the SAP Note 129581

  • Printing using direct IP address of printer

    Printing using direct IP address of printer
    Is there a way in Adobe Livecycle where we can directly print using printer’s IP address by passing print server?
    If so what settings we have to do i.e.
    which entries to be added on TrustStore,
    which protocol to be use,
    which format we have to use in PrintURI?
    I have tried,
    Protocol: DirectIP
    PrinterURI: \\<Print server's name>\<Printer's IP address>
                     \\<Print server's IP address>\<Printer's IP address>
                     \\<Print server's name>\<Printer's IP address>:9100
                     \\<Print server's IP address>\<Printer's IP address>:9100
                     \\<Printer's IP address>:9100
                     \\<Printer's IP address>
    I have tried all these PrinterURI and I keep getting belwo error,
    Caused by: java.net.UnknownHostException
    Thanks

    Hello Casc-ade,
    Welcome to the HP Forums.
    I see that you are having some connectivity issues over a wireless connection.
    So I can better assist you, please respond with which Operating System you are running on your Mac as well as the Printer Model number.
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    How Do I Find My Model Number?
    Write me back when you have time and I will be happy to help.
    Cheers,  
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Forms-Reports Web : Direct print a file to a local printer

    <p>For those people who are searching a solution to print their PDF Reports from the AS to a chosen local printer, let see this great Direct Print Java Bean from Casey Bowden.</p>
    Francois

    Hello,
    If anyone is using DirectPrint java bean, maybe you can help us with this problem.
    The issue we are facing is when we are printing Oracle reports that have non-standard colors.
    For example, if field has light gray background it prints black instead. If field has black background and white text it prints black only, no text.
    If field or frame line color is specified as anything but “No Line” (even as white), it prints black line color.
    So even though report displayed on screen as PDF looks completely normal, when sent to the printer unfortunately does not.
    Any advice would be greatly appreciated.
    Thank you

  • Form 6i printing report directly to printer

    Hi Professionals,
    I am in badly need of help to print my barcode report directly to printer from form, currently it is working fine if i make it preview first and then user has to select network printer to print, but user is not accepting that manual step, and therefore we are unable to launch our material management module.
    MY CURRENT CODE WHICH WORKING FINE WITH PREVIEW..................
    add_parameter(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PREVIEW');
    add_parameter(PL_ID, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    add_parameter(pl_id,'paramform',TEXT_PARAMETER,'NO');
    add_parameter(pl_id,'STR',TEXT_PARAMETER,:IM_STR_ISSUE_MASTER.STR_CODE);
    add_parameter(pl_id,'BAT',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.BAT_ID);
    add_parameter(pl_id,'DIV',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.GRP_CODE);
    add_parameter(pl_id,'GRP',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.SUB_GRP_CODE);
    add_parameter(pl_id,'ITM',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.ITEM_CODE);
    add_parameter(pl_id,'COPIES',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.QTY);
    RUN_PRODUCT(REPORTS,'F:\IMS\REPORTS\STOCK_IN_BARCODE.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,PL_ID);
    IF I CHANGE IT TO THE FOLLOWING FOR DIRECT PRINTING IT IS NOT WORKING
    ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PRINTER');
    ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, 'SOLABEL');
    I appreciate any efforts to resolve this issue.
    Thanks
    Ahon
    Edited by: [email protected] on Oct 4, 2009 11:20 PM

    Guide to Implement local printing on client in 10gas/9ias
    To archive this goal we have used orarrp(Oracle Reports Remote Printing Utility), which can be downloaded from the OTN website http://otn.oracle.com/sample/products/reports/index.html.
    Steps:
    1.Add the required ORARRP mime types to the Oracle HTTP Server configuration.
    (Note: This will be the Oracle HTTP Server belonging to the Oracle Application Server 10g/9ias middle (BI & Forms) tier)
    Do this manually by editing the httpd.conf
    or
    via the Oracle Application Server 10g AS Console e.g.
    Navigate to the Middle Tier Components Page
    Click on HTTP_Server -> Administration -> MIME Types
    NOTE: MIME types added in httpd.conf are as per requirement mode in which report has to be run e.g. pdf, rt(rtf) and html etc. syntax for manual entry in httpd.conf is given below.
    AddType application/x-orarrp-text     rrpt
    AddType application/x-orarrp-ps     rrpp
    AddType application/x-orarrp-pdf     rrpa
    AddType application/x-orarrp-rt     rrpr
    AddType application/x-orarrp-ini     rrpi
    AddType application/x-orarrp-html     rrph
    2. Create an aliasmatch in forms.conf pointing to a physical directory \tmp- for example, directory will be c:\tmp
    Do this by manually editing the forms.conf
    or
    via the Oracle Application Server 10g AS Console e.g.
    Navigate to the Middle Tier Components Page
    Click on HTTP_Server -> Administration -> Advanced Server Properties -> forms.conf
    Add a line like :
    # Virtual path for physical directory of temp
    AliasMatch ^/tmp/(..*) "C:\tmp/$1"
    ** IMPORTANT NOTE **
    The advantages of making the changes via EM / AS console, rather than editing the files manually, are:
    - the EM / AS console will put the mime type entries in the correct place
    - the EM / AS console automatically issues a 'dcmctl updateconfig' which synchronizes the file changes with the Infrastructure Metadata Repository
    - the EM / AS console will do the required restart of the HTTP Server component
    (Only the HTTP Server needs to be stopped and restarted – Oracle AS 10g components can remain up and running)
    If the changes are made manually then the following commands must be issued after the changes to httpd.conf and forms.conf have been made.
    Run these command at run prompt
    DRIVE:\oracle\FRHome_1\dcm\bin\dcmctl.bat updateconfig -ct ohs -v -d
    (to synchronize the changes with the Metadata Repository)
    DRIVE:\oracle\FRHome_1\dcm\bin\dcmctl.bat stop -ct ohs -v -d
    DRIVE:\oracle\FRHome_1\dcm\bin\dcmctl.bat start -ct ohs -v -d
    where DRIVE: is the drive where \oracle\frhome_1\ is installed.
    3. Copy and run orarrp.exe on client machine in program files\orarrp\ folder.
    4. Set value of options '”choose_printer=no” in orarrp.ini created at above folder.
    5. Add following lines in your code of run_report procedure.
    In declare section
    vc_file varchar2(225);
    In begin block add
    /* Generate a pseudo unique filename */
    vcfile:=:global.user_code||to_char(sysdate,'YYYYMMDDHHMISS');
    vcfile:=vcfile||'.rrpr';
    /* In this example - output will be rtf so adding .rrpr extension */
    set_report_object_property(repid, report_filename,store_var);
    set_report_object_property(repid, report_server, :global.r_server);
    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,'rtf');
    set_report_object_property(repid,REPORT_DESNAME,'C:\tmp\'||vcFile);
    ---- path can be made dynamic by making a database entry in makess.path_entry for tmp folder and
    ---using proc_path procedure from path lib.
    :GLOBAL.PrintOutPut := vcFile;
    In Run report section make following change:
         vc_reportserverjob := RUN_REPORT_OBJECT(repid,pi_id);
         report_job_id:=substr(vc_reportserverjob,length(:global.r_server+2,length(vc_reportserverjob));
         v_rep_status:=report_object_status(vc_reportserverjob);
         if v_rep_status='FINISHED' then
              web.show_document('/tmp/'||:global.printoutput,'_blank');
         else
              message ('error when running report'||v_rep_status);
    end if;
    Edited by: amitphynyl on Oct 5, 2009 1:36 AM

  • Print report directly to printer

    I am using Crystal Reports XI R2 to generate reports in Powerbuilder. I want to know whether it is possible to print the report directly to a printer without displaying it in the Crystal Report viewer?
    Thanks,
    Amol

    I have a very similar problem, not being able to print a report directly to the printer.
    But I am calling Crystal Reports v8.5 from VB6.  I have tried the  suggested code:
    report.PrintOut(prompt user, numberofCopy, collated, startpage, endpage)
    but get a "type mismatch" compiler error  with "PrintOut" highlighted when compiling, eventhough the inline help shows this method and matching arguments.
    I wonder if I have the correct DLL referenced.
    This report runs fine thru the preview window, but since this is a series of reports about 100 pages, don't really want the user to have to specify print dozens of times.
    Thanks,
    Gene

  • How to print a report directly on to a printer on the client machine

    Hi,
    Could anyone let me know how to print a report directly on to the clients default printer in oracle forms 10g with OAS?.
    Regards,
    Prasad.

    Hello,
    <p>You can use this Java Bean</p>
    Francois

  • Print the Web report directly to client default printer

    I've config out report URL with following parameter to print report output directly to client's printer, but when querying the report, nothing occurs in this printer. I still get the message of "Task done successfully"
    "http://server:7777/KienReport/rwservlet?report=kien_output.rdf&P_JDBCPDS=hr/[email protected]:1521:ora9i&destype=PRINTER&desformat=PDF"
    Do you know how to config that?
    Thanks,
    Kien

    Do you solved this? can you tell me how to solve it.
    best regards.

Maybe you are looking for

  • How to get all the fieldnames from a tcResultSet

    Hi, im coding a connector to write to a file all the fields of the process form. to be like this: User ID: value for UserID FirstName: Value for first Name LastNAme: Value for LastName Im using the Process instance Key to get the tcResultSet. I know

  • How to create a tablespace

    Connect to a database as a user with DBA privileges (usually SYSTEM), and execute a command like this: create tablespace TABLESPACE_NAME datafile size 20G autoextend on next 2G; Choose tablespace size according to data volume estimates. Set autoexten

  • Easy DMS create object links

    Hi, I cannot create object links from within the EasyDMS SAP properties screen for a document. However if I edit the document using the SAP GUI and create object links there, I can view it through EasyDMS. Could somebody tell me what the issue could

  • Create table dinamically using java sql types?

    Hi! I've an application that reads an XML file. This file contains de definitions of some tables, using java sql types. For example: <dbtable>   <dbtablename>Name of table</dbtablename>   <dbtablefield>     <name>Name of table field</name>     <type>

  • Rtorrent with DHT patch

    Hey guys, I've been using rtorrent recently. The only thing I missed was DHT to get more peers when seeds were low. Fortunately I discovered a patch on rtorrent's trac website that adds DHT capability to rtorrent. I've tested it and it's been working