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
Sai Ram
NA
237
116.1k
Crystal Reports
Oct 15 2011 11:32 AM
I generated Crystal Report using Parameters and I am listing the Code below...I am having Database Login Prompt Problems...Can I get the Solution for Database Login Programatically.....
private void Form1_Load(object sender, EventArgs e)
{
crystalReportViewer1.ReportSource = ReportPath;
CrystalDecisions.CrystalReports.Engine.ReportDocument objReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
objReport.Load (ReportPath);
ParameterField f1 = crystalReportViewer1.ParameterFieldInfo[0];
ParameterDiscreteValue v1 = new ParameterDiscreteValue();
v1.Value = Value to be passed;
f1.CurrentValues.Add(v1);
ParameterField f2 = crystalReportViewer1.ParameterFieldInfo[1];
ParameterDiscreteValue v2 = new ParameterDiscreteValue();
v2.Value = Value to be passed;
f2.CurrentValues.Add(v2);
}
Reply
Answers (
1
)
Picture Ediitng
Database Connection