Skip to content

[Proposal]: add writing xlsx file with some styling #1904

@Grummfy

Description

@Grummfy

Describe the Proposal

hello,
as discussed through some discord with Norbert, I think it could be nice to have some witer for excell (xlsx) (using external libraries or not (with phpoffice/spreadsheet activate the cache! https://phpspreadsheet.readthedocs.io/en/latest/topics/memory_saving/)) .

In my use case I need

  • writing some lines of rich text (basic style bold, italic, etc today I use html then use rich text converter for it)) that cover (merged cell) all the columns that will be filled. Exemple some title, some legal text, some list of filter parameters
  • giving a list of columns + a generator as row filler + some of the cell of the row will contains some formated text (rich I assume)

In my case the columns make the link between the array key, the column and some extra formating (this is a text, this is a number, this is date) and eventually some cell style

Optional

  • having simple style (from templates ?) for data themselve like odd and even row differenciator
  • add extra metadata properties to the files (example of usage : confidential flag, person who ask the export, etc)

Notes

I hope you have enough information and it help to have a usage case

thanks a lot

API Adjustments

No response

Are you intending to also work on proposed change?

None

Are you interested in sponsoring this change?

None

Integration & Dependencies

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions