Quantcast
Channel: SCN : Popular Discussions - SAP Crystal Reports, version for Eclipse
Viewing all 893 articles
Browse latest View live

Eclipse JRC: To change the JDBC connection at run time

$
0
0

Hi,

 

    We are creating crystal reports against a Oracle database. The reports may contain regular tables as well as command tables. While designing the reports we target at a development Oracle database. However once productized these reports need to run against Oracle database at the customer locations. The database schema (tables, views etc) does not change at all. But I need to modify the connection parameters at run time

 

I need to modify

 

 

 

JDBC URL

 

Driver Name

 

User Name

 

Password.

 

 

 

I tried numerous things including the one that comes with standard examples but in vain.

 

I'm using then new Eclipse 2.0 SDK.

 

I tried to set connection Infos, set Connections, replace connections etc. But nothing works.

 

I can generate report only against the database which was used during report design.

 

 

 

Please help me how to solve this. Thanks in advance.

 

 

 

Thanks,

 

Bala


compatibility between generated PDF and HP Printers

$
0
0

Hello to all users of Crystal Reports for Java.

 

I would like to raise awareness about an issue with compatibility between generated PDF files produced by Crystal Reports for Java and HP Printers. 

 

We have been using the feature HP calls "Direct PDF" in conjunction with our server hosted reports.  The workflow of this process has been quite nice.  Parameters are passed into a JSP page to specify the report, all of the applicable values for the parameters to run the report, and a value indicating where on the network the HP printer is located.  The JSP page exports a PDF of the report to the server's temporary storage, logs in anonymously to the printer via FTP, sends the PDF file to the printer, and the report comes out on paper, without the user having to do much more than click a button.

 

Recently, HP has been updating firmware on various printers that breaks the compatibility with the PDF file format produced by Crystal Reports for Java.  The files will open, view and print correctly from every PC / Mac based piece of software I can find that opens PDF files, but when being sent via FTP to the HP printers with the latest firmware, the output will be incorrect.

 

Attached is a sample of the incorrect output.

 

I have spent enough time with HP to help them recreate the problem in their lab, but I have not received a commitment from HP to fix the problem yet.  Many PDF files not generated by Crystal Reports for Java will print OK.  However, based on the fact that Acrobat on PC and Mac, Preview on Mac, the iPhone, iPad, etc. will open and display the files correctly leads me to believe that it is not a Crystal Reports for Java issue.

 

The main reason I wanted to post this information is to advise any other users who use HP "Direct PDF" - DO NOT update your printer firmware.  HP does not allow downgrading of firmware.

 

Thank you.

Crystal Reports for Eclipse 2.0 Release Update 8 is Now Available!

$
0
0

Crystal Reports for Eclipse 2.0 Release Update 8 is Now Available for Download!

 

Download site for the Crystal Reports Java Runtime, Eclipse Installation package, and Eclipse All-In-One package are available here:

 

