Click here to Skip to main content
15,915,513 members
Home / Discussions / C#
   

C#

 
AnswerRe: Closing Word Documents [modified] Pin
pnpfriend30-May-07 11:52
pnpfriend30-May-07 11:52 
GeneralRe: Closing Word Documents Pin
Copper2631-May-07 8:33
Copper2631-May-07 8:33 
AnswerRe: how can i remove the "pointer" of datagridview Pin
Not Active30-May-07 8:59
mentorNot Active30-May-07 8:59 
GeneralRe: how can i remove the "pointer" of datagridview Pin
FernandoMartin30-May-07 9:09
FernandoMartin30-May-07 9:09 
QuestionGet list of excel formular/functions for ToDay() from worksheet. [modified] Pin
pnpfriend30-May-07 8:17
pnpfriend30-May-07 8:17 
QuestionWebRequestGet Pin
TAREQ F ABUZUHRI30-May-07 7:55
TAREQ F ABUZUHRI30-May-07 7:55 
AnswerRe: WebRequestGet Pin
kubben30-May-07 8:57
kubben30-May-07 8:57 
QuestionProblem with passing parameter to report through form [modified] Pin
Lucky Hamad30-May-07 7:36
Lucky Hamad30-May-07 7:36 
Well i want to run a report for a specific record for which i have gotton help from code project but some part the that code gives Error.I am using Visualstudion.Net 2003 C#. the code is

//Instantiate variables
ReportDocument reportDocument = new ReportDocument();
ParameterField paramField = new ParameterField();
ParameterFields paramFields = new ParameterFields();
ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();

//Set instances for input parameter 1 - @vDepartment
paramField.Name = "@vDepartment";
//Below variable can be set to any data present in SalseData table, Department column
paramDiscreteValue.Value = "South";
paramField.CurrentValues.Add(paramDiscreteValue);
//Add the paramField to paramFields
paramFields.Add(paramField);
crystalReportViewer1.ParameterFieldInfo = paramFields;
reportDocument.Load(@"..\..\..\Reports\SalseReport.rpt");
//Load the report by setting the report source
crystalReportViewer1.ReportSource = reportDocument;


the bold instructions are the errors .Actually in VS2003 we don't have obj.Name() and obj.CurrentValues.Add() functions but obj.Set_ParameterName() and Set_ParameterCurrentValues() function. when i used these instead of these,it gave me error saying that function can not be called explicitly or invalid call access operator.
waiting for everyone's solution. thank you


-- modified at 12:46 Saturday 2nd June, 2007

By Lucky Hamad

QuestionHow to sort an array containing values of type DateTime? Pin
Affan Toor30-May-07 6:33
Affan Toor30-May-07 6:33 
AnswerRe: How to sort an array containing values of type DateTime? Pin
Tarakeshwar Reddy30-May-07 6:56
professionalTarakeshwar Reddy30-May-07 6:56 
AnswerRe: How to sort an array containing values of type DateTime? Pin
PIEBALDconsult30-May-07 7:33
mvePIEBALDconsult30-May-07 7:33 
AnswerRe: How to sort an array containing values of type DateTime? Pin
Luc Pattyn30-May-07 7:49
sitebuilderLuc Pattyn30-May-07 7:49 
GeneralRe: How to sort an array containing values of type DateTime? Pin
Martin#30-May-07 9:01
Martin#30-May-07 9:01 
GeneralRe: How to sort an array containing values of type DateTime? Pin
Luc Pattyn30-May-07 9:38
sitebuilderLuc Pattyn30-May-07 9:38 
GeneralRe: How to sort an array containing values of type DateTime? Pin
Affan Toor30-May-07 23:01
Affan Toor30-May-07 23:01 
QuestionReasons to use Data Access Pages or Access Forms in favour of C#? Pin
tec-goblin30-May-07 5:37
tec-goblin30-May-07 5:37 
AnswerRe: Reasons to use Data Access Pages or Access Forms in favour of C#? Pin
tec-goblin5-Jun-07 5:04
tec-goblin5-Jun-07 5:04 
QuestionHttpWebRequest Pin
TAREQ F ABUZUHRI30-May-07 5:11
TAREQ F ABUZUHRI30-May-07 5:11 
AnswerRe: HttpWebRequest Pin
kubben30-May-07 5:15
kubben30-May-07 5:15 
GeneralRe: HttpWebRequest Pin
TAREQ F ABUZUHRI30-May-07 5:30
TAREQ F ABUZUHRI30-May-07 5:30 
GeneralRe: HttpWebRequest Pin
kubben30-May-07 7:34
kubben30-May-07 7:34 
AnswerRe: HttpWebRequest Pin
TAREQ F ABUZUHRI30-May-07 5:21
TAREQ F ABUZUHRI30-May-07 5:21 
GeneralRe: HttpWebRequest Pin
TAREQ F ABUZUHRI30-May-07 5:26
TAREQ F ABUZUHRI30-May-07 5:26 
AnswerDon't crosspost Pin
leckey30-May-07 6:01
leckey30-May-07 6:01 
QuestionHow do I cast a generic list to a generic interface Pin
MBursill30-May-07 5:10
MBursill30-May-07 5:10 

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.