
Enter Parameter Values => Why?
I dont understand why my application get this message.
I programming whit C#.net
The first time i get the report whitout this message (enter parameter values
"discrete value").
But in the standard control is the button refresh. If I click on this button
I get e Box whit the title:
Enter Parameter Values: My Questen is hier Why?
Why dont know my application my variable from befor?
Please thank for your help
Michael
Here my code...maybee my failure is in this code:
------------------------------------------------------------------------
private void crystalReportViewer1_Load(object sender, System.EventArgs e)
{
//Eigenschaft manuell auf true stellen
this.crystalReportViewer1.DisplayToolbar = true;
//Create an instance of the strongly-typed report object
crReportDocument = new BerichtOfferteNeu();
//Create a new instance of a discrete parameter object to set the
//first value for the parameter
crParameterDiscreteValue = new ParameterDiscreteValue();
crParameterDiscreteValue.Value = txtOffNummer.Text; //OffertenNummer
//Define the parameter field to pass the parameter values to
crParameterField = new ParameterField();
crParameterField.ParameterFieldName = "OffertenNummer";
//Pass the first value to the discrete parameter
crParameterField.CurrentValues.Add(crParameterDiscreteValue);
//Create an instance of the parameter fields collection, and
//pass the discrete parameter with the two discrete values to the
//collection of parameter fields
crParameterFields = new ParameterFields();
crParameterFields.Add(crParameterField);
//The collection of parameter fields must be set to the viewer
crystalReportViewer1.ParameterFieldInfo = crParameterFields;
//Set the viewer to the report object to be previewed
//This must be done after the parameter information has been set
this.crystalReportViewer1.ReportSource = crReportDocument;
this.crystalReportViewer1.Zoom(70);
Quote:
}
private void crystalReportViewer1_ReportRefresh(object source,
CrystalDecisions.Windows.Forms.ViewerEventArgs e)
{
Quote:
}