Solved

Crystal Subreport - Passing Parameters

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

707 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