@(Html.EJ().ReportViewer("reportViewer")
.ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Remote)
.ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/ReportAPI"))
.ReportPath("/SSRSSamples2/Territory Sales new")
.Parameters(param => { param.Name("InvoiceID").Labels(new List<string>() { "InvoiceID" })
.Values(new List<string>() { "10250" }).Add(); })) |
string userName = "test";
List<ReportParameter> parameters = new List<ReportParameter>();
if (!reportOption.ReportModel.IsDrillthroughReport)
{
parameters.Add(new ReportParameter() { Name = "UserName", Labels = new List<string>() { "User Name" }, Values = new List<string>() { userName } });
reportOption.ReportModel.Parameters = parameters;
} |
Hi
I have had a look at this and I believe that I do not have any hidden parameters attached to my report.
I have supplied the RDL file for you to look at.
Thanks
Paul
Query |
Response |
Thanks for your response, however I am using a Microsoft SQL report server and not a syncfusion report server, which is what your response suggests.
Is there a method similar to this that will work for a Microsoft SQL report server?
|
Sorry for the inconvenience.
Please ignore our updates on December 24, 2018 and December 31, 2018. Since we have mistakenly responded based on Syncfusion Report Server instead of dealing with SSRS server as per your usage.
|
What I am trying to do is to view a report within MVC to prevent users from being able to perform certain actions which the Syncfusion report viewer is able to supply me with the ability to restrict user actions. The Reports themselves use the windows login of the users to determine what they can see within their report.
My Question is, is there a way of using windows authentication to connect to the server when setting up the ServerCredentials in the API. Currently I have a generic user to access this server, however this means that the report can only view the information against the generic user.
|
Actually we don’t have option to validate/use the windows authentication to connect to SSRS server. We will just connect to SSRS server based on your credentials shared only to get the report.
Anyhow, please share some additional details how you are wishing to authenticate the windows credentials and restrict the report information based on generic user so that we can share you possibilities and suggestions based on that. |