Error generating charts in crystal report viewer from java - java

I have designed a report using crystal reports v14.1. The report contains some bar charts which are generated using data from MySQL database. All works well when I am previewing the report in the designer..
But when I am opening the same report in crystal report viewer from my program I am getting this error:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com/businessobjects/visualization/pfjgraphics/PFJSummaryInfo---- Error code:-2147467259 Error code name:failed
All my other reports are working fine. This is the first report containing charts. I have found same question on various websites but no solution to the error, particularly solution in java. Any help is appreciated!

Found the solution.
Please update your Libraries to include the missing jar file.
Latest version of JRC can be found at the below link
For more info:
https://archive.sap.com/documents/docs/DOC-29757
Direct download link for JRC v12.2.220:
http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/crjava-runtime_12.2.220.zip

Related

History of runned Reports

I am working with Cognos 11.2.2 for the first time and I need to get the history of the runned reports using Java SDK, i looked at the samples provided by IBM and I only found how to list all reports (name and searchpath) but there is no explanation how to get history.
Any help or code example would be appreciated.
Note: I tried the ViewAll code and got a list of reports but i did not success extracting history.

Accessing jasper reports through the web

i know that this is a trivial question but this is the best place to ask it. I have a database which is hosted on a website. I have written a Java program that accesses the database and through this program the user can view reports. I used Jasper Reports for this. Now i have a website where the user can log in and would like the user to be able to view the exact same reports but through my website. In other words, what is the equivalent of Jasper Reports for a web page? I know that there is something called JasperReports Server but Im not sure if that is what i am looking for and how is it possible to incorporate into into my html/php site. Can someone please direct me to the right place? Thanks.
You can display Jasper reports using any of the following approaches:
Publish JRXML reports into Jasper server and embed Jasper server into your application using IFrame.
Publish JRXML reports into Jasper server and call those reports in your application using Soap or Restful web services.
Use Jasper API to display jasper reports directly in your application. Refer Jasper reports for Java tutorials for more info.
Thanks,
Srikanth Kattam

Extract/Display SQL from crystal report

Problem:
I have a crystal report file on a computer. I need to know how the crystal report queries a database.
Background:
The crystal report file was created 10+ years ago by a highly paid contractor. No one knows anything about how it was created. We do not have any crystal report authoring software. We don't have any information related to the crystal report file, just the report file.
Question:
If I have a crystal report file here: /file/path/to/myMagicReport.rpt, how can I extract the SQL string used to query the database from the file?
Ideally I would not like to install any software, just extract the information programatically.
I don't think there is a way to programatically extract the SQL query. Unfortunately you will have to either have somebody do it for you or install a version of Crystal Reports.
There is a free trial for Crystal Reports available from SAP here. I would download it, open the report. You can find the SQL query under the Database tab. Please see screenshot.
EDIT:
There is also rpt inspector, which will allow you to get the SQL query. They have a free trial as well here. It may give you all the info you need but probably won't let you make any changes to the report layout, if that's something you had in mind.

ContiPerf html report

I am running contiperf with mvn test and I get a report in the folder "contiperf -report", but I do not see any images/pictures either in the report or in the folder.
Does anybody have the same problem and know how to solve it? Does the computer needs to be online to make this work? I am not online when executing my contiperf tests.
Cheers
Magnus
Yes, you must be online because charts are generated with Google chart API. Here an example of charts :
<img src='http://chart.apis.google.com/chart?cht=lxy&chs=320x240&chd=t:47,48,49,50,51,52,53,54|0,80,75,1,0,0,0,0&chxt=x&chxr=0,0,54&chds=0,54,0,100&chf=c,lg,0,FFFFFF,0,FFFF88,1&chm=B,FFE69B,0,0,0|Aavg,666666,0,1,15|Amed,666666,0,1,15|A90%,666666,0,2,15' width='320', height='240'/
it generates beautiful reports. what version you are using? the only problem i find is sometimes i am getting pergen space error but nothing to do with contiperf.
I don't think you need to be online. it is like junit test reports and running off your maven test

Integration between alfresco and java application

I have a Java Application and I need to get a Jasper report located in Alfresco. Once I have the report I need to add some parameters and then compile it and generate a PDF.
I know this is possible, using alfresco API and Jasper Report API. I have searched in Java-backed Web Scripts Samples but I don't understand the examples, because i'm new in Alfresco and Java, so any clue would be appreciated.
You might be interested in Benjamin Rodriguez' Jasper Reports Dashlet which he submitted as part of last year's Dashlet Challenge. The dashlet makes it possible to configure and run Jasper reports from within the Share UI. This isn't exactly what you are trying to do but it may be a good source of example code.

Categories

Resources