Invalid report File path-crystal report

Hi Every one,
I created Crystal Layout for GRPO PLD.When I am trying to import it is showing 'Invalid report file path',But it is working fine in another server.
Please suggest.
Thanks and Regards
DEV

Hi,
Not sure below SAP note related to above issue:
1710613 - CR_Multiple Data Sources Not Recognized After Importing
Multi-Database Crystal Reports
1668274 - Print Draft with Crystal Layout
Thanks & Regards,
Nagarajan

Similar Messages

  • Failed to read data from report file : Reason: Crystal Reports: Print Engin

    Hi,
    When we try to migrate the crystal reports from BO R2 to BO R3, some of the reports are faling with the error:
    Failed to create a new Report.Reason: Failed to read data from report file C:\DOCUME~1\xxxxx.rpt. Reason: Crystal Reports: Print Engine Error
    Would please someone help me in fixing the issue.
    Thanks and Regards,

    Few quick checks to identify the cause -
    1. Are you able to run report in your R2 system?
    2. In XI3.1, check SIA running on which account.
    3. Check the acount have sufficient rights on file system and registry.
    4. What's your web server?
    Give proper rights and import again. Hopefully it will resolve.
    Edited by: Das on Dec 6, 2010 9:47 PM

  • Invalid Report File Path Error

    I have included several Crystal Reports as embedded resources in a Visual Studio 2010 C# project.  When I try to run the application on a client PC I receive an invalid report file path error.  Why am I receiving this error if the rpt is embedded in the manifest?

    The following code now works on my development machine.  It obtains the server name and database name from the configuration file.  When I run on my client PC, however, it prompts me to log into the database.  It provides the correct server name but the database name is blank and integrated security is not checked.  The database name field is not enabled so I cannot provide a value.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine; //jp
    using CrystalDecisions.Shared; //jp
    namespace WindowsFormsApplication1
        public partial class FormRptArtist : Form
            private CrystalReport1 crReportDocument = new CrystalReport1();
            public FormRptArtist()
                InitializeComponent();
                ToolTip toolTip = new ToolTip(); toolTip.SetToolTip(btnHelp, "Flash Video Training / Help");
                helpProvider1.HelpNamespace = GlobalClass.gb_help;
            private void FormRptArtist_Load(object sender, EventArgs e)
                TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
                TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
                ConnectionInfo crConnectionInfo = new ConnectionInfo();
                Tables CrTables;
                bool repeat = true;
                while (repeat)
                    try
                        crConnectionInfo.ServerName = Properties.Settings.Default.CrystalServer;
                        crConnectionInfo.DatabaseName = Properties.Settings.Default.CrystalDatabase;
                        crConnectionInfo.IntegratedSecurity = true;
                        CrTables = crReportDocument.Database.Tables;
                        foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)
                            crtableLogoninfo = CrTable.LogOnInfo;
                            crtableLogoninfo.ConnectionInfo = crConnectionInfo;
                            CrTable.ApplyLogOnInfo(crtableLogoninfo);
                        crystalReportViewer1.ReportSource = crReportDocument;
                        crystalReportViewer1.Refresh();
                        break;
                    catch (Exception exp)
                        MessageBox.Show(exp.Message);
                        DialogResult result1 = MessageBox.Show("Try Again?", "Database Connection Error",
                            MessageBoxButtons.RetryCancel);
                        if (result1 == DialogResult.Retry)
                            FormCrystalParms newWindow = new FormCrystalParms();
                            newWindow.ShowDialog();
                        else
                            repeat = false;
            private void CrystalReport11_InitReport(object sender, EventArgs e)
            private void btnHelp_Click(object sender, EventArgs e)
                GlobalClass.displayflashhelp(this, "formrptartist");     
            private void crystalReportViewer1_Load(object sender, EventArgs e)

  • Invalid report file path.

    I have a .NET C# Web App with embedded Crystal Reports (version 10.2.3600) running on Windows Server 2003 Standard Edition (Service Pack 2). Every few days the reports generate errors and we have to restart IIS to get them to run again. I cannot figure out what is causing the system to lock up. The error I am getting is 'Invalid report file path.' Do you know what would cause this to happen?

    this is the C# code we used to fix this issue:
    private ReportDocument CrystalRpt;
        //Declaring these here and disposing in the Page_Unload event was the key.  Then the only other issue was the
        // limitations of Crystal 11 and simultaneous access to the rpt file.  I make a temp copy of the file and use that in the
        // method.  Then I delete the temp file in the unload event.
        private ReportDocument mySubRepDoc;
        private ReportClass ReportObject;
        private string tmpReportName;
        protected void Page_UnLoad(object sender, EventArgs e)
    Try
                CrystalReportViewer1.Dispose();
                CrystalReportViewer1 = null;
                CrystalRpt.Close();
                CrystalRpt.Dispose();
                CrystalRpt = null;
                mySubRepDoc.Close();
                mySubRepDoc.Dispose();
                mySubRepDoc = null;
                ReportObject.Close();
                ReportObject.Dispose();
                ReportObject = null;
                GC.Collect();
                File.Delete(tmpReportName);
    catch
    { ...Error Handler }
    protected void Page_Load(object sender, EventArgs e)
            CrystalRpt = new ReportDocument();
            ConnectionInfo CrystalConn = new ConnectionInfo();
            TableLogOnInfo tblLogonInfo = new TableLogOnInfo();
            ReportObject = new ReportClass();
            TableLogOnInfo CrystalLogonInfo = new TableLogOnInfo();
            ParameterField CrystalParameter = new ParameterField();
            ParameterFields CrystalParameters = new ParameterFields();
            ParameterDiscreteValue CrystalParameterDV = new ParameterDiscreteValue();
            TableLogOnInfo ConInfo = new TableLogOnInfo();
            SubreportObject mySubReportObject;
            mySubRepDoc = new ReportDocument();
            //Report name is sent in querystring.
            string ReportName = Request.QueryString["ReportName"];
            // I did this because Crystal 11 only supports 3 simultaneous users accessing the report and 
            // we have up to 60 at any time.  This copies the actual rpt file to a temp rpt file.  The temp rpt
            // file is used and then is deleted in the Page_Unload event
            Random MyRandomNumber = new Random();
            tmpReportName = ReportName.Replace(".rpt", "").Replace(".ltr", "") + MyRandomNumber.Next().ToString() +".rpt";
            File.Copy(ReportName, tmpReportName, true);
            CrystalRpt.Load(tmpReportName);

  • If image file not exist in image path crystal report not open and give me exception error problem

    Hi guys my code below show pictures for all employees
    code is working but i have proplem
    if image not exist in path
    crystal report not open and give me exception error image file not exist in path
    although the employee no found in database but if image not exist in path when loop crystal report will not open
    how to ignore image files not exist in path and open report this is actually what i need
    my code below as following
    DataTable dt = new DataTable();
    string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
    using (SqlConnection con = new SqlConnection(connString))
    con.Open();
    SqlCommand cmd = new SqlCommand("ViewEmployeeNoRall", con);
    cmd.CommandType = CommandType.StoredProcedure;
    SqlDataAdapter da = new SqlDataAdapter();
    da.SelectCommand = cmd;
    da.Fill(dt);
    foreach (DataRow dr in dt.Rows)
    FileStream fs = null;
    fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + dr[0] + ".jpg", FileMode.Open);
    BinaryReader br = new BinaryReader(fs);
    byte[] imgbyte = new byte[fs.Length + 1];
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dr["Image"] = imgbyte;
    fs.Dispose();
    ReportDocument objRpt = new Reports.CrystalReportData2();
    objRpt.SetDataSource(dt);
    crystalReportViewer1.ReportSource = objRpt;
    crystalReportViewer1.Refresh();
    and exception error as below

    First: I created a New Column ("Image") in a datatable of the dataset and change the DataType to System.Byte()
    Second : Drag And drop this image Filed Where I want.
    private void LoadReport()
    frmCheckWeigher rpt = new frmCheckWeigher();
    CryRe_DailyBatch report = new CryRe_DailyBatch();
    DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter ta = new CheckWeigherReportViewer.DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter();
    DataSet1.DataTable_DailyBatch1DataTable table = ta.GetData(clsLogs.strStartDate_rpt, clsLogs.strBatchno_Rpt, clsLogs.cmdeviceid); // Data from Database
    DataTable dt = GetImageRow(table, "Footer.Jpg");
    report.SetDataSource(dt);
    crv1.ReportSource = report;
    crv1.Refresh();
    By this Function I merge My Image data into dataTable
    private DataTable GetImageRow(DataTable dt, string ImageName)
    try
    FileStream fs;
    BinaryReader br;
    if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + ImageName))
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    else
    // if photo does not exist show the nophoto.jpg file
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    // initialise the binary reader from file streamobject
    br = new BinaryReader(fs);
    // define the byte array of filelength
    byte[] imgbyte = new byte[fs.Length + 1];
    // read the bytes from the binary reader
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dt.Rows[0]["Image"] = imgbyte;
    br.Close();
    // close the binary reader
    fs.Close();
    // close the file stream
    catch (Exception ex)
    // error handling
    MessageBox.Show("Missing " + ImageName + "or nophoto.jpg in application folder");
    return dt;
    // Return Datatable After Image Row Insertion
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • Problem in Loading - Invalid Report File Path

    Post Author: a_Mohammad
    CA Forum: .NET
    Im using CR which came as a bundle with VS2005. I deployed my ASP.NET project on online server. Sometimes, When users try to load the reports, they got an error says "Invalid Report File Path" appears at the top of the report, and no data shown. If i reset the IIS, it return to work fine again.
    Usually i got this error when there is a lot of hits on the server and reports..
    Can you plz advice on that???

    Hello ,
    The formula must always return some value. When a conditional test produces no result and this code is responsible for the RETURN in a formula, the error occurs. Make sure that the condition returns a value in all cases (trap errors).
    Example:
    Problem code
    function CF_1Formula return Number is
    begin
    if :deptno = 10 then
    return(10);
    end if;
    end;
    If deptno is not 10 , this does not return any value .
    Correct code
    You can write the function as:
    function CF_1Formula return Number is
    begin
    if :deptno = 10 then
    return(100);
    else
    return(200);
    end if;
    end;
    Thanks
    The Oracle Reports Team

  • Invalid Report File Path (URGENT)

    Post Author: a_Mohammad
    CA Forum: Publishing
    Im using CR which came as a bundle with VS2005. I deployed my ASP.NET project on online server. Sometimes, When users try to load the reports, they got an error says "Invalid Report File Path" appears at the top of the report, and no data shown. If i reset the IIS, it return to work fine again.
    Usually i got this error when there is a lot of hits on the server and reports..
    Can you plz advice on that???
    Thx in Advance

    Hello Shweta,
                       Thanks for responding.  I load the report using the Report.Load(Filepath) command.  The reports are located on a seperate machine within the network.  The error occurs after the form has been loaded, parameters have been determined and margins have been set, but before the report actually gets displayed on the screen.
    Here is the last breakpoint I can find before the error occurs.
    Private Sub _RptLoad(ByVal sender As Object, ByVal e As System.EventArgs)
            If (ReportDoc.HasSavedData) Then
                Me.Close()
                Me.DialogResult = DialogResult.Cancel
            End If
            AddHandler BTNApply.Click, AddressOf _ApplyNewMargins
            AddHandler BTNSave.Click, AddressOf _SaveNewMarginOffsets
            AddHandler UNELeft.ValueChanged, AddressOf _AnyOffsetChanged
            AddHandler UNETop.ValueChanged, AddressOf _AnyOffsetChanged
            AddHandler UNEBottom.ValueChanged, AddressOf _AnyOffsetChanged
            AddHandler UNERight.ValueChanged, AddressOf _AnyOffsetChanged
            Me.BTNApply.Enabled = False
            Me.BTNSave.Enabled = False
            RaiseEvent ReportLoaded(Me, Nothing)
        End Sub
    Everything here runs fine, but if I F11 from the END SUB I get the error and cannot figure out where its going from there or what's throwing the error.
    Thank you for your time,
    Dennis

  • Exception-Error when excecuting JSP-File in Crystal reports for Eclipse

    Hi,
    I have created a jsp-File from an rpt-File in Crystal report for Eclipse. When I start the jsp-File on Apache Tomact 5.5 then only errors occurs.
    Coud anyone help me?
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 6 in the generated java file
    Only a type can be imported. com.crystaldecisions.report.web.viewer.CrystalReportViewer resolves to a package
    An error occurred at line: 7 in the generated java file
    Only a type can be imported. com.crystaldecisions.reports.sdk.ReportClientDocument resolves to a package
    An error occurred at line: 8 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.application.OpenReportOptions resolves to a package
    An error occurred at line: 9 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase resolves to a package
    An error occurred at line: 10 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.reportsource.IReportSource resolves to a package
    An error occurred at line: 13 in the jsp file: /Bericht1-viewer.jsp
    ReportClientDocument cannot be resolved to a type
    10:      try catch (ReportSDKExceptionBase e)
    60:      
    An error occurred at line: 58 in the jsp file: /Bericht1-viewer.jsp
    e cannot be resolved
    55:
    56:
    57:      } catch (ReportSDKExceptionBase e)
    60:      
    61: %>
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
    Apache Tomcat/5.5.26
    Bericht1.jsp:
    <%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.reports.sdk.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
    com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%
         // This sample code calls methods from the JRCHelperSample class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the JRCHelperSample class.
         try {
              String reportName = "Bericht1.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
                   // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                        // Create the CrystalReportViewer object
                        CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                        //     set the reportsource property of the viewer
                        IReportSource reportSource = clientDoc.getReportSource();                    
                        crystalReportPageViewer.setReportSource(reportSource);
                        // set viewer attributes
                        crystalReportPageViewer.setOwnPage(true);
                        crystalReportPageViewer.setOwnForm(true);
                        // Apply the viewer preference attributes
                        // Process the report
                        crystalReportPageViewer.processHttpRequest(request, response, application, null);
                   // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    Thanks
    Arnold

    According to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
    To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using.

  • The process cannot access the file during Crystal Report export

    We are exporting crystal reports into PDF using  ExportToHttpResponse (code snippet below)
          // Getting the type of the report file which has been selected by the user. (which will be REPORT CLASS type)
    Type objType = Type.GetType("WebApplication1.Reports." + ReportName);
    ReportClass SEPREport = (ReportClass)Activator.CreateInstance(objType);
    // GetTypedDataSet()returns an instance of typed data set.
    SEPREport.SetDataSource(GetTypedDataSet());
    SEPREport.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, ReportName );
    Now we have created these REPORTS using Basic Crystal Report 10.5, which comes bundled with Visual Studio 2008 and .Net Framework 3.0.
    Now on our machines, we have never experienced any issues.
    BUT on the DEV server (web server) which has .net Framework 3.0 and in its GAC its has CRYSTAL DLLs version 11.5 (required to create an Object of ReportClass and its related functions) ; sometimes we get the following error while exporting crystal report to pdf:
    The process cannot access the file because it is being used by another process. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Runtime.InteropServices.COMException: The process cannot access the file because it is being used by another process.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [COMException (0x80004005): The process cannot access the file because it is being used by another process.
       CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
       CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +525
       CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +681
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) +105
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName) +163
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName) +132
       MSSB.FATools.UI.PlannerReport.CreatePDFDocument() +732
       MSSB.FATools.UI.PlannerReport.btnCreatePDF_Click(Object sender, EventArgs e) +45
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +104
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5615

    This is a cross post:
    The process cannot access the file because it is being used by another proc
    Do not cross post. See the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
    Setting this tread as answered and locking.
    - Ludek

  • How to get the ard file of crystal reports

    Hi all,
    I have downloaded crystal reports from sap market place but i dont have .ard file for that how to transfer that reports into sap. How to get the ard file please help me out.
    Thanks & Regards,
    Murtuza Ahmed.

    When you click on your SAPCrystalSetup.exe and select the path to your add-on folder it will install the files and your ard file will be situated in your add-on folder.  Then you can start SAP up and install it from SAP. 
    So if your SAP install is in your local drive your ard file for crystal reports should be here C:\Program Files\SAP\SAP Business One\AddOns\SAP_CR
    Hope this helps.

  • Opening a file in Crystal Reports

    Hello.  When I try to open a file in Crystal Reports it gives me an error message "the parameter is incorrect".  Please advise.  Thanks.
    Cindy

    Hi everyone,
    I wonder if someone could say me how I can open
    (launch) PDF / Word / Crystal Reports files by a
    Java application.
    I thank you in advance.
    RegardsLaunch them, as in their own respective applications (MS Word, Acrobat viewer, etc)?
    By invoking Runtime.getRuntime().exec(command)
    Where command is something like: "cmd.exe /c START " + documentName

  • Displaying Encrypted Image File in Crystal Report

    Post Author: Riaz Afridi
    CA Forum: General
    Hi Folk,
    I have a problem to display an encrypted file in crystal report with transparent background.
    I have a column varbinary(Max)  in SQL Server Database which stores  image bytes. I have decrypted this column before displaying in crystal report. The report display the image but with a black background instead of transparent.
    Is there an answer to this ...
    Thanks

    I believe jpg and bmp images are supported

  • Over 12 minutes required to merely OPEN a .rpt file in Crystal Reports version 8.5

    Post Author: Rob Kramar
    CA Forum: General
    Background: Our division has 3 networked, but geographically dispersed, plants; each plant runs MS SQL Server and Crystal Reports on local servers.  A rather complex (version 8.5) Crystal Reports .rpt file (main report plus 12 subreports) exists and executes in one of our distant plants against a MS SQL Server database located there.  I copied that .rpt file to my local server (CTXB) which has Crystal Reports 8.5 installed and which I can access via Citrix from my PC.  I "repointed" that report to our local MS SQL Server database (located on a different server &#91;CTXA&#93; on my local network) &#91;which uses the same database schema as the database in the other plant&#93; by setting up a new ODBC  driver, using the Convert Database Driver function, and using the Set Location function.  I applied these changes to the main report and each of the subreports individually.  I dropped all the links in Visual Linking in the main report and in each of the subreports and recreated each link.  I did a Verify Database on the modified report (which appeared to check the main and each of the 12 subreports).  I ran the report within Crystal Reports v8.5 and verified that the output is correct based on my local MS SQL Server data (on server CTXA).  I saved the .rpt file on server CTXB and exited Crystal Reports v8.5.  I did all the above work on server CTXB via Citrix from my local, networked PC.
    Problem: When I try to reopen the .rpt file in Crystal Reports v8.5 (via Citrix on Server CTXB) it consistently takes over 12 minutes to merely open the report.  Once opened, it executes with acceptable speed within Crystal Reports v8.5 and produces accurate results.
    Note: If I compile the report in v8.5 on server CTXB (via Citrix), and attempt to execute the compiled report on CTXB (via Citrix), the popup with the u201CPrintu201D, u201CDoneu201D, and u201CAboutu201D buttons appears immediately, but an hourglass also appears that prevents me from clicking the u201CPrintu201D button for over 6 minutes.  Once the hourglass disappears, that popup works normally and the report executes with acceptable speed (about 4 seconds) after I click the u201CPrintu201D button for a single execution.  If I then close the output display window and try to immediately rerun the report (from the u201CPrintu201D, u201CDoneu201D, u201CAboutu201D popup which is still visible) by clicking the u201CPrintu201D button, the hourglass returns again for another 6+ minutes.  A third such iteration results in an u201Chourglass lockoutu201D of over 6 minutes.
    Note also: I can open that same .rpt file (stored on server CTXB) in Crystal v7.0 on my local PC, and it opens in less than 5 seconds.

    According to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
    To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using.

  • Input xml file to crystal report and output  pdf  using java

    Hi all,
    I am in need, I am trying to give the input as dynamic extended Markup Language      and output to be Plain Document Format file, in my crystal report using simple java code. If possible can anyone drop a sample code. that would be great.

    Hi Naveen,
    If i have understood your requirement from your last post. this code should solve your problem.
    What i understand is you want to export a report to PDF format and this report is using XML file data.
    The below code Uses a report designed in Crystal report XI R2.
    Its a Standalone application which uses a Dataset made using the xmldata(xml file) and the xmlschema(xsd file).
    This Dataset is used to populate the report with data.
    Eventually the report is exported to a physical location at the end of this code.
    import com.crystaldecisions.ReportViewer.*;
    import com.crystaldecisions.reports.sdk.*;
    import com.crystaldecisions.sdk.occa.report.reportsource.*;
    import com.crystaldecisions.sdk.occa.report.exportoptions.*;
    import com.crystaldecisions.sdk.occa.report.data.IXMLDataSet;
    import com.crystaldecisions.sdk.occa.report.lib.IByteArray;
    import java.io.*;
    public class XMLData
         public static void main(String[] args)
              final String RPT_NAME = "XMLReport.rpt";
              try
                   ReportClientDocument rpt = new ReportClientDocument();
                   rpt.open(RPT_NAME, 0);
                   FileInputStream fin = new FileInputStream("C:
    Thick_client
    Amol_Sir
    Amol.xsd");
                     ByteArrayOutputStream baos = new ByteArrayOutputStream();
                     byte[] bytes = new byte[1024];
                     for(;;)
                            int count = fin.read(bytes);
                            if(count < 0)
                            break;
                              baos.write(bytes, 0, count);
                    final byte[] xsdBytes = baos.toByteArray();
                    fin.close();
                    //read xml file
                    fin = new FileInputStream("C:
    Thick_client
    Amol_Sir
    Abhi.xml");
                     baos = new ByteArrayOutputStream();
                     bytes = new byte[1024];
                     for(;;)
                            int count = fin.read(bytes);
                                if(count < 0)
                            break;
                                 baos.write(bytes, 0, count);
                   final byte[] xmlBytes = baos.toByteArray();
                   fin.close();
                   IXMLDataSet xml_ds = new IXMLDataSet()
    private IByteArray xmlData = null;
    public void setXMLData(IByteArray xmlData) {
    this.xmlData = xmlData;
    public IByteArray getXMLData() {
    return this.xmlData;
    private IByteArray xmlSchema = null;
    public void setXMLSchema(IByteArray xmlSchema){
    this.xmlSchema = xmlSchema;
    public IByteArray getXMLSchema() {
    return this.xmlSchema;
         xml_ds.setXMLData(new IByteArray() {
         public void fromString(String arrayValue){}
         public String toString() { return ""; }
         public byte[] getBytes() { return xmlBytes; }
         xml_ds.setXMLSchema(new IByteArray() {
         public void fromString(String arrayValue){}
         public String toString() { return ""; }
         public byte[] getBytes() { return xsdBytes; }
    rpt.getDatabaseController().setDataSource(xml_ds, "books/book", "books/book");
    ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)rpt.getPrintOutputController().export(ReportExportFormat.PDF);
    rpt.close();
    byte byteArray[] = new byte[byteArrayInputStream.available()];
    //Create a new file that will contain the exported result.
                   File file = new File("C:
    Thick_client
    Copy of Amol_Sir
    ExportedReport.pdf");
                   FileOutputStream fileOutputStream = new FileOutputStream(file);
                   ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());
                   int x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());
                   byteArrayOutputStream.write(byteArray, 0, x);
                   byteArrayOutputStream.writeTo(fileOutputStream);
                   //Close streams.
                   byteArrayInputStream.close();
                   byteArrayOutputStream.close();
                   fileOutputStream.close();
                   System.out.println("Successfully exported report");
              catch (Exception exception)
                   System.out.println(exception.toString());

  • Dependent Files for Crystal Report missing while making Setup

    Hi Support Team
    I am trying to make a MSI Setup of my windows application by using Install Shield 2010
    Development Environment that is used to develop the application is
    VS 2008 having .Net Framework 3.5 SP1
    Crystal Reports 2008 with Service pack 2
    When I am trying to build the setup for my application using Install Shield 2010 I am getting errors related to crystal reports.
    I am using CrystalDecisions.Windows.Forms.CrystalReportViewer  control to display the reports at runtime.
    Dlls that I included with the setup related to this viewer are
    CrystalDecision.CrystalReports.Engine
    CrystalDecision.CrystalReports.Framework
    CrystalDecision.CrystalReports.InfoStore
    CrystalDecision.CrystalReports.ReportSource
    CrystalDecision.CrystalReports.Shared
    CrystalDecision.Windows.Forms
    The Errors that I am getting upon building the setup are listed below
    Could not find dependent file BussinessObjects.Enterprise.Sdk, or One of its dependencies of component CrystalDecisions.CrystalReports.Engine.dll                   Error Code 6248          
    Could not find dependent file crpe32.dll, or one of its dependencies of component CrystalDecisions.CrystalReports.Engine.dll                                            
    u2dmapi.dll-------
    u2dpost.dll----
    And the same errors for
    CrystalDecision.Enterprise.Framework.dll
    CrystalDecision.Enterprise.InfoStore.dll
    CrystalDecision.windows.forms.dll
    And File not found. An error occurred merging module DMO.9b0u2026u2026u2026          Error Code 4075     
    And File not found. An error occurred merging module DMO1033.6496u2026u2026u2026     Error Code 4075
    I tried your several suggestions from your forums like
    I installed
    Crystal Reports 2008 Runtime
    Crystal Reports Basic Runtime for Visual Studio 2008
    Crystal Reports Basic for Visual Studio 2008 Service pack1
    And
    CRBasicVS2008_redistu2026.
    CRRedist2008_x86.msi
    And by putting the files like Product.xml in the C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages
    And I installed vcredist_x86.exe to install Microsoft Visual C++ 2005 Redistributable on my machine
    But no luck still I am getting the same errors.
    Please let me know which files I need to install on my development machine to get my setup working.
    Waiting eagerly for the response
    With Regards
    Arshad
    u2003

    Looks to me like you're adding just about any runtime to the project to make it work. Look at [this|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567] wiki and find out what runtime you actually need. Also, look at the CR assemblies referenced in your project. Then make sure that the you are using the correct msm file(s) for the correct version of the assemblies referenced. Do not add any other versions of CR msm files.
    I would also recommend having a look at the developer help file here;
    http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm
    (search for runtime).
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

Maybe you are looking for

  • I can't create an email address.

    I can't create an email account on my Blackberry Curve 3G 9300, because it first asks for my user name and password, and when I enter them it says it's invalid. I've checked, double-checked, and triple-checked to make sure I'm entering them correctly

  • Changing the Unit of Measurement in Material Master

    Dear Experts,    Material DF21DENG (fert) was created with KGS (kilogram per second) as its unit of measurement. A material BOM was now created for DF21DENG.   I intend to change the unit of DF21DENG from KGS to KG (kilogram).  On doing this in the B

  • How do I get the methods to respond to my main program?

    I have created 3 classes,where class Kunde is my base class and class PudsPrAreal and PudsPrTid are derived classes from class Kunde. All my classes went through my compiler without error, but my main program is not able to read the methods from my c

  • Airplay external display with Keynote

    The iOS Keynote help states that to show a presentation on a separate screen, one can connect to an external display, a projector, or Apple TV with AirPlay. The presentation should play on the connected screen, and your device shows the presenter dis

  • Notification mail returns

    Hi, I am using OEM 9.2 and not able to send test notification message. It doesn't give any error in OEM. and gives message sent successfully. But the test mail doesnt reach to receiver's address. it returns undeliverable. I have checked both sender a