Skip to main content
Solved

Is there a way to get the Excel Writer to honour the cell width of the template file?


mmacfarlane
Contributor
Forum|alt.badge.img+7

It used to work in older versions (2020?), but now will only use the value set in the writer. If I set it to 0 for automatic width, it results in "Error running translation"

I need the cell size to be a specific decimal value, but the writer will only let me set an integer for the cell width.

Best answer by markatsafe

@mmacfarlane​ Thanks for the workspace & data. I've reproduce the issue. This has been fixed for FME 2021.2 which is scheduled for release in early November. betas are available here

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

7 replies

Forum|alt.badge.img+2
  • October 4, 2021

@mmacfarlane​ Do you have a little example of the template and data. I think FME should be honouring the template


mmacfarlane
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • October 4, 2021
markatsafe wrote:

@mmacfarlane​ Do you have a little example of the template and data. I think FME should be honouring the template

Hi Mark,

I've thrown together a quick workspace that replicates the issued (though 0 width for automatic isn't causing the error running translation, weird!). The writer is still not honouring the template's width though.


mmacfarlane
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • October 4, 2021
mmacfarlane wrote:

Hi Mark,

I've thrown together a quick workspace that replicates the issued (though 0 width for automatic isn't causing the error running translation, weird!). The writer is still not honouring the template's width though.

Hmm. Thought I had attached both the template and workspace. Here's the workspace


Forum|alt.badge.img+2
  • Best Answer
  • October 4, 2021

@mmacfarlane​ Thanks for the workspace & data. I've reproduce the issue. This has been fixed for FME 2021.2 which is scheduled for release in early November. betas are available here


mmacfarlane
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • October 4, 2021
markatsafe wrote:

@mmacfarlane​ Thanks for the workspace & data. I've reproduce the issue. This has been fixed for FME 2021.2 which is scheduled for release in early November. betas are available here

Thanks!


dollyns
Participant
Forum|alt.badge.img+1
  • Participant
  • July 4, 2024
mmacfarlane wrote:
markatsafe wrote:

@mmacfarlane​ Thanks for the workspace & data. I've reproduce the issue. This has been fixed for FME 2021.2 which is scheduled for release in early November. betas are available here

Thanks!


Hi Michael,

Could you share the configuration that makes the Excel Writer preserve the cell width of the template?

I was trying to do the same but it didn’t work. I configured it to use the destination sheet as the template, and not to overwrite the file.

In “User Attribute” tab, I chose “Automatic” for attribute definition. But if I set the “Cell Width” to all 0s, it will auto fit the width, not preserverse it.

Below is how the file looks like before and after execution (using “Automatic” definition). I also attached the screenshot configurations.

BEFORE:

AFTER:

 

 


crystalatsafe
Safer
Forum|alt.badge.img+19

Hi @dollyns 

It looks like that workspace mentioned was missing from this thread but we have reattached it so you should now be able to see how @mmacfarlane set up the Excel writer. 

Which version of FME are you using? I believe all versions after 2021.2 will honour all formatting from the template file. 


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