I'm using Aspose.Cells for .NET (framework 2.0) in a ASP.NET page.
The problem is when I try to set the BorderWith in a specific cell. I've tried to used different values, but it's always rendered as if it was only 1px width.
Please see the attached image.
I'm using the following code to change the style:
...
Dim st As New Aspose.Cells.GridWeb.TableItemStyle st.CopyFrom(gdEscala.WebWorksheets(0).Cells(row, i).GetStyle()) st.BorderColor = Color.Olive st.BorderStyle = BorderStyle.Solid st.BorderWidth = New Unit("3px") gdEscala.WebWorksheets(0).Cells(row, i).SetStyle(st)
After an initial test, I can find the issue as you have mentioned. Even I tried other values for different types including pixels, points and integers using Unit API but to no avail.
I have logged a ticket with an id: CELLSNET-41126 for your issue. We will soon look into it to figure it out.
In Ms-Excel we can not set border width by pix level, so currently we only
support diffrent border style and color.
Also, we have evaluated this feature, if we enable this feature, there are some side effects, the data row alignment will break. It can not keep consistent with left head row.
After further investigation we come to know that in MS-Excel one cannot
specify border width using specific number directly, so the user can only apply thin or thick border styles. So, now we only
support 1px and 2px border width which refer to thin and thick styles of border width same as with MS-Excel (which has only two styles regarding line width i.e. thin and thick – you may confirm it in MS Excel).