My situation in Q2 and old reportViewer:
Here I can create an instance of report on server and pass it to this view to render it on client.
While I'm waiting for documentation to come out, please help me how to do this in new html5 report viewer, and what is the best/recomended practice to render reports now?
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<
dynamic
>" %>
<%@ Import Namespace="System.Data" %>
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=7.1.13.802, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
<%@ Register Assembly="Telerik.Reporting, Version=7.1.13.802, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.Reporting" TagPrefix="telerik" %>
<!DOCTYPE html>
<
html
>
<
head
id
=
"Head1"
runat
=
"server"
>
<
title
></
title
>
<
style
type
=
"text/css"
>
html#html, body#body, form#form1, div#content
{
height: 100%;
}
</
style
>
</
head
>
<
body
>
<
script
runat
=
"server"
>
public override void VerifyRenderingInServerForm(Control control)
{
// to avoid the server form (<
form
runat
=
"server"
> requirement
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
//IMPORTANT PART: setting source to instance of report passed from controller
ReportViewer1.ReportSource = Model.Report;
}
</
script
>
<
form
id
=
"main"
method
=
"post"
action
=
""
>
<
telerik:ReportViewer
ID
=
"ReportViewer1"
Width
=
"100%"
Height
=
"600px"
runat
=
"server"
>
</
telerik:ReportViewer
>
</
form
>
</
body
>
</
html
>
Here I can create an instance of report on server and pass it to this view to render it on client.
While I'm waiting for documentation to come out, please help me how to do this in new html5 report viewer, and what is the best/recomended practice to render reports now?