Crystal reports and subreports speed - crystal-reports

I created a report in Crystal Report. It has two subreports.
GROUP Customer
GROUP FAMILY
DETAIL ITEM
The detail is for Items. This detail is inside a group. It has totals.
FOOTER A GROUP FAMILY
totals Item detail
FOOTER B GROUP FAMILY
Subreport 1 Totals by adj (it display the detail of a third table and the totals)
FOOTER Customer
Subreport 2.
Totals by item. (it display the details and the totals)
The report is 48298 records.
The tables have indexes.
Why it takes 30 minutes to run the report? Is this time "normal"?
How can I display in a footer the detail of other table?.
Can I set a field in the footer that calls a Store Procedure and returns all values like a detail?

Each of the subreports will be executed for each customer. I am surprised that you are not running out of memory. My guess is that the number of customers / families is relative small (less than 300). The report is slow because it queries the database twice for each customer. Try to prepare the data inside the main report.

Related

Can you get a Summary Total of a calculated amount that is in a Group Footer?

I have a formula field in a group footer that gets some of its information from another summary field in the same group footer. Report works great, just can't figure if I can get a grand total of the individual footer totals.... I can't use any of the Detail line fields because they need to be subtotaled first (in the group footer) so that the formula field can do its job. Is this an un-solvable circular problem? I could dump the results into excel if needbe.
thanks for any advice

Merge data inside group Crystal Reports

I have a Crystal Report setup in my WPF Application. The report is grouping data based on VENDOR NAME field as shown in attached image. Now what i want is to show data inside a group only once.
I mean as in first group TOYOTA HOUSE the Vendor name is repeating although other column values are different. i want is under this group just show this record once and for other columns ADD/sum their values and show. I know i can do that in SQL query but can i do this in crystal report ?
Instead of showing in the details section add it to the group footer section.
suppress details section
and add totals in group footer

Repeated values in subreport. Too many pages

I have a report with 2 suppliers. I want to show items ordered by the 2 suppliers. For that I am using a subreport.
For the 1st supplier there are 15 rows and second has 1.
But there are 2 many pages displayed. i.e. 92 pages. The values are repeated. Also a lot of empty pages are shown.
Please advise.
https://www.dropbox.com/s/i5n3z80m7c2itlt/Complex1.jrxml
https://www.dropbox.com/s/5qm5o9cz1yatfad/subcomplex.jrxml
Mithnil,
In the complex1.jrxml query, how many rows are returned? You put the subreport in the detail band, and without any report groups it will execute whatever is in the detail band for each row of the report query. Maybe you need to work on the query to only include one row per vendor.

In Crystal Reports, can you group by two tables which are both many-to-one with the top group?

I am working on a Crystal Report that breaks down data first by Receipt ID, and then I need two groups both under Receipt ID, but that aren't related to each other.
So instead of three levels of grouping, I need to somehow have only two levels like following:
Group: Receipt_ID
Group: Receipt_Detail.Line_Number
Group: Receipt_Deduction.Description
Here is an example of what it should look like:
Receipt ID Line Number Weight Dollar Amount
091911001
1 17,640 $2116.80
2 16,860 $1180.20
3 17,200 $1204.00
MAC Peeler Rate 17,640 0.0027
MAC Juicer Rate 34,060 0.0011
091911007
1 40,000 $10050.00
2 13,500 $2600.00
MACMA Rate 53,500 0.0350
And so on.
Is there anyway to do this sort of thing in Crystal Reports 10?
A subreport! That would be the cleanest way.
In the receipt ID footer, insert a subreport.
In the subreport, use the Receipt_Deduction table.
In Subreport Links, select records in the subreport based on Receipt_ID = Receipt_Deduction.Receipt_ID
Move your deductions content to the subreport's detail section.
In the parent report, remove the Receipt_Deduction group, and perhaps the detail table too.
If you want, you could even move your detail content to the Detail section, so you can remove the Receipt_Detail group.

Crystal Report 2008 - How to Sum a Value in Header section?

I have a master-detail tables, I need to sum a value in master table only but the sum appear duplicated by the numbers of rows in the detail table !!!
It looks like you placed the summary/formula field within the Details section.
If the summary field is a group summary, move it to either the Group Header or Group Footer sections. If the summary field is a report summary, move it to either the Report Header or Report Footer sections.