We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PdfLightTable border color

Thread ID:





123249 Mar 1,2016 08:58 AM UTC Mar 2,2016 07:45 AM UTC ASP.NET MVC 1
Tags: PDF
Catalina Vatuiu
Asked On March 1, 2016 08:58 AM UTC


I want to write a table in a pdf file. I am using the PdfLightTable class to write the data, and I've set the styles for the header and cells using the PdfCellStyle class:

   var headerStyle = new PdfCellStyle
                BackgroundBrush = new PdfSolidBrush(new PdfColor(new Color()) {R = 109, G = 175,  B = 61}),
                BorderPen = new PdfPen(new PdfColor(new Color()){ R = 109, G = 175,   B = 61 })
    var defaultStyle = new PdfCellStyle
                TextBrush = PdfBrushes.Black,
                BorderPen =PdfPen(new PdfColor(new Color()){ R = 109, G = 175,   B = 61 })

  var pdfLightTable = new PdfLightTable
                Style =
                    BorderPen= new PdfPen(new PdfColor(new Color()){ R = 109, G = 175,   B = 61 })

But the table is rendered without the borders or the header bakcground color. 



Abirami Selvan [Syncfusion]
Replied On March 2, 2016 07:45 AM UTC

Hi Catalina,

Thank you for contacting Syncfusion support.

We are able to reproduce the issue“ Border and background color is not persevered correctly in PDF light table” and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates


Please let me know if you have any questions.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon