I have created my Crystal Reports using SQL query in Crystal Reports itself, by passing two parameters, i.e, say for eg:- Month & Year.
While I preview the report, I can able to navigate through all pages by passing different parameters and its working fine, but while viewing the report through browser I can't able to view the current report instead is loads the previously generated report, but while I manually make refresh the crystal page in toolbar I can see the current report, even I can't navigate the current report.
Can anyone help me on this?
Try checking the 'Discard Saved Data When Loading Reports' option.
Should be able to find it here:
Right Click/Design/Default Settings/Reporting/Discard Saved Data When Loading Reports
Not sure if that will fix your problem or not but definitely worth a try.
go to file> save data with report.......
I think it will help you
I know its too late for the reply, but I was facing the same problem may be somebody else will go through the same. I applied many hints from different sites including stack-overflow but finally I solved my problem with this code snip..
crystalReportViewer1.Refresh();
crystalReportViewer1.RefreshReport();
Thanks!
Related
I am not an expert at SSRS but have played around with it to know my basic way around it but I am stuck on this one. This is for Project Server 2010. I am working on a task to create two reports, and combine them at the end. First report, reportA is for a single project, pulling all of it's information. reportB is for a "Portfolio" of the projects on the server.
I am being asked to create a report of them merged. I guess we will call this reportC. reportC will have reportB at the very top, listing all of the projects and other basic information. If reportB has 10 projects listed, 10 reportAs (having information for every single project listed) and all their information, will be aggregated to the bottom of the report.
I tried looking into subreports but do not think this is what I am looking for because it doesn't look as if subreports can be added dynamically, unless I'm wrong. Any ideas on how to easily complete this? I appreciate any help I can get.
EDIT: Here is an example. No it wont be aligned like that. They gave me their example in Excel. It does not necessarily mean that reportC has to be through Excel. Could this be possible running a script of some kind or similar?
Basic Example
I recently did something very similar myself.
What you could do, is in report A, place a table at the bottom where each row is a sub-report (report B). This would allow for all the passed data (name, report id, etc.) to generate visible sub-reports beneath the origin report.
Then, if you want each sub-report on its own page, you can go under group properties and add a page-break after each group.
I have encountered same problem 'Document Has No Pages' issue as described in Jasper Reports And IReport Issue. I applied the solution provided in the given link and it started working. I am stuck behind the concept. My main point of concern is, when we are using detail band and we don't give a data query it gives Document has No Pages error. As soon as we give a dummy query in data query, it starts working. Kindly note that, i am using a subDataSet for a table component. That's where IReport generates this issue. Any pointers would be helpful.
Keep in mind that This is not an error but this is how it is configured to do.
This happens when you don't have results to display in the report from the database. But still you can set option what to do in this situation.
In Jaspersoft iReport 5.6.0
1. right click the report
2. Go to properties
3. Find **When No Data**
4. Select one from the options
There you'll see some options as No Section, No Detail, Blank Page, No Data Section, No pages.
Choose the one suits you. -_(--)-_
I have report with 21 column and thousands rows.
Question is: Can I display 1-10 column on first page and 11-21 column on second page.
I'm not sure it can be done. There are some options you could try, like a cross-tab report, but usually when I run into this issue I simply set my report page up to display in landscape and then format it accordingly.
Hope that helps,
Chris
EDIT:
SAP came through again. I knew if it could be done at all it needed to be with the use of a subreport. Please see this post which has step-by-step instructions on how to achieve what you are after.
I am working on a Classic ASP page with VB6 code. We are in a process of converting the crystal report and iis server for migration. We are not able to generate the report. When i debugged till the point i call the "Database.SetDataSource CDOSet, 3,1" it works fine. When i comment that single line i'm able to get the report without any data. We are also using the .ttx file for database connection(Field Definitions Only). Kindly suggest me were could have been the mistake. What all things i need to check for the migrating?
*crystal report 9 to Crystal report 2008, iis 5 to iis 6
First thing I'd suggest you look at is the Schema for the dataset and make sure it matches exactly with what the report is expecting.
Is it possible that while migrating some of the datatypes have changed and thats whats causing your problem now? if so it might be a simple fix to change the datatype in the report to match the new dataset
I don't have any experience with your setup, but my first guess would be a permissions issue. I would try looking at the event viewer on the server for more information, then the IIS logs.
I'm currently using CR 2008 for design and running my reports in InfoView. I have a fairly standard report with about 6 groupings and 2 details sections. The groupings are all hierarchichal and can be drilled into. The report contains 5 parameters that the user has access to edit in Infoview.
My problem occurs only when users change any parameter on the report and then attempt to drill down in the report. The result always ends up that the drill down will display the very first Group, with drill down, in the report rather than the one they selected to drill into. If a user enters the report and drills into any group without changing the parameters, everything works as expected.
Has anyone ever seen this kind of behavior or know of a reason that this might be happening? Please help.
Thank You,
Patrick Johnson
This is a bit of a reach, but when you change the parameters, are you refreshing the data (ie. don't use the saved data that was pulled originally). I believe something may be going wrong because of that.
Always, always, always choose to refresh your data.