Click here to Skip to main content
15,887,398 members
Home / Discussions / C#
   

C#

 
GeneralRe: Architectural question (crisis) Pin
bjoernen30-Apr-04 11:51
bjoernen30-Apr-04 11:51 
GeneralRe: Architectural question (crisis) Pin
Jan Vercauteren30-Apr-04 13:07
Jan Vercauteren30-Apr-04 13:07 
GeneralStupid string to int question Pin
Anonymous29-Apr-04 20:53
Anonymous29-Apr-04 20:53 
GeneralRe: Stupid string to int question Pin
Anonymous29-Apr-04 21:05
Anonymous29-Apr-04 21:05 
GeneralRe: Stupid string to int question Pin
Heath Stewart30-Apr-04 3:29
protectorHeath Stewart30-Apr-04 3:29 
GeneralRe: Stupid string to int question Pin
medcon29-Apr-04 22:41
medcon29-Apr-04 22:41 
GeneralCrystal Report fields Pin
DougW4829-Apr-04 20:01
DougW4829-Apr-04 20:01 
GeneralRe: Crystal Report fields Pin
..Hubert..29-Apr-04 22:55
..Hubert..29-Apr-04 22:55 
parameter fields is exactly what you need.
Here is some howto (cut from visual studio help):

Parameter Fields Runtime Customization
You can support user input with parameters in Crystal reports. Such parameters can be used for a variety of purposes. For example:
Base a parameter on a database field and allow the user to specify values for that field to filter data in the report.
Apply conditional formatting to a report by using parameter fields.
Define sort order by using parameter fields.
The following example demonstrates how parameter field values can be set, through code, at runtime. It explains how to set two different parameters. The first is a multiple-value discrete parameter, and the second is a range value parameter.
To Modify Parameter Fields at Runtime
[C#]
// Declare variables needed to pass the parameters<br />
// to the viewer control.<br />
ParameterFields paramFields = new ParameterFields ();<br />
ParameterField paramField = new ParameterField ();<br />
ParameterDiscreteValue discreteVal = new ParameterDiscreteValue ();<br />
ParameterRangeValue rangeVal = new ParameterRangeValue ();<br />
<br />
// The first parameter is a discrete parameter with multiple values.<br />
<br />
// Set the name of the parameter field, this must match a <br />
// parameter in the report.<br />
paramField.ParameterFieldName = "Customer Name";<br />
<br />
// Set the first discrete value and pass it to the parameter.<br />
discreteVal.Value = "AIC Childrens";<br />
paramField.CurrentValues.Add (discreteVal);<br />
<br />
// Set the second discrete value and pass it to the parameter.<br />
// The discreteVal variable is set to new so the previous settings<br />
// will not be overwritten.<br />
discreteVal = new ParameterDiscreteValue ();<br />
discreteVal.Value = "Aruba Sport";<br />
paramField.CurrentValues.Add (discreteVal);<br />
<br />
// Add the parameter to the parameter fields collection.<br />
paramFields.Add (paramField);<br />
<br />
// The second parameter is a range value. The paramField variable<br />
// is set to new so the previous settings will not be overwritten.<br />
paramField = new ParameterField ();<br />
<br />
// Set the name of the parameter field, this must match a<br />
// parameter in the report.<br />
paramField.ParameterFieldName = "Customer ID";<br />
<br />
// Set the start and end values of the range and pass it to the <br />
// parameter.<br />
rangeVal.StartValue = 42;<br />
rangeVal.EndValue = 72;<br />
paramField.CurrentValues.Add (rangeVal);<br />
<br />
// Add the second parameter to the parameter fields collection.<br />
paramFields.Add (paramField);<br />
<br />
// Set the parameter fields collection into the viewer control.<br />
crystalReportViewer1.ParameterFieldInfo = paramFields;

GeneralRe: Crystal Report fields Pin
hassan azizi1-May-04 7:51
hassan azizi1-May-04 7:51 
GeneralWeb request from Windows Forms user control Pin
Shree29-Apr-04 17:32
Shree29-Apr-04 17:32 
GeneralRe: Web request from Windows Forms user control Pin
Heath Stewart30-Apr-04 3:28
protectorHeath Stewart30-Apr-04 3:28 
Generalip address Pin
kendao29-Apr-04 15:37
kendao29-Apr-04 15:37 
GeneralRe: ip address Pin
Corinna John29-Apr-04 22:31
Corinna John29-Apr-04 22:31 
GeneralTo handle list view column width change Pin
machocr29-Apr-04 14:09
machocr29-Apr-04 14:09 
GeneralRe: To handle list view column width change Pin
Heath Stewart29-Apr-04 14:30
protectorHeath Stewart29-Apr-04 14:30 
GeneralRe: To handle list view column width change Pin
machocr29-Apr-04 14:51
machocr29-Apr-04 14:51 
GeneralRe: To handle list view column width change Pin
machocr29-Apr-04 15:08
machocr29-Apr-04 15:08 
GeneralRe: To handle list view column width change Pin
Heath Stewart30-Apr-04 3:23
protectorHeath Stewart30-Apr-04 3:23 
GeneralRe: To handle list view column width change Pin
machocr30-Apr-04 4:58
machocr30-Apr-04 4:58 
GeneralRe: To handle list view column width change Pin
Heath Stewart30-Apr-04 5:18
protectorHeath Stewart30-Apr-04 5:18 
GeneralRe: To handle list view column width change Pin
machocr30-Apr-04 6:14
machocr30-Apr-04 6:14 
GeneralRe: To handle list view column width change Pin
Heath Stewart30-Apr-04 6:29
protectorHeath Stewart30-Apr-04 6:29 
GeneralRe: To handle list view column width change Pin
Heath Stewart30-Apr-04 5:39
protectorHeath Stewart30-Apr-04 5:39 
GeneralID3 algorithm Pin
Member 75113929-Apr-04 10:14
Member 75113929-Apr-04 10:14 
GeneralRe: ID3 algorithm Pin
Heath Stewart29-Apr-04 10:34
protectorHeath Stewart29-Apr-04 10:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.