Solved

Crystal Reports 9 and Subreports

Posted on 2016-09-09
3
36 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

21 Experts available now in Live!

Get 1:1 Help Now