Custom Header and Footer without trailing commas #3410
Unanswered
stankobrin
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I don't think PhpSpreadsheet supports that. You'll probably have to open the file and do a replace in there. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am need of some assistance. I am trying to create a custom export that includes a collection of data, but also a header and footer in a very specific manor for a 3rd party system to consume the file.
I am generating a header row using custom headings():
Which works perfectly, however as the collection output contains 24 columns, when I output the file, the header renders like this:
Header,20211021,065529,,,,,,,,,,,,,,,,,,,,,,
The requirement is to have it output like this:
Header,20211021,065529
I am looking for a way to remove the trailing commas just in the header and the footer
For the footer, I have registered a custom event:
Which again works perfectly but outputs with the same issue:
Actual:
Footer,49,,,,,,,,,,,,,,,,,,,,,,,
Required:
Footer,49
Any assistance in figuring this out would be hugely appreciated!
Thanks
Stan
Beta Was this translation helpful? Give feedback.
All reactions