Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Sub report Post Reply Post New Topic
Author Message
ankita
Newbie
Newbie


Joined: 13 May 2011
Online Status: Offline
Posts: 37
Quote ankita Replybullet Topic: Sub report
    Posted: 06 Dec 2012 at 9:59pm
Pls tell me how to create sub report and link it with main report widout the help of parameters. whenever i tyr to link it it ass for parmaeters
IP IP Logged
cheenu_vasan
Newbie
Newbie
Avatar

Joined: 06 Apr 2011
Location: India
Online Status: Offline
Posts: 16
Quote cheenu_vasan Replybullet Posted: 07 Dec 2012 at 3:00am
Use sub report with link to the main report or otherwise your sub report details will be shown for every record print.

Use links for effective use of sub report. Even you can create your own variable and then try to pass that to the sub report whenever you want to show the report. This will be alternate way.
Thanks & Regards
Srinivasan B
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 07 Dec 2012 at 4:56am
If you link to the subreport, the links will automatically create parameters in the subreport.  However, your report will provide the values for those params based on the data values in the main report.  So, you should not see a screen that asks for parameter values when you run the main report - you will see the parameter screen when designing and running just the subreport by itself.
 
-Dell
IP IP Logged
ankita
Newbie
Newbie


Joined: 13 May 2011
Online Status: Offline
Posts: 37
Quote ankita Replybullet Posted: 07 Dec 2012 at 8:35pm
I didn't understand pls help. I have one main report which has filed like "BANUR" and sub report have "BNUR-SW" its details i want that BANUR details come undr banur and other elements details in other part.

Like

1) BANUR--main report
@) BANUR_SW sub report
2) SOmbhaoo--main report
@) Sombahoo-CPU--main report

IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 10 Dec 2012 at 3:07am
If you want the details in the subreport to be based on the record in the main report, here's what you do:
 
1.  Right-click on the subreport and select "Change Subreport Links".
 
2.  In the top-left, select the field from the main report that identifies which subreport data you want to display.  Move the field to the top-right.
 
3.  In the bottom-right select the field in the subreport that should have a value equal to that of the field from the main report.
 
This will create a parameter in the subreport that will automatically be filled with a value from the main report.  When you run the whole report, you will not see any prompts for the subreport because the main report will set the value for the parameter.  However, if you run just the subreport alone to test it, you will have to set the value of the parameter.
 
-Dell
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.