I am using pdfgrid.draw and i get following exception.
at
System.Collections.Generic.List`1.get_Item(Int32 index)
at Syncfusion.Pdf.Grid.PdfGridLayouter.DrawRow(PdfGridRow row)
at Syncfusion.Pdf.Grid.PdfGridLayouter.LayoutOnPage(PdfLayoutParams param)
at Syncfusion.Pdf.Grid.PdfGridLayouter.LayoutInternal(PdfLayoutParams param)
at Syncfusion.Pdf.Graphics.ElementLayouter.Layout(PdfLayoutParams param)
at Syncfusion.Pdf.Grid.PdfGrid.Layout(PdfLayoutParams param)
at Syncfusion.Pdf.Graphics.PdfLayoutElement.Draw(PdfPage page, RectangleF
layoutRectangle, PdfLayoutFormat format)
at Syncfusion.Pdf.Graphics.PdfLayoutElement.Draw(PdfPage page, Single x, Single
y, PdfLayoutFormat format)
at Syncfusion.Pdf.Graphics.PdfLayoutElement.Draw(PdfPage page, PointF location,
PdfLayoutFormat format)
at Syncfusion.Pdf.Grid.PdfGrid.Draw(PdfPage page, PointF location,
PdfGridLayoutFormat format)
during debugging i noticed that if i add dummy rows to pdfgrid before calling pdfgrid.draw then then code works, excpet the pdf has extra rows tacked on to bottom of grid.
i can create pdf with no issue if i use individual records from my datasource to generate the pdf, but if i use the netire datasource of 35 rows then i run into this issue.
is there a max pdfgrid.rows beyond which i have to add additional rows?
my pointF is pointF.Empty
I am using pdfgrid.draw and i get following exception.
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Syncfusion.Pdf.Grid.PdfGridLayouter.DrawRow(PdfGridRow row)
at Syncfusion.Pdf.Grid.PdfGridLayouter.LayoutOnPage(PdfLayoutParams param)
at Syncfusion.Pdf.Grid.PdfGridLayouter.LayoutInternal(PdfLayoutParams param)
at Syncfusion.Pdf.Graphics.ElementLayouter.Layout(PdfLayoutParams param)
at Syncfusion.Pdf.Grid.PdfGrid.Layout(PdfLayoutParams param)
at Syncfusion.Pdf.Graphics.PdfLayoutElement.Draw(PdfPage page, RectangleF layoutRectangle, PdfLayoutFormat format)
at Syncfusion.Pdf.Graphics.PdfLayoutElement.Draw(PdfPage page, Single x, Single y, PdfLayoutFormat format)
at Syncfusion.Pdf.Graphics.PdfLayoutElement.Draw(PdfPage page, PointF location, PdfLayoutFormat format)
at Syncfusion.Pdf.Grid.PdfGrid.Draw(PdfPage page, PointF location, PdfGridLayoutFormat format)
during debugging i noticed that if i add dummy rows to pdfgrid before calling pdfgrid.draw then then code works, excpet the pdf has extra rows tacked on to bottom of grid.
i can create pdf with no issue if i use individual records from my datasource to generate the pdf, but if i use the netire datasource of 35 rows then i run into this issue.
is there a max pdfgrid.rows beyond which i have to add additional rows?
my pointF is pointF.Empty
Hi Jb,Thank you for using syncfusion products,I am afraid that i couldn't able to reproduce the issue, i have attached a simple sample for which we tried to reproduce the issue, can you please check with these sample and let me know if these helps.Sample Link:Thanks,Karthik