Skip to main content
Solved

Formatting Headers In Excel

  • November 15, 2024
  • 1 reply
  • 108 views

mikeinhamilton
Contributor
Forum|alt.badge.img+5

I’m trying format the headers of an excel file. I’m attempting to use a template but can’t get it to work. 

The output always has a tab that is formatted like the template, and a tab with the data without the formatted headers. I’d like to write the data to the formatted tab. Is this possible?

 

 

Best answer by liamfez

If you are looking for a simple solution just to format the headers, you can do that in the Writer without the need of a template. I include an ExcelStyler before the writer to format the rest of the data, often keeping background white and text black. The ExcelStyler styling the cells other than the headers will overwrite any styling you do in the Writer for the headers.

But when it comes to templates it sounds like you may need to check the “Remove Template Sheet if Unchanged”. Also is the FeatureType for your writer named the same as the sheet/tab that you are using as the template? If not, try that.

View original
Did this help you find an answer to your question?

1 reply

liamfez
Influencer
Forum|alt.badge.img+34
  • Influencer
  • Best Answer
  • November 19, 2024

If you are looking for a simple solution just to format the headers, you can do that in the Writer without the need of a template. I include an ExcelStyler before the writer to format the rest of the data, often keeping background white and text black. The ExcelStyler styling the cells other than the headers will overwrite any styling you do in the Writer for the headers.

But when it comes to templates it sounds like you may need to check the “Remove Template Sheet if Unchanged”. Also is the FeatureType for your writer named the same as the sheet/tab that you are using as the template? If not, try that.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings