Skip to main content
Question

Excel styling challenges

  • July 16, 2026
  • 4 replies
  • 88 views

koenterralytics
Supporter
Forum|alt.badge.img+11

I've got a few challenges concerning styling of an excelsheet. It's not just an ordinary sheet with columns and rows, but it's a reporting template. The report contains several attributes in different fields and several images. The issues/challenges I'm currently facing:

  1. I would like images to fit itself into a named range or predefined rows and columns. See screenshot below. I created a predefined named range ‘overzichtskaart’ which covers cells $C$4:$E$16. But as far as I can see there is no option to let FME/Excel know that the image should stay in those cells. I created a workaround now which tells the image that it should align in xlsx_row_id 4 and xlsx_col_id2 with a height and with of 255 pixels. But this goes wrong as soon as the alignment of the attributes changes (for example multirow text in column B). Does anyone have a smart work-around to fit the image exactly in the desired cells?
  2. Named ranges are useful to make sure that the attribute-data ends up in the right cell, but it seems to be impossible to use them and maintain styling at the same time. In the screenshot below there is a merged cell in my template covering cells B24:B26. But when writing the data to this template, the cell is not merged any more and all styling gets lost. How can I keep my merged cells and styling from the template? Also settings like word-wrap gets lost. I tried to use the excel-writer setting ‘truncate existing sheet/named range/table = No. But when I do this, some named ranges do not get the values I tried to add in these cells. They seem to stay blank (but not all of them). Or the value ends up in the cell below. 

So in short I'd like to learn some tricks or settings to get a nice report, based on my template. 

 

 

4 replies

koenterralytics
Supporter
Forum|alt.badge.img+11

Is there anyone who can help me with this? It seems to be impossible to put data in the named range without losing formatting.

If I use the setting ‘Truncate existing sheet/named range/table’ = Yes, then the formatting gets lost. If I use No for this setting, all data is inserted in the cell below the named range. So if my named range in the template is in cell A2, the data is inserted in cell A3.

 


PierreAtSafe
Safer
Forum|alt.badge.img+11

Hi ​@koenterralytics,

Sorry for the delay in replying, I’m unfortunately not using the Excel writer to that extent but I’d love to get that working for you.

  1. The image sizing with a defined range: this is currently not possible BUT this is a feature I’d love to support. We have a bucket of improvement for the Excel integration scheduled for 27.1 and will try to get that done as part of it. I don’t have an immediate solution for you unfortunately. The way you are doing it today is the best there is I believe.
  2. For this issue, could you try with the following settings: Keep Truncate = No and set Output Field Names = No on the Writer. Your value should then land in the range itself. Let me know if that works.

Cheers,


koenterralytics
Supporter
Forum|alt.badge.img+11

Hi ​@PierreAtSafe 

  1. Thanks, that would be great if this can be developed. Is it possible to get an automatic message about this when this is available? 
  2. Unfortunately, this does not work. The data lands in the cell below the cell it has to be in. (I just retried to confirm this). So if this should not be the case, we somehow have to discover why this is happening. See screenshot below for the complete overview of the writer settings.

 


PierreAtSafe
Safer
Forum|alt.badge.img+11

Hi ​@koenterralytics,

  1. Will do!
  2. Sorry that didn’t work… Will try to have someone from support investigate, I need someone with more knowledge than me for this one! Thanks for the screenshot, this will be very useful.