Click here to Skip to main content
15,886,067 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to reach an object that dont have name Pin
Wjousts23-Sep-05 16:03
Wjousts23-Sep-05 16:03 
AnswerRe: How to reach an object that dont have name Pin
Mohamad Al Husseiny23-Sep-05 16:41
Mohamad Al Husseiny23-Sep-05 16:41 
AnswerRe: How to reach an object that dont have name Pin
mego_z2024-Sep-05 5:21
mego_z2024-Sep-05 5:21 
QuestionTime out exception? Pin
dgap23-Sep-05 13:37
dgap23-Sep-05 13:37 
QuestionTablet Ink and GDI+ Pin
HahnTech23-Sep-05 13:16
HahnTech23-Sep-05 13:16 
Questiondraw inside an abject Pin
Sasuko23-Sep-05 12:45
Sasuko23-Sep-05 12:45 
AnswerRe: draw inside an abject Pin
Mohamad Al Husseiny23-Sep-05 15:38
Mohamad Al Husseiny23-Sep-05 15:38 
Questioncrystal reports parameter Pin
Naveed Kamboh23-Sep-05 12:18
Naveed Kamboh23-Sep-05 12:18 
Unsure | :~ I am sorry but i am posting this again because I didn't get reply for my problem if any one can help me please.

I want to pass parameters to crystal reports but i dont know how i found example on microsoft site

// Declare variables needed to pass the parameters
// to the viewer control.
ParameterFields paramFields = new ParameterFields ();
ParameterField paramField = new ParameterField ();
ParameterDiscreteValue discreteVal = new ParameterDiscreteValue ();
ParameterRangeValue rangeVal = new ParameterRangeValue ();

// The first parameter is a discrete parameter with multiple values.

// Set the name of the parameter field, this must match a
// parameter in the report.
paramField.ParameterFieldName = "Customer Name";

// Set the first discrete value and pass it to the parameter.
discreteVal.Value = "AIC Childrens";
paramField.CurrentValues.Add (discreteVal);

// Set the second discrete value and pass it to the parameter.
// The discreteVal variable is set to new so the previous settings
// will not be overwritten.
discreteVal = new ParameterDiscreteValue ();
discreteVal.Value = "Aruba Sport";
paramField.CurrentValues.Add (discreteVal);

// Add the parameter to the parameter fields collection.
paramFields.Add (paramField);

// The second parameter is a range value. The paramField variable
// is set to new so the previous settings will not be overwritten.
paramField = new ParameterField ();

// Set the name of the parameter field, this must match a
// parameter in the report.
paramField.ParameterFieldName = "Customer ID";

// Set the start and end values of the range and pass it to the
// parameter.
rangeVal.StartValue = 42;
rangeVal.EndValue = 72;
paramField.CurrentValues.Add (rangeVal);

// Add the second parameter to the parameter fields collection.
paramFields.Add (paramField);

// Set the parameter fields collection into the viewer control.
crystalReportViewer1.ParameterFieldInfo = paramFields;

Problem is that when i write this code for my reports in c#
I am not finding

"paramField.ParameterFieldName"

in intellisence. I am seeing some other methods but they gives error. I am using V.S. 2003 and crystal report 9.0
Please can any one tell me why its happening
I would be obliged.


Naveed Kamboh
AnswerRe: crystal reports parameter Pin
Alex Korchemniy23-Sep-05 19:44
Alex Korchemniy23-Sep-05 19:44 
QuestionUse of java script in asp.net pages Pin
meanu23-Sep-05 12:10
meanu23-Sep-05 12:10 
AnswerRe: Use of java script in asp.net pages Pin
Mohamad Al Husseiny23-Sep-05 15:29
Mohamad Al Husseiny23-Sep-05 15:29 
QuestionC# Sucks! Pin
Stober23-Sep-05 11:26
Stober23-Sep-05 11:26 
AnswerRe: C# Sucks! Pin
Anonymous23-Sep-05 11:39
Anonymous23-Sep-05 11:39 
GeneralRe: C# Sucks! Pin
Stober23-Sep-05 11:46
Stober23-Sep-05 11:46 
GeneralRe: C# Sucks! Pin
Luis Alonso Ramos23-Sep-05 15:26
Luis Alonso Ramos23-Sep-05 15:26 
AnswerRe: C# Sucks! Pin
Mohamad Al Husseiny23-Sep-05 13:56
Mohamad Al Husseiny23-Sep-05 13:56 
QuestionWhat message is called when the X in the upper right of a dialog is closed Pin
Dan Neely23-Sep-05 10:04
Dan Neely23-Sep-05 10:04 
AnswerRe: What message is called when the X in the upper right of a dialog is closed Pin
Mohamad Al Husseiny23-Sep-05 12:52
Mohamad Al Husseiny23-Sep-05 12:52 
AnswerRe: What message is called when the X in the upper right of a dialog is closed Pin
mav.northwind23-Sep-05 19:18
mav.northwind23-Sep-05 19:18 
GeneralRe: What message is called when the X in the upper right of a dialog is closed Pin
Dan Neely26-Sep-05 3:13
Dan Neely26-Sep-05 3:13 
Questionmscorlib::Not enough storage is available to complete this operation. Pin
Kant23-Sep-05 8:15
Kant23-Sep-05 8:15 
AnswerRe: mscorlib::Not enough storage is available to complete this operation. Pin
Dave Kreskowiak23-Sep-05 9:14
mveDave Kreskowiak23-Sep-05 9:14 
GeneralRe: mscorlib::Not enough storage is available to complete this operation. Pin
Kant23-Sep-05 10:33
Kant23-Sep-05 10:33 
QuestionSharePoint Customization - Possible? Pin
stan2823-Sep-05 7:32
stan2823-Sep-05 7:32 
Questioncontextmenu Pin
PHDENG8123-Sep-05 7:29
PHDENG8123-Sep-05 7:29 

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.