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

Error while Exporting Telerik Grid to PDF?

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sreeni
Top achievements
Rank 1
Sreeni asked on 24 Feb 2011, 01:48 PM
Hi Techies,

When i am trying to export my TelerikGrid to PDF, I am getting the following error, But its generating EXCEL report with out any problem.

System.NullReferenceException: Object reference not set to an instance of an object.
  at Telerik.Web.Apoc.Render.Pdf.Fonts.Type2CIDSubsetFont.get_WArray()
  at Telerik.Web.Apoc.Pdf.PdfFontCreator.CreateCIDFont(String pdfFontID, Font font, CIDFont cidFont)
  at Telerik.Web.Apoc.Pdf.PdfFontCreator.MakeFont(String pdfFontID, Font font)
  at Telerik.Web.Apoc.Pdf.FontSetup.AddToResources(PdfFontCreator fontCreator, PdfResources resources)
  at Telerik.Web.Apoc.Render.Pdf.PdfRenderer.StopRenderer()
  at Telerik.Web.Apoc.StreamRenderer.StopRenderer()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)


Can any one please help me on this?

Thanks
Sreeni Pavalla

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 24 Feb 2011, 10:36 PM
Hello Sreeni,

I need to examine your code in order to be able to provide a feasible suggestion. Judging by the stack trace, I suppose that there is something wrong with your font settings.

Best regards,
Daniel
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Sreeni
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or