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
shiva shanth
NA
15
1.3k
Sending Parameters to crystal reports
Apr 29 2013 2:57 AM
My Code Fallows like this.
ReportDocument cryRpt = new ReportDocument();
ParameterField paramField = new ParameterField();
ParameterDiscreteValue dis = new ParameterDiscreteValue();
this.WindowState = FormWindowState.Maximized;
conn.ConnectionString = connectionstring.get_string(connectionstring.GetsqlName());
balreport bs = new balreport();
BalDatasetTableAdapters.tbl_Balence_Sheet_1TableAdapter ta = new Reports.BalDatasetTableAdapters.tbl_Balence_Sheet_1TableAdapter();
BalDataset.tbl_Balence_Sheet_1DataTable table = ta.GetData();
// bs.SetParameterValue("@Socname", socname);
// bs.ParameterFields.Add(paramField);
paramField.ParameterFieldName = "@Socname";
dis.Value = socname;
paramField.CurrentValues.Add(dis);
//bs.SetParameterValue("@From_date", fromdate);
//bs.SetParameterValue("@To_date", todate);
bs.SetDataSource(table.DefaultView);
crystalReportViewer1.ReportSource = bs;
crystalReportViewer1.Refresh();
Thanks in Advance.....
Reply
Answers (
0
)
Adding editable rows dynamically to listview (c# windows for
textwriter