Skip to main content
Solved

Formatting Headers In Excel

  • November 15, 2024
  • 1 reply
  • 251 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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

liamfez
Influencer
Forum|alt.badge.img+44
  • 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.