Bug in GetMaxColumnWidth and GetMinColumnWidth?

Hi all,



I encounter a ApplicationException with the message
“The column number is out of bound in GetMaxColumnWidth method” when I
run the code below:



for (int i = 0; i < reportTable.Rows[0].Cells.Count; i++ )

{

System.Diagnostics.Debug.WriteLine(reportTable.GetMaxColumnWidth(i));

reportTable.SetColumnWidth(i,10)

}



The error occurs when I try to output the max column width and the variable i has a value greater than 1. If I comment out the culprit line, everything works fine. Thus it can not be that i is greater than the number of columns in the table as otherwise the the SetColumnWidth()method
would fail as well. I also tried the overloaded method where I have to
additionally pass the pdf-object, but withouth success. The same
applies for the GetMinColumnWidth methods.



What’s the matter? Is this a bug?



Any help is highly appreciated, as I need this function as soon as possible!



Thanks!

PS: I’m using the newest version of the Aspose.PDF component (3.5.8.0)


Hi,

Thank you for considering Aspose.

I am unable to reproduce this error, please tell me whether cells contains data or not?. If table cells conatins data and still this error comes, then please share your code and let us investigate this issue.

Thanks.