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

Error while exporting Crystal Reports to PDF using Java SDK

$
0
0

Hi,

 

I wrote a Java Application using BO Java SDK for downloading and exporting the crystal reports published in Native format to PDF format from server.

During this process I am getting error while trying to download files larger than 30 MB.

We have few published reports of 4000+ pages.

As of now I am reading each report and exporting it.

I would like to know is there anyway i can split large files into multiple PDF files and later i will merge them into single report.

 

Let me know if any details requires for this issue.

 

Thanks

Janardhan


What is J2EE Stack ?

$
0
0

Hi,

 

Anyone pls explain Wht exactly is J2EE Stack?

 

Regards,

Hari

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?

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

JVM running out of memory - Large reports

$
0
0

We are utilizing the Java crystal API to create reports in our application and when our customers run the reports in WebSphere Application Server, they end up crashing the JVM because the reports are taking far too much memory to run.  Also, we are having HORRIBLE performance problems when running the reports in the JVM. 

 

How do we figure out how to solve these issues with Crystal Reports?  We cannot be the only company to have these sorts of problems.

 

Our setup is:

 

WebSphere 6.1 or 7

Platforms supported are IBM System i or Windows Server

Databases supported are IBM System i or Windows SQL Server 2005.

 

Some of our reports are created directly from the database and some are using POJO's as datasources.  For us, it doesn't seem to matter and we still run out of memory.

 

Hopefully somebody can point us in the right direction.

 

Thank you,

Shawn

Problem modifying the connection details in a Report when using Weblogic 12

$
0
0

Hi

 

I have a j2ee application that uses the Java Reporting Component (JRC). At runtime, the code programmatically changes the connection type and schema name of a crystal report before running it. The connection that was used when designing the report is replaced with new JNDI parameters pointing to a Weblogic/Oracle datasource.

 

The application works perfectly when using Weblogic 11, but the same code and report fails when deployed to Weblogic 12.

 

I used Version 12.2.207.916 of the JRC, and updating  to the most current version I could find (12.2.217) did not solve the problem.

 

The code snippet below shows how the connection and schema name is replaced for each of the tables in the report (not all the code is shown here)...

 

        PropertyBag propertyBag = new PropertyBag();
        propertyBag.put("Database DLL", "crdb_jdbc.dll");
        propertyBag.put("JNDI Datasource Name", jndiName);
        propertyBag.put("Initial Context", "");


            while (tableList.hasNext()) {
                ITable table = tableList.next();
                                                :
                                                :
                ITable tableNew = (ITable) table.clone(true);
                IConnectionInfo connectionInfo = table.getConnectionInfo();
                connectionInfo.setAttributes(propertyBag);
                connectionInfo.setKind(ConnectionInfoKind.SQL);
                tableNew.setQualifiedName(newQualifier + "." + table.getName());
                tableNew.setConnectionInfo(connectionInfo);
                dbController.setTableLocation(table, tableNew);
                                                :
          }

 

The setTableLocation() function throws the following exception ...

 

2014-05-13 16:46:27,173 ERROR [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)']  JRCCommunicationAdapter         detected an exception: Unexpected database connector error
                at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2409)
                at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
                at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
                at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
                at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
                at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1167)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
                at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
                at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
                at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
                at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
                at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
                at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
                at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
                at com.crystaldecisions.sdk.occa.report.application.an.a(SourceFile:108)
                at com.crystaldecisions.sdk.occa.report.application.b0.if(SourceFile:148)
                at com.crystaldecisions.sdk.occa.report.application.b0.b(SourceFile:95)
                at com.crystaldecisions.sdk.occa.report.application.bb.int(SourceFile:96)
                at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(SourceFile:151)
                at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(SourceFile:106)
                at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:2159)
                at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:543)
                at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:3898)
                at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(SourceFile:2906)
                at com.systest.reporting.engine.crystal.CrystalReportEngine.replaceConnection(CrystalReportEngine.java:523)
                at com.systest.reporting.engine.crystal.CrystalReportEngine.changeDataSource(CrystalReportEngine.java:449)
                at com.systest.CrystalReportPane.setReportDataSourceDetails(CrystalReportPane.java:170)
                at com.systest.CrystalReportPane.commandLoad(CrystalReportPane.java:136)
                at com.systest.ReportRunner.CrystalReport.Load(CrystalReport.java:401)
                at com.systest.ReportRunner.SaveReportToFile(ReportRunner.java:1385)


Any idea what I can do to fix this ?

 

Thanks in advance!

Error while exporting Crystal Reports to PDF using Java SDK

$
0
0

