Search code examples
visual-studio-2010reporting-servicescrystal-reports

sub report always coming second page of crystal report in visual studio project


I designed crystal report like this: enter image description here

in this i have a sub report named

TransactionDetailed

that i given in ReportFooter part. while coming records am getting two problems

1->sub report heading not coming all pages,,i want to show sub report heading where ever i am getting subreport
2->in first page of my crystal report only showing main report...not getting sub report,,sub report alwayes showing 2 nd page of my crystal reports onwards,,

how i can resolve these two issues?


Solution

  • The way your report is structured is the reason you are not getting correct results. Report Header and Footer should only contain information you want to show ONCE. Page Header and Footer should contain information you want to see on every page (i.e. a logo, legal info in the footer, etc.). Group Header and Footer will show data for the items you have grouped by. The detail section will show all data that pertains to the group. So either group your data and then put the subreport in the Detail section or create a second detail section and put your subreport in there.