The report parameter 'ReportParameter1' is read-only and cannot be modified. (rsReadOnlyReportParameter)
up vote
0
down vote
favorite
I have a web page where there are anchor tags for report names. On click of report name (anchor tag), I have ajax call which passes report URL to the backend method. In that method, I am providing credentials for accessing the report and showing report as a partial view. Below is the code:
public ActionResult Report(string rptPath)
{
ReportViewer rptViewer = new ReportViewer();
rptViewer.ProcessingMode = ProcessingMode.Remote;
rptViewer.SizeToReportContent = true;
rptViewer.ZoomMode = ZoomMode.PageWidth;
rptViewer.Width = Unit.Percentage(100);
rptViewer.Height = Unit.Percentage(1000);
rptViewer.AsyncRendering = true;
rptViewer.ServerReport.ReportServerUrl = new Uri(xxxx);
rptViewer.ServerReport.ReportPath = rptPath;
IReportServerCredentials irsc = new CustomReportCredentials(uname, pword, domain);
rptViewer.ServerReport.ReportServerCredentials = irsc;
ViewBag.ReportViewer = rptViewer;
return PartialView("Report");
}
I am getting The report parameter 'ReportParameter1' is read-only and cannot be modified. (rsReadOnlyReportParameter)
error. This is an internal parameter having a default value and I don't want to change it to Visible or Hidden.
Is there any option to solve this issue using the c# code?
reporting-services reportviewer
add a comment |
up vote
0
down vote
favorite
I have a web page where there are anchor tags for report names. On click of report name (anchor tag), I have ajax call which passes report URL to the backend method. In that method, I am providing credentials for accessing the report and showing report as a partial view. Below is the code:
public ActionResult Report(string rptPath)
{
ReportViewer rptViewer = new ReportViewer();
rptViewer.ProcessingMode = ProcessingMode.Remote;
rptViewer.SizeToReportContent = true;
rptViewer.ZoomMode = ZoomMode.PageWidth;
rptViewer.Width = Unit.Percentage(100);
rptViewer.Height = Unit.Percentage(1000);
rptViewer.AsyncRendering = true;
rptViewer.ServerReport.ReportServerUrl = new Uri(xxxx);
rptViewer.ServerReport.ReportPath = rptPath;
IReportServerCredentials irsc = new CustomReportCredentials(uname, pword, domain);
rptViewer.ServerReport.ReportServerCredentials = irsc;
ViewBag.ReportViewer = rptViewer;
return PartialView("Report");
}
I am getting The report parameter 'ReportParameter1' is read-only and cannot be modified. (rsReadOnlyReportParameter)
error. This is an internal parameter having a default value and I don't want to change it to Visible or Hidden.
Is there any option to solve this issue using the c# code?
reporting-services reportviewer
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a web page where there are anchor tags for report names. On click of report name (anchor tag), I have ajax call which passes report URL to the backend method. In that method, I am providing credentials for accessing the report and showing report as a partial view. Below is the code:
public ActionResult Report(string rptPath)
{
ReportViewer rptViewer = new ReportViewer();
rptViewer.ProcessingMode = ProcessingMode.Remote;
rptViewer.SizeToReportContent = true;
rptViewer.ZoomMode = ZoomMode.PageWidth;
rptViewer.Width = Unit.Percentage(100);
rptViewer.Height = Unit.Percentage(1000);
rptViewer.AsyncRendering = true;
rptViewer.ServerReport.ReportServerUrl = new Uri(xxxx);
rptViewer.ServerReport.ReportPath = rptPath;
IReportServerCredentials irsc = new CustomReportCredentials(uname, pword, domain);
rptViewer.ServerReport.ReportServerCredentials = irsc;
ViewBag.ReportViewer = rptViewer;
return PartialView("Report");
}
I am getting The report parameter 'ReportParameter1' is read-only and cannot be modified. (rsReadOnlyReportParameter)
error. This is an internal parameter having a default value and I don't want to change it to Visible or Hidden.
Is there any option to solve this issue using the c# code?
reporting-services reportviewer
I have a web page where there are anchor tags for report names. On click of report name (anchor tag), I have ajax call which passes report URL to the backend method. In that method, I am providing credentials for accessing the report and showing report as a partial view. Below is the code:
public ActionResult Report(string rptPath)
{
ReportViewer rptViewer = new ReportViewer();
rptViewer.ProcessingMode = ProcessingMode.Remote;
rptViewer.SizeToReportContent = true;
rptViewer.ZoomMode = ZoomMode.PageWidth;
rptViewer.Width = Unit.Percentage(100);
rptViewer.Height = Unit.Percentage(1000);
rptViewer.AsyncRendering = true;
rptViewer.ServerReport.ReportServerUrl = new Uri(xxxx);
rptViewer.ServerReport.ReportPath = rptPath;
IReportServerCredentials irsc = new CustomReportCredentials(uname, pword, domain);
rptViewer.ServerReport.ReportServerCredentials = irsc;
ViewBag.ReportViewer = rptViewer;
return PartialView("Report");
}
I am getting The report parameter 'ReportParameter1' is read-only and cannot be modified. (rsReadOnlyReportParameter)
error. This is an internal parameter having a default value and I don't want to change it to Visible or Hidden.
Is there any option to solve this issue using the c# code?
reporting-services reportviewer
reporting-services reportviewer
asked 17 mins ago
V.Mulik
85
85
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53204468%2fthe-report-parameter-reportparameter1-is-read-only-and-cannot-be-modified-rs%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password