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
Maneesh A N
NA
179
108.5k
wrong preview
Sep 18 2014 7:12 AM
System.Windows.Forms.Form fp = System.Windows.Forms.Application.OpenForms["frmbalancesheet"];
DataSet ds = new DataSet();
SqlDataAdapter sda = new SqlDataAdapter("prcexpenseprint", Class1.con);
sda.SelectCommand.CommandType = CommandType.StoredProcedure;
sda.SelectCommand.Parameters.AddWithValue("@expmonth", ((frmbalancesheet)fp).cmbmonth.SelectedIndex.ToString());
sda.SelectCommand.Parameters.AddWithValue("@expyear", ((frmbalancesheet)fp).txtyear.Text);
sda.Fill(ds);
DataSet dss = new DataSet();
SqlDataAdapter sdaa = new SqlDataAdapter("prcincomeprint", Class1.con);
sdaa.SelectCommand.CommandType = CommandType.StoredProcedure;
sdaa.SelectCommand.Parameters.AddWithValue("@dbillmonth",((frmbalancesheet)fp).cmbmonth.SelectedIndex.ToString());
sdaa.SelectCommand.Parameters.AddWithValue("@dbillyear",((frmbalancesheet)fp).txtyear.Text);
sdaa.Fill(dss);
ReportDocument rd = new ReportDocument();
rd.Load("C:\\REPORTS\\crystalReport8.rpt");
DataSet ds3 = new DataSet();
ds3.Merge(ds);
ds3.Merge(dss);
rd.SetDataSource(ds3.Tables[0]);
crystalReportViewer8.ReportSource = rd;
not getting preview,but i got a message,you can provide a single value for this parameter.enter the value you want to include
@expmonth
@expyear
@dbillmonth
@dbillyear
Reply
Answers (
1
)
managing the image brightness and contrast at runtime
how to create c# search form