internal static HtmlString GetIframe(ReportViewer reportViewer, object htmlAttributes)
        {
            if (reportViewer == null)
            {
                throw new ArgumentNullException("reportViewer", "Value cannot be null.");
            }

            ReportViewerForMvc.ReportViewer = reportViewer;
            return(IframeBuilder.Iframe(htmlAttributes));
        }
Esempio n. 2
0
        internal static HtmlString GetIframe(ReportViewer reportViewer, object htmlAttributes)
        {
            if (reportViewer == null)
            {
                throw new ArgumentNullException("reportViewer", "Value cannot be null.");
            }

            var dynamicID = (string)htmlAttributes.GetType().GetProperty("DynamicID").GetValue(htmlAttributes, null);

            ReportViewer(dynamicID, reportViewer);
            return(IframeBuilder.Iframe(htmlAttributes));
        }