TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vio
NA
14
1.8k
Validate Crystal report dataset is changed or not using c# c
Feb 8 2018 4:47 AM
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
Reply
Answers (
0
)
Using LINQPad write a short program Trying to Do this
differnce between .tostring and convert.tostring();