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. -_(--)-_
Related
I am junior web developer in Korea.
I know that you may not understand well what I want to talk about.
Please tell me If I wrote wrong.
I recently use jasper studio for making report like this.
I add border-left and border-right in subreport.
But result is different from what I wanted to do.
Of course I added border-left and border-right in Detail band directly, it made different result as well.
Although this way looks fine, whenever I click preview tab, a page that has blank detail band is following page which is okay.
anybody help me, please :)
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 am using Crystal Reports 2011. I am totally new to crystal reports and reporting tools in general. I just added my data fields to the details section, but instead of showing all the rows in one page, a new page is created for each row. I did not use any grouping or change the section paging settings.
This only happens for a blank report, when using the report wizard it works fine, but I can't see the difference between what I did and what the report wizard did.
The problem seems to have been a mix up with the sections, I've understood how these work now and got it to work. Thanks for the help.
I had 2 details section, so for every row in details1 it also displayed the information of details2 (which I only wanted to appear once). So I moved the data of details2 into a report footer.
Right click on your report and then go to Section Expert check Is Keep togather is checked
or New Page after or before in not checked.
Make sure that "New Page After" and "New Page Before" are not ticked. Also, Adjust the section sizes to the minimum you need.
In general, it sounds like you have a row data, inserted into the page header/footer section instead of the details section and therefore presented in each page...
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!
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.