Fetch Cross-tab grandtotal? - crystal-reports

I have a cross tab inside a subreport. I need to fetch the grandtotal of cross tab and display it in a textobject under the cross tab. Any clue how this can be achieved ?

Drag and drop the database or formula field you want into the detail section of the report. (Remove any unwanted guidelines / column headings that this generates.)
Right-click the inserted detail section item and select Insert > Summary... . Specify Sum, to be inserted in the same section as the datagrid is located. (Remove the detail section item, if you don't want it in the detail section.)
The total field can be dragged and dropped into position under the data grid. If you specifically want it in a text field, then insert a blank text field into the report under the data grid and then drag and drop the total field into it.

Do you have any criteria or special formula in the crosstab? If not, then you could probably just make a new formula sum({table.field}) and put it wherever you like.
(If this subreport is grouped, you may want to use sum({table.field},{table.group}))

Related

Crystal report one field from database and format it in crystal report

I have only one field in a table which i am using in crystal report in details section.
now i want that field as word wrap as it is too big and i want it one after another.
i.e
if i am having a field say "address" in details section
and i am placing it at left side i want the field to be printed next record next to it and then next record next to it going from "left to right" and after the page border is end next record should be printed again from left to right and so on
and i am using VS 2008
If that field is in your details section, do a right click on the details section and go to section expert, search for Format with Multiple Columns and check it. Then a layout tab will appears, so go there and select across then down. You can also adjust width and height there.

Jasper Report 5.5 - Summary with Page header and footer

I'm using the table in my jasper report.When i put the table in the detail section it repeats the table so i put it to the summary band.
I also want to add the page footer in my report too.
How can i do this jasper report 5.5 ?
If you are using iReport to design your report, there is an easy way to add/remove bands, such as a Page Footer. On the left, on the Report Inspector, if "Page Footer" is in light grey (which means it is not inserted), right click on it, and select "Add Band" :
Also, another way i deal with tables, is by adding all the tables column headers in a single row on the Title band positioned on the lower border of the band, and right down to them, again on a single row, all the TextFields containing the data (inside the Detail band). These way, the first row will be printed only once, and all the part in the detail band (which means all the rows of the table) will be printed. You have just to make a little cell formatting to make it appear with a table fashion (such as borders, background etc) which is very easy with iReport:

"Stretch With OverFlow" option overlaps another text field

I have set the "Stretch With Overflow" option True to some text fields (Denomination, From, To, Stock, Amount). There is one text field which is placed below these text fields ($F{grandTotal}). The below situation occur when I generate the report.
Can anyone please suggest what should I do to avoid this circumstance?
And this is the scenario of my report design.
I have found the answer to this problem. Here is what I've done-
Right click on report name and select Add Report Group
Select a group name and click next.
Check Add Group Footer option.
Then place the $F{grandTotal} in the group footer and Voala! it's done.
Here is what happens: The group is added with respect to the detail band. So, my $F{grandTotal} field is placed perfectly after the detail band column values are generated.
Thanks...
Move grandTotal to summary or ColumnFooter Band. In this use case I would suggest using a variable that aggregates "total" field so You don't need grandTotal field, unless grandTotal aggregates values not shown on report...

crystal report - repeat group header across multiple column

I have a report that has 3 columns and it is grouped by a value that i display in the group header. The report is setup to run down then across.
If the details span across multiple columns, how do I repeat that group header on the next column.
I have already checked "repeat group header on each page" in the group expert.
I have already checked "format groups with multiple column" in the Layout tab of the details section.
It will not let me insert a text object in the group header of each column.
Not sure how to do this. I could write a formula to only show at the top of each column, but not sure if there is a function to find out when the second column has started.
edit
What i want is below
Group Header Text Group Header Text Group Header Text
Detail Values Detail Values Detail Values
Detail Values Detail Values Detail Values
I would like to have the Group Header Text show at the top of each column. Doesn't matter if its the start of a new group or in the middle of the group.
thanks.
okay, I have your solution, the field, that you are grouping by , just place it on to the page header and it will repeat itself on every page until the columns of that group are finished.
Lets say you are grouping by Employee Names, just put the Employee Name field on to the page header and it should solve the issue, I jsut tried it and it worked, thanks.
There is Previous() function available in formulas that allows to show-hide a Text Object based on the change of specific field value from previous to current record.
Is this what are you looking for? Can you edit you question drawing a sample af what you have and what you want?

Merging Cells Vertically in SQL Reporting 2008

In SQL Reporting 2008, Is there a way to merge multiple cells that are adjacent to each other along a vertical column?
In the report designer, click on your table, then at the bottom of the screen there is a window spit in two with the headings "Row Groups" and "Column Groups". In row groups, click on the little down arrow next to the default group "table1_Details_Group" and choose to add a parent group. Select the field you want to group on, and don't check the boxes to add a row header or footer. A new column will be added and when you preview you will see that the cells of this column are merged vertically.
You cannot merge cells vertically, only horizontally.
You can, however, create table groups. Grouped data inside a table can be designed to look like merged vertical cells.
EDIT
INFORMATION ON MATRIX CONTROL
You may use matrix table to do it. It force you to have a group column, however you can just set the group column visibility as Hidden. Then add new columns you needed.
see image here: ( my Month is merge cells from two rows)
http://i.stack.imgur.com/WA2ZL.png