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

[QUESTION] How can I concatenate all the rows from identically formatted XSLX files into one Spreadsheet ? #2582

Closed
ftrudeau opened this issue Mar 6, 2020 · 1 comment
Labels

Comments

@ftrudeau
Copy link

ftrudeau commented Mar 6, 2020

Prerequisites

Versions

  • PHP version: PHP 7.2.19 (cli) (built: May 29 2019 13:58:59) ( ZTS MSVC15 (Visual C++ 2017) x64 )
  • Laravel version: 5.7.28
  • Package version: 3.1.19

Description

I have hundreds of XLSX spreadsheets with those properties :

  • Each spreadsheet has only one worksheet
  • Each worksheet has exactly the same number of columns, formulas + formatting
  • Each worksheet can contain a number of rows varying from 1 to 1000.

Essentially, I want to concatenate all the rows from all the spreadsheet into a single new spreadsheet, while retaining the formatting, headers, formulas, properties and etc.

Similar question was asked 2 years ago, but it is for version 2.x and the proposed solution seams to add a new sheet to the "merged" spreadsheet, which is not the desired behavior.

Any help would be appreciated, thanks !

@patrickbrouwers
Copy link
Member

In 3.1 you need to use PhpSpreadsheet directly through one of the exposed events, we currently don't have out of the box support for it. Multiple proposals have been made to make similar things possible, so I'll close this one.

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

No branches or pull requests

2 participants