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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to colour table header in PDF

ptc-5110902
1-Visitor

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.

ACCEPTED SOLUTION

Accepted Solutions
jgroos
12-Amethyst
(To:ptc-5110902)

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
jgroos
12-Amethyst
(To:ptc-5110902)

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

Hello Joachim,

Thank you very much for your guidance.

It totally worked! It is amazing

Kind regards,

Tomomi

Announcements

Top Tags