[http://www.businessobjects.com/campaigns/forms/downloads/crystal/eclipse/datasave.asp]

 

You no longer need to register to download CR4E updates.

 

To use the Eclipse Update Manager, start the Eclipse IDE,  go to Help -> Software Updatesu2026 and ensure you've added the following site:

 

[http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/update_site]

 

Fixed issues with Release Update 8 are listed here:

 

http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/cr4ev2_readme.pdf

 

Sincerely,

 

Ted Ueda

Could not add Stored Procedure to a Report Eclipse

$
0
0

I am using Crystal Reports for Eclipse. In which I have a requirement to add Stored Procedure to the report, so in short.. when the report is called it executes the stored procedure and loads the report based on the parameters.

 

From the Data Source Explorer I can add tables / Views .. but I am not able to add a stored procedure (I use crystal reports with visual studio and could be able to add the stored procedure).. in this below picture I am trying to add the procudure name APS_RESULTSET but there is no Crystal Reports option when I right click on the stored procedure. (is there any crystal reports eclipse patch is required to add this stored procedure?)

 

Crystal Option.png

 

Since I could not added the stored procedure and desgin the report in java.. I used visual studio and designed the report..! and I copied the same report in to my java project and try to change the data source but could not change the datasource as the stored procedure is not listing in the available objects please see below figure..!

 

Crystal Option22.png

So I am wondering of any of you have come across to this kind of situation and had a solution.

 

 

Thanks,

"Can't find resource for bundle java.util.PropertyResourceBundle" error

$
0
0

I just upgraded my webapps to use CR4E SP1. Every time I view a report, I get the following error. What am I missing?

 

[2009-05-08 10:49:56,826] ERROR com.crystaldecisions.reports.common Failed to load the resource 'InternalFormatterException' from the bundle java.util.PropertyResourceBundle@d5f6e9.

java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key InternalFormatterException

     at java.util.ResourceBundle.getObject(ResourceBundle.java:384)

     at java.util.ResourceBundle.getString(ResourceBundle.java:344)

     at com.crystaldecisions.reports.common.CrystalResources.loadString(Unknown Source)

     at com.crystaldecisions.reports.common.CrystalResources.loadMessage(Unknown Source)

     at com.crystaldecisions.reports.common.CrystalResourcesFactory.getLocalizedMessage(Unknown Source)

     at com.crystaldecisions.reports.common.CrystalException.getLocalizedMessage(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)

     at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)

     at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)

     at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)

     at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)

     at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)

     at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)

     at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)

     at com.businessobjects.report.web.event.bh.a(Unknown Source)

     at com.businessobjects.report.web.event.o.a(Unknown Source)

     at com.businessobjects.report.web.event.bw.broadcast(Unknown Source)

     at com.businessobjects.report.web.event.am.a(Unknown Source)

     at com.businessobjects.report.web.a.t.if(Unknown Source)

     at com.businessobjects.report.web.e.a(Unknown Source)

     at com.businessobjects.report.web.e.a(Unknown Source)

     at com.businessobjects.report.web.e.a(Unknown Source)

     at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)

     at com.crystaldecisions.report.web.viewer.ReportExportControl.a(Unknown Source)

     at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)

     at org.apache.jsp.reporting.exporter_jsp._jspService(exporter_jsp.java:248)

     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)

     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

     at java.lang.Thread.run(Thread.java:619)

 

Java Version Support for Crystal report.

$
0
0

Hi,

 

We've been asked to evaluate the Java version support for our crystal report engine.

We are using eclipse crystal report Java engine with Crystal report Viewer 2013 with JDK1.7_55.

But recently it's been found that this version of java is venerable and we've been asked to update our JDK version to 1.7 update 99 or JDK 1.8.

My question is, does Crystal report Java engine support  these JDK versions?

 

Version details :

Eclipse Version: 3.6.0

Crystal Report Engine : 2013 ( ?)

Crystal Viewer:  2013

 

Regards,

Sagar K.

Crystal reports viewer (JSP - Eclipse) charts missing

$
0
0

I wonder if anyone out there could enlighten me re the following weirdness. I'm pretty new to JSP and even newer to Crystal Reports so it's likely a newbie mistake. 

 

I have a report (an .rpt file) which contains a chart (all good so far). In Eclipse, I can right click the chart file and use a wizard to generate a jsp file, either a version using jsp tags or using java code snippets. I want the latter, so that I can have a bit more control over the thing.

In the jsp tags version, charts show. In the code snippets version, charts don't show. Everything else is working fine, the correct data is shown etc.

My code looks like this:

 

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="ISO-8859-1"%><%@ page
import="com.businessobjects.samples.CRJavaHelper,
com
.crystaldecisions.report.web.viewer.CrystalReportViewer,
com
.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
com
.crystaldecisions.sdk.occa.report.application.ReportClientDocument,
com
.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
java
.sql.Connection,
java
.sql.DriverManager,
java
.sql.ResultSet,
java
.sql.SQLException,
java
.sql.Statement, com.crystaldecisions.sdk.occa.report.definition.IReportDefinition,
com
.crystaldecisions.sdk.occa.report.definition.IReportObject,
com
.crystaldecisions.report.web.viewer.CrToolPanelViewTypeEnum
"%><%
// This sample code calls methods from the CRJavaHelper class, which
// contains examples of how to use the BusinessObjects APIs. You are free to
// modify and distribute the source code contained in the CRJavaHelper class.

