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

Exception on export to PDF

4 Answers 140 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 20 Jan 2011, 12:16 PM
Hello!
When I try to export grid to pdf, on some page it throws the following exception:
System.SystemException: At least one of minimum, optimum, or maximum IPD must be specified on table.
  at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
  at Telerik.Web.Apoc.Fo.Flow.Table.SetIPD(Boolean bHasProportionalUnits, Int32 maxAllocIPD)
  at Telerik.Web.Apoc.Fo.Flow.Table.CalcFixedColumnWidths(Int32 maxAllocationWidth)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
  at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)

4 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 20 Jan 2011, 12:57 PM
Hello Andy,

Refer to the following help article for more information about how to avoid this error:
http://www.telerik.com/help/aspnet-ajax/grid-pdf-export.html (Exceptions section)

All the best,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Andy
Top achievements
Rank 1
answered on 20 Jan 2011, 01:51 PM
Thanx for the help, Pavlina!
I do set the width of nested table to pixel value, however I add nested table dynamically to the "static" (declared on aspx) grid and after call-back the width of detail tables seems to be dropped. So I believe that's the reason why export to pdf is not working.
I know that such "mixed mode" is not officially supported.. any chances it will be in the future?

Thanx once again!
Andy.
0
Pavlina
Telerik team
answered on 20 Jan 2011, 03:43 PM
Hi Andy,

I am afraid that currently there is no way RadGrid to support mixing declarative grid columns with grid columns added dynamically at runtime. I am sorry for the inconvenience caused.

Best wishes,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Andy
Top achievements
Rank 1
answered on 20 Jan 2011, 04:11 PM
Yes, I know that. In fact we are using mixed mode in our project, but keep experiencing different difficulties, especially when it comes to nested tables and self-heierarchy. That's not very convenient because if it was fully supported, that would allow to use master pages - the basic layout for the grid could be defined on the master page, and then columns could be added on content pages.
Tags
Grid
Asked by
Andy
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Andy
Top achievements
Rank 1
Share this question
or