private string BuildIframeFormFields() { var html = new HtmlFormFieldBuilder(_encryptParameters); html.AddField(UriParameters.ControlId, ControlId); html.AddField(UriParameters.ProcessingMode, _processingMode); _reportLoader.BuildViewerFormFields(html); var serializedSettings = _settingsManager.Serialize(_controlSettings); foreach (var setting in serializedSettings) { html.AddField(setting.Key, setting.Value); } if (_reportParameters != null) { foreach (var parameter in _reportParameters) { if (parameter.Value == null) { continue; } var value = ConvertValueToString(parameter.Value); html.AddField(parameter.Key, value); } } return html.ToString(); }
public virtual void BuildViewerFormFields(HtmlFormFieldBuilder html) { html.AddField(UriParameters.ReportServerUrl, ReportServerUrl); if (!string.IsNullOrEmpty(Username) || !string.IsNullOrEmpty(Password)) { html.AddField(UriParameters.Username, Username); html.AddField(UriParameters.Password, Password); } }
public void BuildViewerFormFields(HtmlFormFieldBuilder html) { html.AddField(UriParameters.ReportType, (int)ReportLoaderType.LocalReportAssemblyResourceLoader); html.AddField(UriParameters.ReportAssemblyName, AssemblyName); html.AddField(UriParameters.ReportResourceName, MainReportResourceName); if (SubReportResourceNames == null) return; foreach (var subReport in SubReportResourceNames) html.AddField(UriParameters.SubReportResourceNames, subReport.ReportName + ":" + subReport.ResourceName); }
public void BuildViewerFormFields(HtmlFormFieldBuilder html) { html.AddField(UriParameters.ReportType, (int)ReportLoaderType.LocalReportLoader); html.AddField(UriParameters.ReportPath, ReportPath); }