Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Invalid index in Rows indexer: 0

$
0
0
Hi All,

I am using Aspose.Pdf dll to generate PDF document.I am getting the issue that "Invalid index in Rows indexer: 0" while generating the PDF.

Where I am getting Issue/Error:
There is a table with many number of rows while generating PDF. Its a for loop to add each row with data in table. Here I am using fontsize 11 to display the text in each row  table.  The issue is getting here that "
Invalid index in Rows indexer: 0" randomly. But not frequently. If I reduce the font size to some 5 number down, then its working without any issue. some code snippet is pasting here. I hope you all understood the issue.

row = pdfTableResourceTeam.Rows.Add();
Cell cellRole = row.Cells.Add();
Text textRole = new Text(teamMemberTable.Rows[count]["Role"].ToString());
Aspose.Pdf.TextInfo txtinfoRole = textRole.TextInfo.Clone() as Aspose.Pdf.TextInfo;
 txtinfoRole.FontSize = 8;
txtinfoRole.Color = col;
textRole.TextInfo = txtinfoRole;
cellRole.Paragraphs.Add(textRole);



Any fix for this? Any solution for this defect?

Please help me.

Thanks and Regards
Prathap Reddy

Viewing all articles
Browse latest Browse all 3131

Trending Articles