尝试从 C# 代码创建 SSRS 快照。它工作正常,除非报告中的参数是多值参数。多值字段应该如何设置?
parameters[0] = new ReportParameter();
parameters[0].Name = "countryCodeList";
parameters[0].DefaultValues = new string[] { "DK", "FI", "GB", "NO", "SE" }; // ???
parameters[1] = new ReportParameter();
parameters[1].Name = "fromDebitDate";
parameters[1].DefaultValues = new string[] { FormatDateTimeParamter(fromDebitDate) };
parameters[0].MultiValue = true; // ???
ReportingService.SetReportParameters(report.Path, parameters);
return ReportingService.CreateReportHistorySnapshot(report.Path, out warnings);