try{

   
String reportName ="CrystalReport1.rpt";
    session
.removeAttribute(reportName);
   
//ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
   
ReportClientDocument clientDoc =null;
   
//clientDoc = null;
   
if(clientDoc ==null){
       
System.out.println ("ClientDoc is definitely 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
=newReportClientDocument();
        clientDoc
.setReportAppServer(ReportClientDocument.inprocConnectionString);

       
// Open report
        clientDoc
.open(reportName,OpenReportOptions._openAsReadOnly);

       
IReportObject img = clientDoc.getReportDocument().getReportDefinition().findObjectByName("Picture2");


       
// ****** BEGIN SET RUNTIME DATABASE CREDENTIALS **************** 
       
{
           
System.out.println ("BEGIN SET RUNTIME DATABASE CREDENTIALS");
           
String connectString ="jdbc:mysql://localhost:3306/crystaltest";
           
String driverName ="com.mysql.jdbc.Driver";
           
StringJNDIName="";
           
String userName ="root";           // TODO: Fill in database user
           
String password ="";       // TODO: Fill in password

           
// Switch all tables on the main report and sub reports
           
CRJavaHelper.changeDataSource(clientDoc, userName, password, connectString, driverName,JNDIName);

           
// logon to database
           
CRJavaHelper.logonDataSource(clientDoc, userName, password);
       
}
       
// ****** END SET RUNTIME DATABASE CREDENTIALS ****************        


       
// ****** BEGIN POPULATE WITH RESULTSET SNIPPET **************** 
       
{
           
// **** POPULATE MAIN REPORT ****
           
{
               
System.out.println ("POPULATE MAIN REPORT 1");
                
// Connection Info for fetching the resultSet
               
String connectStr ="jdbc:mysql://localhost:3306/crystaltest";
               
String driverName ="com.mysql.jdbc.Driver";
               
String userName ="root";       // TODO: Fill in database user
               
String password ="";   // TODO: Fill in valid password

               
// TODO: Ensure this query is valid in your database. An exception will be thrown otherwise.
               
String query =" SELECT  `job`.`id`, `job`.`name`  FROM `job`";

               
// As long the Resultset schema has the same field names and types,
               
// then the Resultset can be used as the datasource for the table
               
String tableAlias ="job";      // TODO: Change to correct table alias

               
// Push the Java ResultSet into the report (this will then be the datasource of the report)
               
CRJavaHelper.passResultSet(clientDoc, fetchResultSet(driverName, connectStr, userName, password, query),
                    tableAlias
,"");
           
}

           
// **** POPULATE MAIN REPORT ****
           
{
               
System.out.println ("POPULATE MAIN REPORT 2");
                
// Connection Info for fetching the resultSet
               
String connectStr ="jdbc:mysql://localhost:3306/crystaltest";
               
String driverName ="com.mysql.jdbc.Driver";
               
String userName ="root";       // TODO: Fill in database user
               
String password ="";   // TODO: Fill in valid password

               
// TODO: Ensure this query is valid in your database. An exception will be thrown otherwise.
               
String query =" SELECT `person`.`lastName`, `person`.`job_id`, `person`.`firstName`, `person`.`dateOfBirth` FROM `person`";

               
// As long the Resultset schema has the same field names and types,
               
// then the Resultset can be used as the datasource for the table
               
String tableAlias ="person";       // TODO: Change to correct table alias

               
// Push the Java ResultSet into the report (this will then be the datasource of the report)
               
CRJavaHelper.passResultSet(clientDoc, fetchResultSet(driverName, connectStr, userName, password, query),
                    tableAlias
,"");
           
}


       
}
       
// ****** END POPULATE WITH RESULTSET SNIPPET ****************


       
// Store the report document in session
       
//session.setAttribute(reportName, clientDoc);

   
}


   
// ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
   
{
       
System.out.println ("BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET");
       
// Create the CrystalReportViewer object
       
CrystalReportViewer crystalReportPageViewer =newCrystalReportViewer();

       
String reportSourceSessionKey = reportName+"ReportSource";
       
//Object reportSource = session.getAttribute(reportSourceSessionKey);
       
Object reportSource =null;
       
if(reportSource ==null)
       
{
            reportSource
= clientDoc.getReportSource();
           
//session.setAttribute(reportSourceSessionKey, reportSource);
       
}
       
//  set the reportsource property of the viewer
        crystalReportPageViewer
.setReportSource(reportSource);

       
// Apply the viewer preference attributes

       
//crystalReportPageViewer.setHasLogo(true);
       
//crystalReportPageViewer.setHasToggleGroupTreeButton(false);
       
//crystalReportPageViewer.setEnableDrillDown(false);
       
//crystalReportPageViewer.setEnableParameterPrompt(false);
       
//crystalReportPageViewer.setHasDrilldownTabs(false);
       
//crystalReportPageViewer.setDisplayGroupTree(false);
       
//crystalReportPageViewer.setHasRefreshButton(false);
       
//crystalReportPageViewer.setHasSearchButton(false);
       
//crystalReportPageViewer.setDisplayToolbar(false);
       
//crystalReportPageViewer.setToolPanelViewType(CrToolPanelViewTypeEnum.none);
       
//crystalReportPageViewer.setHasToggleParameterPanelButton(false);
       
//crystalReportPageViewer.setDocumentViewType(arg0);
       
//crystalReportPageViewer.setHasExportButton(true);
       
//crystalReportPageViewer.setHasPageBottomToolbar(true);
       
//crystalReportPageViewer.setViewState(arg0);


       
// Process the report
        crystalReportPageViewer
.processHttpRequest(request, response, application,null);
   
}
   
// ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************     


}catch(ReportSDKExceptionBase e){
    out
.println(e);
}catch(SQLException e){
    out
.println(e);
}

%><%!
// Simple utility function for obtaining result sets that will be pushed into the report. 
// This is just standard querying of a Java result set and does NOT involve any
// Crystal Reports Java SDK functions.

privatestaticResultSet fetchResultSet(String driverName,
       
String connectStr,String userName,String password,String query)throwsSQLException,ClassNotFoundException{

   
//Load JDBC driver for the database that will be queried   
   
Class.forName(driverName);

   
Connection connection =DriverManager.getConnection(connectStr, userName, password);
   
Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);

   
//Execute query and return result sets
   
return statement.executeQuery(query);

}%>

 

 

