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
Solved

Crystal Subreport - Passing Parameters

Posted on 2008-06-10
4
586 Views
Last Modified: 2011-10-19
Good Day
Experts:

I am having a bit of trouble with a Crystal Report that contains a Subreport.  That Subreport gets it's data from a Stored Procedure which takes a parameter supplied by the main report.  It is apparent that I need additional coding in my VB.net application as the report works fine from the Crystal Editor.  I have attached my code in a file that shows what I am doing so far.  I am changing the connection information at the Subreport level...so I think I am close here.  Just not sure how to pass the parameter that the S/P requires.

I have tried searching the net for assistance but have not found a conclusive solution.  

Thanks,
jimbo00000
SubReport.doc
0
Comment
Question by:Jimbo99999
  • 2
4 Comments
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 100 total points
ID: 21752536
I believe the code you are using to pass parameters to the main report should work but you need to do it with the subreport object.

mlmcc
0
 

Author Comment

by:Jimbo99999
ID: 21752827
We found the following ServicePack --> CrystalReportForVisualStudio2005_SP1

One of the items that was a fix involved the ParameterFieldDefinition.IsLinked property which returns a boolean indicating whether the parameter field is the link between a SubReport and the Main report.  This property was always returning false.

My Report is now working as designed.

Thanks,
jimbo99999

0
 
LVL 1

Assisted Solution

by:nismoto
nismoto earned 100 total points
ID: 21752920
Have you tried to set the sub-report parameters in the main report? Open the report in the editor (VS or Crystal), right-click on the sub-report and select "Change Subreport Links..." (see screenshot).
screenshot.png
0
 

Accepted Solution

by:
Jimbo99999 earned 0 total points
ID: 21824357
Thanks for your replies.  I had to apply a hotfix with a couple new dll's.  

jimbo99999
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

829 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