Hi,

 

I wrote a Java Application using BO Java SDK for downloading and exporting the crystal reports published in Native format to PDF format from server.

During this process I am getting error while trying to download files larger than 30 MB.

We have few published reports of 4000+ pages.

As of now I am reading each report and exporting it.

I would like to know is there anyway i can split large files into multiple PDF files and later i will merge them into single report.

 

Let me know if any details requires for this issue.

 

Thanks

Janardhan

Crystal Reports 2008 SP5 Download


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

Crytal Reports menus in jsp

$
0
0

I have designed my web application in NetBeans 8.1 and designed my reports using Crystal Reports 2008. I have managed to call my reports in jsp as shown in the attachment but I cant use any of the report menus. If I click some of them as indicated in the attachments, I get errors. I have also attached the jsp for the viewer of the report. What should I do?

 

Regards,

Fred.

Eclipse SDK 3.6 using insecure Log4J - any updates available?

$
0
0

Certain agencies in the U.S. Government are prohibiting the installation of Log4J 1.X,  which is included in the 3.6 Eclipse SDK.  Version 2.X of Log4J  is approved for use.  Are there any updates that address this?  If not,  are there plans to update the Log4J version?

What is J2EE Stack ?

$
0
0

Hi,

 

Anyone pls explain Wht exactly is J2EE Stack?

 

Regards,

Hari

How to integrate AngularJS with Crystal Reports

$
0
0

Dear All,

I am doing some R&D to integrate crystal reports with angularJS. Is there any way to integrate viewer.

 

Looking forward you kind response

 

Thanks

sbmubashar

Crystal Reports 2008 SP5 Download

Cannot pass parameter in JSF

$
0
0

I am writing a JSF page to get user input, and pass that input to Crystal Report (Crystal Report for Eclipse 2.0). I don't know why the parameterFields cannot load my parameter. Please help me!!!

My First page (rptDemo.xhtml):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  <html xmlns="http://www.w3.org/1999/xhtml"      xmlns:h="http://java.sun.com/jsf/html"      xmlns:f="http://java.sun.com/jsf/core">  <h:head>      <title>Crystal Report Demo</title>  </h:head>  <h:body>  <h1>Crystal Report for Eclipse 2.0 Demo</h1>  <h2>Using JSF 2.0 and JSF 1.2 to generate report</h2>  <h3>This input/select page use JSF 2.0, result page use JSF 1.2 </h3>      <f:view>          <h:form>              <table border="1">                  <tr>                      <td>No parameter passing to report</td>                      <td colspan="2"><h:commandButton value="Show report 1" action="#{reportBean.show1}"/> can show report normally</td>                  </tr>                  <tr>                      <td>Passing parameter to report<br/>(cannot pass parameter)</td>                      <td><h:inputText value="#{reportBean.inputText}"/></td>                      <td><h:commandButton value="Show report 2" action="#{reportBean.show2}"/></td>                  </tr>              </table>          </h:form>      </f:view>  </h:body>  </html>  

My second page (result page) for "Show Report 1 (rpt1.jsp)", this can run successfully:

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>  <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>  <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>  <%@ taglib uri="http://www.businessobjects.com/jsf/crystalreportsviewers" prefix="bocrv" %>          <head><title>View Report 1</title>  </head>  <body>  <f:view>  <h:form>  <bocrv:reportPageViewer reportSource="#{reportBean.reportSource1}"  />   </h:form>  </f:view>  <body>  </html> 

 

My third page (result page) for "Show Report 2 (rpt2.jsp)", this has error, parameterFields seem cannot load parameter:

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>  <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>  <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>  <%@ taglib uri="http://www.businessobjects.com/jsf/crystalreportsviewers" prefix="bocrv" %>          <head><title>View Report 2</title>  </head>  <body>  <f:view>  <h:form>  <bocrv:reportPageViewer reportSource="#{reportBean.reportSource2}" allowParameterPrompting="false"  parameterFields="#{reportBean.parameterFields}" />   </h:form>  </f:view>  <body>  </html> 

 

My report bean is:

