Solved

Crystal Reports 9 and Subreports

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

840 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