Crystal Reports Forum

Please read the following before Posting a message (Quick Links)
Integration of Reports with Java/JSP   Crystal Report Issues Related Files    Old Crystal Reports Forum
Chat Room

As on Date,1859 members have registered themselves to this forum. Please visit my new website Pooja M's Website to access Java/JSP code

New post
Summary/Detail
Search a post/forum
Get your own forum
Back to the message indexThread nr. 124912
 
Error in Crystal ReportMostafa_h, Aug 20 10:36
hi all ,
In Report Page , I suppressed on the sepecified field(e.g :"firstname") on Common Tab in Format Object .I checked CheckBox1 in Form1 for showing field("firstname")on the Table . in Form1.cs in btnShow_Click , I wrote this :
...
LoadData();
if(CheckBox1.Checked)
myCrystalReport1.ReportDefinition.Sections[1].ReportObjects["firstname1"].ObjectFormat.EnableSuppress = false;


private void LoadData()
{
sqlconn.Open();
da = new SqlDataAdapter(strQuery, sqlconn);
SqlCommandBuilder scb = new SqlCommandBuilder(da);
da.Fill(DS.TestReport);
crystalReport11.SetDataSource(DS);
crystalReportViewer1.ReportSource = crystalReport11;
sqlconn.Close();
}

It works for several times , but Sometimes , I have this Error :
A callback was made on a garbage collected delegate of type 'CrystalDecisions.ReportAppServer.DataSetConversion!CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter+CrdbAdoPlusDelegate::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.
and sometimeis with This Error :
Value does not fall within the expected range.
plz help me
Thanks

Back to the messages index



 

New post
Summary/Detail
Search a post/forum
Get your own forum