Hi,
I have MVC4 application with a partial view that contains ReportViewer control. When I viewed a page on IPad2 (iOS 6.1) the report content did not render. Report viewer showed toolbar with correct page numbers and all buttons, but the styling was lost. When I tried to export the report to PDF (worked just fine) or tried to print (worked too), and then when I used back button to return back to the report page, I was getting this error:
NullReferenceException
Object reference not set to an instance of an object. at Telerik.ReportViewer.WebForms.ViewerState.get_CurrentPage() at Telerik.ReportViewer.WebForms.ReportPageOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext) at Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride() at Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
https://***/Telerik.ReportViewer.axd?instanceID=86efca68bccf4a05b646716ff2110e00&optype=Report&PageIndex=0&RenderID=8ce444b8b34a41ecbd219ae649ac1674&RenderingFormat=HTML
Here is the content of the aspx page:
The same page worked fine on my PC using any browser. The report content is displayed and control's formatting was kept.
Thanks for your help.
I have MVC4 application with a partial view that contains ReportViewer control. When I viewed a page on IPad2 (iOS 6.1) the report content did not render. Report viewer showed toolbar with correct page numbers and all buttons, but the styling was lost. When I tried to export the report to PDF (worked just fine) or tried to print (worked too), and then when I used back button to return back to the report page, I was getting this error:
NullReferenceException
Object reference not set to an instance of an object. at Telerik.ReportViewer.WebForms.ViewerState.get_CurrentPage() at Telerik.ReportViewer.WebForms.ReportPageOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext) at Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride() at Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
https://***/Telerik.ReportViewer.axd?instanceID=86efca68bccf4a05b646716ff2110e00&optype=Report&PageIndex=0&RenderID=8ce444b8b34a41ecbd219ae649ac1674&RenderingFormat=HTML
Here is the content of the aspx page:
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<
Telerik.Reporting.ReportSource
>" %>
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=6.2.13.110, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
<%@ Register Assembly="Telerik.Reporting, Version=6.2.13.110, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.Reporting" TagPrefix="telerik" %>
<!DOCTYPE html>
<
html
>
<
head
>
<%--<
link
rel
=
"stylesheet"
type
=
"text/css"
href
=
"/Telerik.ReportViewer.axd?optype=Resource&version=6.2.13.110&name=Skins.Metro.ReportViewer.css"
>--%>
</
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);
EReportViewer.ReportSource = Model;
}
</
script
>
<
form
id
=
"main"
method
=
"post"
action
=
""
>
<
div
id
=
"repcontent"
>
<
telerik:ReportViewer
ID
=
"EReportViewer"
Width
=
"100%"
Height
=
"750"
runat
=
"server"
Font-Names
=
"Segoe UI"
Font-Size
=
"Small"
ShowHistoryButtons
=
"false"
ZoomMode
=
"FullPage"
DocumentMapVisible
=
"false"
ParametersAreaVisible
=
"false"
ShowParametersButton
=
"false"
ShowRefreshButton
=
"false"
ProgressText
=
"Generating report"
ViewMode
=
"PrintPreview"
EnableViewState
=
"false"
>
</
telerik:ReportViewer
>
</
div
>
</
form
>
</
body
>
</
html
>
The same page worked fine on my PC using any browser. The report content is displayed and control's formatting was kept.
Thanks for your help.