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();
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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);
        }
예제 #4
0
 public void BuildViewerFormFields(HtmlFormFieldBuilder html)
 {
     html.AddField(UriParameters.ReportType, (int)ReportLoaderType.LocalReportLoader);
     html.AddField(UriParameters.ReportPath, ReportPath);
 }