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
baskaran chellasamy
NA
114
149.9k
how to solve this error
Jan 4 2013 7:49 AM
Hi friends
the following is my code for crystal report
int rollno = Convert.ToInt32(textBox1.Text);
CrystalReport2 report = new CrystalReport2();
DataSet1 data = new DataSet1();
System.Data.SqlClient.SqlConnection sqlcon;
string config = System.Configuration.ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
sqlcon = new System.Data.SqlClient.SqlConnection(config);
System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand("sp_getstudentforsearchbyrollno", sqlcon);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@rollno",rollno);
System.Data.SqlClient.SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter(cmd);
da.Fill(data, "DataTable1");
report.SetDataSource(data);
crystalReportViewer1.ReportSource = report;
and the error is
Could not load file or assembly 'file:///C:\Program Files\
SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies.
The system cannot find the file specified.
and the error line is
report.setDataSource(data)
Reply
Answers (
1
)
One Binding Navigator with multiple binding source
roll no in crystal report is numeric