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 ();
ParameterDiscreteValue discreteVal=new ParameterDiscreteValue ();
paramField.ParameterFieldName="Tip";
discreteVal.Value =Session["Tip"].ToString ();
paramField.CurrentValues.Add (discreteVal);
paramFields.Add (paramField);
this.CrystalReportViewer2 .ParameterFieldInfo =paramFields;
CrystalDecisions.Shared.TableLogOnInfo myLogin=new TableLogOnInfo ();
report.Load (Server.MapPath ("Status.rpt"));
foreach(CrystalDecisions.CrystalReports.Engine.Tab le mytable in
report.Database .Tables )
{
myLogin=mytable.LogOnInfo ;
myLogin.ConnectionInfo .Password ="abc";
myLogin.ConnectionInfo .UserID ="sa";
mytable.ApplyLogOnInfo (myLogin);
}
this.CrystalReportViewer2 .ReportSource =report;
}
catch(Exception ex)
{
}
"Jon Skeet [C# MVP]" <sk***@pobox.com>, iletide sunu yazdi
news:MP************************@msnews.microsoft.c om...
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.Exception 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.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too