Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add style and columnWidth options to the ExcelOpenSpoutExporter #368

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

mhvis
Copy link
Contributor

@mhvis mhvis commented Dec 27, 2024

This PR is a suggestion for making the Excel export output a little bit configurable, using custom column styles and widths. This way, we can have a native Excel currency format for the output columns in the Excel file.

Thanks for your helpful e-mail last week 😃. And I fully agree that a currency column will probably never be able to satisfy everyone's specific requirements.

See commit message for details.

Copy link

codecov bot commented Dec 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.70%. Comparing base (15974fc) to head (24cc5b8).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #368   +/-   ##
=======================================
  Coverage   94.70%   94.70%           
=======================================
  Files          37       37           
  Lines        1000     1000           
=======================================
  Hits          947      947           
  Misses         53       53           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This adds an extra option on `AbstractColumn` to configure options
specific for an exporter. The available options are defined on the
exporter using `DataTableExporterInterface::configureColumnOptions()`.

The style option allows to set the OpenSpout cell style for a column.

The columnWidth sets the column width in the Excel sheet.
@mhvis mhvis force-pushed the maarten-openspout-style branch from b6ce426 to 24cc5b8 Compare February 3, 2025 11:02
@curry684 curry684 merged commit 2952f8c into omines:master Feb 3, 2025
11 checks passed
@curry684
Copy link
Member

curry684 commented Feb 3, 2025

@NMe84 might also want to look at this change.

And thnx :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants