Mohita,
The example you gave doesnt show how the generated report is set to the report viewer. The example sets the datasource in the report and the report is called from the report viewer button click event. Unless I am missing somethign? I need an example of how to set the HTML5 viewer .report to an already generated active report.
I need the equivalent of below using the HTML5 viewer…… Thanks for you help.
Example
var arReport = new TestReport
{
DataSource = dv
};
ViewBag.ArReport = arReport;
return View("ViewReport", viewModel);
WebViewer.ascx
<script runat="server"> void Page_Load() { ARWebViewer.Report = ViewBag.ArReport; } </script> <div class="divReportViewer" style="overflow-x:auto; height:550px;" > <ActiveReportsWeb:WebViewer ID="ARWebViewer" runat="server" ViewerType="AcrobatReader" Width="100%" Height="500px" PdfExportOptions-CenterWindow="True" PdfExportOptions-Version="Pdf11"></ActiveReportsWeb:WebViewer> </div>