I'm using crystal report, when I changed my data set i want to validate the data set is changed or not. For example I can manually right clicks the report's dataset then I can click "Verify Database". It will say "The databse is up to date". Same action I want to perform using c# code.
and I using the below code
// Apply the connection information to the report tables
CrystalDecisions.CrystalReports.Engine.Tables tblsRpt = rptDoc.Database.Tables;
for(int i = 0; i < tblsTRpt.Count; i++)
{
CrystalDecisions.CrystalReports.Engine.Table tblRpt = tblsRpt[i];
CrystalDecisions.Shared.TableLogOnInfo infoTbl = tblRpt.LogOnInfo;
infoTbl.ConnectionInfo = conRpt;
tblRpt.ApplyLogOnInfo(infoTbl);
}
but it will take more time. I don't want loop through the dataset because of I've lot the crystal reports and sub report also.
So Please suggest If there is any way to validate the data set using c# code