How can I look inside it...I am using try catch like that: but I didnt catch
anything...
try
{
ParameterFields paramFields=new ParameterFields ();
ParameterField paramField=new ParameterField ();
ParameterDiscre teValue discreteVal=new ParameterDiscre teValue ();
paramField.Para meterFieldName= "Tip";
discreteVal.Val ue =Session["Tip"].ToString ();
paramField.Curr entValues.Add (discreteVal);
paramFields.Add (paramField);
this.CrystalRep ortViewer2 .ParameterField Info =paramFields;
CrystalDecision s.Shared.TableL ogOnInfo myLogin=new TableLogOnInfo ();
report.Load (Server.MapPath ("Status.rpt")) ;
foreach(Crystal Decisions.Cryst alReports.Engin e.Table mytable in
report.Database .Tables )
{
myLogin=mytable .LogOnInfo ;
myLogin.Connect ionInfo .Password ="abc";
myLogin.Connect ionInfo .UserID ="sa";
mytable.ApplyLo gOnInfo (myLogin);
}
this.CrystalRep ortViewer2 .ReportSource =report;
}
catch(Exception ex)
{
}
"Jon Skeet [C# MVP]" <sk***@pobox.co m>, iletide sunu yazdi
news:MP******** *************** *@msnews.micros oft.com...
Selen <sk*****@yahoo. com> wrote: I am using asp.net c#...I am adding a field to cystal report but I get
error Exception of
type System.Exceptio n was thrown. How can I solve this error...When I
insert a field from another table I dont get error...
Whenever you get an exception, you should look at the message inside it
- it will almost always tell you what went wrong.
--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too