Solved

Crystal Reports 9 and Subreports

Posted on 2016-09-09
3
50 Views
Last Modified: 2016-09-12
Hello,
      I have a report that has several subreports in it. I have 2 parameter fields to define the

criteria for the report. The report runs ok and I like the results, however, with the way the report

is currently configured I have to enter the parameters for each subreport every time I run the report.

Is there a way to only do this once and have the report AND the subreports use the same parameters?

Thank you
0
Comment
Question by:daskas27
3 Comments
 
LVL 18

Accepted Solution

by:
vasto earned 500 total points
ID: 41791837
Right click on the supreport, select menu "Change subreports Links" and link the parameters from the main report to the parameters in the subreport. In the "Available fields" list select the main report parameter and click the arow to move it to the right list. Aelect the item in the right list and  the bottom left corner select the corresponding subreport parameter.  You need to do this for each subreport. When it is done Crystal will not ask you for subreport parameters , it will take the values from the main report
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 41793096
When you select the parameter from the subreport be sure to select the one you created not the one the report suggests.  The report will create one that starts with ?pm_

Use the drop down list to select the one you created in the report.

Another way to do this would be to delete the parameters from the subreport and just use the linking to create parameters in the subreport.
mlmcc
0
 

Author Closing Comment

by:daskas27
ID: 41794051
Thank you. I have awarded the points but can I ask one more question? The subreports use a whole page regardless of the amount of records returned. Is there a way to clean this up so the data shows directly under each other for each sub?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Central Management Console Crystal Reports - Data Refresh for Viewing 5 58
Not Exists 3 65
Parameter transfer to cristal report 3 68
Business Object Server 2 27
Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now