Wrox Programmer Forums
|
BOOK: Professional Crystal Reports for VS.NET
This is the forum to discuss the Wrox book Professional Crystal Reports for Visual Studio .NET by David McAmis; ISBN: 9780764544033
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Crystal Reports for VS.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 2nd, 2010, 10:35 AM
Registered User
 
Join Date: Sep 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default issue - 1 discrete value is updating all parameters

I have a from that contains a crystal report. This report contains 2 text boxes for user parameter input. The problem is, inputs in either text box affect both parameters, when they should affect 1 and not the other. I can't seem to understand what I'm doing wrong, since when I step through the code the discrete values are different.

Code:
private void button1_Click(object sender, EventArgs e)
        {
            SpotRateReport SRR = new SpotRateReport();
            
            ParameterValues myvals = new ParameterValues();
            ParameterDiscreteValue myDiscrete = new ParameterDiscreteValue();
            ParameterValues myvals1 = new ParameterValues();
            ParameterDiscreteValue myDiscrete1 = new ParameterDiscreteValue();

            myDiscrete.Value = double.Parse(AudBuyTxtBx.Text);
            myvals.Add(myDiscrete);
            SRR.DataDefinition.ParameterFields[0].ApplyCurrentValues(myvals);
           
            myDiscrete1.Value = double.Parse(AudSellTxtBx.Text);
            myvals1.Add(myDiscrete1);
            SRR.DataDefinition.ParameterFields[1].ApplyCurrentValues(myvals1);
 
            crystalReportViewer1.ReportSource = SRR;

            

        }





Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report Discrete Value k.manisha ASP.NET 1.0 and 1.1 Professional 0 February 28th, 2007 12:00 AM
Updating Datagrid From Dataset Issue hannahforinton C# 2 May 30th, 2006 12:19 PM
Parameters Dharam80 Access 3 August 19th, 2005 01:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.