cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to colour table header in PDF

ptc-5110902
1-Newbie

How to colour table header in PDF

Hello all,

I am looking for the way to colour the content of <thead> element.

Custom table might work but I want to skip it this time as it is not a custom table.

Therefore, I tried some source editting with "backgroundColor" attribute of "fTable" which also did not work.

I am not familiar with Javascript so it is very difficult to figure out.

Does anyone know how to colour it? or is it even possible?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions

Hello Tomomi,

it's possible

1. Create a property set and add following line at the end of the "OnEnter" section:

formatting.currentTableCell.backgroundColor = "#D6D6D8";

2. Create a context for entry: "anywhere in thead" and add the property set to that context

context.jpg

Best regards

Joachim

View solution in original post

2 REPLIES 2

Hello Tomomi,

it's possible

1. Create a property set and add following line at the end of the "OnEnter" section:

formatting.currentTableCell.backgroundColor = "#D6D6D8";

2. Create a context for entry: "anywhere in thead" and add the property set to that context

context.jpg

Best regards

Joachim

View solution in original post

Hello Joachim,

Thank you very much for your guidance.

It totally worked! It is amazing

Kind regards,

Tomomi

Announcements