I am using a Cross-Tab object in crystal report. I am having problem making my data column (Field Row) to increase dynamically in height when my data size increases. Since the "Can Grow" property in the Format Editor is disabled, it would not let me set the "Can Grow" to true to enable this function. How do I enable the "Can Grow" function so I can set it to true?
I ran into a similar problem where my row labels did not wrap.
Sadly, I think the best solution is to increase the height of your "data" row field (probably the bottom row). This does fix the height for ALL rows but it means that text in ALL rows will be able to wrap at the same height.
I was going to post an image but I don't have the rep.
Cross-Tabs, like Charts, are always able to grow. For this reason, the "Can Grow"-related formatting options are disabled. It really wouldn't make sense if they couldn't grow since they are dynamic objects.
If you're not seeing some data/rows you would expect, it is because the data is not there or something related to the data source for the Cross-Tab is configured incorrectly.
Related
I need the gray box in my report to print in the Details section to the right of the actual details:
The defect code box is a subreport that serves as a key to various defects that pop up in the details. How do I get it to appear on the right without increasing the height of the Detail section, and such that the gray box does not repeat.
There's a few ways to do this, but due to the nature of Crystal Reports it might be difficult to pull off.
I'd recommend placing the white table on the left into its own subreport. Then you just arrange the subreports so one is on the right and one is on the left. That's probably the least amount of work.
If that's not an option, you could in theory turn the gray box into a very weird, very specific formula. (Not recommended, but still doable.)
You'd write this formula to contain a large if-else statement based on the record number. (If it's the first record, the report displays "DEFECT CODE". If it's the second record, display "SI - SLAG INCLUSION" and so on and so forth. Change the background color of the formula to gray, and suppress it if the record number goes past the final line.
Again, I don't recommend this last suggestion, but if you absolutely can't put the white table into a subreport you can get this to work with a little elbow grease.
I'm currently creating a report in Crystal Reports and each item has a border. The problem is that some of the fields can have a NULL value. When a field has a value of NULL the border doesn't show up, leaving an unsightly gap in the data.
The only solution I was able to come up with is that I create a formula for each column that displays the value if it's not null or displays a blank space when it's not null to trick crystal into thinking there is a value. This would be a major pain and definitely be confusing to anyone trying to modify the report. Is there a better solution to this problem that I might have missed?
Note: I'm unable to modify the SQL.
You can change the report options to give the default value to the null fields. But it may be not desirable for other cases.
If you wanna try it, right click the report and select "report options". Check the options "convert database null values to default" and/or "convert other null values to default".
You can insert a textbox on the report, then place the field inside that textbox. The borders would be placed on the textbox and would always appear regardless of the field value.
A few drawbacks to this,
Formatting cannot be done on the field any more (e.g. if you needed to display 123 as $123.00 you'd need to create a formula to perform the formatting then insert that formula into the textbox)
Export the data to Excel would not respect the data type - any numbers would come over formatted as text (though displayed exactly as you formatted them on the report) with that little green arrow in the cell
I found that method from https://archive.sap.com/discussions/message/9923668#9923668
I have a report with multiple groups. sometimes in some groups all field's value will be null.
in that situation, I wanna this group's height become less to fit.
What can I do?
You've got a few options.. but it maybe just be simpler to remove the null records from the dataset using the 'selection expert' or amending your data source/command, SQL?
Alternatively you can look at the 'Format Editor' using formulas to 'Suppress' individual fields and in the 'Section Expert' tick 'Suppress blank sections' for the details, headers and footers.
Would that solve your problem?
I have a problem with JasperReports' report. I want to create a report that produces for each Database entry, on sheet. When I create it, it shows me only a few rows. Maybe there is a parameter to set in the iReport designer.
A number of things to check:
Change the height of your report. Do you get more rows to appear? What about the height of your band? Does it change the results?
Check which band you have your content in. Some bands behave differently than others. Header/Footer/etc bands do not expand.
Check your input (the data from your query / xml datasource / whatever). Make sure that what you think is the input to your report really is.
Otherwise, likely we'll need more information. If you could upload an example jrxml that would help.
Using iReport, how do you set a variable (could be a parameter, or a value in the REPORT_PARAMETERS_MAP) to Boolean.TRUE at the start of a new band?
There are some fields in the header that should only be displayed after a specific band has started being filled.
Thank you!
AFAIK, it does not wirk that way. It goes straight from the header, passing thru each band header down to the detail band and back to the footer. That's the way one can set sums in the footer of a band, being calculated from the data available at that segregation level. But the filling process for a jasperreports document is pretty straightforward.
In the properties of each text field you have two options available for this issue: "Evaluation Time" and "Evaluation Group". These options can be used to control the filling time of the field.