Printer selection to print Z report

I have one classical report, At selection screen I want to have two Radio Button.
Based on redia Button selection report should print to A3 or A4 page.
What printer setting I need to do, what coding need to be done. Please reply

hi vishal,
take help of this......... u can change the parameters here.....
FORM SETUP_FORM_AND_PRINT_OPTIONS.
  IF condition'.
    V_OPTIONS-TDDEST = 'HPLC'.
    V_OPTIONS-TDPRINTER = 'SAPWIN'.
  ELSE.
    V_OPTIONS-TDDEST = 'KPLC'.
    V_OPTIONS-TDPRINTER = 'HPLJ1100'.
  ENDIF.
IF sy-batch EQ 'X'.
   v_options-tdnewid = sy-prnew .
ENDIF.
ENDFORM.                               " SETUP_FORM_AND_PRINT_OPTIONS

Similar Messages

  • Avoid Printer selection Dialogue box when printing Crystal report in JAVA

    Hi i am calling crystal report in my servlet using Report Client Document SDK, now i want to print the report directly to the default printer set without selecting the printer from the select printer dialogue box. In other words want to avoid the select printer dialogue box from appearing . Can any body suggest me how do i do this .
    Any suggestions appreciated.

    In javascripting the code is
    function Print()
    if (document.all)
    WebBrowser1.ExecWB(6, -1) //use 6, 1 to prompt the print dialog or 6, 6 to omit it;
    WebBrowser1.outerHTML = "";
    <object ID="WebBrowser1" WIDTH="0" HEIGHT="0"
    CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
    But the above code does not work in windows XP SP2.... and i cannot restrict my clients OS.
    where as C#,ASP.NET  provides the functionality to print directly to printer as
    The ReportDocument class provides PrintToPrinter method that may be used to print a CR direct to the printer. If no printer is selected, the default printer will be used to send the printing pages to.
    The PrintToPrinter method takes four parameters.
    nCopies : Indicates the number of copies to print.
    collated : Indicates whether to collate the pages.
    startPageN : Indicates the first page to print.
    endPageN : Indicates the last page to print.
    The following steps will guide you to achieve the same:
    Add crystal report (.cr) file to your ASP.NET application.
    Add a report instance on the page level.
    Dim report As MyReport = New MyReport
    Populate reports data on Page_Init 
      ' Get data in a DataSet or DataTable
            Dim ds As DataSet = GetData()
            ' Fill report with the data
         report.SetDataSource(ds)
    Print Report
    report.PrintToPrinter(1, False, 0, 0)
    If you wish to print certain page range, change last two parameters From to To page number.
    If you want to set page margins, you need to create a PageMargin object and set PrintOptions of the ReportDocument.
    The following code sets page margins and printer name:
    Dim margins As PageMargins =  Report.PrintOptions.PageMargins
       margins.bottomMargin = 200
       margins.leftMargin = 200
       margins.rightMargin = 50
       margins.topMargin = 100
       Report.PrintOptions.ApplyPageMargins(margins)
       ' Select the printer name
       Report.PrintOptions.PrinterName = printerName
    Thn Why not a java SDK for Crystal report can provide such a functionality...
    Edited by: rtabassum on Mar 25, 2010 6:34 AM
    Edited by: rtabassum on Mar 25, 2010 6:36 AM
    Edited by: rtabassum on Mar 25, 2010 6:42 AM

  • How can I select a printer in the moment when I want to print a report?

    Hi,
    I don't know is there are a way that when I want to print a report, appears a window where I can select a determinated printer in a list? Like when I print in Word that can call a window where appears all teh printers instaled in Windows and the I can select one. Anyone can help me please?
    Thanks

    You may do it by creating a LOV in your report-invoking env. to select the wanted printer and pass it to Reports. An example of doing it in Apex ....
    http://1.2.3.209/dev60cgi/rwcgi60?repdevi_key&server=Rep60_devi&report=myrpt.rdf&DESFORMAT=PDF&DESTYPE=PRINTER&DESNAME=hp2100&BACKGROUND=YES&P_1=....
    Or you may do it in Reports using Parameter Form.

  • Disable printing selection criteria in SAP reports

    Hi,
    Is it possible to disable the print of the selection criteria when i print an report from SAP.
    Now i always get an extra print and that is not usefull.
    thx
    Mark

    Hi,
    Are u refering to The serial number and batch management report if so that can be disable by print prefernces....
    Try it.
    Regards
    Chidambaram

  • How to select printer for reports 11g?

    I just upgraded my forms and reports from 6i to 11g, before printing the reports to printer,
    I was using
    WIN_API_DIALOG.select_printer(:DESNAME,:PORT,FALSE);to get printer name from network and set :DESNAME.
    This didn't work in 11g, what's the alternative function to perform this ?

    frank1018 wrote:
    I just upgraded my forms and reports from 6i to 11g, before printing the reports to printer,
    I was using
    WIN_API_DIALOG.select_printer(:DESNAME,:PORT,FALSE);to get printer name from network and set :DESNAME.
    This didn't work in 11g, what's the alternative function to perform this ?Hello Frank,
    Check this Oracle reports 10g output directly to printer
    Hope this works..
    Hamid

  • Questions on Print Quote report

    Hi,
    I'm fairly new to Oracle Quoting and trying to get familiar with it. I have a few questions and would appreciate if anyone answers them
    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    Thanks and Appreciate your patience
    -PC

    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    I think I posted it in one of the threads2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    Yes, your understanding is correct.3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    No, there is no conc program getting called, you can directly call a report in a browser window, Oracle reports server will execute the report and send the HTTP response to the browser.4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    This is detailed in many threads.Thanks
    Tapash

  • Print crystal report without using the print button on toolbar

    Hi,
    I am working on Crystal report XI. I need to print the report w/o using the toolbar. So I have inserted a print icon in the report. On clicking that icon it should call a jsp page which will print the report. I am not able to call any print methods provided by JRC to do this.
    Can someone help me with this problem.
    Is there some other way to implement it ?
    Thanks
    Message was edited by:
    CR_newbie

    Print the report where? On what printer? The server's printer?
    Java code runs on the server. You can't affect the client's computer from JSP.
    You can write javascript code which can call window.print() but that is working through the browser to display the print dialog box (as if the user selected file:print)

  • 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 Multiple Report

    <p>Hi,</p><p> </p><p>I have some questions regarding the printing of multiple reportat one time. Here goes the description:-</p><p> </p><p>Right now, I have jsp page to pass in the required parameter togenerate the brio report in pdf format.If i have 20 reports, I haveto go in every page to pass in the parameter to generate the reportbefore I print it out.</p><p> </p><p>My questions are:-</p><p>1. Is there any way to print 20 report at one go without viewingthem?</p><p>2.20 report use the same parameter but different set ofdata.</p><p>3. There are not similar report but have common parameteronly.</p>

    Hello Vedant,
    <li> Do you already have a report that will accept multiple invoice numbers as input and generate required "Invoice Report" for you?
    <li> If Yes - Are you looking to generate URL based on user check-box selection? If so, please provide sample URL format which will accept multiple invoice numbers.
    <li> If No - I think first you should create such report (I have limited knowledge on Oracle Reports though)
    Regards,
    Hari

  • How to print a report in half of the A4 page

    Hi,
    Please help me, how to print a report in the half page of the A4 size paper.
    Thanks,

    Hi
    If you are using the command MEW-PAGE PRINT ON
    then we can give this layout options
    like
    NEW-PAGE PRINT ON
    DESTINATION <printer name>
    immediately 'X'
    KEEP IN SPOOL 'X'
    LAYOUT 'X_65_132'  (OR X_65_255)
    RECEIVER SY-UNAME
    NO-DISPLAY.
    OTHERWISE WHEN YOU SELECT THE PRINTER
    IN THE PRINTER PROPERTIES/SETTINGS BASICS-> PAPER
    you will have this facility to select LANGSCAPE/PORTRAIT
    use that and print
    Reward points for useful Answers
    Regards
    Anji

  • Problem printing a report in Report Builder 6

    Hi people, I'm experiencing tremendous difficulty when attempting to print a report in Report Builder 6. I've NEVER had this problem before, and it is a bone of contention to our client. Whenever I try to print a report from the report previewer, I get the following error:
    "REP-1849: Failed while printing."
    This error occurs irrespective of the query's complexity!
    Even if I write a simple query such as, "SELECT 'johann' FROM dual", I get the above error. PLEASE help! Failure to test my report (and implement it) is causing a loss of approximately R570,000.00 to the company.
    Your feedback will be appreciated; feel free to e-mail your suggestions to me at:
    [email protected]
    Thanks!

    The latest patch(patch 11) addresses this issue.
    Thanks.

  • How to print a report in landscape mode?

    Hello everybody,
    I have a task where in i need to print a report in LANSCAPE format.
    I have tried to print the report output but i could not found an option to set LANDSCAPE mode and also how to change the font size.
    Can anybody suggest me the approach?
    Helpful answers will surely be rewarded.
    Thanks in advance.
    Sanghamitra.

    Hi
    If you are using the command MEW-PAGE PRINT ON
    then we can give this layout options
    like
    NEW-PAGE PRINT ON
    DESTINATION <printer name>
    immediately 'X'
    KEEP IN SPOOL 'X'
    LAYOUT 'X_65_132'  (OR X_65_255)
    RECEIVER SY-UNAME
    NO-DISPLAY.
    OTHERWISE WHEN YOU SELECT THE PRINTER
    IN THE PRINTER PROPERTIES/SETTINGS BASICS-> PAPER
    you will have this facility to select LANGSCAPE/PORTRAIT
    use that and print
    Reward points for useful Answers
    Regards
    Anji

  • How to print a report which is consist a paper parameter form

    Hi !
    I have created a report file with paper parameter form and also create a form. Now , when I try to run this form it display
    REP-0788: Warning: The value of restricted LOV parameter ppass is not among the selectable values.
         USER ID     (a combo box with data)
         PASSWORD (a combo box with data)
    After click on submit the query button window dispaly a message run successfuly,But it does not print the report's data, it prints only paper parameter contents.
    i.e. REP-0788: Warning: The value of restricted LOV parameter ppass is not among the selectable values.
         USER ID     (a combo box with data)
         PASSWORD (a combo box with data)
    I used the following codes
    PROCEDURE RUN_REPORT1(vc_reportoj Varchar2, vc_reportserver varchar2, vc_runformat varchar2,report_otherparam VARCHAR2, pvar varchar2) IS
    v_report_id Report_Object;
    vc_ReportServerJob VARCHAR2(100); /* unique id for each Reportrequest */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    vjob_id VARCHAR2(100); /* job_id as number only string*/
    vfilename varchar2(255);
    vport varchar2(50);
    hidden_action VARCHAR2(2000) :='';
    v_report_other VARCHAR2(4000) :='';
    i number (5);
    c char;
    c_old char;
    c_new char;
    BEGIN
    /* Get a handle to the Report Object itself. */
    v_report_id:= FIND_REPORT_OBJECT(vc_reportoj);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME,name_in(':parameter.path') ||'\'||NAME_IN('CTL_REPORTS.REPORT_NAME'));
         if pvar = 'FILE' then
              vfilename := CLIENT_GET_FILE_NAME('c:\',null, 'All Files (*.*)|*.*|',SAVE_FILE);
              if vfilename IS NOT NULL THEN     
              SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE, RUNTIME);
         SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESTYPE, FILE);
                   SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESNAME, vfilename||'.rtf');
                   SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER,vc_reportserver);
                   hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME);
    hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE);
    hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY (v_report_id,REPORT_DESFORMAT);
    hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'||get_application_property(password)||'@'||get_application_property(connect_string);
    c_old :='@';
    FOR i IN 1..LENGTH(report_otherparam) LOOP
    c_new:= substr(report_otherparam,i,1);
    IF (c_new ='') THEN
    c:='&';
    ELSE
    c:= c_new;
    END IF;
    -- eliminate multiple blanks
    IF (c_old ='' and c_new ='') THEN
    null;
    ELSE
    v_report_other := v_report_other||c;
    END IF;
    c_old := c_new;
    end loop;
    hidden_action := hidden_action ||'&'|| v_report_other;
    hidden_action := 'http://127.0.0.1:8889/reports/rwservlet'||'?_hidden_server='||vc_reportserver|| encode(hidden_action);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'pfaction='||hidden_action||''||report_otherparam);
    -- run Reports
                   vc_ReportServerJob:=RUN_REPORT_OBJECT(v_report_id);
                   vjob_id := substr(vc_ReportServerJob,length(vc_reportserver)+2,length(vc_ReportServerJob));
    vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
    IF vc_rep_status='FINISHED' THEN
    WEB.SHOW_DOCUMENT ('http://127.0.0.1:8889/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver||'&_blank');
    ELSE
    message ('Report failed with error message '||vc_rep_status);
    END IF;
    ELSE
         RETURN;
    end if;
    This is the part of the procedure.

    See Viewing Pages in Printer Friendly Mode and Selecting a Printer Friendly Template for an Application
    Thanks,
    Vikram

  • Print crystal report in A5 paper tray

    Dear Experts,
    I am using VB.NET
    We have different printers like "Lexmark Optra T612_DB", "HP Universal Printing PCL 5 (v4.7)", etc., in the network, there will be 2 or more trays for each printer. One of the tray has A5 paper in it. While printing Crystal report,
    1. How to find in which tray A5 paper is present?
    2. How to select A5 paper tray for printing?
    If the above 2 are not possible with crystal report object:
    1. How to print crystal report using PrintDocument object?
    2. How to find in which tray A5 paper is present using PrintDocument object?
    3. How to select A5 paper tray for printing? using PrintDocument object?
    Currently with the following lines of .NET code, it is always printing in Tray 2
    report.PrintOptions.PaperSize = PaperSize.PaperA5;
    report.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
    Regards,
    Eswar

    Unfortunately, it will be up to you to find out what tray the correct paper size is in, then set that to the report. The CR APIs do not look up these values, they just expect you to know these and set them.
    Ludek

  • Web printing crystal report hangs on report.PrintOptions.PrinterName

    Hello,
    I have a report web page that displays a crystal report.  I have added a modal popup to allow them to select their printers.  When I go to print the report is hangs on the line of rpt.PrintOptions.PrinterName = li.Text.  The printer names are added to the list box using a Java applet.
    Here is the Sub it is running.
        Public Sub PrintReports()
            rpt = CType(Session("rpt"), ReportDocument)
            For Each li As ListItem In Me.lbPrinters.Items
                If li.Selected AndAlso li.Text <> "" Then
                    rpt.PrintOptions.PrinterName = li.Text
                    rpt.PrintOptions.PrinterDuplex = CType(Me.cboDuplex.SelectedItem.Value, CrystalDecisions.Shared.PrinterDuplex)
                    rpt.PrintToPrinter(CInt(Me.txtNumOfCopies.Text), True, CInt(Me.txtPageStartRange.Text), CInt(Me.txtPageRangeEnd.Text))
                End If
            Next
            Me.mpePrint.Hide()
        End Sub
    Any help would be greatly appreciated.
    Thanks,
    Patrick

    Sounds like you're trying to implement server side printing in your app. Which is fine, except the CR ActiveX print is client side printing. Just in case you're interested, the way to enable activeX print is to go to the property of the CR viewer and find "PrintMode". It will more than likely be defaulted to PDF. Change that to ActiveX.
    Now, back to the issue. This may still be a matter of permissions - essentially what Adam was after. Probably the easiest way to determine that is to use the [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] utility. Once you have the log, search it for "Access Denied" messages.
    Ludek

  • Error While Printing the Report

    Post Author: saqib
    CA Forum: .NET
    HI All,I have joined this forum recently. I found this forum so helpful. I have one query which is: I am using crystal report 10 with Dot Net 1.1, I have created one web report which consists of 19 pages. Once i press the print button on the report after previewing it shows me the error reporting screen of windows. I have checked in event viewer it gives me the following error detail:The description for Event ID ( 1000 ) in Source ( Microsoft Internet Explorer ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: iexplore.exe, 6.0.2800.1106, printcontrol.dll, 10.0.0.533, 0003bb45. Can any one helps me as i am totally stuck in that. Thanks in advance.  

    Try the following if your printer is a network printer
    1. Add Printers - select Local Printer
    2. In the Add Printer wizard, select "create a new port" option and select "TCP/IP" as type
    3. Write the IP address of the network printer in the "Add standard TCP/IP Printer Port wizard". The port name becomes IP_<ip addr>. Click Next.
    4. Select the printer and printer type in "Add Printer" wizard.
    5. Select a driver and Write a printer name. This completes the setup. Use this printer name to print from Oracle reports.
    Hope this helps..
    Yogesh
    I am getting this error message while printing the report on Network Printer.
    "REP-1849: Failed while printing"
    Reports Server is not installed on my machine.
    On shared printer, it has no problems.
    Platform is Win2000. Report Builder 6.0.8.11.3
    Plz help !
    Thanks in advance !

Maybe you are looking for