Giter Club home page Giter Club logo

Comments (2)

liuggio avatar liuggio commented on July 21, 2024

Hello pivasyk,
thanks for reporting,
PHPExcel provide the load function
eg.

$objPHPExcel = PHPExcel_IOFactory::load("MyExcel.xlsx");
foreach ($objPHPExcel->getWorksheetIterator() as $worksheet) {... 

If you need to use with this library

  1. Is very simple, you should add a function into Service/ExcelContainer.php called maybe load, for input takes the file to load and return the PHPExcel object.
    Into the function you should do something similar to CreateWriter except for the
    -rename $factory_method to load
    -rename $this->writer to $phpObject
  2. into config/services.yml you need to create a service very similar to xls.service_xls5

I hope this was clear, let me know

PS: a pull request 'd be great!!

from excelbundle.

liuggio avatar liuggio commented on July 21, 2024

Sorry i just release some code, and the tips i gave is deprecated :)
is still easier all the modification that you have to do are on services.yml

Create a new factory similar to xls.factory_xls5

  1. find the correct class
  2. replace createWriter with load
  3. set an arguments: 'filename'

this example is for a static filename, is not so difficult create a service for it.

from excelbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.