New to Telerik Reporting? Download free 30-day trial

Ensuring Consistent Border Width in Table Cells in Telerik Reporting

Environment

Product Progress® Telerik® Reporting

Description

In some cases, the borders of table cells in a Telerik Report may appear inconsistently, with some borders looking thicker than others, even though the border width is set uniformly. This issue persists across different rendering formats, including PDF exports. This knowledge base article also answers the following questions:

  • How to fix varying border widths in table cells?
  • How to ensure border consistency in Telerik Reporting tables?
  • What causes some table cell borders to appear thicker in Telerik Reporting?

Solution

To achieve consistent border widths across all table cells, ensure that the background color of all cells is uniformly set. The issue with seemingly thicker borders arises from how borders and background colors are rendered. Part of the border is drawn inside the cell, and part outside. Then, the background color is applied, which can affect the visibility of the border's thickness.

Follow these steps to resolve the issue:

  1. Check the background color settings for each table cell. Identify if any cells have their background color explicitly set to 'White' or any other color, while others are left as default.
  2. Ensure the background colors of all table cells are either set to valid colors, or left to the default (transparrent) value:
    • Reset any explicitly set background colors to their default value. This ensures that all cells have uniform background settings, eliminating discrepancies in border visibility.
    • Alternatively, explicitly set a background color for all cells. This uniform application of background color will also ensure that the borders appear consistently across the table.

This approach addresses the root cause of the issue by aligning the rendering behavior of borders and background colors, ensuring uniform border thickness visibility across your report.

See Also

In this article