If anyone could advise whether anything I'm doing here is completely insane and breaking this thing please let me know!

Cheers,

Me

diff. bw SAP BO 3.2.& 4.0 & 4.2

$
0
0

Hi friends,

 

What is the different between SAP BO 3.2 & 4.0 & 4.2 versions with examples.

 

Reagrds

Srini


Parameter Prompting order on Crystal Reports Viewer

$
0
0

I am using the CrystalReportViewer to display reports from within a J2EE application.  We create the reports external to the development environment using Crystal Reports 11. 

 

All seems to work well except for a problem in the way that run-time parameters are displayed in the viewer panel.  The problem is that the parameter order that we define in the report, and which is displayed as expected when the report is run in Crystal Reports itself, is not reflected on the viewer. 

 

For example, our paramaters for a given report may be in this order:

 

From Date

To Date

Minimum Value

 

But when the report is executed through the viewer on a jsp page, we may see those same three parameters prompted like this:

 

To Date

Minimum Value

From Date

 

This is just an example of course, but in a complex report, with many associatted parameters, this somewhat random reordering makes the parameter list very difficult to comprehend.

 

Can anyone offer a method by which we can keep the display order consistent?

 

Best regards,

 

Chuck Doherty

Embedding DOC's and PDF's dynamically in Crystal Reports

