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

[Solved] Export to PDF with heirarchial Grids

3 Answers 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mallikharjun Mulagundla
Top achievements
Rank 1
Mallikharjun Mulagundla asked on 12 Dec 2009, 07:29 AM
Hi,

I am having Rad Grid, which has a child grid inside, Click on particular row in the parent Grid, I am displaying child Grid. I want to Export the entire Grid with expanded child grid to PDF. I tried the samples given in the Telerik forums, 

On Button Click Event:

grid.ExportSettings.ExportOnlyData =

true;

 

grid.MasterTableView.HierarchyDefaultExpanded =

true;

 

grid.MasterTableView.ExportToPdf();


I am getting following error:

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)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more

Can anyone help me on this.

Thanks, Malli

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 Dec 2009, 05:48 AM
Hello Malli,

Try setting the width of the child tables in pixels and see if it helps sort the issue. Check out the section 'Exceptions' under the following help document:
PDF export

Thanks
Princy.
0
Mallikharjun Mulagundla
Top achievements
Rank 1
answered on 17 Dec 2009, 02:45 PM
Hi Princy,

Thanks for your reply. Its  is not working..

please let me know, if you have any suggestions..


Thanks, Malli
0
Daniel
Telerik team
answered on 17 Dec 2009, 09:33 PM
Hello Mallikharjun,

Please post your markup here so we can examine it.  

Regards,
Daniel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Mallikharjun Mulagundla
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Mallikharjun Mulagundla
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or