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.
Unfortunately, activation email could not send to your email. Please try again.

PdfLightTable border color

Thread ID:

Created:

Updated:

Platform:

Replies:

123249 Mar 1,2016 03:58 AM Mar 2,2016 02:45 AM ASP.NET MVC 1
loading
Tags: PDF
Catalina Vatuiu
Asked On March 1, 2016 03:58 AM

Hi,

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 })
                    ShowHeader=true,
                    RepeatHeader=true,
                    HeaderStyle=headerStyle,
                    DefaultStyle=defaultStyle
                }             
            };


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

Thanks,

Catalina



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

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

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let me know if you have any questions.

Regards,
Abirami.


CONFIRMATION

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.

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.

;