$
0
0

Hi,

 

Is there a way to embedd PDF/word documents dynamically into the Crystal Reports. I do understand we can do that for Images using 'Graphic Lcoation' option but that feature wont work with word docs and Pdf's.

Please let me know if there is any 3rd party utility tool that makes it happen or Can it be coded using any codes like VB/C#/Java etc.

 

I have posted this question in Crystal reports as well. But I want to know if it is programatically possible using Java SDK or not.

 

Thanks

Crystal Reports 2008 SP5 Download

Open crystal report in JSP using crystal reports 13 (BO XI 4.0)

$
0
0

Hello,

I am trying read old reports 10 reports in J2EE web application without any luck.  Can someone direct me to appropriate documentation or example helping me get this working.

 

I have copied the lib folders (plus external ) all jar files to WEB-INF/lib folder.  I still get the errors in not finding -

com.crystaldecisions.report.web.viewer.*;

com.crystaldecisions.report.web.viewer.CrystalReportViewer

 

 

What am I doing wrong?

 

Thanks,

 

Amarendra

java.lang.VerifyError: Cannot inherit from final class

$
0
0

Hi i am trying to call a crystal report from jsp but i am getting this error

 

 

error:-

 

 

org.apache.jasper.JasperException: Cannot inherit from final class

     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)

     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)

     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)

 

 

root cause

 

javax.servlet.ServletException: Cannot inherit from final class

     org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)

     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)

     org.apache.jsp._1_jsp._jspService(_1_jsp.java:95)

     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)

     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)

     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)

 

 

root cause

 

java.lang.VerifyError: Cannot inherit from final class

     java.lang.ClassLoader.defineClass1(Native Method)

     java.lang.ClassLoader.defineClass(Unknown Source)

     java.security.SecureClassLoader.defineClass(Unknown Source)

     org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853)

     org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875)

     org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330)

     org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)

     java.lang.ClassLoader.loadClassInternal(Unknown Source)

     com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)

     org.apache.jsp._1_jsp._jspService(_1_jsp.java:64)

     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)

     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)

     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)

 

 

 

 

 

my jsp is

 

<%@ page import="com.crystaldecisions.report.web.viewer.*" %>

 

<%@ page import="com.crystaldecisions.sdk.occa.report.data.*"  %>

 

<%@ page import="com.crystaldecisions.reports.sdk.ReportClientDocument" %>

 

 

<%

 

    Object reportSource = session.getAttribute("reportSource");

 

    if (reportSource == null)

 

    {

 

       String report = "report.rpt";

 

       ReportClientDocument reportClientDoc = new ReportClientDocument();

 

       reportClientDoc.open( "report.rpt", 0);

 

       reportSource = reportClientDoc.getReportSource();

 

       session.setAttribute("reportSource", reportSource);

 

    }

 

     

 

    CrystalReportViewer viewer = new CrystalReportViewer();

 

    viewer.setReportSource(reportSource);

 

       viewer.setEnableLogonPrompt(false); 

 

    

 

    

    viewer.setOwnPage(true);

 

    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);

 

%>

 

 

 

 

and in my WEB-INF/lib i included jar files namely

 

Concurrent.jar,CrystalCharting.jar,CrystalCommon.jar,CrystalContentModels.jar,CrystalExporters.jar,CrystalExportingBase.jar,CrystalFormulas.jar,CrystalQueryEngine.jar,CrystalReportEngine.jar,CrystalReportingCommon.jar,icu4j.jar,jrcerom.jar,keycodeDecoder.jar,log4j.jar,MetafileRenderer.jar,rasapp.jar,rascore.jar,rpoifs.jar,serialization.jar,URIUtil.jar,xml-apis.jar,xbean.jar,xercesImpl.jar,webreporting.jar,webreporting-jsf.jar

 

 

