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

How to achieve localization in crystal reports 2011

$
0
0

Hi i am using crystal reports 2011.

i have to develop multilingual reports.

 

i need to change only  headers based on language selected using language parameter.data is same for all languages

 

 

if i selected country=india     then labels are

 

User          Date


vissu          01/05/2012

 

if country=uk     then

 

impôt         série


vissu          01/05/2012

 

Can any one please help me how to implement this.

Hi parik we are manually providing the language.


Migrating java application from cr4e to crystal server 2013

$
0
0

Hi,

 

I have developed a prototype using Crystalruntime shipped with CR4E. I have learned that we have 5CAL Crystal server 2013 license.

The app that I developed can be deployed on tomcat of Crystal server 2013 and I have verified it works by deploying it in the crystal server 2013 tomcat..

 

1. Is this the correct approach?

2. If no, Should I migrate my application to use jars available with Crystal server 2013?

 

I have tried replacing the CR4E jars with the ones provided by Crystal Server 2013 but I had to change the packages for the code classe to fix compilation issues. Also, I get all kinds of runtime errors when I deploy the war with crystal server 2013 jars.

Below is the jar list I am using from Crystal Server 2013.

 

What is the approach to develop java applications using crystal server 2013?

 

My requirement is opening Crystal report in the browser, export it in pdf.

 

Best Regards,

Bharat

 

Jar list:

com.azalea.ufl.barcode.1.0.jar

commons-codec-1.4.jar

commons-collections-3.1.jar

commons-configuration-1.2.jar

commons-io-1.1.jar

commons-lang-2.1.jar

commons-logging.jar

CrystalReportsRuntime.jar

CrystalReportsSDK.jar

cvom.jar

DatabaseConnectors.jar

derby.jar

icu4j.jar

JDBInterface.jar

keycodeDecoder.jar

pfjgraphics_driver.jar

QueryBuilder.jar

webreporting.jar

xpp3.jar

Error code:-2147467259 Error code name:failed Java desktop application

JSONObject["ancestors"] is not a JSONArray

$
0
0

Hello All,

 

We are using SPA Business Objects Cyrstal Reports 2013 Support Pack 2 version 14.1.2.1121. I am using DHTML Viewer for showing my reports in java web application. When i am running my application it sent me some Jason error. When we have contacted SAP then as per them its bug. Well i am not sure if this is the bug or we are doing something wrong. Need urgent help on it. We are approaching towards release date. Below is the exception log.

 

12:27:38,856 INFO  [pirptfe] (http-localhost-127.0.0.1-8080-1) ReportTag instantiated

12:27:38,872 INFO  [pirptfe] (http-localhost-127.0.0.1-8080-1) File location for XML file: \\XXXXXXXXXXX\Shares

12:27:38,872 INFO  [pirptfe] (http-localhost-127.0.0.1-8080-1) Writing XML File: [\\USTMVAPP400\Shares\{CE04A9B6-FD12-28E2-DB21-2191B246EE79}.xml]

12:27:40,127 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) ***** Initialized Report Viewer *****

12:27:40,127 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Server name: localhost

12:27:40,127 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Server port: 8080

12:27:40,127 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) URI: /pirptfe/viewReport.jsp

12:27:40,127 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Remote Host: 127.0.0.1

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Session ID: 5y1W6uvRnvzrEkiTlaEu2WcF.undefined

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Content Length: -1

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Product Locale: en_US

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Content Locale: en

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Method: GET

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Protocol: HTTP/1.1

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Scheme: http

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Control Name: CrystalViewer

12:27:40,160 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Own Page: true

12:27:40,339 INFO  [com.businessobjects.report.web.render.ViewerRenderer] (http-localhost-127.0.0.1-8080-1) ***** Rendered Response *****

12:27:40,362 INFO  [com.businessobjects.report.web.render.ViewerRenderer] (http-localhost-127.0.0.1-8080-1) Request Context Page Number: 1

12:27:40,364 INFO  [pirptfe] (http-localhost-127.0.0.1-8080-1) Report is displayed or exportedAccount Summary List

12:27:40,692 INFO  [com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet] (http-localhost-127.0.0.1-8080-4) CrystalReportViewerServlet started.

12:27:40,944 INFO  [webreporting.javascript] (http-localhost-127.0.0.1-8080-4) 890415142 Logging Initialized

