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?
We're currently evaluating CR for use in our swing-based application. Our app has a plugin mechanism, and I'm having some difficulty in getting our plugins unloaded after using the ReportViewerBean. Specifically, it appears that a number of background threads with names like "Background Batch Spiller 0" are started up by the Crystal Reports code, and hang around even after closing the component. The threads appear to still have references to our plugin's classloader through the inheritedAccessControlContext field on the thread. We are not running with a SecurityManager.
I believe that I'm calling ReportClientDocument.close() as necessary and also cleaning up the viewer by calling stop() followed by destroy() on it.
Is there any way to programatically tell the Crystal code to shut down all its background threads? Or are there any other suggestions?
I need to convert one of our internal web application from using Crystal Report Server 10 RAS to using Crystal Report XI Java Component (JRC). I found several examples from SAP/BusinessObjects but am stuck with a database connectivity problem.
The basic enviornment info:
JBoss 4.0.3 SP1
Crystal Report JRC XI
Windows XP/Server 2003
JDK 1.5.x
MS SQL Server 2005
The error I am getting is "Error finding JNDI name (xxx)", although the application is already using the same JNDI and was able to display data on the web.
Hi! The "Crystal Report Java runtime component" is available as a separate download to "SAP Crystal Reports, Version for Eclipse". So where can I find the javadoc for the API and the Development Guide for the 12.2.216 release of the runtime libraries?
I have developed a web application using java crystal report apis. The web application loads up from a war file and I have jsps that render a crystal report (.rpt) in the browser. My question is, everytime the crystal report loads up, does it refresh the latest data from the data source ?
We have recently upgraded our project from java 1.6 to 1.8. After the upgrade we are seeing few errors while exporting using crystal. We use the 12.2.2 version of the libraries. Details are as below,
CrystalCommon2-12.2.2.jar
CrystalReportsRuntime-12.2.2.jar
DatabaseConnectors-12.2.2.jar
jrecrom-12.2.2.jar
keycodeDecoder-12.2.2.jar
QueryBuilder-12.2.2..jar
JDBInterface-12.2.2.jar
logging-12.2.2.jar.
Can you please let us know if there are specific libraries or patches available for java 1.8. Please find the error logs attached.
We are receving this error message while calling a Crystal report from Java -Weblogic. We are on Weblogic 12c using JDK 1.7
We are getting this error only on 1 server. Its working on 2 other servers .All 3 servers have a similar configuration. Looks like there is a small difference in environments that we are unable to trace. We have exhaused all possible reasons. Does any have suggestions ? Here's the error messsage
GenerateReport: Report Name:SitePerformanceReport
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key Error_InvalidServerName
at java.util.ResourceBundle.getObject(ResourceBundle.java:395)
at java.util.ResourceBundle.getObject(ResourceBundle.java:392)
at java.util.ResourceBundle.getString(ResourceBundle.java:355)
at com.crystaldecisions.client.helper.ResourceManager.getString(Unknown Source)
at com.crystaldecisions.client.helper.SDKResourceManager.getString(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.TCPIPCommunicationAdapter.connect(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.int(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.for(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.for(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
at com.bms.bivr.businesslayer.report.GenerateReports.getSitePerformanceReport(GenerateReports.java:299)
at com.bms.bivr.action.GenerateReportAction.execute(GenerateReportAction.java:112)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:751)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:221)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:567)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:263)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:751)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:221)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3284)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1513)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Hi I am creating an application which opens a rpt file when you perform in windows and JBOSS working properly but when I step on Red Hat and JBoss shows me the following error.
Can not find resource for bundle java.util.PropertyResourceBundle, key Error_InvalidServerName
Please help. I am developing a swing application that can open reports made using crystal reports xi. What Im trying to do is to open a report and pass the connection info to that report so that I can dynamically change the database of the report. But for some reason it is not working and the report still produces the information from the database that it was initially set up. Can someone please tell me what I did wrong? Btw when I try using com.crystaldecisions.sdk.occa.report.application.ReportClientDocument, I get a server not found error. But when I try to use import com.crystaldecisions.reports.sdk.ReportClientDocument; It's not working. I am not sure what a report server is and I dont think I set it up on my computer. Please help. Here is my code:
This upgrade broke the existing VB script which was used to generate nightly reports on each active job. If I understand correctly, the new version of Crystal can no longer be called from VB script. I do not own a copy of Visual Studio. What are my choices for re-writing this VB program?
It seems like I should be able to use a program called CS-Script which is build on top of Microsoft Common Runtime Library, but I don't have any documentation on how to get Crystal working without Visual Studio. I do not need to view the report.. I simply want to export it to a PDF.
This code fails with the following two errors when I try to run it:
c:\Share\crystal_JIF3.cs(30,13): error CS1502: The best overloaded method match for 'CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(CrystalDecisions.Shared.ExportFormatType, string)' has some invalid arguments
c:\Share\crystal_JIF3.cs(30,33): error CS1503: Argument 1: cannot convert from 'int' to 'CrystalDecisions.Shared.ExportFormatType'
Here is the old VB Script which no longer works as of the latest version of Crystal.
Sub Crystal_export(jobno)
'Called from exp_Job The purpose is to Export JobInfo Report
I was doing some research on how to set the record selection formula on Crystal Reports using the Java API and noticed that there are 3 methods with which you can do this:
3. Using parameters. Parameters can be passed to the report using code (you can use the addDiscreteParameterValue function in the helper class) or else they can be filled in by the user during runtime
I would like to know what the best method to opt for is. From the research carried out so far, I do not believe that using parameters (method 3) is the best option since I do not want to let the user enter the parameter values on screen. Also, I believe that method 1 and method 2 do the same job, however I want to know what the difference between the two methods is?
Customer's Domino application runs a Java agent that connects to one of their Crystal Reports .rpt files. The agent passes values to the report's parameter fields then exports a copy of the report as a PDF (saved to the server, then emailed). I get the error at this line:
we have interated crystal report CR4E version with our application and facing 2 issue when i am generating crystal reports from application.
we are having a crystal report designed for label size.
1.
While generate the report from application with output as a pdf browser and print to label printer (DYMO Label Writer 400) all the records(for example:7) are getting printed in a single label .
when the same report is generated from crystal report software and print to label printer (DYMO prinetr 400) all the records (For example:7 records) it is printing each record per page (for example :7 pages).
2.
When i am generating crystal report of label size from my application and getting the binary data . When i am sending this binary data to a label printer(DYMO Label writer 400) i am getting an exception "printer's imageable width is too small".
i am using CR4E crystal report version and java 1.5 verison.The paper size of the label printer (DYMO label Writer 400)" 30252 Address"
Vou abrir o relatorio em /opt/jboss/jbas5/server/default/deploy/siag.war/../../../siag.warTemp/Relatorio1237890581285.rpt
2009-03-24 10:29:41,575 ERROR [com.crystaldecisions.reports.reportdefinition] (pool-14-thread-3) Report printer was not valid, switching to default printer.
2009-03-24 10:29:41,585 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] (pool-14-thread-3) JRCAgent2 detected an exception: com/crystaldecisions/reports/exportinterface/exceptions/ExportException
2009-03-24 10:29:41,597 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] (pool-14-thread-3) JRCAgent2 detected an exception: com/crystaldecisions/reports/exportinterface/exceptions/ExportException
Vou abrir o relatorio em /opt/jboss/jbas5/server/default/deploy/siag.war/../../../siag.warTemp/Relatorio1237890582281.rpt
2009-03-24 10:29:43,731 ERROR [com.crystaldecisions.reports.reportdefinition] (pool-14-thread-5) Report printer was not valid, switching to default printer.
2009-03-24 10:29:43,770 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] (pool-14-thread-5) JRCAgent3 detected an exception: com/crystaldecisions/reports/exportinterface/exceptions/ExportException
2009-03-24 10:29:43,776 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] (pool-14-thread-5) JRCAgent3 detected an exception: com/crystaldecisions/reports/exportinterface/exceptions/ExportException
2009-03-24 10:29:43,854 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] (pool-14-thread-5) JRCAgent3 detected an exception: com/crystaldecisions/reports/exportinterface/exceptions/ExportException
2009-03-24 10:29:43,863 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] (pool-14-thread-5) JRCAgent3 detected an exception: com/crystaldecisions/reports/exportinterface/exceptions/ExportException
I already tried to find similar topics here but was more or less unable to fix my problem with the suggestion I found so far.
I would like to create a report with a excel file as data source. All my current attempts fail with the following exception "com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(719): detected an exception: Error finding JNDI name (E:\SampleSalesData.xls)"
This is my current approach:
final ReportClientDocument boReportClientDocument = new ReportClientDocument();
boReportClientDocument.setLocale(Locale.US);
boReportClientDocument.newDocument();
final String fullPathToExcelFile = "E:\\SampleSalesData.xls"
final ConnectionInfo boConnectionInfo = new ConnectionInfo();
final PropertyBag boPropertyBag = boConnectionInfo.getAttributes();
boPropertyBag.put("Server Type", "Access/Excel (DAO)");
boPropertyBag.put("Database Type", "Excel 8.0");
boPropertyBag.put("Database DLL", "crdb_dao.dll");
boPropertyBag.put("System Database Path", "");
boPropertyBag.put("Session UserID", "");
boPropertyBag.put("PreQEServerName", fullPathToExcelFile);
boPropertyBag.put("Database Name", fullPathToExcelFile);
boPropertyBag.put("Server Name", fullPathToExcelFile);
boPropertyBag.put("JNDIOptionalName", fullPathToExcelFile);
boPropertyBag.put("Trusted_Connection", false);
boPropertyBag.put("Use JDBC", false);
boConnectionInfo.setAttributes(boPropertyBag);
// Set the DB Username and Pwd
boConnectionInfo.setUserName(null);
boConnectionInfo.setPassword("");
boConnectionInfo.setKind(ConnectionInfoKind.SQL);
// [...]
Once I have added the datasoruce I add a filed to the report and would like to export as PDF (this works fine).
The current StatckTrace looks like this:
2015-09-14 16:35:54,191 ERROR [MAIN] com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(719): detected an exception: Error finding JNDI name (E:\SampleSalesData.xls)
at com.crystaldecisions.reports.queryengine.Connection.t4(SourceFile:3024)
at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:697)
at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.for(SourceFile:707)
at com.crystaldecisions.reports.reportdefinition.ReportHelper.a(SourceFile:198)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.long(SourceFile:957)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:635)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1943)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:660)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:166)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:528)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:526)
at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:524)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:423)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:351)
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.ReportSource.a(SourceFile:1558)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:223)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:147)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:128)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:111)
at EXPORT...
Any help on how to resolve this Problem is highly appreciated.
This upgrade broke the existing VB script which was used to generate nightly reports on each active job. If I understand correctly, the new version of Crystal can no longer be called from VB script. I do not own a copy of Visual Studio. What are my choices for re-writing this VB program?
It seems like I should be able to use a program called CS-Script which is build on top of Microsoft Common Runtime Library, but I don't have any documentation on how to get Crystal working without Visual Studio. I do not need to view the report.. I simply want to export it to a PDF.
This code fails with the following two errors when I try to run it:
c:\Share\crystal_JIF3.cs(30,13): error CS1502: The best overloaded method match for 'CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(CrystalDecisions.Shared.ExportFormatType, string)' has some invalid arguments
c:\Share\crystal_JIF3.cs(30,33): error CS1503: Argument 1: cannot convert from 'int' to 'CrystalDecisions.Shared.ExportFormatType'
Here is the old VB Script which no longer works as of the latest version of Crystal.
Sub Crystal_export(jobno)
'Called from exp_Job The purpose is to Export JobInfo Report