Report running from 3rd page.

Dear All,
I have created a oracle report. i have created a header, main and trailer sections.
the problem is once i start the report.
1st page is header it is showing correctly but main section report is coming from 3rd page. In 2nd page iam getting only column name not content. from 3rd page onwards im getting columns with content.
I want report from 2nd page onwards, Which settings i need to change.
Pls help me on this issue,
Thanks in advance.
regards,
Shitab.

I got answer. in header section repeating frame go to properties and
select 'Page Break Before' Property No.
Thats it,

Similar Messages

  • Crystal report run from ASP code significantly slower than when run in CRS

    We have CRS XI R2.  I developed a report that contains several on-demand sub-reports.  The report and sub-reports are very fast when run directly from CRS.  However, when I run from ASP (users run a link from the intranet), it takes 4 times longer (1 second on CRS, vs. 5-10 seconds on intranet).  The report takes longer, bringing up a sub-report takes longer and paging through sub-reports take longer.  What can be done to improve the speed of the report that is using the ASP code?  I used a sample program provided at this support site to develop the report and it is pretty basic code.  The only time I have a problem is when I have many sub-reports.  Since they are on-demand, I do not know why this would matter.

    This has been created as an incident with SAP support.  Things that you will want to check is making sure that you handle the postback to the code as you do not need to run your entire code on every postback.  This will help performance after the original load. 
    One other thing is to compare performance with the viewer within Infoview that uses the same backend server as your application, ie PSReportFactory uses the page server, so you'll want to test with the DHTML viewer.  RAS code (reportclientdocument) uses the Report Application Server so you will want to test with the Advanced DHTML viewer.

  • How to call cystal report8 report file from jsp page

    hi guys
    present i am using cystal report8 already i am having ReportViewer.jar and ReportviewerBean.jar files
    using that please send me sample code how to call that report from jsp page..
    and how to pass the parameters from jsp page to crystalreport8 report file.
    it was very urgent task to me..so please send sample code on above topic..
    or send me crystalreport8 API
    thanks
    regards

    Hi,
    I also want to work on crystal report but i dont have the ReportViewerBean.jar and ReportViewer.jar. So, please tell from where will i get those jar files.
    Thanks in advanced.

  • Problem in XML Publisher Report submission from OAF Pages

    Hi,
    I am trying to submit Concurrent Program from OAF Page which is an XML Publisher Report.
    The request is Submitting and Completing successfully but when we open to view the out put we are able to view the HTML tags.
    We checked the same Concurrent program by submitting from the SRS window After completing if we click on view output the rtf file is getting opened correctly.
    I tested with normal rdf report it is working fine with standard Concurrent program used in OAF
    So my doubt is
    Does the Standard Concurrent program used in OAF supports the rtf reports.
    Please suggest if any modifications to be done in the Concurrent program
    Krishna

    Krishna
    Modified your code a little bit.Use this
        public int submitCPRequest(String shipmentId) {
        System.out.println("into submitCPRequest");
            OAPageContext pageContext;
            OAWebBean webBean;
        try {
    OAApplicationModule am =pageContext.getApplicationModule(webBean);
        OADBTransaction tx = (OADBTransaction)am.getOADBTransaction();
        java.sql.Connection pConncection = tx.getJdbcConnection();
        ConcurrentRequest cr = new ConcurrentRequest(pConncection);
        String applnName = new String("XXAPL"); //Application that contains the concurrent program
        System.out.println("ApplName"+ applnName);
        String cpName = new String("XXAPLPOSMPRD"); //Concurrent program name
        System.out.println("Concc Name"+ cpName);
        String cpDesc = new String(" APL PO Shipping Material Pickup Request"); // concurrent Program description
        // Pass the Arguments using vector
        // Here i have added my parameter headerId to the vector and passed the
        //vector to the concurrent program
        Vector cpArgs = new Vector();
        cpArgs.addElement(shipmentId);
        System.out.println("Args"+ cpArgs);
        // Calling the Concurrent Program
        int requestId = cr.submitRequest(applnName, cpName,cpDesc, null, false, cpArgs);
        cr.addLayout("XXAPL", "XXAPLPOSMPRT", "ENG", "US" , "RTF");
        System.out.println("Req Id"+ requestId);
        tx.commit();
        return requestId;
            catch (RequestSubmissionException e) {
            System.out.println("Into Exception");
            OAException oe = new OAException(e.getMessage());
            oe.setApplicationModule(this);
            throw oe;
            catch(Exception exception)
            throw OAException.wrapperException(exception);
        }Thanks
    AJ

  • Problem with RTF Report Generation From OAF Page

    Hi,
    I have a requirement where from OAF page, on a button click, a RTF report should be generated. Template has been already defined for the same. If I want to generate report in .xls or pdf, it is working fine but in case of RTF it is showing that "Word cannot start the converter mswrd632" and then onclick of ok, it is displaying some junk data in word doc.
    Below is the code written in PFR-
    else if((outputType != null) && (outputType.equalsIgnoreCase("RTF")))
           outputType = "application/vnd.msword";//"application/vnd.ms-word.document";//"application/vnd.ms-word";
           ext = ".doc";
    if ((outputType != null) && (outputType.equalsIgnoreCase("RTF")))
          TemplateHelper.processTemplate(txn.getAppsContext(), "XXCUST", templateName, txn.getUserLocale().getLanguage(), txn.getUserLocale().getCountry(), in, TemplateHelper.OUTPUT_TYPE_RTF, null, pdfout);
    else
          TemplateHelper.processTemplate(txn.getAppsContext(), "XXCUST", templateName, txn.getUserLocale().getLanguage(), txn.getUserLocale().getCountry(), in, (byte)btype, null, pdfout);
    Please help urgently by sharing your ideas about solving this problem.
    Thanks,
    Annie

    hi Annie,
    Please check the links may be it will help you:
    https://forums.oracle.com/thread/2185528
    https://forums.oracle.com/thread/2545516
    https://forums.oracle.com/thread/2543842
    https://forums.oracle.com/thread/2342141
    if you get the right solution please mention here, it will help others.
    Regards
    Mahesh

  • Ajax Report Pull from another Page Pagination override

    We are on a time crunch and need to get this application working in a timely manner, any help would greatly be appreciated..
    *[History leading up to problem]*
    We followed the code from this example http://apex.oracle.com/pls/otn/f?p=11933:48:4441142106394445 which pulls a report from another page using AJAX so we could update a report (in this case a tabular form). Since Tabular Forms cannot update past 30-40 records we had to turn on pagination to prevent errors when trying to submit it.
    Since Pagination on the bottom of the report/tabular form links to the other page the report is on, I decided to attempt to override next> href link to instead call a javascript with the url from next> (Report/Tabular Form Pagination) with Jquery the following code {the override is working} {comments added here for clarification}...
    var oldhref =$("a.t20pagination").attr("href"); //get Apex Pagination a href link location
    $("a.t20pagination").attr('href', "javascript:return false"); // change the Apex Pagination a href llink location to do nothing
    $("a.t20pagination").click(function () {   // Create an onclick for Apex Pagination a href that calls a javascript function
    get_report_page(oldhref); // This function is needed because I am grabbing the report from another page, I hope to
    }); // get this javascript working [the reason why I am asking this question here]
    $("a.t20pagination").removeClass("t20pagination"); // Removed the pagination class just in case it was causing issues.
    The function I am working on below... {I figured I have to do the htmldb_get function {I am still new to Apex so I am not totally clear on it, but learning}, to get the report again from the other page, but I need to add pagination.. So I figured I could split the link location based on the : and go through the array for the parts I need to pass in the htmldb_get}, with alerts to help diagnose the problem...
    function get_report_page(curUrl) {
    alert ('Hello how are you today?');
    var temp = new Array();
    temp = curUrl.split(':');
    alert ('I like the number '+temp.length);
    for ( var i=0, len=temp.length; i<len; ++i ){
    alert (i+":"+temp); // Square brackets actually used, changed to squiggly here to show
    var get = new htmldb_Get(null,$x('pFlowId').value,null,205,null, null, temp{4}); // Square brackets actually used, changed to squiggly here to show
    gReturn = get.get(null,'<htmldb:BOX_BODY>','</htmldb:BOX_BODY>');
    get = null;
    $x('ReportDrop').innerHTML = gReturn;
    *[Actual Problem]*
    Since the report is on another page (in this case 205) and is being pulled onto Page 200 where the user is, when the user clicks on the Next> for the report/tabluar form pagination, the user is automatically thrown to page 205 {I want to keep the user on page 200 and pass the pagination, then pull the report/tabular form again}
    I looked at the link http://apex.oracle.com/pls/otn/f?p=11620:63:834860992188521::NO::: but I am not sure where to stick the report pagination{I thought it would be queryString {above you see I am setting temp[4] in the queryString parameter}..
    I know the function is working since I get the alert messages, after that where the report would be it gives the following error...
    Bad Request
    Your browser sent a request that this server could not understand.
    mod_plsql: /pls/apex/wwv_flow.show HTTP-400 Signature Mismatch or Missing '='
    Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server Server at nysastst.senate.state.ny.us Port 7778
    Can I simply splice the url like I am doing above and pass it to htmldb_get (or is there anyway to pass the report pagination using htmldb_get)?
    If so, what am I doing wrong?
    Also, does this seem like a decent solution or is there a better solution for this issue?
    - Thanks in advance,
    - Brian
    Edited by: brheitner on Dec 10, 2009 8:09 AM
    Edited by: brheitner on Dec 10, 2009 8:11 AM
    Edited by: brheitner on Dec 10, 2009 8:13 AM

    Thanks cb... it worked like a charm..
    but at first, I Could not get it to work because in my report that was being pulled from another page did not have Enable Partial Refresh set to Yes under Report Attributes > Layout and Pagination.. When it was off the a href link of the pagination was showing a standard link. Once Enable Partial Refresh was set to Yes, the pagination then showed a link to javascript:$a_report(...); which meant you can now override it with the javascript function.
    Here is the thread I found it in
    Call Process Through AJAX

  • Odd error when 6i report run from server but not from pc

    Getting error:
    REP-0065: Virtual Memory System error. REP-0200: Cannot allocate enough memory. cavaa 22
    running a report from the web server via URL / cgicmd.dat file
    report runs fine from developer tool, naturally
    both windows boxes, server & pc
    report has single ref cursor query from pacakged procedure returning 4 column record type, all defined in same package
    order of columns all appear to be the same, datatypes too
    ideas?

    Another developer created a new function that my ref cursor query used.
    It had an error, thereby causing the ref cursor to fail.... the report failed.
    I think more error handlers are necessary.

  • Problems with reports run from the MSS Launchpad

    Hi,
    The problem I am facing is with the reports being run from the MSS Launchpad. When i click on it, I can see that certain buttons like "Selection Fields", "org Assignment" are disabled. But there in one more button "More" which is enabled and clicking on it gives all the disabled options as enabled. However when the report window is maximized, the button "More " vanishes and all the buttons become disabled.
    I need to enable all the buttons now showing as disabled. Eagerly awaiting your reply.
    regards,
    Pinki

    Hi,
    Thanks for the reply. But can you please let me know how?
    regards,
    pinki

  • Reports run from "view" menu, but will not run when scheduled.

    Post Author: Jonathan Lackman
    CA Forum: General
    Recently completed SP6 for CE10 and CR10. Now none of the reports will run from the User Launchpad Crystal Enterprise login interface. Normally, reports are selected, paramaters set, and the report is "scheduled". This fails with the error "Information is needed before this report can be processed.". I know this error usually indicates incorrect parameters set. However, if I select the same report, and then click on "view", and select the exact same parameters, the report will run fine.
    It seems there is some issue with scheduling that is causing all reports to fail. There is nothing else unusual on the machine that I can see; no errors, not overworked, no event log issues, all services are started.
    I'd like to hear any suggestions on this, as we will likely have to engage a paid support technician if I can't get this resolved.

    Apologies, I was looking at the wrong schematic for the Apple TV 1. There isn't a button. So lets try this instead...
    Remove the power cord and wait 20 seconds.
    Plug it back in and let it boot (Give it 10 minutes, it's being tempremental)
    Try and navigate to the the advanced menu and do a factory restore
    If that doesn't work then if you are using the white remote hold down the menu button for six seconds and release this should bring up a hidden menu which will allow you to access the advanced configuration settings.
    Again, if this fails there isn't much to do than tap it with a hammer to see if that fixes it (hard to believe how many times that actually works. (No responsibility taken if it breaks!, but at least you'd have a good reason to buy Apple TV 3)

  • Problem passing parameter to crystal report subreport from *.aspx page

    Background:
    I am developing a .NET web application using Visual Studio 2005. The code behind is in VB.net. One of my asp.net pages calls a report, which is invoked when the user clicks a Print button. I have developed this report using the Crystal Reports software that is bundled with Visual Studio 2005. I am passing one parameter from the asp.net page (utilizing the VB.net code-behind on the Print button) to the Crystal report. The report consists of a main report and 5 subreports. Both the main report and the subreports use the same parameter. Both the main report and the subreports are bound to stored procedures, each of which require a parameter.
    Problem:
    For some reason, the parameter is not being passed from the asp.net page to the report. I am receiving the following error: "CrystalDecisions.CrystalReports.Engine.ParameterField.CurrentValueException: Missing Parameter Values." However, when I remove the subreports, the parameter gets passed, and the report is invoked with no problem.
    I have read in other forums that there may be an issue with the Crystal Reports software that is causing this problem. I have downloaded and run the suggested hotfix, but the problem remains unresolved. I have tried changing the linking of my main report to the subreport, but that doesn't help either. It is possible that I am doing something wrong with the linking, as this is the first time I have developed a report with Crystal Reports. I need a workaround or definitive solution. Below is the aspx code used to call the report:
    Imports System
    Imports System.Collections.Specialized
    Imports System.Collections.ObjectModel
    Imports System.Collections
    Imports System.Text
    Imports System.Configuration
    Imports System.Data.SqlClient
    Imports System.Data
    Imports System.Data.SqlClient.SqlDataAdapter
    Imports System.Web.Configuration
    Imports Crystaldecisions.crystalreports.engine
    Imports Crystaldecisions.reportsource
    Imports Crystaldecisions.shared
    Partial Class OACIS_Award_or_Deny_BudgetSummary_PrintRpt
    Inherits System.Web.UI.Page
    Dim paramFields As ParameterFieldDefinitions
    Dim paramField As ParameterFieldDefinition
    Dim paramValue As ParameterValues
    Dim paramDiscreteValue As New ParameterDiscreteValue
    Public Shared idCase, nameRpt As String
    Private PrintRpt As ReportDocument
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Try
    idCase = Request.QueryString("id")
    nameRpt = Request.QueryString("prtName")
    Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
    Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
    Dim file As String = settings.File
    Dim dSource, iCatalog, userIs, passUser, appString As String
    dSource = Nothing
    iCatalog = Nothing
    userIs = Nothing
    passUser = Nothing
    appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
    Dim AppArray() As String = Split(appString, ";")
    Dim arrayLgth As Integer = AppArray.Length
    Dim i As Integer
    For i = 0 To arrayLgth - 1
    Dim pairIs() As String = Split(AppArray(i), "=")
    Dim firstItem As String = pairIs(0)
    Dim secondItem As String = pairIs(1)
    If firstItem = "Data Source" Then : dSource = secondItem : End If
    If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
    If firstItem = "UID" Then : userIs = secondItem : End If
    If firstItem = "PWD" Then : passUser = secondItem : End If
    Next
    Dim crReportDocument As ReportDocument
    Dim crExportOptions As ExportOptions
    Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
    Dim crconnectioninfo As ConnectionInfo
    Dim crDatabase As Database
    Dim crtables As Tables
    Dim crtable As Table
    Dim crtablelogoninfo As TableLogOnInfo
    Dim Fname As String
    Dim Prtname As String
    Dim FPath As String
    Dim crSection As Section
    Dim crReportObject As ReportObject
    Dim crSubreportObject As SubreportObject
    Dim subRepDoc As New ReportDocument
    FPath = Server.MapPath("") + "\"
    Dim rptIs As String = nameRpt
    crReportDocument = New ReportDocument
    Prtname = FPath
    Prtname = Prtname + rptIs
    crReportDocument.Load(Prtname)
    Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
    crconnectioninfo = New ConnectionInfo
    crconnectioninfo.ServerName = dSource
    crconnectioninfo.DatabaseName = iCatalog
    crconnectioninfo.UserID = userIs
    crconnectioninfo.Password = passUser
    crDatabase = crReportDocument.Database
    crtables = crDatabase.Tables
    For Each crtable In crtables
    Try
    crtablelogoninfo = crtable.LogOnInfo
    crtablelogoninfo.ConnectionInfo = crconnectioninfo
    crtable.ApplyLogOnInfo(crtablelogoninfo)
    crtable.SetDataSource(Prtname)
    crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
    crtablelogoninfo.ConnectionInfo.UserID = userIs
    crtablelogoninfo.ConnectionInfo.Password = passUser
    crtable.ApplyLogOnInfo(crtablelogoninfo)
    crtable.Location = iCatalog + ".dbo." + crtable.Name
    Catch ex As Exception
    Response.Write(ex)
    Exit Sub
    End Try
    Next crtable
    For Each crSection In crReportDocument.ReportDefinition.Sections
    For Each crReportObject In crSection.ReportObjects
    If crReportObject.Kind = ReportObjectKind.SubreportObject Then
    crSubreportObject = CType(crReportObject, SubreportObject)
    subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
    For Each crtable In subRepDoc.Database.Tables
    Try
    crtablelogoninfo = crtable.LogOnInfo
    crtablelogoninfo.ConnectionInfo = crconnectioninfo
    crtable.ApplyLogOnInfo(crtablelogoninfo)
    crtable.SetDataSource(Prtname)
    crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
    crtablelogoninfo.ConnectionInfo.UserID = userIs
    crtablelogoninfo.ConnectionInfo.Password = passUser
    crtable.ApplyLogOnInfo(crtablelogoninfo)
    crtable.Location = iCatalog + ".dbo." + crtable.Name
    Catch ex As Exception
    End Try
    Next
    End If
    Next
    Next
    crDiskFileDestinationOptions = New DiskFileDestinationOptions()
    crDiskFileDestinationOptions.DiskFileName = Fname
    crExportOptions = crReportDocument.ExportOptions
    With crExportOptions
    .DestinationOptions = crDiskFileDestinationOptions
    .ExportDestinationType = ExportDestinationType.DiskFile
    .ExportFormatType = ExportFormatType.PortableDocFormat
    End With
    Dim parIDCase As ParameterValues = New ParameterValues
    Dim disIDCase As ParameterDiscreteValue = New ParameterDiscreteValue
    disIDCase.Value = idCase
    parIDCase.Add(disIDCase)
    crReportDocument.DataDefinition.ParameterFields("@ID_CASE_NMBR").ApplyCurrentValues(parIDCase)
    crReportDocument.Export()
    Response.ClearContent()
    Response.ClearHeaders()
    Response.ContentType = "application/pdf"
    Response.WriteFile(Fname)
    Response.Flush()
    Response.Close()
    System.IO.File.Delete(Fname)
    Catch ex As Exception
    lblMessage.Visible = True
    lblMessage.Text = "Error Load
    " & Convert.ToString(ex)
    End Try
    End Sub
    End Class
    Your help is greatly appreciated!

    Thanks for your help!
    I've now gotten past the "missing parameter values" error, and the report renders fine in the report viewer.  However, I've encounted another problem.  The data in my main report displays correctly, but the data in my subreport does not display.  Of course, when I view the report in the designer, both the main report and subreport display correctly.  What am I doing wrong?  Below is my vb.net code:
            Try
                idCase = Request.QueryString("id")
                nameRpt = Request.QueryString("prtName")
                Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
                Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
                Dim file As String = settings.File
                Dim dSource, iCatalog, userIs, passUser, appString As String
                dSource = Nothing
                iCatalog = Nothing
                userIs = Nothing
                passUser = Nothing
                appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
                Dim AppArray() As String = Split(appString, ";")
                Dim arrayLgth As Integer = AppArray.Length
                Dim i As Integer
                For i = 0 To arrayLgth - 1
                    Dim pairIs() As String = Split(AppArray(i), "=")
                    Dim firstItem As String = pairIs(0)
                    Dim secondItem As String = pairIs(1)
                    If firstItem = "Data Source" Then : dSource = secondItem : End If
                    If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
                    If firstItem = "UID" Then : userIs = secondItem : End If
                    If firstItem = "PWD" Then : passUser = secondItem : End If
                Next
                Dim crReportDocument As ReportDocument
                Dim crExportOptions As ExportOptions
                Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
                Dim crconnectioninfo As ConnectionInfo
                Dim crDatabase As Database
                Dim crtables As Tables
                Dim crtable As Table
                Dim crtablelogoninfo As TableLogOnInfo
                Dim Fname As String
                Dim Prtname As String
                Dim FPath As String
                Dim crSection As Section
                Dim crReportObject As ReportObject
                Dim crSubreportObject As SubreportObject
                Dim subRepDoc As New ReportDocument
                FPath = Server.MapPath("") + "\"
                Dim rptIs As String = nameRpt
                crReportDocument = New ReportDocument
                Prtname = FPath
                Prtname = Prtname + rptIs
                crReportDocument.Load(Prtname)
                Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
                crconnectioninfo = New ConnectionInfo
                crconnectioninfo.ServerName = dSource
                crconnectioninfo.DatabaseName = iCatalog
                crconnectioninfo.UserID = userIs
                crconnectioninfo.Password = passUser
                crDatabase = crReportDocument.Database
                crtables = crDatabase.Tables
                For Each crtable In crtables
                    Try
                        crtablelogoninfo = crtable.LogOnInfo
                        crtablelogoninfo.ConnectionInfo = crconnectioninfo
                        crtable.ApplyLogOnInfo(crtablelogoninfo)
                        crtable.SetDataSource(Prtname)
                        crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
                        crtablelogoninfo.ConnectionInfo.UserID = userIs
                        crtablelogoninfo.ConnectionInfo.Password = passUser
                        crtable.ApplyLogOnInfo(crtablelogoninfo)
                        crtable.Location = iCatalog + ".dbo." + crtable.Name
                    Catch ex As Exception
                        Response.Write(ex)
                        Exit Sub
                    End Try
                Next crtable
                For Each crSection In crReportDocument.ReportDefinition.Sections
                    For Each crReportObject In crSection.ReportObjects
                        If crReportObject.Kind = ReportObjectKind.SubreportObject Then
                            crSubreportObject = CType(crReportObject, SubreportObject)
                            subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
                            For Each crtable In subRepDoc.Database.Tables
                                Try
                                    crtablelogoninfo = crtable.LogOnInfo
                                    crtablelogoninfo.ConnectionInfo = crconnectioninfo
                                    crtable.ApplyLogOnInfo(crtablelogoninfo)
                                    crtable.SetDataSource(Prtname)
                                    crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
                                    crtablelogoninfo.ConnectionInfo.UserID = userIs
                                    crtablelogoninfo.ConnectionInfo.Password = passUser
                                    crtable.ApplyLogOnInfo(crtablelogoninfo)
                                    crtable.Location = iCatalog + ".dbo." + crtable.Name
                                Catch ex As Exception
                                End Try
                            Next
                        End If
                    Next
                Next
                crDiskFileDestinationOptions = New DiskFileDestinationOptions()
                crDiskFileDestinationOptions.DiskFileName = Fname
                crExportOptions = crReportDocument.ExportOptions
                With crExportOptions
                    .DestinationOptions = crDiskFileDestinationOptions
                    .ExportDestinationType = ExportDestinationType.DiskFile
                    .ExportFormatType = ExportFormatType.PortableDocFormat
                End With
                crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase)
                crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase, "MemberName")
                crReportDocument.Export()
                Response.ClearContent()
                Response.ClearHeaders()
                Response.ContentType = "application/pdf"
                Response.WriteFile(Fname)
                Response.Flush()
                Response.Close()
                System.IO.File.Delete(Fname)
            Catch ex As Exception
                lblMessage.Visible = True
                lblMessage.Text = "Error Load<br>" & Convert.ToString(ex)
            End Try
    Edited by: LaShandra Knox on Sep 17, 2008 7:59 PM

  • Single parameter report running from java application

    hi,
    I had developed one servlet to run the crystal report template which will take one parameter.
    The service method from my servlet I am placing here.
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              ReportClientDocument clientDocument = new ReportClientDocument();
              CrystalReportViewer viewer = new CrystalReportViewer();
              Fields fi= null;
              viewer.setName("one");
              try
                   clientDocument.open("C:/Documents and Settings/Administrator/Desktop/lib-so/oneParamReport.rpt", 0);
              catch (ReportSDKException e)
                   e.printStackTrace();
              Fields oFields = new Fields();  
                        ParameterField portfolio = new ParameterField();
                        portfolio.setName("Portfolio");
                       Values oValues = new Values();
                       ParameterFieldDiscreteValue oParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();
                       oParameterFieldDiscreteValue.setValue(new Integer(16));
                       oValues.add(oParameterFieldDiscreteValue);
                       portfolio.setCurrentValues(oValues);
                       portfolio.setReportName(fileName);
                       oFields.add(portfolio);
              try {
                   viewer.setParameterFields(oFields );
                   viewer.processHttpRequest(request, response,request.getSession().getServletContext(), response.getWriter());
                   viewer.dispose();
              } catch (ReportSDKExceptionBase e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    while running this servlet I am getting one exception
    "JRCAgent1 detected an exception: Error finding JNDI name (sql server)"
    I am using jdk 6, sql server 2005, jboss 5, and crystal reports x1.
    what could be the wrong in my code please tell me the reason and solution  for this .
    thanks ,
    mallikarjun
    Edited by: mallikarjuna.ch on May 15, 2009 3:14 PM
    Edited by: mallikarjuna.ch on May 15, 2009 3:15 PM
    Edited by: mallikarjuna.ch on May 15, 2009 3:15 PM

    thanks a lot neeraj for your response.I got resolved the database connection problem through programetically as shown bellow.
    ITable table =  databaseController.getDatabase().getTables().getTable(0);
    ITable oldtable = table;                     
    table.setQualifiedName("sp2m.dbo." + table.getName());
    IConnectionInfo connectionInfo = table.getConnectionInfo();
    PropertyBag propertyBag = new PropertyBag();
    propertyBag.put("Trusted_Connection", "false");
    propertyBag.put("Server Name", "testsvr2"); //Optional property.
    String CONNECTION_STRING="Use JDBC=b(true);Connection URL=s(jdbc:microsoft:sqlserver://testsvr2:1433); /Database Class Name=s(com.microsoft.jdbc.sqlserver.SQLServerDriver);Server=s(testsvr2); /User ID=s(sa);Password=cispl;Database=s(sp2m);Trusted_Connection=b(false); /JDBC Connection String=s(!com.microsoft.jdbc.sqlserver.SQLServerDriver!jdbc:microsoft:sqlserver://testsvr2:1433; /     DatabaseName=;user=;password=!)";
                        propertyBag.put("Connection String", CONNECTION_STRING);
                        propertyBag.put("Database Name", "sp2m");
                        propertyBag.put("Server Type", "JDBC (JNDI)");
                        String URI="!com.microsoft.jdbc.sqlserver.SQLServerDriver!jdbc:microsoft:sqlserver://testsvr2:1433;DatabaseName=;user=;password=!";
                        propertyBag.put("URI", URI);
                        propertyBag.put("Use JDBC", "true");
                        propertyBag.put("Database DLL", "crdb_jdbc.dll");
                        System.out.println("is this setlocation");            
                        connectionInfo.setAttributes(propertyBag);
                        connectionInfo.setUserName("sa");
                        connectionInfo.setPassword("cispl");
                        connectionInfo.setKind(ConnectionInfoKind.SQL);
                        table.setConnectionInfo(connectionInfo);
                        try {
                             databaseController.setTableLocationEx(oldtable,table);
                        } catch (ReportSDKException e) {
                             e.printStackTrace();
    i am connecting mydatabase like above through programetically. it is coming fine , also it was working fine with crystal report tool, now I am getting new problem i.e crystal report engine not accepting parameter values set by me through program and asking to enter the parameters by generating one jsp page like as an interface in crystal report tool. Onece I submit that values it is generating the output properly .I have to avoid this unwanted page and I have to pass my parameter values from my jsp.
    please help me in this,
    thank u.
    Edited by: mallikarjuna.ch1 on May 17, 2009 8:14 AM
    Edited by: mallikarjuna.ch1 on May 17, 2009 8:27 AM
    Edited by: mallikarjuna.ch1 on May 17, 2009 8:43 AM

  • IllegalStateException thrown-report run from Rep9i Thin Client for WebLogic

    Hi,
    I am facing a problem when trying to invoke 9i reports (JSP and RDF) from the Reports 9i Thin Client deployed on WebLogic 6.0sp1.
    After deployment, I have been able to invoke the rwservlet command help page i.e. http://....../reports/rwservlet successfully.
    However, on running any report, WebLogic throws the 'IllegalStateException' error. What could be the problem?

    Hi,
    Following message is displayed at WebLogic command prompt:
    <Mar 17, 2003 10:58:06 AM GMT+05:30> <Error> <HTTP> <[WebAppServletContext(36133
    02,web)] Servlet failed with Exception
    java.lang.IllegalStateException: Attempt to change ContentType after calling get
    Writer() (cannot change charset from 'ISO-8859-1' to 'null')
    at weblogic.servlet.internal.ServletResponseImpl.setEncoding(ServletResp
    onseImpl.java:607)
    at weblogic.servlet.internal.ServletResponseImpl.setContentType(ServletR
    esponseImpl.java:237)
    at oracle.reports.rwclient.RWClient.handleException(RWClient.java:867)
    at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1238)
    at oracle.reports.rwclient.RWClient.doGet(RWClient.java:300)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:213)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:1265)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1622)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    Awaiting for input.
    Thanks,
    Bharat

  • XML Publisher Report Output from OAF Page

    Hi,
    I created a button in a OAF page, and called the XML publisher Report program on click of this button. The concurrent request was ran when check from View Requests. When I click on viewout, the pdf document was open with the option, open, save, cancel. But this is not coming up in the OAF page. when debugged the code, the url is null.
    Please see the below code.
    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)paramOAPageContext.getRootApplicationModule().getOADBTransaction();
    String s1 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("TWO_TASK");
    System.out.println("s1 = " + s1);
    String s2 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("GWYUID");
    System.out.println("s2 = " + s2);
    String s3 = "BEGIN :1 := fnd_webfile.get_url(fnd_webfile.request_out, :2, :3, :4, 2); end;";
    CallableStatement callablestatement = paramOAPageContext.getApplicationModule(paramOAWebBean).getOADBTransaction().createCallableStatement(s3, 1);
    System.out.println("s3 = " + s3);
    if(requestId != 0)
    try
    Number number = new Number(requestId);
    callablestatement.registerOutParameter(1, 12);
    callablestatement.setInt(2, number.intValue());
    callablestatement.setString(3, s2);
    callablestatement.setString(4, s1);
    callablestatement.execute();
    String s4 = callablestatement.getString(1);
    System.out.println("Before S4 if statement");
    if(s4 == null || s4.equals(""))
    // throw new RuntimeException();
    System.out.println("URL is null");
    System.out.println(" print ouput url - " + s4 );
    // throw OAException.wrapperException(exception);
    oadbtransactionimpl.putValue("OutputURL", s4);
    System.out.println(" print ouput url - " + s4 );
    }

    Look at the links AJ gave.
    Basically what you will do is create a Data Definition and assign a Data Template to it. Create a (document) Template and assign it to your data definition. You will use the XML Publisher Java API classes to pass parameters to your data template and extract the XML data. Then you will use this in conjunction with your document template and the OAF integration region to present the final output to the user.
    All of these things are in the XML Publisher documentation and Javadocs.

  • Report Running From Forms

    How to Run a Report from Form Builder
    i use Run_report_object function
    by givng report object name created in form
    report is already created
    i receive error message 'Report Name is not given'
    Kashif Khan
    ------

    Here is an example. This is the when-button-pressed trigger. I use the in-process reports server and therefore the web.show_document, but executing the run_report_object is similar.
    Hope this helps.
    Z.
    DECLARE
    rep_url varchar2(2000);     
    myenvid varchar2(128);
    BEGIN
    -- Check to ensure we have a valid record first
    if :PPS_AIR_MISSION.UNIQUE_ID is null then
    message('No air mission record is displayed to generate the report.', ACKNOWLEDGE);
    message(' ', NO_ACKNOWLEDGE);
    null;
    else
    Tool_env.Getvar('JTLSAAR',myenvid);
    rep_url:='/reports/rwservlet?&envid='||myenvid||'&&report=aar_amhist1.rdf&ssoconn='||myenvid
    ||'&desformat=pdf&destype=cache&paramform=no'
    ||'&MISSION_ID='||
    '"(''' || :PPS_AIR_MISSION.UNIQUE_ID || ''')"' ;
    -- synchronize and run the report
    SYNCHRONIZE;
    WEB.SHOW_DOCUMENT(rep_url,'_blank');
    end if;
    END;

  • Passing Parameter to report (html) from html page

    Hi
    I have a html page use web application server as tool, this page
    link to report, I want to pass the parameter to report
    paramform.
    This is my PL/SQL
    procedure eqp_form(ceqp in out mms_eqp_master.eqp_code%type) is
    htp.tableData(htf.anchor(report.print('msr_eqp_group'),'<font
    color=ffffff>Eqp Group
    Report</font>',cAttributes=>'target=target_blank'));
    How can I do to pass 'ceqp' into report parameter form, before
    running report?

    <p>In the scenario you described the report that connects to the stored procedure will automatically require parameters so they can be passed to the stored procedure.</p><p>Here is a link to a sample that passes a parameter to a report at runtime using BusinessObjects Enterprise XI R2:</p><p>http://diamond.businessobjects.com/node/1018 </p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

Maybe you are looking for

  • How To See Numbers In Arabic Instead Of Indian Format

    I want to see numbers in Arabic format not in Indian format when i log on the Arabic Interface . I have EBS (12.0.6) installed on Linux centos , I have implement the below Oracle Metalink Note to solve this issue How To See Numbers In Arabic Instead

  • Using M1 and F1 ports in OTV set up

    I am building a typical OTV architecture (on a stick, not inline) on Nexus 7000s; the join and internal interfaces in my OTV VDC are using M1 card ports. Can the other end of those links -- i.e. the interfaces in my Agg VDC -- use ports on my F1 card

  • Month Display problem in OBI using SQL server

    Hi I am using SQL Server and in one of the reports that I am producing the month is displayed as CAL_MONTH APRIL AUGUST DECEMBER FEBRUARY JANUARY JULY JUNE MARCH MAY NOVEMBER OCTOBER SEPTEMBER instead of CAL_MONTH JANUARY FEBRUARY MARCh I used the Ev

  • HT5281 Update to Lion 10.7.4 and Security update 02/2012 upped Ruby load to the ceiling

    After updating our home Mac mini server to Lion 10.7.4 and Security update 02/2012, with the machine now just sitting idle, no user logged-in, network cable unplugged, Ruby is generating 96% load on the CPU at all times, with processor temperature ru

  • Email distribution options with the Hyperion Workspace Scheduler

    Version used: 9.3.1 Hello everybody, We have scheduled several Hyperion Workspace Batches that use an email-bursting list to email out pdf reports to our user community. All of this works fine but the problem is that we have no detailed trace of the