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
sameer gadade
NA
61
55.4k
calling rdl report in asp page
Jun 19 2013 3:44 AM
hi
i am using vs 4.0
and i want to call rdl report in my aspx page from reporting server. can any one tell me how to get it .
i tried with following code but it gives me an error as
The request failed with HTTP status 401: Unauthorized.
here is my cs code
MyReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
MyReportViewer.ServerReport.ReportServerCredentials = new ReportServerNetworkCredentials();
MyReportViewer.ServerReport.ReportServerUrl = new Uri(@"server url");
MyReportViewer.ServerReport.ReportPath = "Daily Reports/Facility Log";
MyReportViewer.ShowParameterPrompts = false;
MyReportViewer.ShowPrintButton = true;
// if report requires parameter
Microsoft.Reporting.WebForms.ReportParameter[] reportParameterCollection = new Microsoft.Reporting.WebForms.ReportParameter[1];
reportParameterCollection[0] = new Microsoft.Reporting.WebForms.ReportParameter();
reportParameterCollection[0].Name = "INVOICEID";
reportParameterCollection[0].Values.Add("ABC011223");
MyReportViewer.ServerReport.SetParameters(reportParameterCollection);
MyReportViewer.ServerReport.Refresh();
can any one help me out?????
Reply
Answers (
1
)
Crystal Report Problem
Crystal report 2012 with Visual studio 2012....