");
+ }
+
+ return sb.ToString();
+ }
}
}
diff --git a/AlanJuden.MvcReportViewer.NetCore/ReportController.cs b/AlanJuden.MvcReportViewer.NetCore/ReportController.cs
index c7ac3e7..7fda298 100644
--- a/AlanJuden.MvcReportViewer.NetCore/ReportController.cs
+++ b/AlanJuden.MvcReportViewer.NetCore/ReportController.cs
@@ -145,6 +145,15 @@ public JsonResult FindStringInReport(string reportPath, string searchText, int?
return Json(ReportServiceHelpers.FindStringInReport(model, searchText, page).ToInt32());
}
+ public JsonResult ReloadParameters(string reportPath)
+ {
+ var model = this.GetReportViewerModel(Request);
+ model.ViewMode = ReportViewModes.View;
+ model.ReportPath = reportPath;
+
+ return Json(AlanJuden.MvcReportViewer.CoreHtmlHelpers.ParametersToHtmlString(null, model));
+ }
+
public ActionResult PrintReport(string reportPath)
{
var model = this.GetReportViewerModel(Request);
diff --git a/AlanJuden.MvcReportViewer.NetCore/ReportExportResult.cs b/AlanJuden.MvcReportViewer.NetCore/ReportExportResult.cs
index 1e3e1fb..82d92bf 100644
--- a/AlanJuden.MvcReportViewer.NetCore/ReportExportResult.cs
+++ b/AlanJuden.MvcReportViewer.NetCore/ReportExportResult.cs
@@ -34,6 +34,7 @@ internal void SetParameters(ReportService.ReportParameter[] definedReportParamet
{
var reportParameter = new ReportParameterInfo();
reportParameter.AllowBlank = definedReportParameter.AllowBlank;
+ reportParameter.Dependencies = definedReportParameter.Dependencies;
reportParameter.MultiValue = definedReportParameter.MultiValue;
reportParameter.Name = definedReportParameter.Name;
reportParameter.Prompt = definedReportParameter.Prompt;
diff --git a/AlanJuden.MvcReportViewer.NetCore/ReportParameterInfo.cs b/AlanJuden.MvcReportViewer.NetCore/ReportParameterInfo.cs
index 0bdd9d9..7dd30e4 100644
--- a/AlanJuden.MvcReportViewer.NetCore/ReportParameterInfo.cs
+++ b/AlanJuden.MvcReportViewer.NetCore/ReportParameterInfo.cs
@@ -15,7 +15,8 @@ public class ReportParameterInfo
public List