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

Similar Messages

  • How to print the report directly without previewing (report viewer) using c# windows application

    Hi,
    Currently, we are using crystal report to all of our reporting applications, but since I/users have encountered some issues about CR's speed to load only a simple report, maybe it is now time for us to adopt a new reporting environment in which I think SSRS
    can fill this problem.
    To start with, I have here a sample code, that uses the crystal report to print the report directly without previewing:
    csCashInvoiceCal csCashCal; --Crystal report name .rpt
    dsCsReceipt dsCs; --created dataset
    DataTable u;
    DataRow s;
    private System.Drawing.Printing.PrintDocument printDocument1;
    private System.Windows.Forms.PrintDialog printDialog1;
    ParameterValues paramValue;
    ParameterDiscreteValue discreteValue;
    ParameterFieldDefinition fieldDefinition;
    private void btnPrint_Click(object sender, EventArgs e)
    this.Cursor = Cursors.WaitCursor;
    loadReceipt2();
    print2();
    csCashCal.Close();
    this.Cursor = Cursors.Default;
    private void loadReceipt2()
    dsCs = new dsCsReceipt(); --created dataset
    u = dsCs.Tables.Add("DtCsReceipt");
    u.Columns.Add("Qty", Type.GetType("System.String"));
    u.Columns.Add("UOM", Type.GetType("System.String"));
    u.Columns.Add("Description", Type.GetType("System.String"));
    u.Columns.Add("UnitPrice", Type.GetType("System.String"));
    u.Columns.Add("Discount", Type.GetType("System.String"));
    u.Columns.Add("Amount", Type.GetType("System.String"));
    try
    for (int i = 0; i < dgvDesc.Rows.Count - 1; i++)
    s = u.NewRow(); double.TryParse(dgvDesc.Rows[i].Cells[Discount2.Name].Value.ToString(), out discount);
    s["Qty"] = double.Parse(dgvDesc.Rows[i].Cells[Qty.Name].Value.ToString());
    s["UOM"] = dgvDesc.Rows[i].Cells[Uom2.Name].Value.ToString();
    s["Description"] = invcode + dgvDesc.Rows[i].Cells[Description.Name].Value.ToString();
    s["UnitPrice"] = dgvDesc.Rows[i].Cells[UnitPrice.Name].Value.ToString();
    if (discount != 0)
    s["Discount"] = "(" + string.Format("{0:0.##}", discount) + "%)";
    else
    s["Discount"] = "";
    s["Amount"] = dgvDesc.Rows[i].Cells[Amount2.Name].Value.ToString();
    u.Rows.Add(s);
    catch (Exception) { }
    csCashCal = new csCashInvoiceCal();
    csCashCal.SetDataSource(dsCs.Tables[1]);
    //csCashCal.Refresh();
    loadParameter2();
    private void loadParameter2()
    ParameterFieldDefinitions paramFieldDefinitions;
    paramValue = new ParameterValues();
    discreteValue = new ParameterDiscreteValue();
    paramFieldDefinitions = csCashCal.DataDefinition.ParameterFields;
    discreteValue.Value = date;
    fieldDefinition = paramFieldDefinitions["Date"];
    commonParam();
    discreteValue.Value = txtcsno.Text;
    fieldDefinition = paramFieldDefinitions["InvoiceNo"];
    commonParam();
    discreteValue.Value = txtNameTo.Text;
    fieldDefinition = paramFieldDefinitions["CustomerName"];
    commonParam();
    discreteValue.Value = txtAdd.Text;
    fieldDefinition = paramFieldDefinitions["CustomerAddress"];
    commonParam();
    ------other parameters----
    private void commonParam()
    paramValue.Clear();
    paramValue.Add(discreteValue);
    fieldDefinition.ApplyCurrentValues(paramValue);
    private void print2()
    using (printDocument1 = new System.Drawing.Printing.PrintDocument())
    using (this.printDialog1 = new PrintDialog())
    //this.printDialog1.UseEXDialog = true;
    this.printDialog1.Document = this.printDocument1;
    DialogResult dr = this.printDialog1.ShowDialog();
    if (dr == DialogResult.OK)
    int nCopy = this.printDocument1.PrinterSettings.Copies;
    int sPage = this.printDocument1.PrinterSettings.FromPage;
    int ePage = this.printDocument1.PrinterSettings.ToPage;
    string PrinterName = this.printDocument1.PrinterSettings.PrinterName;
    try
    csCashCal.PrintOptions.PrinterName = PrinterName;
    csCashCal.PrintToPrinter(nCopy, false, sPage, ePage);
    printcount++;
    //saveCountPrint();
    catch (Exception err)
    MessageBox.Show(err.ToString());
    This is only a simple sales receipt application that uses dgv and textboxes to push its data to dataset to the crystal report, a simple one but there are instances that it is very slow.
    But I'm having trouble implementing this using SSRS, since I'm only new to this one, wherein I created the report using report wizard, with two button options inside the form for print preview or direct print selection. Actually, it is very easy to implement
    with print preview because it uses reportviewer. My problem is that how can I print the report directly without using a reportviewer?
    So here is my code so far which I don't know what's next:
    private void button2_Click(object sender, EventArgs e)
    this.Cursor = Cursors.WaitCursor;
    loadReceipt3();
    //print3();
    this.Cursor = Cursors.Default;
    ReportParameter[] parameter = new ReportParameter[11];
    private void loadParameter3()
    parameter[0] = new ReportParameter("InvoiceNo", txtcsno.Text);
    parameter[1] = new ReportParameter("Date", date);
    parameter[2] = new ReportParameter("CustomerTin", txtTin.Text);
    parameter[3] = new ReportParameter("CustomerName", txtNameTo.Text);
    parameter[4] = new ReportParameter("CustomerAddress", txtAdd.Text);
    parameter[5] = new ReportParameter("Agent", agent);
    parameter[6] = new ReportParameter("Discount", "Discount: ");
    parameter[7] = new ReportParameter("TotalDiscount", lblDiscount.Text + "%");
    parameter[8] = new ReportParameter("TotalSales", rdtotal);
    parameter[9] = new ReportParameter("Tax", rdtax);
    parameter[10] = new ReportParameter("TotalAmount", rdnet);
    private void loadReceipt3()
    DataSet dsrs = new DataSet();
    DataTable dtrs = new DataTable();
    DataRow drs;
    dtrs.Columns.Add("Qty", Type.GetType("System.String"));
    dtrs.Columns.Add("UOM", Type.GetType("System.String"));
    dtrs.Columns.Add("Description", Type.GetType("System.String"));
    dtrs.Columns.Add("UnitPrice", Type.GetType("System.String"));
    dtrs.Columns.Add("Discount", Type.GetType("System.String"));
    dtrs.Columns.Add("Amount", Type.GetType("System.String"));
    try
    for (int i = 0; i < dgvDesc.Rows.Count - 1; i++)
    drs = dtrs.NewRow();
    drs["Qty"] = double.Parse(dgvDesc.Rows[i].Cells[Qty.Name].Value.ToString());
    drs["UOM"] = dgvDesc.Rows[i].Cells[Uom2.Name].Value.ToString();
    drs["Description"] = invcode + dgvDesc.Rows[i].Cells[Description.Name].Value.ToString();
    drs["UnitPrice"] = dgvDesc.Rows[i].Cells[UnitPrice.Name].Value.ToString();
    if (discount != 0)
    drs["Discount"] = "(" + string.Format("{0:0.##}", discount) + "%)";
    else
    drs["Discount"] = "";
    drs["Amount"] = dgvDesc.Rows[i].Cells[Amount2.Name].Value.ToString();
    dtrs.Rows.Add(s);
    catch (Exception) { }
    int addtlRow = 7;
    if (addtlRow > (count - 1))
    addtlRow = addtlRow - (count - 1);
    for (int i = 0; i < addtlRow; i++)
    dtrs.Rows.Add();
    loadParameter3();
    LocalReport localreport = new LocalReport();
    localreport.SetParameters(parameter);
    localreport.DataSources.Clear();
    localreport.DataSources.Add(new ReportDataSource("dsSalesReceiptSsrs", dtrs));
    localreport.Refresh();
    //what's next....
    So what's next after local..refresh()? Actually, I have googled a lot but I didn't found the exact solution that I'm looking for which confuses me a lot.
    Anyway I'm using VS 2010 with sql server 2012 express.
    You're help will be greatly appreciated.
    Thank you,
    Hardz

    After some further studies with ReportViewer controls and with the use of this tutorial @ : http://msdn.microsoft.com/en-us/library/ms252091.aspx, which helps me a lot on how to print a report without using a report viewer, I found out what is missing
    with my code above and helps solve my question.
    Here's the continuation of the code above:
    private void loadReceipt3()
    loadParameter3();
    LocalReport localreport = new LocalReport();
    localreport.ReportPath = @"..\..\SsrsCashReceipt.rdlc";
    localreport.SetParameters(parameter);
    localreport.DataSources.Clear();
    localreport.DataSources.Add(new ReportDataSource("dsSalesReceiptSsrs", dtrs));
    Export(localreport);
    print4();
    private IList<Stream> m_streams;
    private int m_currentPageIndex;
    private void Export(LocalReport report)
    string deviceInfo =
    @"<DeviceInfo>
    <OutputFormat>EMF</OutputFormat>
    <PageWidth>8.5in</PageWidth>
    <PageHeight>11in</PageHeight>
    <MarginTop>0.25in</MarginTop>
    <MarginLeft>0.25in</MarginLeft>
    <MarginRight>0.25in</MarginRight>
    <MarginBottom>0.25in</MarginBottom>
    </DeviceInfo>";
    Warning[] warnings;
    m_streams = new List<Stream>();
    report.Render("Image", deviceInfo, CreateStream,
    out warnings);
    foreach (Stream stream in m_streams)
    stream.Position = 0;
    private void print4()
    if (m_streams == null || m_streams.Count == 0)
    throw new Exception("Error: no stream to print.");
    PrintDocument printDoc = new PrintDocument();
    PrintDialog printDlg = new PrintDialog();
    printDlg.Document = printDoc;
    DialogResult dr = printDlg.ShowDialog();
    if (dr == DialogResult.OK)
    if (!printDoc.PrinterSettings.IsValid)
    throw new Exception("Error: cannot find the default printer.");
    else
    printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
    m_currentPageIndex = 0;
    printDoc.Print();
    Dispose();
    public void Dispose()
    if (m_streams != null)
    foreach (Stream stream in m_streams)
    stream.Close();
    m_streams = null;
    private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
    Stream stream = new FileStream(name + "." + fileNameExtension,
    FileMode.Create);
    m_streams.Add(stream);
    return stream;
    private void PrintPage(object sender, PrintPageEventArgs ev)
    Metafile pageImage = new
    Metafile(m_streams[m_currentPageIndex]);
    // Adjust rectangular area with printer margins.
    Rectangle adjustedRect = new Rectangle(
    ev.PageBounds.Left - (int)ev.PageSettings.HardMarginX,
    ev.PageBounds.Top - (int)ev.PageSettings.HardMarginY,
    ev.PageBounds.Width,
    ev.PageBounds.Height);
    // Draw a white background for the report
    ev.Graphics.FillRectangle(Brushes.White, adjustedRect);
    // Draw the report content
    ev.Graphics.DrawImage(pageImage, adjustedRect);
    // Prepare for the next page. Make sure we haven't hit the end.
    m_currentPageIndex++;
    ev.HasMorePages = (m_currentPageIndex < m_streams.Count);
    Thank you very much for this wonderful tutorial. :)

  • 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

  • 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

  • How can print a report from form 6i,  when I press a button?

    hi Friends,
    How can print a report from form 6i, when I press a button?
    When i press a button from Form 6i, the report should print through printer.
    I have done it by using report parameter DESTYPE Printer but problem is that when I press a button printer dialogue box appear and then I give command Print to printer, I don’t want to show Printer dialogue box.
    I want when I press a button form Forms 6i , printer will print my report directly.
    Please send me the solution of this problem.
    Best regards,
    Shahzad

    Hi
    If You are using Client server application then to passing to Add all Print Parameter in the Host Command.
    Means Print command in unix to Host(lp.............) and Other Parameter to file name of the report to print.
    If You not Use Client Server Application the Also Passing a Host Command in Button-Pressed Event and Run.

  • How to print history report without refreshing?

    Hi,
    Does someone tell me how to print history report (deski, webi, and crystal) without refreshing via Java API?
    I could not find in Java doc and Developer Library.
    thanks,
    Tak

    Hi,
    It looks like that you wan to print Report's Instance and refering it as history report. If you want to print Instance of report (CR, Webi or DeskI), frist get the SI_ID, so that we can access that instance and then we have to use appropriate controller to print the report (instance)
    for CR, use BOE/RAS SDK
    for Webi and DeskI, use REBean SDK
    Regards,
    Arjun

  • How to debug the report which isrunning in Background?

    Hi all,
    1.How to debug the report which is running in Background?
    thanks & regards
    vishnuvardhan

    Hello,
    Do like this.
    Create an infinite loop before the line u want debug.
    data: lf_flag.
    do.
    if lf_flag = 'X'.
    exit.
    endif.
    enddo.
    Now execute the report in background. In Tcode SM37 select ur job and in menu job--> Capture Active Job
    IT will stop at the point of infinite loop.
    Regards,
    Vasanth

  • Error when run report 10g (10.1.2.0.2) with Paper parameter form

    Dear Friends
    I just installed Developer suite 10g and Database 10g on my pc (10.1.2.0.2) when I run report in Report builder with paper parameter form (I selected only one system parameter : Destination type) I got the message
    Reports Error Page
    Fri Apr 07 09:06:01 GMT+07:00 2006
    javax.servlet.jsp.JspException: REP-56092: No class defined for destination type Screen
    How to solve it? Please give me the instruction or Oracle link that I can get the documents. If someone has the white paper .pdf please give me.
    Hope with help
    Thanks & Best regards,
    Bansak K.
    [email protected]

    Thanks for the tip.
    Correct me if I am wrong but you have set up SLED SP1 connecting to an OS like (RHEL 4/OEL 4,SuSE 9) using VMWare Server. What OS is SLED?
    I chose SUSE 10.3 as its free and I want to set up apps server for purely training purposes. Do you know of a free linux OS that is certified to run AS 10g 10.1.2.0.2?
    Thanks
    Jon

  • How to print a report on A3 page instead of A4?

    Hi all,
    I have an RDF report which is printing on A4 size page, but now I wnat to print same report on A3 size page. My question is. Is it possible to change the paper size from A4 to A3 if yes how can i do that. Please guide me.
    Regards,
    Roshan

    You can change the size of the layout by choosing the desired section (e.g. the "main section") in the object-navigator under the node "Paper Layout" and then change the width and height properties in the property palette to the appropiate values.

  • How to print BIP reports from Oracle Forms?

    Hi all,
    I have a question in regards to printing BIP reports from Oracle Forms... We are aiming for a server installation of BIP with integration to Oracle Forms using SSO to handle security. We use Forms built-in web.show_document to render and view the report in PDF/Excel etc... We would like to by pass the viewing and print some of these reports directly to the printer.
    Any idea/suggestions how we can go about this?
    Thanks in advance for your time.
    Yahya

    Yahya,
    via HTTP it's not possible to send a report directly to the printer. You had to go via the Scheduler, which is able to do that. With the WebService API you can call a report with the Scheduler and Execute Immediate.
    Regards
    Rainer

  • How to print a report in landscape?

    Hi,
    I am using crystal report for visual studio 2010 and I buid a win form test application in c#. I add a crystalReportViewer1, and reportDocument1(unTyped) on the form. In the design time the report (.rpt) is in portrait paper orientation. I want to change the paper orientation to landscape at the runtime. The code snippet is as followed,
    reportDocument1.FileName = @"D:\DotNet Execises\CrystalReportsApplication\CrystalReportsApplication\CrystalReport1.rpt";
    reportDocument1.Load(reportDocument1.FileName, OpenReportMethod.OpenReportByTempCopy);
    crystalReportViewer1.ReportSource = reportDocument1;
    reportDocument1.PrintOptions.PrinterName = @"
    LINDY\HP LaserJet 4000 Series PCL 6";
    reportDocument1.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
    When I click a button to print the report
            private void btnPrintCrystal_Click(object sender, EventArgs e)
                crystalReportViewer1.PrintReport();
    in the print dialog box the paper orientation is correct,ie. landscape. But the actual printout is still in the portrait. Why? how can I print it in landscape?
    Thanks

    Open the report up and check on the Dissociate... option or do it in code and also.
    Try this ... cboCurrentPrinters is a dialog box I created to fill the local user printers in a list
           private void button1_Click(object sender, System.EventArgs e) // Print To P button
                   System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();               
                   CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions();
                CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions();
                   pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;
                pDoc.PrinterSettings.SupportsColor.ToString();
                if (pDoc.PrinterSettings.SupportsColor)
                    MessageBox.Show("Printer Supports Color", pDoc.PrinterSettings.SupportsColor.ToString());
                   rasPROpts.PrinterName = cboCurrentPrinters.Text;               
                   rasPROpts.PaperSize = (CrPaperSizeEnum) pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
                   rasPROpts.PaperSource = (CrPaperSourceEnum) pDoc.PrinterSettings.PaperSources[cboDefaultPaperTrays.SelectedIndex].Kind;
                newOpts.PrinterName = cboCurrentPrinters.Text;
                newOpts.PaperSize = (CrPaperSizeEnum) pDoc.PrinterSettings.PaperSizes[cboDefaultPaperSizes.SelectedIndex].Kind;
                newOpts.PaperSource = (CrPaperSourceEnum) pDoc.PrinterSettings.PaperSources[cboDefaultPaperTrays.SelectedIndex].Kind;
                newOpts.DissociatePageSizeAndPrinterPaperSize = true;
                newOpts.PaperOrientation = CrPaperOrientationEnum.crPaperOrientationLandscape;
                   rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
                   MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
    Don

  • 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 on crystal report server using webservice call

    Hi,
    I'm looking for web service api calls that help print a report on the crystal report server. Can someone post a snippet of how this is done.
    Thanks,

    Below is a snippet that uses the BusinessObjects Enterprise XI Release 2 version of the BIPlatform Web Services Java Consumer API:
    Sincerely,
    Ted Ueda
    /* Printer name */
    String printerName = "\\\\van-s-prt01\\VAN-P-BEAVERCREEK";
    /* URL to Enterprise Web Services */
    String servicesURL = "http://localhost:8080/dswsbobje/services";
    Session ceSession = null;
    Connection ceConnection = new Connection(new URL(servicesURL + "/session"));
    EnterpriseCredential ceCredential = new EnterpriseCredential();
    ceCredential.setDomain(cmsname);
    ceCredential.setAuthType(authType);
    ceCredential.setLogin(username);
    ceCredential.setPassword(password);
    try {
         ceSession = new Session(ceConnection);
         ceSession.login(ceCredential);
         ceConnection.setURL(new URL(servicesURL + "/biplatform"));
         BIPlatform bip = new BIPlatform(ceConnection, ceSession.getConnectionState());
         GetOptions getOpts =new GetOptions();
         getOpts.setIncludeSecurity(Boolean.FALSE);
         ResponseHolder rh = bip.get(reportPath, getOpts);
         InfoObjects infoObjects = rh.getInfoObjects();
         CrystalReport report = (CrystalReport) infoObjects.getInfoObject(0);
         ReportProcessingInfo processing = report.getPluginProcessingInterface();
        CrystalReportPrinterOptions printerOptions = processing.getReportPrinterOptions();
        printerOptions.setEnabled(Boolean.TRUE);
        printerOptions.setPrinterName(printerName);
         report.setSchedulingInfo(new SchedulingInfo());
         report.getSchedulingInfo().setRightNow(Boolean.TRUE);
         bip.schedule(infoObjects);
    } finally {
         if(ceSession != null)
              ceSession.logout();

  • How to Print Crystal Report without any dialog message on the client side

    Hi!
    I've read too much questions like this, but i can't find any answer.
    How can i print a report on the client side directly?
    I have three buttons, "Generate Report", "Generate PDF", "Print".
    I want when the "Print" button was clicked, automaticaly the report is printed using default printer, like PrintToPrinter function, but in the client side.
    Thanks!

    If you search for previous posts about this, you will see many posts saying not possible.  If this functionality was possible, you could essentially have a page that would send something to a clients printer just by visiting the page, how bad of security hole would that be?

  • How to Print the Report Column headers on each page of any report

    Can someone offer assistance on how I can go about achieving the ability to show and print the Report Column headers on each page of any report using the Print Attributes of APEX 3.0? These reports will be printed using Excel and Word.
    I read a thread with a similar request but the answer seems vague for my level of understanding.
    I am connected to a print server and using BI Publisher.
    Thanks,
    Ric

    Hello Ric,
    >> These reports will be printed using Excel and Word.
    I'm not sure I understand what you are trying to do. You are using a very powerful tool – BI Publisher – why do you need Excel or Word for printing? Is there a special need only Excel or Word can provide?
    One of the major advantages of using BI Publisher is that it's taking care of all these tedious tasks like reasonable page breaking, headers and footers, and also table headers.
    Regards,
    Arie.

Maybe you are looking for

  • Exception while testing proxy service in Oracle Service Bus

    Hi I have created a cartridge in the Financial Message Designer with a Universal External message format and a XML External message format and also included the mappings in the same cartridge.A proxy service in Oracle Service Bus10Rg3 is configured t

  • Installation on Windows 64-bit

    I'm looking for instructions to install the 64-bit version on Windows. 1. I downloaded ofm_cep_win_11.1.1.4.0_64_disk1_1of1.zip 2. I extracted the ofm_cep_win_11.1.1.4.0_64_disk1_1of1.jar file from the zip file 3. I attempted to install using this co

  • New hard drive and photoshop license problem

    I have a Dell Inspiron 6000 with a 1.5 Ghz Pentium processor, 2 GB of RAM, and Win Xp/Pro SP3. The hard drive in this computer failed, and it has been replaced.  I used an image backup from Acronis True Image 10 to "restore" the new disk. Now, when I

  • How to get class name of a object in run time, from its accessible context.

    Hi, I need to get the class name of a java object in run-time, given the AccessibleContext of that object. I gone through the AccessibleContext api documentation. but there is not way to get the class name for a java object using its AccessibleContex

  • :system.trigger_node_selected

    How do I programmatically set the :SYSTEM.TRIGGER NODE SELECTED to true after a right mouse click on the node? I've tried the following: Ftree.Set_Tree_Selection(htree, :SYSTEM.RIGHT_MOUSE_TRIGGER_NODE, Ftree.SELECT_ON); This will highlight the node