Hii
i have added column reorder and export to excel and pdf.
when i dont reorder any columns , the export works fine
but when i re order the column and try to export its failing
anybody know why?
<ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True" >
<Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="false"
EnableRealTimeResize="false" AllowResizeToFit="true" />
</ClientSettings>
<ExportSettings FileName = "Scheduled Report Metrics" IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData = "true">
<pdf PageWidth="297mm" PageHeight="210mm" PageTitle = "Scheduled Report Metrics " />
</ExportSettings>
Server Error in '/Web' Application.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Stack Trace:
i have added column reorder and export to excel and pdf.
when i dont reorder any columns , the export works fine
but when i re order the column and try to export its failing
anybody know why?
<ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True" >
<Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="false"
EnableRealTimeResize="false" AllowResizeToFit="true" />
</ClientSettings>
<ExportSettings FileName = "Scheduled Report Metrics" IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData = "true">
<pdf PageWidth="297mm" PageHeight="210mm" PageTitle = "Scheduled Report Metrics " />
</ExportSettings>
Server Error in '/Web' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] Telerik.Web.UI.Grid.Export.TableViewExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +347 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +8689033 System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32 System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40 Telerik.Web.UI.Grid.Export.TableViewExporter.PdfExportRenderPage(HtmlTextWriter nullWriter, Control page) +145 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19 System.Web.UI.Page.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266 |