Drill Down Report using Crystal reports in eclipse and jspviewer
Hi
I want to understand how to write a drill down report since I have a requirement for my project, so I tried to run the sample drill down.rpt that is available with Crystal Reports 2008 Complete Reference book by George Peck.
I can see the results correctly( i.e. can drill down) in the preview tab . Since I am working inside the eclipse, the way I run the reports is first "Create report viewer JSP" by right clicking the report and have a url mapping to this jsp. I am running the reports from a hyperlink that maps to the url which will launch the jsp.
the jsp is:-
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="ISO-8859-1" %><%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer" %><crviewer:viewer reportSourceType="reportingComponent" viewerName="Drill Down-viewer" reportSourceVar="Drill Down" isOwnPage="true" allowDrillDown="true">
<crviewer:report reportName="reports/Drill Down.rpt" />
</crviewer:viewer>
The one that was created by "Create report viewer JSP" did not had "allowDrillDown" attribute at all .But I added it since it isnt working.
So when I launch my web app and click on the link to run the report, I get the report results but only to the summary level. When I double click the summary level I get a 404 error page.
Can please anyone suggest what is going on.
Thanks
poonam
Ok. So, you added the report to the project. Now we have to add the CR assemblies to the project, add the viewer (if need be) and fire it off. Simplest code would be:
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
CrystalReportViewer1.ReportSource = ("path to report")
End Sub
In this case you are using the viewer SDK to runt he report. The report will prompt for any logon parameters - but you can code these also. You can load the report via the engine as bellow. Again, the report will prompt. I prefer to use the engine as it is way more "extensible"...
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
crReportDocument.Load("path to report")
'Bind the report to the viewer
CrystalReportViewer1.ReportSource = crReportDocument
End Sub
If you have a report added to the project (strongly typed) the code would be:
CrystalReportViewer1.ReportSource = New myReport()
For more details, I'd recommend looking at the sample app vbnet_win_simplepreviewreport.zip available from the following location:
https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
The developer help files are here:
[SAP Crystal Reports .NET SDK Developer Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip]
[SAP Crystal Reports .NET API Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_api_2010_en.zip]
- Ludek
Similar Messages
-
How to use drill down option in Crystal Report
Dear all,
I want to know how to use drill down option in Crystal report 2008. In below i have explained my screnario
For example
My scenario is. In crystal report I have Purchase order like PO101,PO102. Each purchase order have 5 line items. If i drill down each purchase order it should display line item in crystal report.
Regards,
Baskaran.hi,
Create a Group on 'Purchase order'.
Group Expert -> Select the Purchase Order and Click the arrow button such that it appears right side. Click ok.
GH1 is inserted.
Your detail section should include 'Line items' fields.
Right Click 'Detail' section on left hand side, Click 'Hide (Drill down Ok)'.
Now you will see only 'Purchase order's in Group Headers.
Now when you click on a particular order, you will see respective line items.
Regards,
Vamsee -
CRVS2010 Beta - Drill down functionality for Crystal Report in VS 2010
I found a limitation with Drill down functinality in crystal Report using VS 2010.
If report`s section or group has data in furthure section or same group, its work fine, but section/group does not have data, it allows to click on fields for drill down but genrate issue.
Updated subject line per this Beta post - Crystal Reports for Visual Studio 2010 Beta - read before posting
Edited by: Don Williams on Oct 16, 2010 12:59 PMIf you look up you'll see you are now in the "SAP Community Network Forums » Business Intelligence SDK Application Development (SAP BusinessObjects and SAP Crystal Solutions) » .NET - SAP Crystal Reports" forum.
But if want the link here it is:
Thank you
Don -
Post Author: Manjula
CA Forum: JAVA
Hi,
Trying to schedule a report using Crystal Reports Server Java SDK. Want to pass DBConnections from API, though passing DBConnections, the report is not being scheduled and says "Failed to retrieve data from the database.Details:[Database Vendor Code:6550].
Would be thankful if someone could answer my point as applicable.
Here is the code attached.
ISDKList dbLogons = oReport.getReportLogons();int dbLogonSize = dbLogons.size();
for(int i=0; i<dbLogonSize; ++i) {
IReportLogon dbLogon = (IReportLogon)dbLogons.get(i);
dbLogon.setDatabaseName("DBname");
dbLogon.setUserName("usrname");
dbLogon.setPassword("pwd");
Thanks in advance.Post Author: Manjula
CA Forum: JAVA
Ted,
Thank you for your valuable information.
First, tried scheduling on Central Management Console and then with the java code.It worked fine, but here is another question for you.
On the Console, a report exists with ServerName and UserName harcoded and when trying to set ServerName and UserName from the java code, its throwing exception. Where as Password is not set on Console, am able to set password from java.
And DatabaseName is not set on Console (non editable), unable to set the same from java too. Why is it so?
So, my question is - though ServerName,DatabaseName,UserName,Password exists on the Console report, can't I override those parameters from java?
Would be greatful if you answer my question and provide me some guidance.
Thanks in advance. -
How to view multiple reports using crystal reports 2008
Hi ,
I am working on vb6 project where in i am trying to generate reports using crystal reports 2008.
For this , i am making use of Interop Form Wrapper class in vb6.
I have a business requirement where in i need to view multiple reports on my screen.
please suggest me as to how this can be achieved.
Thanks in Advance
Regards,
RamnathHi Ludek,
I am directly now using crystal report viewer control in my vb6 project.
As mentioned in previous mail, i have created a Interop Wrapper class over crystal report viewer control in .Net using visual studio 2008 and i am making use of wrapper class in my vb6 project.
I am able to access all the properties that have been defined in my Interop wrapper Class but the only stuff i need is to view multiple reports generated one after the another for a single button click Event.
Please find below the code that iam using to load and generate reports.
Note:
1. frm is the instance of my Interop Wrapper Class built over CR viewer control
2. All the user defined methods of Wrapper class that you see below will internally call the actual crystalreportviewer properties defined in my Wrapper class
Say for e.g frm.DisplayToolbar(True) will internally execute crystalreportViewer1.DisplayToolbar = True
frm.SetReportSource(strRptFilePath,0)
frm.SetSelectionFormula(strrecordSelectionFormula)
frm.DisplayToolbar(True)
frm.ShowExportOption(True)
frm.ShowPrintOption(True)
frm.ShowRefreshOption(True)
frm.ShowPAgeNavigateOption(True)
frm.ShowZoomOption(True)
frm.ShowParameterPanelOption(True)
frm.Show()
Thanks in Advance
Regards,
Ramnath -
Sub report group tree in main report Using crystal report 12
Hi experts,
I have a strange requirement like, same data needs to be grouped two different ways in a same report. Like
Store1:
Summary of sales on each item chart
Store2:
Summary of sales on each item chart
.....it goes like this
Department1(multiple stores)
summary of sale on each item chart - store1
summary of sale on each item chart - store2
--........ it goes
Department2
summary of sale on each item chart - store3
--........ it goes
Its in single report, the first part is grouped only with store and in second part the store is under department. How to do this in same report?
I achieved this by creating a sub report to display the first part of data and in the main report sup report data plus the second part of data will be displayed. And its working well but now the problem is the group tree, I'm not able to see the sub report group tree in the main report.
How to get the sub report group tree in the main report, Or is there any other better way is there so i can get both the data as well the group tree. Please help me to solve this. CryCryCry
I'm using crystal report 2008(installed separately) with Visual Studio2008 (.Net3.5)
Thanks in advance.Hi
Thanks for the reply.
Yea both data source are same(Datasource is SQL Stored Procedure). I cant use like that, because my client needs the group tree also. In case if there is no group tree, we can create one more group and supress it conditionaly. But here the problem is there is no way to suppress any of the group item in group tree as we can do it in the detail section.
So please me with some different ways and also , please clarrify the following doubts
1. Can we supress one or more items in the group tree.
2. Can we get the sub report group tree in main report(Everything is working when i used the sub reports except the group tree). So I'm trying for different ways to do, but none is helping me
Please help me -
Drill down arrow in Crystal Report
Hi,
I've created a crystal report based on a SQL statement that brings some information about service calls.
I would like to include a drill down arrow for service call ID.
I found this as being the link: 'http://$b1$/link?table=OCRD&key='+{OCRD.CardCode} but not sure how to change for what I need. I don't have any tables since I am using a command. Should I bring OSCL table? How do i have to chance it for CallID? I get an error message saying "A string is required".
Thank you for your help!
CristinaHi Neetu,
I don't get any error message so thanks for this. I don't have OSCL table, I only have a command based on sql query containing the fields I want. When I replace OSCL with the command name it opens a web page "Internet Explorer cannot display the page" with http://$b1$/link?table=Command&key=6159 address. So it's recognising callID. Do I need to bring OSCL table and link it to my command and use OSCL in the link?
Thank you!
Cristina -
Problem in Display the Crystal report using Crystal report Viewer 2008
Hi All,
I have developed crystal web project with crystal report using Eclipse IDE. when I deploy this web application using Tomcat server 6.0 in Windows xp, Windows Vista.. It is working fine..
But When I deploy it into Windows 2000 server , I am not able to see Last 2 columns of the report page in the Viewer.
But When I tried to Export as Excel, I got all the datas in the Report and also when I preview the report in Eclispe IDE using crystal viewer plugin it is working fine in Windows 2000 server also..
Thanks in Advance for your help..
Regards,
SathiyaMBPSWindows 2000 is not supported in current versions of CR. Check the platforms PDF file.
-
"Failed to open report" error while running reports using Crystal Report
We have a web application develeoped in ASP.Net, SQL Server 2005 , Crystal Reports 10.0. Sometimes if a large number of users run reports from their individual nodes they receive an error "Failed to open report ", if we restart the IIS they are able to run the reports. In addition to this the users also sometimes get the error "Maximum Report limit attained". Can any one provide me with a solution other than restarting the IIS.
Hi,
Use the close and dispose method for Report object. Its a best practice to code also gc.collect for garbage collection.
It might help you!!
Regards,
Amit -
Error in preview report using Crystal Report in SBO 8.81
Hi friends,
I face problem when preview report. I import all my report to server and test it to server. When i preview the reports, it can't run well. It preview the error like this.
Failed to Retrieved data from Database.
Failed to Retrieved data from Database.
Error in File Temp {..... LOTS OF LETTERS AND NUMBERS HERE}{..... LOTS OF LETTERS AND NUMBERS HERE}.rpt:
Failed to Retrieved data from Database.
I don't know , what it means.
the query report runs in store procedure then attach it in crystal report.
Actually , before i import to my user's Server, I test it in my local notebook first. It runs well. I also have tested it in my friend's notebook, it also runs well.
Does any one know how to solve it ?
Thanks in advance
Regards
KKFyi , The Windows is installed in 64 bit, and the sql server is installed in 32 bits. When i analyze in sql profile the parameter date in the crystal report is converted. But when i run it in my local machine(My notebook), the date parameter is not converted and runs well.
Is this the main problem , if the SQL server is installed in 32 bits ?
Thanks in advance
Regards
KK -
How to refresh report using Crystal Report Viewer 2008
Hi,
Please help me I dont now how to refresh report, te tab "refresh" is not active !!!!
JacekHi Jacek,
You can only refresh reports that are hosted on Business Objects servers (such as Crystal Reports Server 2008).
http://www.businessobjects.com/product/catalog/crystalreports_viewer/
Cheers,
Fritz -
Unable to load password protected Accdb file using crystal reports 2008
Hi,
I am trying to generate crystal reports using crystal reports 2008 and in the process, I am internally setting accdb file to all my rpt files .
When i try to map my accdb file (Without passord protection) to all my rpt files, everything works fine and i am able to generate reports.
But, when i try to map the password protected accdb file to the rpt file, it throws me an error saying
"LogOn failed. "
Details : ADO Error Code : 0X
Source: Microsoft Access Database Engine
Description : "Cannot start your appliaction, The workgroup information file is missing or exclusively opened by other users"
SQL State : 3028
I have made sure that none of my applications are running when i try this.
Please find the screenshot for the same.
Please let me know how to resolve this issue as i need to work with password protected accdb files for generating reports.
Thanks in Advance.
Regards,
RamnathHi Ludek,
This is happening in CR designer.
Besides, please find below the additional basic info regarding this
Crystal reports version : 2008
Database connection type : OLE
OLE DB Driver : Microsoft Office 12.0 Access Database Engine OLE DB Provider
Database : Access 2010
Dev Language : VB.Net
Regards,
Ramnath -
Open ECC report in Crystal Reports
Hi,
Question, hope you have some info on this...
I want to try & open a custom report which is built in an ECC system (report is currently run as a "Yxxx" transaction) in Crystal Reports. Purpose is to further edit and format the report using Crystal Reports functions.
Does anyone know what path to follow here? Do I have to set up a new connection for the given source system?
Thanks for any tips advice.
Ps. I have Crystal Reports 2008 and also the BI Integration Kit (not sure if this is used / required).
Thanks,
WillemThere are transports that the SAP Integration Kit delivered. you may have already installed this on your BW, but they would need to be installed on ECC if you want to query there. Once these are installed, Crystal should be able to see an SAP - Table, Cluster, Function Data Connection allowing you to connect to your ECC.
You should review the SAP Integration Kit doc - it spells out authorizations required, how to handle security, etc. -
Creating Crystal Reports with Crystal Report Server XI
Hello,
I am new to Crystal Reports, i installed Crystal Reports Server XI R2 on Windows 2003 server with SP2 and was able to launch Inforview application and also Central Management Console Log On.
I can also see some sample reports which are installed during installation.
Now my next task is to create Crystal Reports using Crystal Report Server XI R2. How can we create a crystal report now by only using Crystal Report Server XI R2?
Do we have to install some other application to create Crystal Reports? I donot see any link on my server which i can use to create crystal reports. The only links which i can see are :
Business Objects-->
Crystal Report Server-->
.Net Administration LaunchPad
.Net Infoview
Business View Manager
Central Configuration Manager
Data Source Migration Wizard
Data Source Migration Wizard Help
Import Wizard
Online Developer Library
Publishing Wizard
Registration Wizard
Release Notes
Repository Migration Wizard
Please help
Thanks
VipinTwo ways to create reports:
1) You install the Crystal reports Designer (CRW32.exe).
With your Crystal Report Server, you should also have received a second CD that would have the CR designer.
2) You use the RAS SDK and create reports on the fly using the RAS report creation APIs - .NET or Java. Since you are in the .NET developer forum, I assume you might be interested in the .NET RAS SDK. Here is a list of resources i would recommend:
Links to samples are [here|https://www.sdn.sap.com/irj/scn/wiki?path=/display/bobj/netBusinessObjectsEnterpriseSDKSamples]
[How to use the RAS SDK .NET with In-process RAS Server|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b840c0-623f-2b10-03b5-9d1913866b32]
[Programing RAS|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b050afe0-2fa5-2b10-658d-98f214ba6a4a]
[Choose the Right SDK for the Right Task|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f006a5e6-7e64-2b10-8a84-8b15ca5cacfc]
For more help, search these forums (there are some great posts in here), the [notes database|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true]
[articles|https://www.sdn.sap.com/irj/sdn/businessobjects-articles] and [downloads|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
Ludek -
Problem deploying OLAP report to Crystal Reports Server
I have developed a simple OLAP cube report using Crystal Reports Developer (11.0.0.1.1282). The report correctly previews and shows values against the cube that I have chosen as the datasource. The datasource is not my local computer but another computer (on the same network) that contains an Analysis Services 2005 cube. Crystal Reports Server (11.5) is installed on the same computer that contains the datasource.
Using the CMS I uploaded the OLAP cube report to the server. After that was finished I changed the "When viewing report" radio button to "Use same database loging as when report run" in the Process/Database setcion. I logged into the InfoViewer and navigated to the report and executed it. When the report executes I get the following error:
Crystal Reports: Print Engine Error
Unable to retrieve Object.
Crystal Reports: Print Engine Error
I wanted to make sure that the server was running correcly as it is a fresh install. So I created a standard report that connects to a SQL Server 2005 datasource and displays the contents of a table. When I uploaded this report to the Crystal Report Server it rendered correctly.
What do I need to do to make the OLAP cube report render correctly?I'm not sure about using OLAP with CR on the server, maybe someone else will have more input on that.
When using OLAP on the server I recall that you must install PTS (it was like OLAP - ODBC) but it didn't require any config just to be installed on the server.
You mentioned CR 11.0 what version is the server? I don't believe SQL 2005 analysis services was ever tested with XIR1 (version 11). You can check the supported platforms by clicking the business obejcts link above and selecting articles, then your version.
Do you have olap intelligence? That was a seperate product on version 11 that was used to create .car reports off of OLAP.
Regards,
Tim
Maybe you are looking for
-
Can i install the upgrade ilife11 on TWO computers?
I bought the ilife 11 upgrade and installed it succesfully on my imac. Am I allowed to also install it in my macbook?
-
Missing Pantone 2171 C in InDesign CS6
Hi, I'm using InDesign CS6 and I can't find Pantone 2171 C in my colour books, do you know why?
-
plz help me
-
COLOUR MANAGEMENT IN PHOTOSHOP CS2 AND COLOUR SAMPLE POINTS
I always place colour sample points on my images in order to monitor colour changes as I adjust. When I soft proof (using using Perceptual rendering),I go to the Information pallette and right click on the colour sample points.I then choose Proof opt
-
Computer has fried due to an ill repair!
Hello all, I have an older MacBook Pro, my keys kept coming off and it so I took it in to the Apple Store and even though I was outside of my 3 yr. Apple Care they said that they would fix it for free since I was only about 3 weeks out of the warrant