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
Ancy Raju
NA
20
25.4k
Bibding report to ReportViewe
Jun 20 2011 4:00 AM
protected void btnReport_Click(object sender, EventArgs e) {
int Edition_ID = int.Parse(ddlEdition.SelectedItem.Value);
int NPos_ID = int.Parse(ddlPosition.SelectedItem.Value);
int Lang_ID = int.Parse(ddlLanguage.SelectedItem.Value);
int NewsCategoryId = int.Parse(ddlType.SelectedItem.Value);
int NewsPaper_ID = int.Parse(ddlNewsPaper.SelectedItem.Value);
int TonalityID = int.Parse(ddlTonality.SelectedItem.Value);
DateTime News_dt = DateTime.Parse(txtStartDate.Text);
DateTime IssueDate = DateTime.Parse(txtEndDate.Text);
if (ddlCoverReprt.SelectedValue == "Report by Coverage Count") {
DataTable CoverageCount = new DataTable();
List<News> oNews = new List<News>();
NewsManager manNews = new NewsManager();
oNews = manNews.FetchCoverageCount(Edition_ID, NewsCategoryId, NewsPaper_ID, Lang_ID, TonalityID, NPos_ID, News_dt, IssueDate);
ReportViewer1.Visible = true;
ReportDataSource rds = new ReportDataSource("CoverCountPage");
ReportViewer1.Reset();
ReportViewer1.ProcessingMode = ProcessingMode.Local;
LocalReport rep = ReportViewer1.LocalReport;
rep.Refresh();
rep.ReportPath = "CoverageCountReport.rdlc";
rds.Name = "ReportingDataset_CoverageCount";
rds.Value = CoverageCount;
rep.DataSources.Add(rds);
On click of a button i have to generate a report.
this giving an error
A data source instance has not been supplied for the data source 'CoverageCount'.
what could be possibly wrong....have no idea....
Reply
Answers (
1
)
Memory need on a bitmap stream
openwith get filename