Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: How to Create Subreport Post Reply Post New Topic
Author Message
sa-user
Groupie
Groupie


Joined: 29 Jun 2011
Online Status: Offline
Posts: 65
Quote sa-user Replybullet Topic: How to Create Subreport
    Posted: 29 Jun 2011 at 12:43pm
Hi,

I am new to CR's.
Can anyone give an example of how to create subreport.

Thanks
IP IP Logged
CircleD
Senior Member
Senior Member
Avatar

Joined: 11 Mar 2011
Location: United States
Online Status: Offline
Posts: 251
Quote CircleD Replybullet Posted: 29 Jun 2011 at 1:50pm
A sub Report is nothing more than a separate report you use the Add Sub Report button to add to you're main report.

Edited by CircleD - 29 Jun 2011 at 1:50pm
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 30 Jun 2011 at 3:10am
there are limitations, subreports don't have page headers or footer, and generally you will need to link a subreport to the main report for filtering.
 
If possible, subreports are not recommended as they cause the report to hit the database many more times.
 
Say the subreport is displayed 100 times, the database will have 101 calls to it (1 for the main report) so this can cause a report to run slower, and to increase network traffic.
 
I prefer to get the data via a stored proc with wide rows so that all the information is contained in the tables and then the subreport is formatted basically as a section of the report, resulting in only 1 hit to the database.
 
HTH
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.