Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: C++ to CSharp [modified] Pin
OriginalGriff17-Feb-10 22:11
mveOriginalGriff17-Feb-10 22:11 
GeneralRe: C++ to CSharp Pin
Xmen Real 18-Feb-10 2:16
professional Xmen Real 18-Feb-10 2:16 
GeneralRe: C++ to CSharp Pin
OriginalGriff18-Feb-10 2:30
mveOriginalGriff18-Feb-10 2:30 
GeneralRe: C++ to CSharp Pin
Xmen Real 18-Feb-10 2:33
professional Xmen Real 18-Feb-10 2:33 
AnswerRe: C++ to CSharp Pin
Richard MacCutchan17-Feb-10 3:13
mveRichard MacCutchan17-Feb-10 3:13 
AnswerRe: C++ to CSharp Pin
Saksida Bojan17-Feb-10 3:26
Saksida Bojan17-Feb-10 3:26 
GeneralRe: C++ to CSharp Pin
Xmen Real 17-Feb-10 3:27
professional Xmen Real 17-Feb-10 3:27 
QuestionError Comes at showing the Crystal Report Pin
BalasubramanianK17-Feb-10 0:59
BalasubramanianK17-Feb-10 0:59 
Hi All,

I am using Asp.Net 2.0 with C#, Crystal Reports(VS 2005). I am trying to open a report by passing 4 parameters but it gives an error called "Object reference not set to an instance of an object.". While I debug, I did not get err at any line. It goes smooth but finally it gives an error. Can you guide me?. Pls find below my code

crvSTT.RefreshReport();
ReportDocument rptDoc = new ReportDocument();
rptDoc.Load(Server.MapPath("Reports/STTCertificateAnnual1.rpt"));

ParameterFields paramFields = new ParameterFields();

ParameterField pfYear = new ParameterField(); 
ParameterField pfBACode = new ParameterField();
ParameterField pfFromClientCode = new ParameterField();
ParameterField pfToClientCode = new ParameterField();

pfBACode.ParameterFieldName = "pBACode";
ParameterDiscreteValue pdvBACode;
pdvBACode = new ParameterDiscreteValue();
pdvBACode.Value = strUserId;
pfBACode.CurrentValues.Add(pdvBACode);
paramFields.Add(pfBACode);

pfFromClientCode.ParameterFieldName = "pFromClientCode";
ParameterDiscreteValue pdvFromClientCode;
pdvFromClientCode = new ParameterDiscreteValue();
pdvFromClientCode.Value = txtFromCC.Text;
pfFromClientCode.CurrentValues.Add(pdvFromClientCode);
paramFields.Add(pfFromClientCode);


pfToClientCode.ParameterFieldName = "pToClientCode";
ParameterDiscreteValue pdvToClientCode;
pdvToClientCode = new ParameterDiscreteValue();
pdvToClientCode.Value = txtToCC.Text;
pfToClientCode.CurrentValues.Add(pdvToClientCode);
paramFields.Add(pfToClientCode);


pfYear.ParameterFieldName = "pYear";
ParameterDiscreteValue pdvYear;
pdvYear = new ParameterDiscreteValue();
pdvYear.Value = "Current";
pfYear.CurrentValues.Add(pdvYear);
paramFields.Add(pfYear);                    

   
crvSTT.ParameterFieldInfo = paramFields;
crvSTT.ReportSource = rp.tDoc;
crvSTT.DataBind();   


Thanks in Adv.
Balasubramanian K.

AnswerRe: Error Comes at showing the Crystal Report Pin
Richard MacCutchan17-Feb-10 1:02
mveRichard MacCutchan17-Feb-10 1:02 
GeneralRe: Error Comes at showing the Crystal Report [modified] Pin
BalasubramanianK17-Feb-10 1:13
BalasubramanianK17-Feb-10 1:13 
GeneralRe: Error Comes at showing the Crystal Report Pin
Richard MacCutchan17-Feb-10 2:51
mveRichard MacCutchan17-Feb-10 2:51 
QuestionAccessing XML File on Web Pin
alexthecat200017-Feb-10 0:40
alexthecat200017-Feb-10 0:40 
AnswerRe: Accessing XML File on Web Pin
Michael Bookatz17-Feb-10 0:53
Michael Bookatz17-Feb-10 0:53 
GeneralRe: Accessing XML File on Web Pin
alexthecat200017-Feb-10 11:06
alexthecat200017-Feb-10 11:06 
Questionto pass memcod with query string in window.open() method Pin
Mayank Pathak, Chandigarh17-Feb-10 0:24
Mayank Pathak, Chandigarh17-Feb-10 0:24 
AnswerRe: to pass memcod with query string in window.open() method Pin
Calla17-Feb-10 0:26
Calla17-Feb-10 0:26 
AnswerRe: to pass memcod with query string in window.open() method Pin
OriginalGriff17-Feb-10 0:35
mveOriginalGriff17-Feb-10 0:35 
GeneralRe: to pass memcod with query string in window.open() method Pin
Mayank Pathak, Chandigarh17-Feb-10 1:04
Mayank Pathak, Chandigarh17-Feb-10 1:04 
GeneralRe: to pass memcod with query string in window.open() method Pin
OriginalGriff17-Feb-10 1:38
mveOriginalGriff17-Feb-10 1:38 
QuestionGridView + TextBox and Button Control [modified] Pin
It_tech17-Feb-10 0:15
It_tech17-Feb-10 0:15 
AnswerMessage Closed Pin
17-Feb-10 0:29
stancrm17-Feb-10 0:29 
GeneralRe: GridView + TextBox and Button Control Pin
It_tech17-Feb-10 0:40
It_tech17-Feb-10 0:40 
GeneralRe: GridView + TextBox and Button Control Pin
It_tech17-Feb-10 1:02
It_tech17-Feb-10 1:02 
GeneralRe: GridView + TextBox and Button Control Pin
It_tech17-Feb-10 5:47
It_tech17-Feb-10 5:47 
QuestionRegular expression Pin
salmonraju16-Feb-10 22:59
salmonraju16-Feb-10 22:59 

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.