12:27:40,944 INFO  [webreporting.javascript] (http-localhost-127.0.0.1-8080-6) 890415142 UIAction InitLoad

12:27:40,960 ERROR [com.businessobjects.report.web.shared.JSONParameter] (http-localhost-127.0.0.1-8080-1) Unable to set the ancestors: com.businessobjects.report.web.json.JSONException: JSONObject["ancestors"] is not a JSONArray.

  at com.businessobjects.report.web.json.JSONObject.getJSONArray(JSONObject.java:456) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.shared.JSONParameter.getDiscreteValueFromJSON(JSONParameter.java:708) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.shared.JSONParameter.getValueFromJSON(JSONParameter.java:635) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.shared.JSONParameter.jsonToFieldValues(JSONParameter.java:592) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.shared.JSONParameter.getValues(JSONParameter.java:455) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.shared.JSONParameter.toParameterField(JSONParameter.java:919) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.shared.ParametersHelper.jsonToFields(ParametersHelper.java:326) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.state.ViewerState.restoreCommonState(ViewerState.java:2872) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.state.ViewerState.restore(ViewerState.java:2775) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.component.ViewerContainer.restoreState(ViewerContainer.java:211) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.loadViewState(WorkflowController.java:418) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.init(WorkflowController.java:393) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.doLifecycle(WorkflowController.java:252) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.doAsyncLifecycle(WorkflowController.java:106) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.viewer.CrystalReportViewerUpdater._processHttpRequest(CrystalReportViewerUpdater.java:61) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.ServerControl.processHttpRequest(ServerControl.java:345) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doUpdate(CrystalReportViewerServlet.java:206) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doPost(CrystalReportViewerServlet.java:194) [webreporting.jar:14.1.2.1171]

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

  at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]

 

 

12:27:41,007 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) ***** Initialized Report Viewer *****

12:27:41,007 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Server name: localhost

12:27:41,022 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Server port: 8080

12:27:41,022 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) URI: /pirptfe/CrystalReportViewerHandler

12:27:41,022 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Remote Host: 127.0.0.1

12:27:41,022 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Session ID: f60hQwvuvJVtp7HE9AlFhQxM.undefined

12:27:41,022 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Content Length: 4759

12:27:41,022 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Product Locale: en_US

12:27:41,038 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Content Locale: en

12:27:41,038 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Method: POST

12:27:41,038 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Protocol: HTTP/1.1

12:27:41,038 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Scheme: http

12:27:41,038 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Control Name: CrystalViewer

12:27:41,038 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Own Page: false

12:27:41,163 ERROR [com.businessobjects.report.web.event.ViewerBroadcaster] (http-localhost-127.0.0.1-8080-1) Unable to process listener: com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException: Information is needed before this report can be processed.---- Error code:-2147213303 [] Error code name:invalidParameterField

  at com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException.throwReportSDKParameterFieldException(ReportSDKParameterFieldException.java:104) [CrystalReportsSDK.jar:14.1.2.1171]

  at com.crystaldecisions.sdk.occa.managedreports.ps.internal.SendRequestHelper.sendRequest(SendRequestHelper.java:136) [cereports.jar:14.1.2.1171]

  at com.crystaldecisions.sdk.occa.managedreports.ps.internal.CacheReportSource.sendRequest(CacheReportSource.java:1796) [cereports.jar:14.1.2.1171]

  at com.crystaldecisions.sdk.occa.managedreports.ps.internal.CacheReportSource.getPage(CacheReportSource.java:1283) [cereports.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.PageListener.renderContentLocally(PageListener.java:377) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.PageListener.getPage(PageListener.java:178) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.PageListener.updatePage(PageListener.java:120) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.UpdatePageEvent.processListener(UpdatePageEvent.java:47) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.ViewerBroadcaster.broadCastEvent(ViewerBroadcaster.java:136) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.ViewerBroadcaster.broadcast(ViewerBroadcaster.java:110) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.EventQueue.processEvents(EventQueue.java:53) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.component.ViewerContainer.processEvents(ViewerContainer.java:1421) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.doEventProcessing(WorkflowController.java:353) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.doLifecycle(WorkflowController.java:255) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.doAsyncLifecycle(WorkflowController.java:106) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.viewer.CrystalReportViewerUpdater._processHttpRequest(CrystalReportViewerUpdater.java:61) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.ServerControl.processHttpRequest(ServerControl.java:345) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doUpdate(CrystalReportViewerServlet.java:206) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doPost(CrystalReportViewerServlet.java:194) [webreporting.jar:14.1.2.1171]

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

  at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]

 

 

