Free Support Forum -

How to determine maximum value for table border

I am setting the border width of a table in Aspose.Words 17.9 using the code below;

objTable.SetBorder(Aspose.Words.BorderType.Bottom, LineStyle.Single, SBProperties.LineHeight, System.Drawing.Color.Empty, False)

If SBPropertes.LineHeight contains a value from 1 to 31 it works fine, as soon as I use a value > 31 it throws an exception as follows

Specified argument was out of the range of valid values. Parameter name: lineWidth

My question is how do I determine the maximum value to avoid the exception.



We tested the scenario and have managed to reproduce the same exception on our end. For the sake of any correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-17523. We will further look into the details of this problem and will keep you updated on the status of this issue. We apologize for your inconvenience.