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));
        }
Beispiel #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));
        }