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

Similar Messages

  • 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 [CTXA] on my local network) [which uses the same database schema as the database in the other plant] 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.

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

  • 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

  • Embedding Vedio files in crystal reports

    Hi, I wanted to embed a vedio file in crystal reports, but couldnt find a way to do so.
    Please let me know the process for the same, if there is any option please let me know

    Hi Bhusan,
    I am able to get the FlashObjectInstance , but I am not able to assign FlashObjectInstance  object to my report.
    Please let me know if crystal reports has any option to assign the FalshOvjectInstance dynamically.
    CrystalDecisions.CrystalReports.ViewerObjectModel.FlashObjectInstance f = new CrystalDecisions.CrystalReports.ViewerObjectModel.FlashObjectInstance();
                f.SWFLocation = @"D:\Project\Test\Test_Management\test.swf";Thanks,
    Help will be highly appriciated.
    Uma Nath

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

  • Java application export output file of Crystal Report in .TXT format

    Hi,
    I have a Java application which is able to export the output file of Crystal Report in PDF format. But I'm trying to change the export file to .TXT format. Is this possible? I'm using Crystal Report XI. Is there any available updates or fixes to solve this? Please advice.
    Thank you

    I've tried, but I have an error
    frm-40735: when button-pressed trigger raised unhandled exception ORA-06502
    ORA-06502 when I try write a text field to the file the text field in question is a date.
    Did a similar problem ever occured to you?

  • Can we import extact Excel file in Crystal report in BO

    an we import extact Excel file in Crystal report in BO
    if yeh
    den HOW

    Hi Amit,
    There is no functionality to import the data from MS Excel to Crystal reports. However we can connect to the Excel sheet as a data source and create Crystal reports against Excel.
    Some popular choices in the Create New Connection folder are described here:
    Access/Excel (DAO)
    This option lets you connect to a supported database type (Access, Excel, Lotus, and so on).
    I hope this helps you.
    Regards,
    Prashant

  • How to embed the Word Document and PDF file into Crystal report?

    How to embed the Word Document and PDF file into Crystal report?
    I have word doc which having 10 pages. I need to show all of the 10 pages at a time. I tried OLE object but problem is it shows only one page.
    Is there any solution to show word doc / PDF file in CR?

    Symptom :
    When embedding a pdf document into a Crystal Report, only the one page shows.
    Reproducing the Issue
    Environment:
    Crystal Reports OLE object
    Cause
    An OLE object only displays the first page.
    Resolution
    Embed multiple objects, one for each page
    Or
    Use a hyperlink to the object instead
    Hope this helps!
    Regards,
    Vinay

  • Visual Studio 2013 to open a Sage 50 Crystal Report (which is in 2008)

    Is it possible to open a report using the latest runtimes and visual studio components (v13)?
    I am trying to view a crystal report done in 2008 on a web site I'm creating. When I add the controls (CrystalReportViewer and CrystalReportSource with path to report) and run the page it asks me for credentials. I know I can programatically set them but I wanted to try to see if it worked at first. I plugged in the credentials and the popup for credentials kept coming back. It would never show the report.
    I then tried programatically setting the login credentials and still would show the credentials popup.
    Is this because of a version issue? Any ideas or suggestions? I only have visual studio 2013 and I'm hoping it's still possible to view the report on a web site.
    Thanks in advance,
    Miguel Martorell

    Thansk for the quick reply.
    I am able to access the database using the odbc connections even with a query tool used outside of their server. I have the ODBC set up and what not. I can edit the report using crystal report from outside the server as well. I am just pointing to the .rpt file so I thought it would be a CR version or component issue.
    I will ask over there as well hoping for an answer that will help me solve this.
    Thanks again,
    Miguel Martorell

  • 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());

  • Unable to load password protected Accdb file using crystal reports 2008

    Hi,
    I am trying to generate crystal reports  using crystal reports 2008 and in the process, I am internally setting accdb file to all my rpt files .
    When i try to map my accdb file (Without passord protection) to all my rpt files, everything works fine and i am able to generate reports.
    But, when i try to map the password protected accdb file to the rpt file, it throws me an error saying
    "LogOn failed. "
    Details :         ADO Error Code : 0X
    Source:         Microsoft Access Database Engine
    Description : "Cannot start your appliaction, The workgroup information file is missing or exclusively opened by other users"
    SQL State  : 3028
    I have made sure that none of my applications are running when i try this.
    Please find the screenshot for the same.
    Please let me know how to resolve this issue as i need to work with password protected accdb files for generating reports.
    Thanks in Advance.
    Regards,
    Ramnath

    Hi Ludek,
    This is happening in CR designer.
    Besides, please find below the additional basic info regarding this
    Crystal reports version      : 2008
    Database connection type : OLE
    OLE DB Driver                    :  Microsoft Office 12.0 Access Database Engine OLE DB Provider
    Database                           :  Access 2010
    Dev Language                   :  VB.Net
    Regards,
    Ramnath

  • Open a file from oracle report

    Hi everyone,
    I need your help, i have a report and there is a field which is the location of a file. the report is generated in pdf and the location of the file is a link and user can click on it. But when the report and files related to the links are copied in another location, the links in the report do not open the file, is there a way to have like a dynamic process, so if the report and the files location change, link can continue to open the file in current location.
    I hope you can understand my problem
    Thanks.

    If your LINK is fixed, it may open from other location. BUT as per my knowledge NOT POSSIBLE.
    Have a Look Oracle Application Development: How to Make Drill Down (Hyperlink) Report in Oracle Reports 10g/11g?
    Hope get an idea.
    Hamid.

  • Failed to open the connection in Crystal Reports

    Hi All,
    I have Created One Crystal Report.
    When I Preview Report (Administration>Crystal Reports>Select Report-->Print and Preview),
    System displays the following error message.
    " Failed to open the connection."
    Where as when I view the same report directly from Crystal Designer (Administrator --> Crystal Reports Administrator --> Crystal Designer ). It is working fine.
    BR
    Dixit Patel
    Edited by: Dixit Patel on Dec 11, 2008 4:43 PM

    Hi Dixit,
    I've just found the same problem,
    could you let me know how to solved this problem?
    because at first I installed and run the report,
    it doesn't result any error message
    Thanks for your help
    regards,
    alvin

  • 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

Maybe you are looking for

  • I restored my IPad Mini with an earlier backup in error

    I restored my IPad Mini with an earlier backup in error, while trying to get my music to sync.  Now ICloud has an old email address and asks for a password I have forgotten.  My Itunes and Apstore has the correct Apple ID, how do I change the email a

  • Problem with Reports & Graphics in PDF

    Hi, I generated a report into PDF file which contain layout for Line Graph, but I can't get multiple colour of line for columns value. I also have same problem with Pie Chart.Please give me some advice. Thanks in advance. null

  • Oracle Business Intelligence, Sieble Analytics

    Hi, I have tried to work on Sieble Analytics, though did work successfully but did found relax with out any documentation of it. Any idea from where can i find documentations for OBI Sieble Analytics. Will appreciate your help Regards Majid.

  • Group by Item Display on Every Page

    Hello, I have created a standard Table using the Table Wizard. Is it possible for the Group by Item to appear on every page? I am able to Repeat the Header Row on every page but not able to display the Group by Item if the data continues to multiple

  • Which version of Lightroom

    Hi everyone, I allready have Photoshop CS 5.1 installed, which version of Lightroom to buy and where to find a older version? BR Gitte