Solved

Crystal Subreport - Passing Parameters

Posted on 2008-06-10
4
581 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

15 Experts available now in Live!

Get 1:1 Help Now