ReportViewerForMvc/HtmlHelperExtensions.cs
/// <summary>
/// Returns an HTML iframe that renders an ASP.NET ReportViewer control.
/// </summary>
/// <param name="helper">The HTML helper instance that this method extends.</param>
/// <param name="reportViewer">The object containing the ReportViewer control properties.</param>
/// <param name="report">An object containing the LocalReport/ServerReport properties.</param>
/// <param name="parameters">Object that contains the parameters for a report.</param>
/// <param name="htmlAttributes">The object containing the HTML attributes of the iframe.</param>
/// <returns>An HTML iframe with the specified attributes that sets its heigh and width based on the content of the report.</returns>
Returns an HTML iframe that renders an ASP.NET ReportViewer control.
Returns an HTML iframe that renders an ASP . NET ReportViewer control .
public static HtmlString ReportViewer(this HtmlHelper helper, object reportViewer, object report, object parameters, object htmlAttributes)
        {
            ReportViewer reportViewerControl = ReportViewerForMvc.AnonymousReportViewer(reportViewer, report, parameters);
            return ReportViewerForMvc.GetIframe(reportViewerControl, htmlAttributes);
        }
public static HtmlString ReportViewer ( this HtmlHelper helper , object reportViewer , object report , object parameters , object htmlAttributes ) { ReportViewer reportViewerControl = ReportViewerForMvc . AnonymousReportViewer ( reportViewer , report , parameters ) ; return ReportViewerForMvc . GetIframe ( reportViewerControl , htmlAttributes ) ; }
Returns an HTML iframe that renders an ASP.NET ReportViewer control.
Returns an HTML iframe that renders an ASP . NET ReportViewer control .
An HTML iframe with the specified attributes that sets its heigh and width based on the content of the report.
An HTML iframe with the specified attributes that sets its heigh and width based on the content of the report .
HtmlHelper
this
reportViewer
object
The object containing the ReportViewer control properties.
The object containing the ReportViewer control properties .
report
object
An object containing the LocalReport/ServerReport properties.
An object containing the LocalReport / ServerReport properties .
parameters
object
Object that contains the parameters for a report.
Object that contains the parameters for a report .
htmlAttributes
object
The object containing the HTML attributes of the iframe.
The object containing the HTML attributes of the iframe .
helper
The HTML helper instance that this method extends.
The HTML helper instance that this method extends .