This is a migrated thread and some comments may be shown as answers.

[Solved] 2009 Q2 Export PDF Error!!

1 Answer 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yunho
Top achievements
Rank 1
Yunho asked on 14 Jul 2009, 05:28 PM
I upgraded 2009 Q1 to 2009 Q2.

I got error below when I export to pdf from gridview.
I have no problem with 2009 Q1.

Thank you.

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.]
   System.Xml.XmlReader.CalcBufferSize(Stream input) +14
   System.Xml.XmlTextReaderImpl.InitStreamInput(Uri baseUri, String baseUriStr, Stream stream, Byte[] bytes, Int32 byteCount, Encoding encoding) +70
   System.Xml.XmlTextReaderImpl.InitStreamInput(Stream stream, Encoding encoding) +41
   System.Xml.XmlTextReaderImpl..ctor(String url, Stream input, XmlNameTable nt) +71
   System.Xml.XmlTextReader..ctor(Stream input, XmlNameTable nt) +46
   System.Xml.XmlDocument.Load(Stream inStream) +66
   Telerik.Web.UI.Grid.Export.TableViewExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +1604
   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) +8673113
   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) +148
   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

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 17 Jul 2009, 07:28 PM
Hello Yunho,

Could you please let us know how to reproduce the issue? Step-by-step instructions or runnable demo will surely help us provide a better answer/solution for you.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Yunho
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or