package crDemo;    
import javax.faces.bean.ManagedBean;    
import com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory;  
import com.crystaldecisions.sdk.occa.report.data.Fields;  
import com.crystaldecisions.sdk.occa.report.data.ParameterField;  
import com.crystaldecisions.sdk.occa.report.data.ParameterFieldDiscreteValue;  
import com.crystaldecisions.sdk.occa.report.data.Values;  
import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;  
import com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2;    
@ManagedBean  
public class ReportBean {      private Object reportSource1 = null;      private Object reportSource2 = null;      private String inputText = "";      private Fields<ParameterField> parameterFields = new Fields<ParameterField>();            public Object getReportSource1() {          return reportSource1;      }      public void setReportSource1(Object reportSource1) {          this.reportSource1 = reportSource1;      }      public Object getReportSource2() {          return reportSource2;      }      public void setReportSource2(Object reportSource2) {          this.reportSource2 = reportSource2;      }      public String getInputText() {          return inputText;      }      public void setInputText(String inputText) {          this.inputText = inputText;      }      public Fields<ParameterField> getParameterFields() {          return parameterFields;      }      public void setParameterFields(Fields<ParameterField> parameterFields) {          this.parameterFields = parameterFields;      }            public String show1() {          try {          // Instantiate the report object          String reportLocation;          reportLocation = "rpt/demo1.rpt";          IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();                        reportSource1 = rptSrcFactory.createReportSource(reportLocation, java.util.Locale.getDefault() );          } catch (ReportSDKException e) {              // TODO Auto-generated catch block              e.printStackTrace();          }          return "rpt1";      }            public String show2() {          try {          // Instantiate the report object          String reportLocation;          reportLocation = "rpt/demo2.rpt";          IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();          reportSource2 = rptSrcFactory.createReportSource(reportLocation, java.util.Locale.getDefault() );                    // Clear previous parameter          parameterFields.clear();            //Create a ParameterField object for each field that you wish to set.          ParameterField paramFieldOne = new ParameterField();            //You must set the report name. Set the report name to an empty string if your report does not contain a subreport; otherwise, the report name will be the name of the subreport          paramFieldOne.setReportName("");            //Create a Values object and a ParameterFieldDiscreteValue object for each parameter field you wish to set.          //If a ranged value is being set, a ParameterFieldRangeValue object should be used instead of the discrete value object.          Values valueOne = new Values();          ParameterFieldDiscreteValue paramFieldDVOne = new ParameterFieldDiscreteValue();            //----------- Initialize the parameter fields ----------            //Set the name and value for each parameter field that is added.          //Values for parameter fields are represented by a ParameterFieldDiscreteValue or ParameterFieldRangeValue object.          System.out.println("Input parameter = " + inputText);          paramFieldOne.setName("paramOne");  // "paramOne" is parameter name in my Crystal Report file (demo2.rpt)          paramFieldDVOne.setValue(inputText);            //Add the parameter field values to the Values collection object.          valueOne.add(paramFieldDVOne);            //Set the current Values collection for each parameter field.          paramFieldOne.setCurrentValues(valueOne);            //Add each parameter field to the Fields collection.          //The Fields object is now ready to be used with the viewer.          parameterFields.add(paramFieldOne);            } catch (ReportSDKException e) {              // TODO Auto-generated catch block              e.printStackTrace();          }          return "rpt2";      }  
}  

 

Here is runtime result:

https://public.bay.livefilestore.com/y1pigYkVz4Js_QEKhde3sLBYPuh4V2iGWCboJG3omrD6w5vwl1gOWhiMpfMcPFMzfENu7tLBpK-m1wwWb0mTYv7sg/run.png?psid=1

 

After enter some value, and click "Show report 2"

https://public.bay.livefilestore.com/y1pHsxtGjMgSla_sZlihB6Y7xB6kOyhcOMSwND5xgin5qV1sGw85K_SBJUFJUGt_OlOm7F2fwZ1FO_qVA25cxpmFA/Missing.png?psid=1


Issue CMS connection, Unable to connect to service InfoStore from server via CMS

$
0
0

Post Author: usaitconsultant

 

CA Forum: JAVA

 

Hi Guru's,Please help me resolve this problem, I cannot connect to BO XI server. I didnt change any codes, few days ago its working but now Im having this error. When I tried to connect to other BO XI server by changing only the CMS and authentication it works fine. I already restarted the server and BO XI CMS. But the error still occur. I tried to login thru Desktop Engine and run the report using the same id and password, its working. I can also login thru CMC successfully. Also, checked all the BO XI servers(cms, cache server, desktop_intelligence*, destinationjobserver, ras, etc.) and all are running.  Please let me know your suggestion, inputs, experience on this. Thank you. Error Message:Unable to connect to service InfoStore from server DistillerQA via CMS DistillerQA com.crystaldecisions.sdk.exception.SDKException$OCAFramework: Unable to connect to service InfoStore from server <server name> via CMS <server name>cause:com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$ServiceConnection: Unable to connect to service InfoStore from server <server name> via CMS <server name>cause:com.crystaldecisions.thirdparty.org.omg.CORBA.TRANSIENT: attempt to establish connection failed: java.net.ConnectException: Connection timed out: connect  minor code: 0x4f4f0001  completed: Nodetail:Unable to connect to service InfoStore from server <server name> via CMS <server name>The exception originally thrown was com.crystaldecisions.thirdparty.org.omg.CORBA.TRANSIENT: attempt to establish connection failed: java.net.ConnectException: Connection timed out: connect  minor code: 0x4f4f0001  completed: Nodetail:Unable to connect to service InfoStore from server <server name> via CMS <server name>The exception originally thrown was com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$ServiceConnection: Unable to connect to service InfoStore from server <server name> via CMS <server name>cause:com.crystaldecisions.thirdparty.org.omg.CORBA.TRANSIENT: attempt to establish connection failed: java.net.ConnectException: Connection timed out: connect  minor code: 0x4f4f0001  completed: Nodetail:Unable to connect to service InfoStore from server <server name> via CMS <server name>The exception originally thrown was com.crystaldecisions.thirdparty.org.omg.CORBA.TRANSIENT: attempt to establish connection failed: java.net.ConnectException: Connection timed out: connect  minor code: 0x4f4f0001  completed: No and had the following message: Unable to connect to service InfoStore from server <server name> via CMS <server name>The exception originally thrown was com.crystaldecisions.thirdparty.org.omg.CORBA.TRANSIENT: attempt to establish connection failed: java.net.ConnectException: Connection timed out: connect  minor code: 0x4f4f0001  completed: No    at com.crystaldecisions.sdk.exception.SDKException.map(Unknown Source)    at com.crystaldecisions.sdk.occa.security.internal.t.a(Unknown Source)    at com.crystaldecisions.sdk.occa.security.internal.t.a(Unknown Source)    at com.crystaldecisions.sdk.occa.security.internal.t.userLogon(Unknown Source)    at com.crystaldecisions.sdk.occa.security.internal.l.userLogon(Unknown Source)    at com.crystaldecisions.sdk.framework.internal.d.logon(Unknown Source)...   

Howto deactivate PerformanceMonitor

$
0
0

Hello,

 

we are developing an eclipse RCP-Application with crystal to show some reports. We have analysed the memory usage of the application and found a nasty issue. After opening und closing some reports we found an instance of the class com.businessobjects.performancemonitoring.PerformanceMonitorholding objects with a total size of 200MB (e.g. ReportDocuments).

How can we disable the performance monitor? And if thats not possible what can we do to free the memory?

PerformanceMonitor.png

Best regards,

Guido

The viewer was unable to find the resources required to render the report

$
0
0

Hi,

 

There are several other posts in various places but none solve the same problem I am having.

 

When I try to run the "CRJava Create Report From Scratch" in Eclipse, I get the following error in the browser:

 

The viewer was unable to find the resources required to render the report

Please check the following to resolve the issue.

1. Verify that ../crystalreportviewers120/ is accessible to your WebApp and is the correct path to the viewer resources.

2. You may customize this location by altering the crystal_image_uri and crystal_image_use_relative properties in the web.xml.

3. Validate that the file crv.js exists at ../crystalreportviewers120/js/crviewer/crv.js.

 

I've used FIddler to see the HTTP request, and it looks like the files in 1 & 3 are present (after I renamed the crystalreportviewers directory to crystalreportviewers120).  I can't find any reference on my computer to #2.

 

I also used a javascript debugger in Firefox, and it shows that CrystalReportViewer.jsp is trying use bobj, but it's not defined.

 

Has anyone solved this problem, and if so, how?

 

Thanks, Ted

Crystal Report integation with Java Front end applicatin

$
0
0

Folks,

 

 

We have front end application in JAVA and  we are planning to migrate Crystal Reports 2011 from actuate.

 

Users want us to Integrate Crystal Report Viewer Plugin with front end and use Customize Report Viewer(Opendoc) .

 

Not sure if this is the recommended approach.

 

Pls do share your inputs

 

Regards,

Jyoti

Putting JARs in shared/lib?

$
0
0

How can I put JRC's JARs in Tomcat's shared\lib -directory instead of my application's lib-directory? Everything works fine if JARs are in Tomcat\webapps\MyApplication\WEB-INF\lib but if I move them to Tomcat\shared\lib I'll get en error message:

 

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected error determining relative path---- Error code:-2147217395 Error code name:serverProgrammingError

 

Since there might be several web applications on the server running JRC I'd prefer having only one set of required JARs in shared/lib.

Viewing all 893 articles
Browse latest View live


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