public void SetReportParameters(NameValueCollection userSpecifiedValues) { ParameterInfoCollection parameterInfoCollection = this.m_executionSession.ExecutionInfo.ReportParameters; if (parameterInfoCollection == null) { ControlSnapshot controlSnapshot = default(ControlSnapshot); PublishingResult compiledReport = this.GetCompiledReport(this.m_itemContext, false, out controlSnapshot); parameterInfoCollection = compiledReport.Parameters; } else if (userSpecifiedValues == null) { return; } ParameterInfoCollection parameterInfoCollection2; if (userSpecifiedValues != null) { ParameterInfoCollection newParameters = ParameterInfoCollection.DecodeFromNameValueCollectionAndUserCulture(userSpecifiedValues); parameterInfoCollection2 = ParameterInfoCollection.Combine(parameterInfoCollection, newParameters, true, false, false, false, Localization.ClientPrimaryCulture); } else { parameterInfoCollection2 = parameterInfoCollection; } ParameterInfoCollection parameterInfoCollection3 = new ParameterInfoCollection(); parameterInfoCollection2.CopyTo(parameterInfoCollection3); this.ProcessAndStoreReportParameters(parameterInfoCollection3); }
public void SetReportParameters(NameValueCollection userSpecifiedValues) { ParameterInfoCollection parameterInfoCollection = m_executionSession.ExecutionInfo.ReportParameters; if (parameterInfoCollection == null) { parameterInfoCollection = GetCompiledReport(m_itemContext, rebuild: false, out ControlSnapshot _).Parameters; } else if (userSpecifiedValues == null) { return; } ParameterInfoCollection parameterInfoCollection2; if (userSpecifiedValues != null) { ParameterInfoCollection newParameters = ParameterInfoCollection.DecodeFromNameValueCollectionAndUserCulture(userSpecifiedValues); parameterInfoCollection2 = ParameterInfoCollection.Combine(parameterInfoCollection, newParameters, checkReadOnly: true, ignoreNewQueryParams: false, isParameterDefinitionUpdate: false, isSharedDataSetParameter: false, Localization.ClientPrimaryCulture); } else { parameterInfoCollection2 = parameterInfoCollection; } ParameterInfoCollection parameterInfoCollection3 = new ParameterInfoCollection(); parameterInfoCollection2.CopyTo(parameterInfoCollection3); ProcessAndStoreReportParameters(parameterInfoCollection3); }