12:27:41,286 INFO  [webreporting.javascript] (http-localhost-127.0.0.1-8080-6) 890415142 ShowReportProcessingDialog

12:27:41,601 INFO  [webreporting.javascript] (http-localhost-127.0.0.1-8080-6) 890415142 Update InteractiveParams

Crystal Reports 2008: Null userid not supported error

$
0
0

Good day!

 

I'm currently encountering an error with crystal reports that I'm no longer sure what the root cause is.

 

I wanted to test a report I made using the report designer and test from there using the jndi connection (this is mandatory as the application we're developing needs to use jndi connection):

error01.png

 

I am connecting through a WebSphere application server which, on testing the data source, was successful:

error04.png

 

In Crystal Reports, the jndi data sources were retrieved fine:

errro2.png

However, on clicking finish, I get the error, "Null userid is not supported."

error03.png

 

Has anyone encountered this issue? What could be the possible causes?

How to use oracle package in crystal report ?

$
0
0

Hi,

I create a stored procedure in oracle package for a report. From Crystal Report XI I can preview the data.

Scott is the schema name. AREAL1 is my stored procedure in a package named MYLIST.

 

From jdev, if I use qualified name = SCOTT.AREAL1, I get error 'com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: JDBC Error: ORA-06550: line 1, column 16: PLS-00302: component 'SCOTT' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored -


Error code:-2147467259 Error code name:failed'

 

If I change qualified name to SCOTT.MYLIST.AREAL1, the error is 'com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: The table 'SCOTT.MYLIST.AREAL1' could not be found.---- Error code:-2147467259 Error code name:failed'

 

The difference in datasource location (crystal report) between report with stand alone stored procedure and packaged procedure is

                    stand alone procedure       packaged procecdure

Catalog                                                   SCOTT

Owner        SCOTT                                MYLIST

How do I get the catalog attribute in Crystal Java Reporting Component (JRC) ? What is the right qualified name for this ?

 

Thanks

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

Has anyone successfully implemented the JSF Viewer with Facelets?

$
0
0

We have recently started integrating Crystal into one of our web apps that is using JSF + Facelets + Seam.

 

I've built a taglib for the jsf viewer and configured it in web.xml and faces-config. I'm pulling an IReportSource from a backing bean using com.crystaldecisions.reports.sdk.ReportClientDocument  and that is using a .rpt file stored on a directory. This all seems to be working, as I can step through the code and see the IReportSource being generated.

 

However, when the page loads, I am seeing the crystal javascript being converted in the page source, but nothing is loading on the page. 

 

Has anyone seen an issue similar to this tied to Facelets? I've seen numerous documentation on Crystal and JSP, but very little on JSF  or Facelets.

 

Has anyone been able to get a setup like this or similar to work properly?

 

 

I've also noticed an error when adding the viewer:

 

java.io.IOException: Recover report client document state failed.

at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.readExternal(SourceFile:1492)

at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.readExternal(SourceFile:131)

at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)

 

I believe this to be related to me switching over to the serializable ReportClientDocument: com.crystaldecisions.sdk.occa.report.application.ReportClientDocument  versus using the nonserializable version.

 

When using the non-serializable version, I am seeing a constructor issue with the JPEReportSource

 

Exception: java.io.InvalidClassException: com.crystaldecisions.reports.reportengineinterface.JPEReportSource; no valid constructor

 

Has anyone seen this issue before or able to offer any suggestions?


Where can I download the latest JRC jars?

$
0
0

Where the heck do I go to download the latest Jars for JRC? I am not using Eclipse. I just want the jars. All the links I've found send me back to the old site. When and what was the last release?

The page numbers are not reset based on group though Crystal Report API

$
0
0

Hi,

 

When i run a report through Crystal Report tool the page numbers are reset based on group say (1/3,2/3,3/3  : 1/2,2/2) but when i run the report though my application the page numbers are not reset based on group and the page numbers shown in the report through application is 1/5,2/5,3/5,4/5,5/5.

 

I have analysed and tried all the possible setting such “Page reset before”, ”Page reset After” . Even the total page count when run through Crystal tool is based on group but through my application it counts for the complete report page count irrespective of grouping. It seems to be a limitation in  Crystal API. 

 

 

