That didn't work...
Main Topics
Browse All TopicsI have a Crystal Report 11 with 3 SubReports in a VB.Net program. Each subreport takes the exact same parameters. The main reports' parameters match the subreports parameters in every way. Each time I try to preview the report from the app...I get the following prompt. How can I eliminate it. I have provided my VB code as well as a screenshot.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
LearnedOne,
I owe you an apology. You are not totally wrong with your initial solution. When I perform a build on my VB.Net app and deploy it on my Development machine...it works like it's supposed to (No prompting). However, when I deploy the application to a Terminal Server...that's when the problems occur.
Ok,
I just had this idea.
Is it possible to remove the parameters from the main report and pass the values into the main report via a SelectionFormula coded in the VB app and then move these values into the subreport parameters?
If this is possible, can someone show me how to do it in the CR IDE?
Thanks,
I would think that it would be better to bind the report to a DataSet that is filled from the Stored Procedure--which is what I do. You can bind the report to an .xsd document that provides you fields, and then you can use Push techniques to set the datasource to the DataSet. I don't like having to use report parameters.
Well, it's probably an external file. In my VB.Net project, I have several Crystal Reports that have naming conventions like rptGroupSummary.rpt. The following code is a DLL only because it is called by an online program as well as a batch program. I actually create each report from within the Crystal Reports IDE.
I don't think you can run an application in debug mode on a Terminal Server. If you can I've never done it.
As far as having a problem with a line of code....the application isn't giving me any errors except after the prompting of the parameters. I enter the same 2 parameter values 3 different times...once for each subreport. After I've done that is when I get the error message (see screen shot). Anyway, the code I provided is how I create all my reports using Crystal Reports.
Ok,
Here's what I'm trying now. In my DLL code, I'm going to create a Dataset for each of the Stored Procedures. My problem is how do I reference this dynamic Dataset in my subreports? Here is my revised code. Also, I'm getting this message on one of my variable declarations and I don't know what it means. See Screenshot.
The learned one....I was wondering if you can to your knowledge use SetParameterValue on a subreport
as such...Report.Subreports.I
Is this not feasible? If not, I heard something about setting a field in the master, that would relate to the same field in the sub???
Business Accounts
Answer for Membership
by: TheLearnedOnePosted on 2008-07-16 at 13:48:53ID: 22019995
You need to set the ParameterValue for each Subreport:
Select allOpen in new window