please help me

Encoding problem while exporting report to PDF

$
0
0

Hi everyone

 

We have a trouble while exporting Crystal Report with Russian or Lithuanian characters to pdf on web. Some of Lithuanian characters are exported as question marks u201C?u201D. The problem is only if  the web project is running on Linux server. On Windows export and printing works fine.

We have tried both WebSphere Application Server 6.1.0.19 and Sun GlassFish v2.1 installed on Ubuntu 9.04.

 

For the testing purpose we have downloaded u201CAll-In-Oneu201D Eclipse installation (u201CEclipse Ganymede 3.4.1 with Crystal Reports for Eclipseu201D) from businessobjects.com (Crystal Reports for Eclipse version is 2.0.2.r678).

We have done the simplest Crystal Reports Web Project and created a new report with some Lithuanian characters (the report doesn't use any external data source). Then using u201CCrystal Reports->Create Report Viewer JSP...u201D wizard we created standard JSP page with Java code snippets to render report. Then we exported this web project as EAR and run it both on Linux and Windows servers. On Windows server export to pdf works fine, but on Linux not. The same problem is with Russian characters.

 

Could anybody help, how to set charset or encoding used while printing and exporting report to pdf?

 

Thanks in advance

 

Edited by: Judzin on Sep 10, 2009 3:09 PM

Scheduled reports stay pending state

$
0
0

I scheduled few reports(Batch Scheduling - with Schedule Now option via BOE SDK) .They are always showing as pending in the instance manager of CMC. Next run time keeps increasing 10 minutes forward - But both job server queues are empty. Each job server can handle 10 concurrent jobs. I put maxChildRequest / proc type in job server cmd line - but they did not help.

 

I chose a different report and it seemed to succeed. Seems like the moment a job is scheduled- it gets next run time in Jan 1979 and when its able to push successfully to job server it moves from the InstanceManager screen. But when its not able to schedule to job server (batch scheduling) it gets a next run time 10 minutes ahead...and keeps moving ahead?

 

Env:

BOE XI 3.0

BOE RAS SDK

 

TIA,

JM

 

Edited by: jam mend on Apr 6, 2010 3:33 AM


Error finding JNDI name - when using java resultset as datasource

$
0
0

Hi,

 

I'm having problems generating a report from JSP on a Glassfish server (Oracle Linux). Crystal Reports complains "Error finding JNDI name" in my JSP application.

I'm creating the report (.rpt) with Crystal Reports 14 and then I use the .rpt-file in "Eclipse with Crystal Reports" to create the JSP application.

When creating the report I use XML (ADO) as the datasource, but in the application I use Java resultset as the datasource:

 

reportClientDocument.getDatabaseController().setDataSource(resultSet);

 

I think the report was saved with data before, and now I changed in the options to not save data with the report. I feel Crystal Reports .rpt "remember" it had the XML as datasource before.

 

I've successfully created a whole new report from the exact same XML and same SQL query in the application, so the error should not be a mismatch between the datasources in my opinion.

I could of course redo the other "real" report from scratch but it would require a huge amount of time.

If somebody have some ideas of what I could try next to get the old report to work, I'm happy to hear them!

 

BRs.

 

Sebastian

 

Edited by: SBockelman on Jun 29, 2011 9:12 AM

Get error "com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: An error occured while exporting the report---- Error code:-2147467259 Error code name:failed"

$
0
0

Post Author: dkm1982

 

CA Forum: JAVA

 

Hi Friends,

I have a web application which uses Crystal to generate reports with Oracle as the database. The Crystal exports report in PDF format and writes this report into a temporary file on Server. It runs perfectly in development environment. But in Production where data in database reaches large volume like 100 million, I get following error:

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: An error occured while exporting the report---- Error code:-2147467259 Error code name:failed

Please suggest clue to find the sollution. Is it possible that reason some thing other than large amount of data?

Thank you. Best Regards, Deepak

compatibility between generated PDF and HP Printers

$
0
0

Hello to all users of Crystal Reports for Java.

 

I would like to raise awareness about an issue with compatibility between generated PDF files produced by Crystal Reports for Java and HP Printers. 

 

We have been using the feature HP calls "Direct PDF" in conjunction with our server hosted reports.  The workflow of this process has been quite nice.  Parameters are passed into a JSP page to specify the report, all of the applicable values for the parameters to run the report, and a value indicating where on the network the HP printer is located.  The JSP page exports a PDF of the report to the server's temporary storage, logs in anonymously to the printer via FTP, sends the PDF file to the printer, and the report comes out on paper, without the user having to do much more than click a button.

 

Recently, HP has been updating firmware on various printers that breaks the compatibility with the PDF file format produced by Crystal Reports for Java.  The files will open, view and print correctly from every PC / Mac based piece of software I can find that opens PDF files, but when being sent via FTP to the HP printers with the latest firmware, the output will be incorrect.

 

Attached is a sample of the incorrect output.

 

I have spent enough time with HP to help them recreate the problem in their lab, but I have not received a commitment from HP to fix the problem yet.  Many PDF files not generated by Crystal Reports for Java will print OK.  However, based on the fact that Acrobat on PC and Mac, Preview on Mac, the iPhone, iPad, etc. will open and display the files correctly leads me to believe that it is not a Crystal Reports for Java issue.

 

The main reason I wanted to post this information is to advise any other users who use HP "Direct PDF" - DO NOT update your printer firmware.  HP does not allow downgrading of firmware.

 

Thank you.

Parameter Prompting order on Crystal Reports Viewer

$
0
0

I am using the CrystalReportViewer to display reports from within a J2EE application.  We create the reports external to the development environment using Crystal Reports 11. 

 

All seems to work well except for a problem in the way that run-time parameters are displayed in the viewer panel.  The problem is that the parameter order that we define in the report, and which is displayed as expected when the report is run in Crystal Reports itself, is not reflected on the viewer. 

 

For example, our paramaters for a given report may be in this order:

 

From Date

To Date

Minimum Value

 

But when the report is executed through the viewer on a jsp page, we may see those same three parameters prompted like this:

 

To Date

Minimum Value

From Date

 

This is just an example of course, but in a complex report, with many associatted parameters, this somewhat random reordering makes the parameter list very difficult to comprehend.

 

Can anyone offer a method by which we can keep the display order consistent?

 

Best regards,

 

Chuck Doherty

Java Desktop Application and Crystal Reports

$
0
0

Hi everyone,

 

I have used Crystal Reports XI Release 2 to create a report which uses an odbc connection and I would like to simply print this report through java code.

 

My application is simply a java desktop application (no web services, no jsp) developed in Eclipse Galileo 3.5. I don't know which is really the best SDN to use.

 

I've tried JRC but I think JRC needs a jdbc connection, please correct me if I'm wrong. If JRC can work in this case could you please help me configure it as it seems everything else failed.. I did follow the instructions in configuring the CRConfig.xml but I get errors concerning stylesheets..

 

I've also tried loading a dll and then calling it's native methods. However I am not sure if I need to implement them (as I've read in so many forums) or if they can be simply be called after declaring them in a java class.

 

Also, I don't know if it complicates things or not but I have CR4E 2.0 also installed in eclipse, but the sdk is not added in the current project I'm working on. Hoping there are no conflicts between that and anything I've tried so far.

 

Can this SDK be used for printing a report that was created in Crystal Reports XI?

 

I'm currently examining this and the viewers sdk. Most  of the documentation, however refer to web services or jsp implementations so they are a bit confusing.

 

So recap!

 

Objective: Printing a crystal report (XI release 2) from a java desktop application (eclipse IDE) using an odbc connection

Question: Which JDK can be used and how can it be configured?

 

 

Thanks

 

Chara

Viewing all 893 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>