Analysed and found that this might be an issue and  that the crystal API might not have the implementation to do "Reset Page Number After" based on group as we have in crystal report tool. Hence due to this the PageNumbers are not displayed based on group(say-1/3,2/3,3/3) when run the report through application.

 

http://scn.sap.com/thread/1717253 , the following thread specified that it might be fixed in latest version but even in crystal report 2011 , the issue is not fixed and hence not able to achieve page reset based on group.

 

Please suggest a solution to achieve this result.

 

Jar Name : jrcerom.jar , Implementation-Version: 12.2.213.1476

 

Thank you in advance.


Error code:-2147217394 Error code name:missingParameterValueError

$
0
0

As seen on:

Re: Problem exporting Crystal report from Portlet JSR-168 instead of servlet.

 

I have all old code using "com.crystaldecisions.sdk.occa.report.data.Fields" and I would like to iterate through all items and convert them to the new ReportClientDocument, is that possible?

 

Sample:

ParameterFieldController paramFieldController = reportClientDoc.getDataDefController().getParameterFieldController();           for (int i = 0; i < fields.size(); i++) {        paramFieldController.setCurrentValue(fields.getField(i).REPORTNAME, fields.getField(i).FIELDNAME, fields.getField(i).FIELDVALUE);         }

 

REPORTNAME, FIELDNAME and FIELDVALUE doesn't exist. my "fields" (com.crystaldecisions.sdk.occa.report.data.Fields) variable has a bunch of "ParameterField" objects, if I could retrive those 3 properties I could fill-in all parameters.

 

Thanks!

JRC generated pdf not viewable with Microsoft Reader-App

$
0
0

Hi there

We use JRC 12.2.2018 to render xml data into pdf documents.

Reports are designed with Crystal Reports 2008.

Everything works fine with one exception. The Reader-App for

Microsoft Windows can not open the pdf document. It indicates that

the file is corrupt.

When we export the same report with the identical data from Crystal

Reports the problem does not occur.

Has anyone encountered the same problem, is there a solution or a

work around available.

Thank you for any further information.

OpenDocument URL in Crystal Reports for Enterpise 4.0 SP04

$
0
0
I am currently using Crystal Reports for Enterprise 4.0 SP04.  I have a main report that contains several OpenDocument links to other reports.  I'd like each of these reports to open in a new window.  In the OpenDocument for BI 4.0 documentation, it states that the sWindow parameter is obselete, and to instead use the HTML anchor's target (target="_blank")attribute or an equivalent.  I am unable to get this to work properly.  My url looks something like this...
The report does not open in a new window, in fact it opens a blank page within the same window.  In the example that is used in the documentation, they are using an entire HTML hyperlink tag...
<a href="http://<servername>:<port>/BOE/OpenDocument/opendoc/<platformSpecific>?iDocID=Aa6GrrM79cRAmaOSMGoadKI&sIDType=CUID" target="_blank">hyperlink text</a>). 
Do I need to embed the HTML tag somehwere in my report (perhaps in a formula)?  If I use sWindow=New I can get the report to open in a new window...however the documentation states that this particular command is obsolete since XI3.1 SP3, so I am hesitant to use it.
Any ideas as to what I am missing here?

Thanks!
Josh

Unexpected database connector error

$
0
0

I did a search on 'Unexpected database connector error' and found a large list of topics. Most of the topics were people asking for help. The replies were, just get the latest patches - which does not help!

 

Here is the error message I get,

 

     Parms are; 800/S80/5069660

     ERROR -  detected an exception: Unexpected database connector error

 

I output the parameter values so that I can validate that I read the cotrol file and that I am passing values to the Crystal Report that in fact should work.

 

I have downloaded the latest patches and nothing has changed.

 

The code was working in Nov when I last made a change to it. My profile was removed from my computer in order to fix a virus. I now need to make a change to the program and generate a new .jar file.

 

The code gets an error trying to connect to the database.

 

When I first set this up to work, I had to pay for help from the Indian help desk. They remoted in a fixed my issue, but I have no idea what they did. Now that fix is gone. The help desk told me that they don't support Eclipse, but the Eclipse plug-in is recommended and designed for Crystal Reports.

 

