Excel spreadsheet columns should be expanded to the correct width of the contents present in the each cells

Certified Associate Developer

I'm using "Copy document" and "Export  Data Store entity to Excel" smart services in a process model to generate a excel sheet. While the sheet is generated when the contents are displayed, the cells don't fit to the width of the contents within them. In excel we can generally expand according to the width of the contents by selecting all rows and columns and double clicking in the middle of any two columns. But that is after generating the file. So, I want this columns to be auto adjusted or expanded while generating itself. how do I make this happen?

Now,

How I need it to be,

Thanks,

Shravan

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to ShravanS
    After doing that for me, when I download the sheet it comes appropriately expanded but when other users try the same they have one or two columns distorted.

    Then my first guess is you're using a different smart service (or maybe, using a spreadsheet viewer that auto-expands columns somehow, though I don't know of such a thing).  But either way, the "Export DSE to Excel" smart service absolutely does not support base templates or pre-formatting of any sort, sadly, and will completely overwrite anything that exists in the excel sheet beforehand should you try to have it update an existing document.

    You might be thinking of the older (and, if we're honest, better) Excel Tools smart services, either "Export SQL to Excel" or "Export CDT to Excel", both of which accept a Base Template Document, and which will preserve original formatting from their template files (at least other than inside the contents of individual cells, which I believe are still overwritten).

Children