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
selvi subramanian
NA
799
574.5k
there is no error but it never show the report
Jul 7 2014 6:16 AM
my source is
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="True" DisplayPage="False" ReportSourceID="CrystalReportSource2"
Width="500px" BestFitPage="False" Height="800px" />
<CR:CrystalReportSource ID="CrystalReportSource2" runat="server">
<Report FileName="Cashvoucher.rpt">
</Report>
</CR:CrystalReportSource>
my code is
ReportDocument reportdocument = new ReportDocument();
string iid = Request.QueryString["id"].ToString();
ParameterFields paramFields = new ParameterFields();
ParameterField paramField = new ParameterField();
ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();
paramField.Name = "id";
paramDiscreteValue.Value = iid;
paramField.CurrentValues.Add(paramDiscreteValue);
paramFields.Add(paramField);
CrystalReportViewer1.ParameterFieldInfo = paramFields;
reportdocument.Load(Server.MapPath("Cashvoucher.rpt"));
reportdocument.SetParameterValue("id", iid);
// string str = "select id,Name,Section,Details,advance from salary where id='" + iid + "'";
string str = "select Name,daysinmonth,presentdays from salary where id='" + iid + "'";
DataSet ds = mvl.GETDS(str);
reportdocument.SetDataSource(ds.Tables[0]);
CrystalReportViewer1.ReportSource = reportdocument;
//CrystalReportViewer1.RefreshReport();
}
Reply
Answers (
2
)
Just don't repeat the same record please!
How to adjust the size of the crosstab at runtime in crystal