I am running Crystal Reports 2008 version 12.2.0.290, and Eclipse 3.4.2. I need some help, I have no idea of where to turn to or even who to turn to. I found a consultant for Eclipse, but he doesn't know anything about the database connection (JDBC) part.

 

Can anybody help me or point me in the correct direction.

 

Un-like Crystal Reports there are no books available for Eclipse.

Best approach for modifying html from CrystalReportInteractiveViewer

$
0
0

I'm looking for the best (and recommended) way to modify html returned by a call to CrystalInteractiveViewer.processHttpRequest().

 

Some specifics:

1. I have a servlet that makes that gets the html from processHttpRequest's StringWriter argument to be rendered in a jsp

2. This jsp is a filters page where the user inputs filter values, clicks OK, then finally views the report

3. The desired end-result is to still present the filter page but bypass the post action to Crystal when the OK button is clicked, allowing us to perform intermediate tasks in between

 

A couple of ideas I had in mind:

1. Render the filter page using getHtmlContent() instead and then get back from the response object whatever I need (and perform the intermediate processing I need)

2. Parse (yikes) and update the html content from the processHttpRequest() call

 

If you have other ideas or an infinitely better approach    I'm all ears.

Thanks in advance!


Crystal Report-Ad-hoc reporting with Java Web Application

$
0
0

Hi,

   We are reviewing crystal reports for our Java web Application.We are looking at the option for enabling ad-hoc reporting using crystal report.Can any one help us out with clear steps and process to get this done.

 

   Thanks 

 

Nagarajan

running Java program created with Eclipse plugin fails to open report

$
0
0

I created a CR 2008 report and using the Eclipse plug-in I created a Java program to drive data through the report and export the resulting reports as pdf files.

 

This process works just fine if I run the Java program in Eclipse. I copied the code to a server to run the application remote.

 

The program fails at the point of opening the Crystal Report. This is the error.

 

D:\src>java EDIInvoice

Current date : 2009928-

Report output name is : D:\src\report\Invoice2009928-45462829.pdf

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com/ibm/icu/util/Ca

lendar---- Error code:-2147467259 Error code name:failed

        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<init>(Unknown Source)

 

This is the code

 

public class EDIInvoice {

 

     private static final String REPORT_NAME = "D:
src
CR8Invoice.rpt";

           

