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

Similar Messages

  • Shortcut to find a property from property pallate in oracle 10G forms

    Hi,
    I want to know the the shortcut to find a property from property pallete in oracle 10G form builder.
    Because i cannot use mouse due to blindness. Please tell shortcut to locate a property from property pallete.
    Qasim Javaid Malik

    Hi,
    Yes, the keys I mentioned open Property Palette.
    I have no clue about short-cuts for properties in an open palette.
    The Up and Down arrow keys work will you enter a LoV, and I could not figure out key strokes to come out of the LoV !
    Maybe someone else has some idea of this.
    Cheers,
    PS: I was trying on 11g R1 as I do not have 10g any more.
    Edited by: Prabodh on Sep 14, 2012 2:53 PM

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

  • Print Crystal Report directly from C# without using Report Viewer

    Hello All,
    I need to print a crystal report directly to the printer without using ReportViewer in C#. I've a CrystalReport2(belowCode) which requires a query (Select * from JobHeader where JobNumber='J012345') to display all the data. I'm stuck with database connection
    and putting all the data to DataAdapter in C# (Below Code). I also have 8 subreports in my CrystalReport2. Can somebody please give me hand on this? I'm struggling with it. Thanks.
    Regards
    using CrystalDecisions.CrystalReports.Engine;
    using System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;
    using System.Data.SqlClient;
    namespace csharp_win_printtoprinter
    /// <summary>
    /// Summary description for Form1
    /// </summary>
    public class Form1 : System.Windows.Forms.Form
    //CR Variables
    ReportDocument crReportDocument;
    private System.Windows.Forms.Button button1;
    private System.Windows.Forms.PrintDialog printDialog1;
    private System.Windows.Forms.Button button2;
    private System.Drawing.Printing.PrintDocument printDocument1;
    private CrystalDecisions.Windows.Forms.CrystalReportViewer crystalReportViewer1;
    private CrystalReport1 CrystalReport11;
    private Chart Chart1;
    /// <summary>
    /// Required designer variable
    /// </summary>
    private System.ComponentModel.Container components = null;
    public Form1()
    // Required for Windows Form Designer support
    InitializeComponent();
    // TODO: Add any constructor code after InitializeComponent call
    /// <summary>
    /// Clean up any resources being used
    /// </summary>
    protected override void Dispose( bool disposing )
    if( disposing )
    if (components != null)
    components.Dispose();
    base.Dispose( disposing );
    #region Windows Form Designer generated code
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor
    /// </summary>
    private void InitializeComponent()
    this.button1 = new System.Windows.Forms.Button();
    this.printDialog1 = new System.Windows.Forms.PrintDialog();
    this.button2 = new System.Windows.Forms.Button();
    this.printDocument1 = new System.Drawing.Printing.PrintDocument();
    this.crystalReportViewer1 = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
    this.Chart1 = new csharp_win_printtoprinter.Chart();
    this.CrystalReport11 = new csharp_win_printtoprinter.CrystalReport1();
    this.SuspendLayout();
    // button1
    this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    this.button1.Location = new System.Drawing.Point(32, 56);
    this.button1.Name = "button1";
    this.button1.Size = new System.Drawing.Size(160, 104);
    this.button1.TabIndex = 0;
    this.button1.Text = "Print Report No Choose Printer";
    this.button1.Click += new System.EventHandler(this.button1_Click);
    // button2
    this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    this.button2.Location = new System.Drawing.Point(272, 56);
    this.button2.Name = "button2";
    this.button2.Size = new System.Drawing.Size(160, 104);
    this.button2.TabIndex = 1;
    this.button2.Text = "Choose Printer";
    this.button2.Click += new System.EventHandler(this.button2_Click);
    // crystalReportViewer1
    this.crystalReportViewer1.ActiveViewIndex = 0;
    this.crystalReportViewer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
    this.crystalReportViewer1.Cursor = System.Windows.Forms.Cursors.Default;
    this.crystalReportViewer1.Location = new System.Drawing.Point(47, 188);
    this.crystalReportViewer1.Name = "crystalReportViewer1";
    this.crystalReportViewer1.ReportSource = this.CrystalReport11;
    this.crystalReportViewer1.Size = new System.Drawing.Size(903, 296);
    this.crystalReportViewer1.TabIndex = 2;
    // Form1
    this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    this.ClientSize = new System.Drawing.Size(1164, 505);
    this.Controls.Add(this.crystalReportViewer1);
    this.Controls.Add(this.button2);
    this.Controls.Add(this.button1);
    this.Name = "Form1";
    this.Text = "Form1";
    this.Load += new System.EventHandler(this.Form1_Load);
    this.ResumeLayout(false);
    #endregion
    /// <summary>
    /// The main entry point for the application
    /// </summary>
    [STAThread]
    static void Main()
    Application.Run(new Form1());
    private void button1_Click(object sender, System.EventArgs e)
    crReportDocument = new ReportDocument();
    //Create an instance of a report
    crReportDocument = new CrystalReport2();
    //Use error handling in case an error occurs
    try
    //Set the printer name to print the report to. By default the sample
    //report does not have a defult printer specified. This will tell the
    //engine to use the specified printer to print the report. Print out
    //a test page (from Printer properties) to get the correct value.
    System.Drawing.Printing.PrintDocument printDocument = new System.Drawing.Printing.PrintDocument();
    crReportDocument.PrintOptions.PrinterName = printDocument.PrinterSettings.PrinterName;
    //Start the printing process. Provide details of the print job
    //using the arguments.
    crReportDocument.PrintToPrinter(0 ,true , 1, 1);
    //Let the user know that the print job is completed
    MessageBox.Show("Report finished printing!");
    catch(Exception err)
    MessageBox.Show(err.ToString(), "Unexpected exception");
    private void Form1_Load(object sender, System.EventArgs e)
    private void button2_Click(object sender, System.EventArgs e)
    //Open the PrintDialog
    this.printDialog1.Document = this.printDocument1;
    DialogResult dr = this.printDialog1.ShowDialog();
    if(dr == DialogResult.OK)
    //Get the Copy times
    int nCopy = this.printDocument1.PrinterSettings.Copies;
    //Get the number of Start Page
    int sPage = this.printDocument1.PrinterSettings.FromPage;
    //Get the number of End Page
    int ePage = this.printDocument1.PrinterSettings.ToPage;
    string PrinterName = this.printDocument1.PrinterSettings.PrinterName;
    crReportDocument = new ReportDocument();
    //Create an instance of a report
    crReportDocument = new Chart();
    try
    //Set the printer name to print the report to. By default the sample
    //report does not have a defult printer specified. This will tell the
    //engine to use the specified printer to print the report. Print out
    //a test page (from Printer properties) to get the correct value.
    crReportDocument.PrintOptions.PrinterName = PrinterName;
    //Start the printing process. Provide details of the print job
    //using the arguments.
    crReportDocument.PrintToPrinter(nCopy, false, sPage, ePage);
    //Let the user know that the print job is completed
    MessageBox.Show("Report finished printing!");
    catch(Exception err)
    MessageBox.Show(err.ToString());

    1. This is a VB.Net forum not a Visual C# forum. For Visual C# questions try this forum.
    Visual C#
    2. Crystal Reports are not supported by Microsoft. Therefore, unless somebody responding in the Visual C# forum has experience with whichever version of Crystal Reports you are using, you will probably not receive an answer in the Visual C# forum. SAP has
    their own assistance for Crystal Reports using Visual Studio. You can try to find an appropriate forum to ask questions in at SAP in the below link.
    SAP Community Network
    La vida loca

  • 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

  • Run SBO report directly from SDK

    Hi, is there a way to run an SBO report (for example Service Contracts) directly from SDK? The report should be given the necessary parameters too.
    I know that i can call Service Contracts form, simulate a query to find the appropriate record and then simulate a click on print preview button. This way it will undoubtedly work.
    But I would prefer opening the print preview directly, without the need of opening another form, that slows down the whole process. Is there a way to do this?

    Tamas,
    There is currently not an object via the SDK to directly run a report.  You would have to use the work around that you mentioned.
    Eddy

  • Transfer pics **DIRECTLY** from Canon camera(SDcard) via**WIRE** to iPhone3G?

    Is there a way to transfer pics  **DIRECTLY**  ie, **NO COMPUTER** from Canon camera(SDcard) via  **WIRE**ie., **NO WiFi**  to iPhone3G?
    Do you all understand my question?
    Please don't respond that I need a computer to do that...I know this.
    What I want is a "device" like a card reader, that will plug **DIRECTLY** into an iPhone...Thanks.
    Ness
    <Personal Information Edited by Host>

    The only way I could think of to do this would be by using the camera connection kit. One of the 2 pieces is a dock-USB connector so your could plug the camera directly into it, the other piece is a card reader that plugs into the dock connector. It's designed for the iPad. I haven't heard of anyone trying to use it on an iPhone. I'm sure someone has tried, but I have no idea what the result would have been.

  • Exchange Integration: Which features accessed directly from Lync Client, which via Lync Server

    Hi
    I'm wondering which Features of the Lync Server 2013 <-> Exchange 2013 Integration are accessed directly from the Lync 2013
    Client (direct Access from the Lync Client to the Exchange Server) and which Features are accessed from the Lync Client via the Lync Server (Access from the Lync Client to the Lync Server to the Exchange Server).
    For example: Are Outlook contacts aquired directly from the Exchange Server when searched in the Lync Client.
    Thanks,
    Michael

    Yes, Outlook contacts acquired directly from the Exchange Server when searched in the Lync Client.Integration between Lync and Exchange will give many features as following:
    Voice mail.
    Lync Archiving Integration.
    Unified Contact Store.
    Lync Meeting Scheduling from OWA.
    High resolution photos.
    Also you can refer below link for more info.
    http://technet.microsoft.com/en-us/library/jj688098.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • How to run reports directly from R/3 tables

    We are about to implement BW but the client wants to run temporary reports directly off R/3 tables. How can this be accomplished? Do we just use business content or r there other ways?
    Thanks

    I created a join of 3 tables using SQVI in BI 7.0.  Nobody else but me can see this query join.  Is there a way to save this to somwhere public, so others can access this view?  Maybe "Save As"??
    If possible, please provide steps to do this. 
    Thank in advance!

  • Printing report directly from printer

    Hi,
    I need a small information.if any one of our guys can give me some info that would be great.
    I am writing a ABAP report now. lets say when we write 'hello world' in code and F8  program o/p will show 'hello world' right. I need to print this through user default printer automatically...might be pop-up for confirmation would help.
    Thanks in advance...
    Raj

    Hi Rich,
    Calling program is
    REPORT ZTESTRAJ1 .
    parameters:p_date like sy-datum.
    DATA: SELTAB     TYPE TABLE OF RSPARAMS,
          SELTAB_WA  LIKE LINE OF SELTAB.
    start-of-selection.
          CLEAR SELTAB_WA.
    MOVE: 'p_date' TO SELTAB_WA-SELNAME,
          'P'     TO SELTAB_WA-KIND,      " PARAMETER
          sy-datum    TO SELTAB_WA-LOW.
    APPEND SELTAB_WA TO SELTAB.
    CLEAR SELTAB_WA.
    MOVE: 'p_matnr' TO SELTAB_WA-SELNAME,
          'P'     TO SELTAB_WA-KIND,      " PARAMETER
          '1233344'  TO SELTAB_WA-LOW.
    APPEND SELTAB_WA TO SELTAB.
    SUBMIT Ztestraj with p_date eq sy-datum
                    with p_uname eq sy-uname
                    with p_matnr eq '122333' and return.
    if sy-subrc = 0.
    write 'Printed'.
    endif.
    Here is the program Ztestraj
    parameters:
    p_matnr like mara-matnr,
    p_date like sy-datum,
    p_uname like sy-uname.
    data:  l_matnr like mcha-matnr.
    start-of-selection.
    l_matnr = p_matnr.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
      EXPORTING
        INPUT              = l_matnr
    IMPORTING
       OUTPUT             =  l_matnr
    EXCEPTIONS
      LENGTH_ERROR       = 1
      OTHERS             = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    WRITE:  L_MATNR.
    DATA: PARAMS LIKE PRI_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LOCL'
                COPIES                = COUNT
                LIST_NAME             = 'ZTESTRAJ'
                LIST_TEXT             = 'SUBMITTO SAP-SPOOL'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 80
                LINE_COUNT            = 120
                LAYOUT                = 'X_44_120'
               SAP_COVER_PAGE        = 'X'
                COVER_PAGE            = 'X'
               RECEIVER              = 'SAP*'
               DEPARTMENT            = 'System'
                NO_DIALOG             = 'X'
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      SUBMIT ztestraj TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        WITHOUT SPOOL DYNPRO and return.
        if sy-subrc = 0.
        endif.
    ENDIF.

  • Is there a printer I can buy to print directly from Iphone 4S (perhaps via bluetooth) WITHOUT wifi or computer?

    My parents purchased an iphone 4s and would like to know if there is a printer that they could buy which would allow them to print WITHOUT having a computer OR a wifi wireless network. I've researched bluetooth enabled printers but it is not clear if they'll work based on what I've read without a computer and network.

    Any printer that supports AirPrint can print documents or photos directly without any need for a PC or MAC. I work for a printer company and strong suggest all my customers to buy Brother or Epson printers. Anything Brother or Epson with a (W) and the end of the model number will support AirPrint.
    Aaron.

  • No sound going direct from AppleTV to TV via HDMI

    No sound via HDMI to From Apple TV to TV.
    1) Switched out the HDMI cable between
    2) Blue ray via to tv via HDMI works just fine.
    3) Apple Tv via HDMI to Receiver to TV via HDMI works just fine.
    It is just the direct connect that does not work.

    I suspect this is a problem with your TV not being able to decode the digital bitstream by which the sound is sent via the HDMI cable. The receiver obviously can (as I would expect).
    Not sure how you are connecting both your receiver and the TV to the HDMI output on the Apple TV as there is only one and it is better to send the signal via the receiver anyway as I would imagine that is how your surround sound system operates.

  • Running Report Directly from SAP Menu

    Hi ,
    I have to know that , I have created a report and given it a transaction code . There is also a standard report which output almost the same result .
    Now I want that standard report not to be shoen in the SAP menu on the left hand side and instead of it I want My reports transaction code to be visible so that the enduser is at an ease not to remember the Transaction code to run that report .
    So how can I go for it ?
    PLease advice .
    Thanx & Regards

    Hi,
    Have you looked transaction and screen variants (SHD0) or GuiXT solution?
    For more information, please check this links.
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/f639fb015111d396480000e82de14a/content.htm
    http://www.synactive.com
    http://help.sap.com/saphelp_erp2004/helpdata/en/89/91b9d8194f11d5b3a30050dae02d7c/content.htm
    http://service.sap.com/guixt
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Email an invoice directly from SAP CRM 7 via ERMS

    Hi there,
    Is there a way to email a customer invoice from SAP CRM7 using SAP ERMS?
    With SAP CRM4, we are able to open up the invoice and click on the email icon. This will launch a new email from outlook with the bill attached.
    I'm looking for a more integrated way to email an invoice using ERMS within SAP.
    Thanks,
    Catherine

    Hi Catherine,
    What if you use the action profile for sending the email?.
    Thanks,
    Faisal

  • Very Urgent !! XMLP reports not printing directly from Oracle Apps.

    Hi ,
    We are not able to print XMLP reports directly from Oracle Applications(Concurrent Manager) to the printer.
    We have checked the following setups and they are ok.
    1. Have a Postscript ready printer.
    2. PASTA has been installed and setup.
    3. The printer type "--Pasta Universal Printer Type" is associated with the printer and that the seeded "PDF Publisher" print style and PASTA_PDF printer driver are associated with the printer type. Third party program "pdftops" has been installed in the instance.
    4. pasta_pdf.cfg is present and that it contains an "uncommented" entry as follows:
    preprocess=pdftops {infile} {outfile}
    5. The XMLP Report also has print style as "PDF Publisher".
    Initially, Step 5 was not being followed and the printer was printing the XML data instead of the pdf output.
    Now, after changing it to PDF Publisher, nothing is coming as output to the printer.
    I have checked that both the XML and pdf files are getting generated.
    Does anyone have any idea what could be the problem? Any help is greatly appreciated.
    Regards,
    Satrajit

    Hi Satrajit,
    Please make sure you have pdftops is available on the server and in the PATH.
    Please run following two commands.
    $ which pdftops
    $ which pdf2ps
    Please use one of two commands you found in the server.
    Please review Metalink Note 338990.1 for more details.
    Thanks,
    Shinji

Maybe you are looking for

  • Want to connect my printer (7500a) my other computer by using a router

    how do i connect my 7500A PRINTER IN A GROUP BY  A ROUTER

  • Different Order Types within a Collective Order

    Dear PP Gurus, I have a requirement for having different order types with in a collective order. For example, in a BOM of 3 levels, the order type for each assembly should be different say ZPP1, ZPP2 and ZPP3. For this, I have maintained separate pro

  • Cross company banking

    Hi All, I'm not experienced in FI/CO modules so don't be offended if I write mistakes here Is it possible to have kind of "cross company banking" set-up in SAP? I mean that a customer would be invoiced out of different company codes (because he is de

  • Export comments into word

    I'm trying to export my sticky notes comments into word and I get prompted that I need word 2002 or later installed on your system. I have word 2007 installed. Why does this prompt appear? I need to find out how to export my comments to word. Any hel

  • Passwords in SU10

    Hi All, If we create users in su10, how to know the passwords generated automatically? Can some one tell me. Regards, Sandhya