Solved

Crystal Reports 9 and Subreports

Posted on 2016-09-09
3
89 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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. …
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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