     public static void launchApplication() {

     try

     {

        FileInputStream in = new FileInputStream("D:
src
ghxInv.txt");

        BufferedReader br = new BufferedReader(new InputStreamReader(in));

        String strLine;

        Calendar cal = new GregorianCalendar();

        int month = cal.get(Calendar.MONTH);

        int year = cal.get(Calendar.YEAR);

        int day = cal.get(Calendar.DAY_OF_MONTH);

        String today = (year + "" + (month + 1) + "" + day + "-");

        System.out.println("Current date : " + today);

              

// Read the file one line at a time

        while ((strLine = br.readLine()) != null)  

              {

            String patternStr = ",";

            String[] fields = strLine.split(patternStr);

            String EXPORT_FILE = "D:
src
report
Invoice" + today + fields[1] + ".pdf";

            String Company  = fields[0];

            String Invoice = fields[1];

            String PO_number  = fields[2];

                   System.out.println("Report output name is : " + EXPORT_FILE);

     try {

                                                   

//Open report.

     ReportClientDocument reportClientDoc = new ReportClientDocument();

     reportClientDoc.open(REPORT_NAME, 0);

     System.out.println("Opened the report");

 

As you can see the first 2 println statements worked fine, but the 3rd one failed. The program was not able to open the report.

 

Is there a reason the code can not run without Eclipse?

Error while running Java application using Crystal Reports 2011

$
0
0

Hello,

 

I would like to ask for your help.

 

Environment details:

 

  • Java based standalone application in Development environment.

  • Crystal Reports 2011 (no SP applied)

  • Oracle 11g ( 32 bit client installed)

  • Win7 64 bit OS.

        

Workflow:

 

While running the java application, which will display the reports I am getting the below mentioned error. I guess that is because I am missing the Crystal runtimes (Correct me if I am wrong).

 

I know that CR2011 do not have any sdks/ jar available for deployment. In this case, which runtimes should I be using? Does installing CR2011 be enough in the development box?

 

Please provide me the link from which I can download the same.

 

Let me know if I need to provide more details on this. Any suggestions are most welcome.

 

Thank You.

 

-


     

 

 

Code used:

 

reportClientDoc = new ReportClientDocument();

System.err.println("Opening the Report ");

reportClientDoc.open(REPORT_PATH, 0);

// this is where the error or exception is thrown

 

_Error: _

 

log4j:WARN No appenders could be found for logger (com.crystaldecisions.reports.reportdefinition.ReportDocument).

log4j:WARN Please initialize the log4j system properly.

com.crystaldecisions.sdkreport.lib.ReportSDKException: com/businessobjects/reports/jdbinterface/common/DBException---- Error code:-2147467259 Error code name:failed

                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<init>(SourceFile:286)

                at com.businessobjects.sdk.erom.jrc.a.<init>(SourceFile:43)

                at com.businessobjects.sdk.erom.jrc.ReportAgentFactory.createAgent(SourceFile:46)

                at com.crystaldecisions.proxy.remoteagent.RemoteAgent.<init>(SourceFile:703)

                at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:662)

                at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:632)

                at com.crystaldecisions.sdk.report.application.ClientDocument.if(SourceFile:504)

                at com.crystaldecisions.sdk.report.application.ClientDocument.open(SourceFile:669)

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

                at rp.batch.bo.RpJRCExportReport.runReportExport(RpJRCExportReport.java:517)

                at rp.batch.bo.RpSchedReportRun.process(RpSchedReportRun.java:163)

                at rp.batch.bo.RpSchedReportRun.drive(RpSchedReportRun.java:240)

                at rp.batch.bo.RpSchedReportRun.main(RpSchedReportRun.java:265)

Caused by: java.lang.NoClassDefFoundError: com/businessobjects/reports/jdbinterface/common/DBException

                at com.crystaldecisions.reports.queryengine.Session.a2(SourceFile:244)

                at com.crystaldecisions.reports.datafoundation.DataFoundation.do(SourceFile:376)

                at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.do(SourceFile:111)

                at com.crystaldecisions.reports.dataengine.datafoundation.CreateDataConnectionCommand.new(SourceFile:81)

                at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)

                at com.crystaldecisions.reports.common.Document.a(SourceFile:203)

                at com.businessobjects.reports.reportconverter.v12.e.a(SourceFile:442)

                at com.businessobjects.reports.reportconverter.v12.e.a(SourceFile:231)

                at com.businessobjects.reports.reportconverter.v12.d.m(SourceFile:192)

                at com.businessobjects.reports.reportconverter.v12.f.if(SourceFile:210)

                at com.businessobjects.reports.reportconverter.v12.V12SaveLoader.a(SourceFile:242)

                at com.businessobjects.reports.loader.ReportLoader.a(SourceFile:205)

                at com.businessobjects.reports.sdk.JRCReportLoader.a(SourceFile:137)

                at com.businessobjects.reports.sdk.JRCReportLoader.a(SourceFile:76)

                at com.businessobjects.reports.sdk.requesthandler.ReportDocumentRequestHandler.a(SourceFile:136)

                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<init>(SourceFile:229)

                ... 12 more

Caused by: java.lang.ClassNotFoundException: com.businessobjects.reports.jdbinterface.common.DBException

                at java.net.URLClassLoader1.run(URLClassLoader.java:200)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

                at sun.misc.LauncherAppClassLoader.loadClass(Launcher.java:301)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

                at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

                ... 28 more

CRConfig.xml location

$
0
0

Hi experts,

I have two projects (.sda) built with JAPRO. One of them is external library and contains all the classes of Crystal Reports. The other one is a web module which has reference to the first one. The web module shows some reports. The problem is that the reports get closed (disposed) after 10 minutes inactivity. Where should I place the CRConfig.xml file in order for it to get read and the timeout setting be used by the reporting engine?

 

Best regards,

Martin

Crystal Reports 2008: Null userid not supported error

$
0
0

Good day!

 

I'm currently encountering an error with crystal reports that I'm no longer sure what the root cause is.

 

I wanted to test a report I made using the report designer and test from there using the jndi connection (this is mandatory as the application we're developing needs to use jndi connection):

error01.png

 

I am connecting through a WebSphere application server which, on testing the data source, was successful:

error04.png

 

In Crystal Reports, the jndi data sources were retrieved fine:

errro2.png

However, on clicking finish, I get the error, "Null userid is not supported."

error03.png

 

Has anyone encountered this issue? What could be the possible causes?

Viewing all 893 articles
Browse latest View live


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